gcp.accesscontextmanager.IngressPolicy
Explore with Pulumi AI
This resource has been deprecated, please refer to ServicePerimeterIngressPolicy.
To get more information about IngressPolicy, see:
Create IngressPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IngressPolicy(name: string, args: IngressPolicyArgs, opts?: CustomResourceOptions);
@overload
def IngressPolicy(resource_name: str,
args: IngressPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IngressPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
ingress_policy_name: Optional[str] = None,
resource: Optional[str] = None)
func NewIngressPolicy(ctx *Context, name string, args IngressPolicyArgs, opts ...ResourceOption) (*IngressPolicy, error)
public IngressPolicy(string name, IngressPolicyArgs args, CustomResourceOptions? opts = null)
public IngressPolicy(String name, IngressPolicyArgs args)
public IngressPolicy(String name, IngressPolicyArgs args, CustomResourceOptions options)
type: gcp:accesscontextmanager:IngressPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args IngressPolicyArgs
- 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 IngressPolicyArgs
- 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 IngressPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IngressPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IngressPolicyArgs
- 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 ingressPolicyResource = new Gcp.AccessContextManager.IngressPolicy("ingressPolicyResource", new()
{
IngressPolicyName = "string",
Resource = "string",
});
example, err := accesscontextmanager.NewIngressPolicy(ctx, "ingressPolicyResource", &accesscontextmanager.IngressPolicyArgs{
IngressPolicyName: pulumi.String("string"),
Resource: pulumi.String("string"),
})
var ingressPolicyResource = new IngressPolicy("ingressPolicyResource", IngressPolicyArgs.builder()
.ingressPolicyName("string")
.resource("string")
.build());
ingress_policy_resource = gcp.accesscontextmanager.IngressPolicy("ingressPolicyResource",
ingress_policy_name="string",
resource="string")
const ingressPolicyResource = new gcp.accesscontextmanager.IngressPolicy("ingressPolicyResource", {
ingressPolicyName: "string",
resource: "string",
});
type: gcp:accesscontextmanager:IngressPolicy
properties:
ingressPolicyName: string
resource: string
IngressPolicy 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 IngressPolicy resource accepts the following input properties:
- Ingress
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.
- Ingress
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.
- ingress
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.
- ingress
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.
- ingress_
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.
- ingress
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 IngressPolicy 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 IngressPolicy Resource
Get an existing IngressPolicy 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?: IngressPolicyState, opts?: CustomResourceOptions): IngressPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ingress_policy_name: Optional[str] = None,
resource: Optional[str] = None) -> IngressPolicy
func GetIngressPolicy(ctx *Context, name string, id IDInput, state *IngressPolicyState, opts ...ResourceOption) (*IngressPolicy, error)
public static IngressPolicy Get(string name, Input<string> id, IngressPolicyState? state, CustomResourceOptions? opts = null)
public static IngressPolicy get(String name, Output<String> id, IngressPolicyState 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.
- Ingress
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.
- Ingress
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.
- ingress
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.
- ingress
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.
- ingress_
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.
- ingress
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
IngressPolicy can be imported using any of these accepted formats:
{{ingress_policy_name}}/{{resource}}
When using the pulumi import
command, IngressPolicy can be imported using one of the formats above. For example:
$ pulumi import gcp:accesscontextmanager/ingressPolicy:IngressPolicy default {{ingress_policy_name}}/{{resource}}
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.