gcp.clouddeploy.TargetIamPolicy
Explore with Pulumi AI
Create TargetIamPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TargetIamPolicy(name: string, args: TargetIamPolicyArgs, opts?: CustomResourceOptions);
@overload
def TargetIamPolicy(resource_name: str,
args: TargetIamPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TargetIamPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
policy_data: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None)
func NewTargetIamPolicy(ctx *Context, name string, args TargetIamPolicyArgs, opts ...ResourceOption) (*TargetIamPolicy, error)
public TargetIamPolicy(string name, TargetIamPolicyArgs args, CustomResourceOptions? opts = null)
public TargetIamPolicy(String name, TargetIamPolicyArgs args)
public TargetIamPolicy(String name, TargetIamPolicyArgs args, CustomResourceOptions options)
type: gcp:clouddeploy:TargetIamPolicy
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. TargetIamPolicyArgs - 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. TargetIamPolicyArgs - 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. TargetIamPolicyArgs - 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. TargetIamPolicyArgs - 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. TargetIamPolicyArgs - 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 targetIamPolicyResource = new Gcp.CloudDeploy.TargetIamPolicy("targetIamPolicyResource", new()
{
PolicyData = "string",
Location = "string",
Name = "string",
Project = "string",
});
example, err := clouddeploy.NewTargetIamPolicy(ctx, "targetIamPolicyResource", &clouddeploy.TargetIamPolicyArgs{
PolicyData: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
var targetIamPolicyResource = new TargetIamPolicy("targetIamPolicyResource", TargetIamPolicyArgs.builder()
.policyData("string")
.location("string")
.name("string")
.project("string")
.build());
target_iam_policy_resource = gcp.clouddeploy.TargetIamPolicy("targetIamPolicyResource",
policy_data="string",
location="string",
name="string",
project="string")
const targetIamPolicyResource = new gcp.clouddeploy.TargetIamPolicy("targetIamPolicyResource", {
policyData: "string",
location: "string",
name: "string",
project: "string",
});
type: gcp:clouddeploy:TargetIamPolicy
properties:
location: string
name: string
policyData: string
project: string
TargetIamPolicy 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 TargetIamPolicy resource accepts the following input properties:
- Policy
Data This property is required. string - Location
Changes to this property will trigger replacement.
- Name
Changes to this property will trigger replacement.
- Project
Changes to this property will trigger replacement.
- Policy
Data This property is required. string - Location
Changes to this property will trigger replacement.
- Name
Changes to this property will trigger replacement.
- Project
Changes to this property will trigger replacement.
- policy
Data This property is required. String - location
Changes to this property will trigger replacement.
- name
Changes to this property will trigger replacement.
- project
Changes to this property will trigger replacement.
- policy
Data This property is required. string - location
Changes to this property will trigger replacement.
- name
Changes to this property will trigger replacement.
- project
Changes to this property will trigger replacement.
- policy_
data This property is required. str - location
Changes to this property will trigger replacement.
- name
Changes to this property will trigger replacement.
- project
Changes to this property will trigger replacement.
- policy
Data This property is required. String - location
Changes to this property will trigger replacement.
- name
Changes to this property will trigger replacement.
- project
Changes to this property will trigger replacement.
Outputs
All input properties are implicitly available as output properties. Additionally, the TargetIamPolicy resource produces the following output properties:
Look up Existing TargetIamPolicy Resource
Get an existing TargetIamPolicy 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?: TargetIamPolicyState, opts?: CustomResourceOptions): TargetIamPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
etag: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
policy_data: Optional[str] = None,
project: Optional[str] = None) -> TargetIamPolicy
func GetTargetIamPolicy(ctx *Context, name string, id IDInput, state *TargetIamPolicyState, opts ...ResourceOption) (*TargetIamPolicy, error)
public static TargetIamPolicy Get(string name, Input<string> id, TargetIamPolicyState? state, CustomResourceOptions? opts = null)
public static TargetIamPolicy get(String name, Output<String> id, TargetIamPolicyState state, CustomResourceOptions options)
resources: _: type: gcp:clouddeploy:TargetIamPolicy 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.
- Etag string
- Location
Changes to this property will trigger replacement.
- Name
Changes to this property will trigger replacement.
- Policy
Data string - Project
Changes to this property will trigger replacement.
- Etag string
- Location
Changes to this property will trigger replacement.
- Name
Changes to this property will trigger replacement.
- Policy
Data string - Project
Changes to this property will trigger replacement.
- etag String
- location
Changes to this property will trigger replacement.
- name
Changes to this property will trigger replacement.
- policy
Data String - project
Changes to this property will trigger replacement.
- etag string
- location
Changes to this property will trigger replacement.
- name
Changes to this property will trigger replacement.
- policy
Data string - project
Changes to this property will trigger replacement.
- etag str
- location
Changes to this property will trigger replacement.
- name
Changes to this property will trigger replacement.
- policy_
data str - project
Changes to this property will trigger replacement.
- etag String
- location
Changes to this property will trigger replacement.
- name
Changes to this property will trigger replacement.
- policy
Data String - project
Changes to this property will trigger replacement.
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.