gcp.workbench.InstanceIamBinding
Explore with Pulumi AI
Create InstanceIamBinding Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InstanceIamBinding(name: string, args: InstanceIamBindingArgs, opts?: CustomResourceOptions);@overload
def InstanceIamBinding(resource_name: str,
args: InstanceIamBindingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InstanceIamBinding(resource_name: str,
opts: Optional[ResourceOptions] = None,
members: Optional[Sequence[str]] = None,
role: Optional[str] = None,
condition: Optional[InstanceIamBindingConditionArgs] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None)func NewInstanceIamBinding(ctx *Context, name string, args InstanceIamBindingArgs, opts ...ResourceOption) (*InstanceIamBinding, error)public InstanceIamBinding(string name, InstanceIamBindingArgs args, CustomResourceOptions? opts = null)public InstanceIamBinding(String name, InstanceIamBindingArgs args)
public InstanceIamBinding(String name, InstanceIamBindingArgs args, CustomResourceOptions options)
type: gcp:workbench:InstanceIamBinding
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. InstanceIamBindingArgs - 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. InstanceIamBindingArgs - 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. InstanceIamBindingArgs - 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. InstanceIamBindingArgs - 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. InstanceIamBindingArgs - 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 exampleinstanceIamBindingResourceResourceFromWorkbenchinstanceIamBinding = new Gcp.Workbench.InstanceIamBinding("exampleinstanceIamBindingResourceResourceFromWorkbenchinstanceIamBinding", new()
{
Members = new[]
{
"string",
},
Role = "string",
Condition = new Gcp.Workbench.Inputs.InstanceIamBindingConditionArgs
{
Expression = "string",
Title = "string",
Description = "string",
},
Location = "string",
Name = "string",
Project = "string",
});
example, err := workbench.NewInstanceIamBinding(ctx, "exampleinstanceIamBindingResourceResourceFromWorkbenchinstanceIamBinding", &workbench.InstanceIamBindingArgs{
Members: pulumi.StringArray{
pulumi.String("string"),
},
Role: pulumi.String("string"),
Condition: &workbench.InstanceIamBindingConditionArgs{
Expression: pulumi.String("string"),
Title: pulumi.String("string"),
Description: pulumi.String("string"),
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
var exampleinstanceIamBindingResourceResourceFromWorkbenchinstanceIamBinding = new InstanceIamBinding("exampleinstanceIamBindingResourceResourceFromWorkbenchinstanceIamBinding", InstanceIamBindingArgs.builder()
.members("string")
.role("string")
.condition(InstanceIamBindingConditionArgs.builder()
.expression("string")
.title("string")
.description("string")
.build())
.location("string")
.name("string")
.project("string")
.build());
exampleinstance_iam_binding_resource_resource_from_workbenchinstance_iam_binding = gcp.workbench.InstanceIamBinding("exampleinstanceIamBindingResourceResourceFromWorkbenchinstanceIamBinding",
members=["string"],
role="string",
condition={
"expression": "string",
"title": "string",
"description": "string",
},
location="string",
name="string",
project="string")
const exampleinstanceIamBindingResourceResourceFromWorkbenchinstanceIamBinding = new gcp.workbench.InstanceIamBinding("exampleinstanceIamBindingResourceResourceFromWorkbenchinstanceIamBinding", {
members: ["string"],
role: "string",
condition: {
expression: "string",
title: "string",
description: "string",
},
location: "string",
name: "string",
project: "string",
});
type: gcp:workbench:InstanceIamBinding
properties:
condition:
description: string
expression: string
title: string
location: string
members:
- string
name: string
project: string
role: string
InstanceIamBinding 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 InstanceIamBinding resource accepts the following input properties:
- Members
This property is required. List<string> - Role
string
This property is required. Changes to this property will trigger replacement.
- Condition
InstanceChanges to this property will trigger replacement.
Iam Binding Condition - Location
stringChanges to this property will trigger replacement.
- Name
stringChanges to this property will trigger replacement.
- Project
stringChanges to this property will trigger replacement.
- Members
This property is required. []string - Role
string
This property is required. Changes to this property will trigger replacement.
- Condition
InstanceChanges to this property will trigger replacement.
Iam Binding Condition Args - Location
stringChanges to this property will trigger replacement.
- Name
stringChanges to this property will trigger replacement.
- Project
stringChanges to this property will trigger replacement.
- members
This property is required. List<String> - role
String
This property is required. Changes to this property will trigger replacement.
- condition
InstanceChanges to this property will trigger replacement.
Iam Binding Condition - location
StringChanges to this property will trigger replacement.
- name
StringChanges to this property will trigger replacement.
- project
StringChanges to this property will trigger replacement.
- members
This property is required. string[] - role
string
This property is required. Changes to this property will trigger replacement.
- condition
InstanceChanges to this property will trigger replacement.
Iam Binding Condition - location
stringChanges to this property will trigger replacement.
- name
stringChanges to this property will trigger replacement.
- project
stringChanges to this property will trigger replacement.
- members
This property is required. Sequence[str] - role
str
This property is required. Changes to this property will trigger replacement.
- condition
InstanceChanges to this property will trigger replacement.
Iam Binding Condition Args - location
strChanges to this property will trigger replacement.
- name
strChanges to this property will trigger replacement.
- project
strChanges to this property will trigger replacement.
- members
This property is required. List<String> - role
String
This property is required. Changes to this property will trigger replacement.
- condition
Property MapChanges to this property will trigger replacement.
- location
StringChanges to this property will trigger replacement.
- name
StringChanges to this property will trigger replacement.
- project
StringChanges to this property will trigger replacement.
Outputs
All input properties are implicitly available as output properties. Additionally, the InstanceIamBinding resource produces the following output properties:
Look up Existing InstanceIamBinding Resource
Get an existing InstanceIamBinding 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?: InstanceIamBindingState, opts?: CustomResourceOptions): InstanceIamBinding@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
condition: Optional[InstanceIamBindingConditionArgs] = 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) -> InstanceIamBindingfunc GetInstanceIamBinding(ctx *Context, name string, id IDInput, state *InstanceIamBindingState, opts ...ResourceOption) (*InstanceIamBinding, error)public static InstanceIamBinding Get(string name, Input<string> id, InstanceIamBindingState? state, CustomResourceOptions? opts = null)public static InstanceIamBinding get(String name, Output<String> id, InstanceIamBindingState state, CustomResourceOptions options)resources: _: type: gcp:workbench:InstanceIamBinding 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.
- Condition
InstanceChanges to this property will trigger replacement.
Iam Binding Condition - Etag string
- Location
stringChanges to this property will trigger replacement.
- Members List<string>
- Name
stringChanges to this property will trigger replacement.
- Project
stringChanges to this property will trigger replacement.
- Role
stringChanges to this property will trigger replacement.
- Condition
InstanceChanges to this property will trigger replacement.
Iam Binding Condition Args - Etag string
- Location
stringChanges to this property will trigger replacement.
- Members []string
- Name
stringChanges to this property will trigger replacement.
- Project
stringChanges to this property will trigger replacement.
- Role
stringChanges to this property will trigger replacement.
- condition
InstanceChanges to this property will trigger replacement.
Iam Binding Condition - etag String
- location
StringChanges to this property will trigger replacement.
- members List<String>
- name
StringChanges to this property will trigger replacement.
- project
StringChanges to this property will trigger replacement.
- role
StringChanges to this property will trigger replacement.
- condition
InstanceChanges to this property will trigger replacement.
Iam Binding Condition - etag string
- location
stringChanges to this property will trigger replacement.
- members string[]
- name
stringChanges to this property will trigger replacement.
- project
stringChanges to this property will trigger replacement.
- role
stringChanges to this property will trigger replacement.
- condition
InstanceChanges to this property will trigger replacement.
Iam Binding Condition Args - etag str
- location
strChanges to this property will trigger replacement.
- members Sequence[str]
- name
strChanges to this property will trigger replacement.
- project
strChanges to this property will trigger replacement.
- role
strChanges to this property will trigger replacement.
- condition
Property MapChanges to this property will trigger replacement.
- etag String
- location
StringChanges to this property will trigger replacement.
- members List<String>
- name
StringChanges to this property will trigger replacement.
- project
StringChanges to this property will trigger replacement.
- role
StringChanges to this property will trigger replacement.
Supporting Types
InstanceIamBindingCondition, InstanceIamBindingConditionArgs
- Expression
string
This property is required. Changes to this property will trigger replacement.
- Title
string
This property is required. Changes to this property will trigger replacement.
- Description
stringChanges to this property will trigger replacement.
- Expression
string
This property is required. Changes to this property will trigger replacement.
- Title
string
This property is required. Changes to this property will trigger replacement.
- Description
stringChanges to this property will trigger replacement.
- expression
String
This property is required. Changes to this property will trigger replacement.
- title
String
This property is required. Changes to this property will trigger replacement.
- description
StringChanges to this property will trigger replacement.
- expression
string
This property is required. Changes to this property will trigger replacement.
- title
string
This property is required. Changes to this property will trigger replacement.
- description
stringChanges to this property will trigger replacement.
- expression
str
This property is required. Changes to this property will trigger replacement.
- title
str
This property is required. Changes to this property will trigger replacement.
- description
strChanges to this property will trigger replacement.
- expression
String
This property is required. Changes to this property will trigger replacement.
- title
String
This property is required. Changes to this property will trigger replacement.
- description
StringChanges 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-betaTerraform Provider.