1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. clouddeploy
  5. TargetIamBinding
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi

gcp.clouddeploy.TargetIamBinding

Explore with Pulumi AI

Create TargetIamBinding Resource

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

Constructor syntax

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

@overload
def TargetIamBinding(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     members: Optional[Sequence[str]] = None,
                     role: Optional[str] = None,
                     condition: Optional[TargetIamBindingConditionArgs] = None,
                     location: Optional[str] = None,
                     name: Optional[str] = None,
                     project: Optional[str] = None)
func NewTargetIamBinding(ctx *Context, name string, args TargetIamBindingArgs, opts ...ResourceOption) (*TargetIamBinding, error)
public TargetIamBinding(string name, TargetIamBindingArgs args, CustomResourceOptions? opts = null)
public TargetIamBinding(String name, TargetIamBindingArgs args)
public TargetIamBinding(String name, TargetIamBindingArgs args, CustomResourceOptions options)
type: gcp:clouddeploy:TargetIamBinding
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. TargetIamBindingArgs
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. TargetIamBindingArgs
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. TargetIamBindingArgs
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. TargetIamBindingArgs
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. TargetIamBindingArgs
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 targetIamBindingResource = new Gcp.CloudDeploy.TargetIamBinding("targetIamBindingResource", new()
{
    Members = new[]
    {
        "string",
    },
    Role = "string",
    Condition = new Gcp.CloudDeploy.Inputs.TargetIamBindingConditionArgs
    {
        Expression = "string",
        Title = "string",
        Description = "string",
    },
    Location = "string",
    Name = "string",
    Project = "string",
});
Copy
example, err := clouddeploy.NewTargetIamBinding(ctx, "targetIamBindingResource", &clouddeploy.TargetIamBindingArgs{
	Members: pulumi.StringArray{
		pulumi.String("string"),
	},
	Role: pulumi.String("string"),
	Condition: &clouddeploy.TargetIamBindingConditionArgs{
		Expression:  pulumi.String("string"),
		Title:       pulumi.String("string"),
		Description: pulumi.String("string"),
	},
	Location: pulumi.String("string"),
	Name:     pulumi.String("string"),
	Project:  pulumi.String("string"),
})
Copy
var targetIamBindingResource = new TargetIamBinding("targetIamBindingResource", TargetIamBindingArgs.builder()
    .members("string")
    .role("string")
    .condition(TargetIamBindingConditionArgs.builder()
        .expression("string")
        .title("string")
        .description("string")
        .build())
    .location("string")
    .name("string")
    .project("string")
    .build());
Copy
target_iam_binding_resource = gcp.clouddeploy.TargetIamBinding("targetIamBindingResource",
    members=["string"],
    role="string",
    condition={
        "expression": "string",
        "title": "string",
        "description": "string",
    },
    location="string",
    name="string",
    project="string")
Copy
const targetIamBindingResource = new gcp.clouddeploy.TargetIamBinding("targetIamBindingResource", {
    members: ["string"],
    role: "string",
    condition: {
        expression: "string",
        title: "string",
        description: "string",
    },
    location: "string",
    name: "string",
    project: "string",
});
Copy
type: gcp:clouddeploy:TargetIamBinding
properties:
    condition:
        description: string
        expression: string
        title: string
    location: string
    members:
        - string
    name: string
    project: string
    role: string
Copy

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

Members This property is required. List<string>
Role
This property is required.
Changes to this property will trigger replacement.
string
Condition Changes to this property will trigger replacement. TargetIamBindingCondition
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
Members This property is required. []string
Role
This property is required.
Changes to this property will trigger replacement.
string
Condition Changes to this property will trigger replacement. TargetIamBindingConditionArgs
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
members This property is required. List<String>
role
This property is required.
Changes to this property will trigger replacement.
String
condition Changes to this property will trigger replacement. TargetIamBindingCondition
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
members This property is required. string[]
role
This property is required.
Changes to this property will trigger replacement.
string
condition Changes to this property will trigger replacement. TargetIamBindingCondition
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
members This property is required. Sequence[str]
role
This property is required.
Changes to this property will trigger replacement.
str
condition Changes to this property will trigger replacement. TargetIamBindingConditionArgs
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
members This property is required. List<String>
role
This property is required.
Changes to this property will trigger replacement.
String
condition Changes to this property will trigger replacement. Property Map
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 TargetIamBinding 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 TargetIamBinding Resource

Get an existing TargetIamBinding 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?: TargetIamBindingState, opts?: CustomResourceOptions): TargetIamBinding
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        condition: Optional[TargetIamBindingConditionArgs] = None,
        etag: Optional[str] = None,
        location: Optional[str] = None,
        members: Optional[Sequence[str]] = None,
        name: Optional[str] = None,
        project: Optional[str] = None,
        role: Optional[str] = None) -> TargetIamBinding
func GetTargetIamBinding(ctx *Context, name string, id IDInput, state *TargetIamBindingState, opts ...ResourceOption) (*TargetIamBinding, error)
public static TargetIamBinding Get(string name, Input<string> id, TargetIamBindingState? state, CustomResourceOptions? opts = null)
public static TargetIamBinding get(String name, Output<String> id, TargetIamBindingState state, CustomResourceOptions options)
resources:  _:    type: gcp:clouddeploy:TargetIamBinding    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:
Condition Changes to this property will trigger replacement. TargetIamBindingCondition
Etag string
Location Changes to this property will trigger replacement. string
Members List<string>
Name Changes to this property will trigger replacement. string
Project Changes to this property will trigger replacement. string
Role Changes to this property will trigger replacement. string
Condition Changes to this property will trigger replacement. TargetIamBindingConditionArgs
Etag string
Location Changes to this property will trigger replacement. string
Members []string
Name Changes to this property will trigger replacement. string
Project Changes to this property will trigger replacement. string
Role Changes to this property will trigger replacement. string
condition Changes to this property will trigger replacement. TargetIamBindingCondition
etag String
location Changes to this property will trigger replacement. String
members List<String>
name Changes to this property will trigger replacement. String
project Changes to this property will trigger replacement. String
role Changes to this property will trigger replacement. String
condition Changes to this property will trigger replacement. TargetIamBindingCondition
etag string
location Changes to this property will trigger replacement. string
members string[]
name Changes to this property will trigger replacement. string
project Changes to this property will trigger replacement. string
role Changes to this property will trigger replacement. string
condition Changes to this property will trigger replacement. TargetIamBindingConditionArgs
etag str
location Changes to this property will trigger replacement. str
members Sequence[str]
name Changes to this property will trigger replacement. str
project Changes to this property will trigger replacement. str
role Changes to this property will trigger replacement. str
condition Changes to this property will trigger replacement. Property Map
etag String
location Changes to this property will trigger replacement. String
members List<String>
name Changes to this property will trigger replacement. String
project Changes to this property will trigger replacement. String
role Changes to this property will trigger replacement. String

Supporting Types

TargetIamBindingCondition
, TargetIamBindingConditionArgs

Expression
This property is required.
Changes to this property will trigger replacement.
string
Title
This property is required.
Changes to this property will trigger replacement.
string
Description Changes to this property will trigger replacement. string
Expression
This property is required.
Changes to this property will trigger replacement.
string
Title
This property is required.
Changes to this property will trigger replacement.
string
Description Changes to this property will trigger replacement. string
expression
This property is required.
Changes to this property will trigger replacement.
String
title
This property is required.
Changes to this property will trigger replacement.
String
description Changes to this property will trigger replacement. String
expression
This property is required.
Changes to this property will trigger replacement.
string
title
This property is required.
Changes to this property will trigger replacement.
string
description Changes to this property will trigger replacement. string
expression
This property is required.
Changes to this property will trigger replacement.
str
title
This property is required.
Changes to this property will trigger replacement.
str
description Changes to this property will trigger replacement. str
expression
This property is required.
Changes to this property will trigger replacement.
String
title
This property is required.
Changes to this property will trigger replacement.
String
description 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.