ServicePerimeterResource

Allows configuring a single GCP resource that should be inside of a service perimeter. This resource is intended to be used in cases where it is not possible to compile a full list of projects to include in a gcp.accesscontextmanager.ServicePerimeter resource, to enable them to be added separately.

Note: If this resource is used alongside a gcp.accesscontextmanager.ServicePerimeter resource, the service perimeter resource must have a lifecycle block with ignore_changes = [status[0].resources] so they don’t fight over which resources should be in the policy.

To get more information about ServicePerimeterResource, see:

Create a ServicePerimeterResource Resource

def ServicePerimeterResource(resource_name, opts=None, perimeter_name=None, resource=None, __props__=None);
name string
The unique name of the resource.
args ServicePerimeterResourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ServicePerimeterResourceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ServicePerimeterResourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ServicePerimeterResource Resource Properties

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

Inputs

The ServicePerimeterResource resource accepts the following input properties:

PerimeterName string

The name of the Service Perimeter to add this resource to.

Resource string

A GCP resource that is inside of the service perimeter. Currently only projects are allowed. Format: projects/{project_number}

PerimeterName string

The name of the Service Perimeter to add this resource to.

Resource string

A GCP resource that is inside of the service perimeter. Currently only projects are allowed. Format: projects/{project_number}

perimeterName string

The name of the Service Perimeter to add this resource to.

resource string

A GCP resource that is inside of the service perimeter. Currently only projects are allowed. Format: projects/{project_number}

perimeter_name str

The name of the Service Perimeter to add this resource to.

resource str

A GCP resource that is inside of the service perimeter. Currently only projects are allowed. Format: projects/{project_number}

Outputs

All input properties are implicitly available as output properties. Additionally, the ServicePerimeterResource 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing ServicePerimeterResource Resource

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

static get(resource_name, id, opts=None, perimeter_name=None, resource=None, __props__=None);
func GetServicePerimeterResource(ctx *Context, name string, id IDInput, state *ServicePerimeterResourceState, opts ...ResourceOption) (*ServicePerimeterResource, error)
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.

The following state arguments are supported:

PerimeterName string

The name of the Service Perimeter to add this resource to.

Resource string

A GCP resource that is inside of the service perimeter. Currently only projects are allowed. Format: projects/{project_number}

PerimeterName string

The name of the Service Perimeter to add this resource to.

Resource string

A GCP resource that is inside of the service perimeter. Currently only projects are allowed. Format: projects/{project_number}

perimeterName string

The name of the Service Perimeter to add this resource to.

resource string

A GCP resource that is inside of the service perimeter. Currently only projects are allowed. Format: projects/{project_number}

perimeter_name str

The name of the Service Perimeter to add this resource to.

resource str

A GCP resource that is inside of the service perimeter. Currently only projects are allowed. Format: projects/{project_number}

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.