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
new EgressPolicy(name: string, args: EgressPolicyArgs, opts?: CustomResourceOptions);
@overload
def EgressPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
egress_policy_name: Optional[str] = None,
resource: Optional[str] = None)
@overload
def EgressPolicy(resource_name: str,
args: EgressPolicyArgs,
opts: Optional[ResourceOptions] = 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.
- name string
- The unique name of the resource.
- args EgressPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args EgressPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EgressPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EgressPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
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
The EgressPolicy resource accepts the following input properties:
- Egress
Policy stringName The name of the Service Perimeter to add this resource to.
- Resource string
A GCP resource that is inside of the service perimeter.
- Egress
Policy stringName The name of the Service Perimeter to add this resource to.
- Resource string
A GCP resource that is inside of the service perimeter.
- egress
Policy StringName The name of the Service Perimeter to add this resource to.
- resource String
A GCP resource that is inside of the service perimeter.
- egress
Policy stringName The name of the Service Perimeter to add this resource to.
- resource string
A GCP resource that is inside of the service perimeter.
- egress_
policy_ strname The name of the Service Perimeter to add this resource to.
- resource str
A GCP resource that is inside of the service perimeter.
- egress
Policy StringName The name of the Service Perimeter to add this resource to.
- resource 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:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- 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,
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)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Egress
Policy stringName The name of the Service Perimeter to add this resource to.
- Resource string
A GCP resource that is inside of the service perimeter.
- Egress
Policy stringName The name of the Service Perimeter to add this resource to.
- Resource string
A GCP resource that is inside of the service perimeter.
- egress
Policy StringName The name of the Service Perimeter to add this resource to.
- resource String
A GCP resource that is inside of the service perimeter.
- egress
Policy stringName The name of the Service Perimeter to add this resource to.
- resource string
A GCP resource that is inside of the service perimeter.
- egress_
policy_ strname The name of the Service Perimeter to add this resource to.
- resource str
A GCP resource that is inside of the service perimeter.
- egress
Policy StringName The name of the Service Perimeter to add this resource to.
- resource 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}}
In Terraform v1.5.0 and later, use an import
block to import EgressPolicy using one of the formats above. For exampletf import {
id = “{{egress_policy_name}}/{{resource}}”
to = google_access_context_manager_egress_policy.default }
$ pulumi import gcp:accesscontextmanager/egressPolicy:EgressPolicy When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), EgressPolicy can be imported using one of the formats above. For example
$ pulumi import gcp:accesscontextmanager/egressPolicy:EgressPolicy default {{egress_policy_name}}/{{resource}}
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.