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

gcp.dataform.RepositoryIamBinding

Explore with Pulumi AI

Create RepositoryIamBinding Resource

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

Constructor syntax

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

@overload
def RepositoryIamBinding(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         members: Optional[Sequence[str]] = None,
                         repository: Optional[str] = None,
                         role: Optional[str] = None,
                         condition: Optional[RepositoryIamBindingConditionArgs] = None,
                         project: Optional[str] = None,
                         region: Optional[str] = None)
func NewRepositoryIamBinding(ctx *Context, name string, args RepositoryIamBindingArgs, opts ...ResourceOption) (*RepositoryIamBinding, error)
public RepositoryIamBinding(string name, RepositoryIamBindingArgs args, CustomResourceOptions? opts = null)
public RepositoryIamBinding(String name, RepositoryIamBindingArgs args)
public RepositoryIamBinding(String name, RepositoryIamBindingArgs args, CustomResourceOptions options)
type: gcp:dataform:RepositoryIamBinding
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. RepositoryIamBindingArgs
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. RepositoryIamBindingArgs
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. RepositoryIamBindingArgs
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. RepositoryIamBindingArgs
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. RepositoryIamBindingArgs
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 gcpRepositoryIamBindingResource = new Gcp.Dataform.RepositoryIamBinding("gcpRepositoryIamBindingResource", new()
{
    Members = new[]
    {
        "string",
    },
    Repository = "string",
    Role = "string",
    Condition = new Gcp.Dataform.Inputs.RepositoryIamBindingConditionArgs
    {
        Expression = "string",
        Title = "string",
        Description = "string",
    },
    Project = "string",
    Region = "string",
});
Copy
example, err := dataform.NewRepositoryIamBinding(ctx, "gcpRepositoryIamBindingResource", &dataform.RepositoryIamBindingArgs{
	Members: pulumi.StringArray{
		pulumi.String("string"),
	},
	Repository: pulumi.String("string"),
	Role:       pulumi.String("string"),
	Condition: &dataform.RepositoryIamBindingConditionArgs{
		Expression:  pulumi.String("string"),
		Title:       pulumi.String("string"),
		Description: pulumi.String("string"),
	},
	Project: pulumi.String("string"),
	Region:  pulumi.String("string"),
})
Copy
var gcpRepositoryIamBindingResource = new RepositoryIamBinding("gcpRepositoryIamBindingResource", RepositoryIamBindingArgs.builder()
    .members("string")
    .repository("string")
    .role("string")
    .condition(RepositoryIamBindingConditionArgs.builder()
        .expression("string")
        .title("string")
        .description("string")
        .build())
    .project("string")
    .region("string")
    .build());
Copy
gcp_repository_iam_binding_resource = gcp.dataform.RepositoryIamBinding("gcpRepositoryIamBindingResource",
    members=["string"],
    repository="string",
    role="string",
    condition={
        "expression": "string",
        "title": "string",
        "description": "string",
    },
    project="string",
    region="string")
Copy
const gcpRepositoryIamBindingResource = new gcp.dataform.RepositoryIamBinding("gcpRepositoryIamBindingResource", {
    members: ["string"],
    repository: "string",
    role: "string",
    condition: {
        expression: "string",
        title: "string",
        description: "string",
    },
    project: "string",
    region: "string",
});
Copy
type: gcp:dataform:RepositoryIamBinding
properties:
    condition:
        description: string
        expression: string
        title: string
    members:
        - string
    project: string
    region: string
    repository: string
    role: string
Copy

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

Members This property is required. List<string>
Repository
This property is required.
Changes to this property will trigger replacement.
string
Role
This property is required.
Changes to this property will trigger replacement.
string
Condition Changes to this property will trigger replacement. RepositoryIamBindingCondition
Project Changes to this property will trigger replacement. string
Region Changes to this property will trigger replacement. string
Members This property is required. []string
Repository
This property is required.
Changes to this property will trigger replacement.
string
Role
This property is required.
Changes to this property will trigger replacement.
string
Condition Changes to this property will trigger replacement. RepositoryIamBindingConditionArgs
Project Changes to this property will trigger replacement. string
Region Changes to this property will trigger replacement. string
members This property is required. List<String>
repository
This property is required.
Changes to this property will trigger replacement.
String
role
This property is required.
Changes to this property will trigger replacement.
String
condition Changes to this property will trigger replacement. RepositoryIamBindingCondition
project Changes to this property will trigger replacement. String
region Changes to this property will trigger replacement. String
members This property is required. string[]
repository
This property is required.
Changes to this property will trigger replacement.
string
role
This property is required.
Changes to this property will trigger replacement.
string
condition Changes to this property will trigger replacement. RepositoryIamBindingCondition
project Changes to this property will trigger replacement. string
region Changes to this property will trigger replacement. string
members This property is required. Sequence[str]
repository
This property is required.
Changes to this property will trigger replacement.
str
role
This property is required.
Changes to this property will trigger replacement.
str
condition Changes to this property will trigger replacement. RepositoryIamBindingConditionArgs
project Changes to this property will trigger replacement. str
region Changes to this property will trigger replacement. str
members This property is required. List<String>
repository
This property is required.
Changes to this property will trigger replacement.
String
role
This property is required.
Changes to this property will trigger replacement.
String
condition Changes to this property will trigger replacement. Property Map
project Changes to this property will trigger replacement. String
region Changes to this property will trigger replacement. String

Outputs

All input properties are implicitly available as output properties. Additionally, the RepositoryIamBinding 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 RepositoryIamBinding Resource

Get an existing RepositoryIamBinding 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?: RepositoryIamBindingState, opts?: CustomResourceOptions): RepositoryIamBinding
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        condition: Optional[RepositoryIamBindingConditionArgs] = None,
        etag: Optional[str] = None,
        members: Optional[Sequence[str]] = None,
        project: Optional[str] = None,
        region: Optional[str] = None,
        repository: Optional[str] = None,
        role: Optional[str] = None) -> RepositoryIamBinding
func GetRepositoryIamBinding(ctx *Context, name string, id IDInput, state *RepositoryIamBindingState, opts ...ResourceOption) (*RepositoryIamBinding, error)
public static RepositoryIamBinding Get(string name, Input<string> id, RepositoryIamBindingState? state, CustomResourceOptions? opts = null)
public static RepositoryIamBinding get(String name, Output<String> id, RepositoryIamBindingState state, CustomResourceOptions options)
resources:  _:    type: gcp:dataform:RepositoryIamBinding    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. RepositoryIamBindingCondition
Etag string
Members List<string>
Project Changes to this property will trigger replacement. string
Region Changes to this property will trigger replacement. string
Repository 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. RepositoryIamBindingConditionArgs
Etag string
Members []string
Project Changes to this property will trigger replacement. string
Region Changes to this property will trigger replacement. string
Repository 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. RepositoryIamBindingCondition
etag String
members List<String>
project Changes to this property will trigger replacement. String
region Changes to this property will trigger replacement. String
repository 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. RepositoryIamBindingCondition
etag string
members string[]
project Changes to this property will trigger replacement. string
region Changes to this property will trigger replacement. string
repository 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. RepositoryIamBindingConditionArgs
etag str
members Sequence[str]
project Changes to this property will trigger replacement. str
region Changes to this property will trigger replacement. str
repository 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
members List<String>
project Changes to this property will trigger replacement. String
region Changes to this property will trigger replacement. String
repository Changes to this property will trigger replacement. String
role Changes to this property will trigger replacement. String

Supporting Types

RepositoryIamBindingCondition
, RepositoryIamBindingConditionArgs

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.