1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. accesscontextmanager
  5. EgressPolicy
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi

gcp.accesscontextmanager.EgressPolicy

Explore with Pulumi AI

This resource has been deprecated, please refer to ServicePerimeterEgressPolicy.

To get more information about EgressPolicy, see:

Create EgressPolicy Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new EgressPolicy(name: string, args: EgressPolicyArgs, opts?: CustomResourceOptions);
@overload
def EgressPolicy(resource_name: str,
                 args: EgressPolicyArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def EgressPolicy(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 egress_policy_name: Optional[str] = None,
                 resource: Optional[str] = None)
func NewEgressPolicy(ctx *Context, name string, args EgressPolicyArgs, opts ...ResourceOption) (*EgressPolicy, error)
public EgressPolicy(string name, EgressPolicyArgs args, CustomResourceOptions? opts = null)
public EgressPolicy(String name, EgressPolicyArgs args)
public EgressPolicy(String name, EgressPolicyArgs args, CustomResourceOptions options)
type: gcp:accesscontextmanager:EgressPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. EgressPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. EgressPolicyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. EgressPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. EgressPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. EgressPolicyArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var egressPolicyResource = new Gcp.AccessContextManager.EgressPolicy("egressPolicyResource", new()
{
    EgressPolicyName = "string",
    Resource = "string",
});
Copy
example, err := accesscontextmanager.NewEgressPolicy(ctx, "egressPolicyResource", &accesscontextmanager.EgressPolicyArgs{
	EgressPolicyName: pulumi.String("string"),
	Resource:         pulumi.String("string"),
})
Copy
var egressPolicyResource = new EgressPolicy("egressPolicyResource", EgressPolicyArgs.builder()
    .egressPolicyName("string")
    .resource("string")
    .build());
Copy
egress_policy_resource = gcp.accesscontextmanager.EgressPolicy("egressPolicyResource",
    egress_policy_name="string",
    resource="string")
Copy
const egressPolicyResource = new gcp.accesscontextmanager.EgressPolicy("egressPolicyResource", {
    egressPolicyName: "string",
    resource: "string",
});
Copy
type: gcp:accesscontextmanager:EgressPolicy
properties:
    egressPolicyName: string
    resource: string
Copy

EgressPolicy Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The EgressPolicy resource accepts the following input properties:

EgressPolicyName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Service Perimeter to add this resource to.


Resource
This property is required.
Changes to this property will trigger replacement.
string
A GCP resource that is inside of the service perimeter.
EgressPolicyName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Service Perimeter to add this resource to.


Resource
This property is required.
Changes to this property will trigger replacement.
string
A GCP resource that is inside of the service perimeter.
egressPolicyName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Service Perimeter to add this resource to.


resource
This property is required.
Changes to this property will trigger replacement.
String
A GCP resource that is inside of the service perimeter.
egressPolicyName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Service Perimeter to add this resource to.


resource
This property is required.
Changes to this property will trigger replacement.
string
A GCP resource that is inside of the service perimeter.
egress_policy_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Service Perimeter to add this resource to.


resource
This property is required.
Changes to this property will trigger replacement.
str
A GCP resource that is inside of the service perimeter.
egressPolicyName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Service Perimeter to add this resource to.


resource
This property is required.
Changes to this property will trigger replacement.
String
A GCP resource that is inside of the service perimeter.

Outputs

All input properties are implicitly available as output properties. Additionally, the EgressPolicy resource produces the following output properties:

AccessPolicyId string
The name of the Access Policy this resource belongs to.
Id string
The provider-assigned unique ID for this managed resource.
AccessPolicyId string
The name of the Access Policy this resource belongs to.
Id string
The provider-assigned unique ID for this managed resource.
accessPolicyId String
The name of the Access Policy this resource belongs to.
id String
The provider-assigned unique ID for this managed resource.
accessPolicyId string
The name of the Access Policy this resource belongs to.
id string
The provider-assigned unique ID for this managed resource.
access_policy_id str
The name of the Access Policy this resource belongs to.
id str
The provider-assigned unique ID for this managed resource.
accessPolicyId String
The name of the Access Policy this resource belongs to.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing EgressPolicy Resource

Get an existing EgressPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: EgressPolicyState, opts?: CustomResourceOptions): EgressPolicy
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        access_policy_id: Optional[str] = None,
        egress_policy_name: Optional[str] = None,
        resource: Optional[str] = None) -> EgressPolicy
func GetEgressPolicy(ctx *Context, name string, id IDInput, state *EgressPolicyState, opts ...ResourceOption) (*EgressPolicy, error)
public static EgressPolicy Get(string name, Input<string> id, EgressPolicyState? state, CustomResourceOptions? opts = null)
public static EgressPolicy get(String name, Output<String> id, EgressPolicyState state, CustomResourceOptions options)
resources:  _:    type: gcp:accesscontextmanager:EgressPolicy    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AccessPolicyId string
The name of the Access Policy this resource belongs to.
EgressPolicyName Changes to this property will trigger replacement. string
The name of the Service Perimeter to add this resource to.


Resource Changes to this property will trigger replacement. string
A GCP resource that is inside of the service perimeter.
AccessPolicyId string
The name of the Access Policy this resource belongs to.
EgressPolicyName Changes to this property will trigger replacement. string
The name of the Service Perimeter to add this resource to.


Resource Changes to this property will trigger replacement. string
A GCP resource that is inside of the service perimeter.
accessPolicyId String
The name of the Access Policy this resource belongs to.
egressPolicyName Changes to this property will trigger replacement. String
The name of the Service Perimeter to add this resource to.


resource Changes to this property will trigger replacement. String
A GCP resource that is inside of the service perimeter.
accessPolicyId string
The name of the Access Policy this resource belongs to.
egressPolicyName Changes to this property will trigger replacement. string
The name of the Service Perimeter to add this resource to.


resource Changes to this property will trigger replacement. string
A GCP resource that is inside of the service perimeter.
access_policy_id str
The name of the Access Policy this resource belongs to.
egress_policy_name Changes to this property will trigger replacement. str
The name of the Service Perimeter to add this resource to.


resource Changes to this property will trigger replacement. str
A GCP resource that is inside of the service perimeter.
accessPolicyId String
The name of the Access Policy this resource belongs to.
egressPolicyName Changes to this property will trigger replacement. String
The name of the Service Perimeter to add this resource to.


resource Changes to this property will trigger replacement. String
A GCP resource that is inside of the service perimeter.

Import

EgressPolicy can be imported using any of these accepted formats:

  • {{egress_policy_name}}/{{resource}}

When using the pulumi import command, EgressPolicy can be imported using one of the formats above. For example:

$ pulumi import gcp:accesscontextmanager/egressPolicy:EgressPolicy default {{egress_policy_name}}/{{resource}}
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.