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.ServicePerimeterresource, the service perimeter resource must have alifecycleblock withignore_changes = [status[0].resources]so they don’t fight over which resources should be in the policy.
To get more information about ServicePerimeterResource, see:
- API documentation
- How-to Guides
Create a ServicePerimeterResource Resource
new ServicePerimeterResource(name: string, args: ServicePerimeterResourceArgs, opts?: CustomResourceOptions);def ServicePerimeterResource(resource_name, opts=None, perimeter_name=None, resource=None, __props__=None);func NewServicePerimeterResource(ctx *Context, name string, args ServicePerimeterResourceArgs, opts ...ResourceOption) (*ServicePerimeterResource, error)public ServicePerimeterResource(string name, ServicePerimeterResourceArgs args, CustomResourceOptions? opts = null)- 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:
- Perimeter
Name 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 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 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:
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.
public static get(name: string, id: Input<ID>, state?: ServicePerimeterResourceState, opts?: CustomResourceOptions): ServicePerimeterResourcestatic 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)public static ServicePerimeterResource Get(string name, Input<string> id, ServicePerimeterResourceState? state, CustomResourceOptions? opts = null)- 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:
- Perimeter
Name 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 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 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-betaTerraform Provider.