1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. clouddeploy
  5. CustomTargetTypeIamPolicy
Google Cloud v8.25.1 published on Wednesday, Apr 9, 2025 by Pulumi

gcp.clouddeploy.CustomTargetTypeIamPolicy

Explore with Pulumi AI

Create CustomTargetTypeIamPolicy Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new CustomTargetTypeIamPolicy(name: string, args: CustomTargetTypeIamPolicyArgs, opts?: CustomResourceOptions);
@overload
def CustomTargetTypeIamPolicy(resource_name: str,
                              args: CustomTargetTypeIamPolicyArgs,
                              opts: Optional[ResourceOptions] = None)

@overload
def CustomTargetTypeIamPolicy(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 NewCustomTargetTypeIamPolicy(ctx *Context, name string, args CustomTargetTypeIamPolicyArgs, opts ...ResourceOption) (*CustomTargetTypeIamPolicy, error)
public CustomTargetTypeIamPolicy(string name, CustomTargetTypeIamPolicyArgs args, CustomResourceOptions? opts = null)
public CustomTargetTypeIamPolicy(String name, CustomTargetTypeIamPolicyArgs args)
public CustomTargetTypeIamPolicy(String name, CustomTargetTypeIamPolicyArgs args, CustomResourceOptions options)
type: gcp:clouddeploy:CustomTargetTypeIamPolicy
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. CustomTargetTypeIamPolicyArgs
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. CustomTargetTypeIamPolicyArgs
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. CustomTargetTypeIamPolicyArgs
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. CustomTargetTypeIamPolicyArgs
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. CustomTargetTypeIamPolicyArgs
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 customTargetTypeIamPolicyResource = new Gcp.CloudDeploy.CustomTargetTypeIamPolicy("customTargetTypeIamPolicyResource", new()
{
    PolicyData = "string",
    Location = "string",
    Name = "string",
    Project = "string",
});
Copy
example, err := clouddeploy.NewCustomTargetTypeIamPolicy(ctx, "customTargetTypeIamPolicyResource", &clouddeploy.CustomTargetTypeIamPolicyArgs{
	PolicyData: pulumi.String("string"),
	Location:   pulumi.String("string"),
	Name:       pulumi.String("string"),
	Project:    pulumi.String("string"),
})
Copy
var customTargetTypeIamPolicyResource = new CustomTargetTypeIamPolicy("customTargetTypeIamPolicyResource", CustomTargetTypeIamPolicyArgs.builder()
    .policyData("string")
    .location("string")
    .name("string")
    .project("string")
    .build());
Copy
custom_target_type_iam_policy_resource = gcp.clouddeploy.CustomTargetTypeIamPolicy("customTargetTypeIamPolicyResource",
    policy_data="string",
    location="string",
    name="string",
    project="string")
Copy
const customTargetTypeIamPolicyResource = new gcp.clouddeploy.CustomTargetTypeIamPolicy("customTargetTypeIamPolicyResource", {
    policyData: "string",
    location: "string",
    name: "string",
    project: "string",
});
Copy
type: gcp:clouddeploy:CustomTargetTypeIamPolicy
properties:
    location: string
    name: string
    policyData: string
    project: string
Copy

CustomTargetTypeIamPolicy 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 CustomTargetTypeIamPolicy resource accepts the following input properties:

PolicyData This property is required. string
Location Changes to this property will trigger replacement. string
Name Changes to this property will trigger replacement. string
Project Changes to this property will trigger replacement. string
PolicyData This property is required. string
Location Changes to this property will trigger replacement. string
Name Changes to this property will trigger replacement. string
Project Changes to this property will trigger replacement. string
policyData This property is required. String
location Changes to this property will trigger replacement. String
name Changes to this property will trigger replacement. String
project Changes to this property will trigger replacement. String
policyData This property is required. string
location Changes to this property will trigger replacement. string
name Changes to this property will trigger replacement. string
project Changes to this property will trigger replacement. string
policy_data This property is required. str
location Changes to this property will trigger replacement. str
name Changes to this property will trigger replacement. str
project Changes to this property will trigger replacement. str
policyData This property is required. String
location Changes to this property will trigger replacement. String
name Changes to this property will trigger replacement. String
project Changes to this property will trigger replacement. String

Outputs

All input properties are implicitly available as output properties. Additionally, the CustomTargetTypeIamPolicy resource produces the following output properties:

Etag string
Id string
The provider-assigned unique ID for this managed resource.
Etag string
Id string
The provider-assigned unique ID for this managed resource.
etag String
id String
The provider-assigned unique ID for this managed resource.
etag string
id string
The provider-assigned unique ID for this managed resource.
etag str
id str
The provider-assigned unique ID for this managed resource.
etag String
id String
The provider-assigned unique ID for this managed resource.

Look up Existing CustomTargetTypeIamPolicy Resource

Get an existing CustomTargetTypeIamPolicy 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?: CustomTargetTypeIamPolicyState, opts?: CustomResourceOptions): CustomTargetTypeIamPolicy
@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) -> CustomTargetTypeIamPolicy
func GetCustomTargetTypeIamPolicy(ctx *Context, name string, id IDInput, state *CustomTargetTypeIamPolicyState, opts ...ResourceOption) (*CustomTargetTypeIamPolicy, error)
public static CustomTargetTypeIamPolicy Get(string name, Input<string> id, CustomTargetTypeIamPolicyState? state, CustomResourceOptions? opts = null)
public static CustomTargetTypeIamPolicy get(String name, Output<String> id, CustomTargetTypeIamPolicyState state, CustomResourceOptions options)
resources:  _:    type: gcp:clouddeploy:CustomTargetTypeIamPolicy    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.
The following state arguments are supported:
Etag string
Location Changes to this property will trigger replacement. string
Name Changes to this property will trigger replacement. string
PolicyData string
Project Changes to this property will trigger replacement. string
Etag string
Location Changes to this property will trigger replacement. string
Name Changes to this property will trigger replacement. string
PolicyData string
Project Changes to this property will trigger replacement. string
etag String
location Changes to this property will trigger replacement. String
name Changes to this property will trigger replacement. String
policyData String
project Changes to this property will trigger replacement. String
etag string
location Changes to this property will trigger replacement. string
name Changes to this property will trigger replacement. string
policyData string
project Changes to this property will trigger replacement. string
etag str
location Changes to this property will trigger replacement. str
name Changes to this property will trigger replacement. str
policy_data str
project Changes to this property will trigger replacement. str
etag String
location Changes to this property will trigger replacement. String
name Changes to this property will trigger replacement. String
policyData String
project Changes to this property will trigger replacement. String

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.