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

gcp.securesourcemanager.InstanceIamMember

Explore with Pulumi AI

Create InstanceIamMember Resource

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

Constructor syntax

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

@overload
def InstanceIamMember(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      instance_id: Optional[str] = None,
                      member: Optional[str] = None,
                      role: Optional[str] = None,
                      condition: Optional[InstanceIamMemberConditionArgs] = None,
                      location: Optional[str] = None,
                      project: Optional[str] = None)
func NewInstanceIamMember(ctx *Context, name string, args InstanceIamMemberArgs, opts ...ResourceOption) (*InstanceIamMember, error)
public InstanceIamMember(string name, InstanceIamMemberArgs args, CustomResourceOptions? opts = null)
public InstanceIamMember(String name, InstanceIamMemberArgs args)
public InstanceIamMember(String name, InstanceIamMemberArgs args, CustomResourceOptions options)
type: gcp:securesourcemanager:InstanceIamMember
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. InstanceIamMemberArgs
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. InstanceIamMemberArgs
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. InstanceIamMemberArgs
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. InstanceIamMemberArgs
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. InstanceIamMemberArgs
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 exampleinstanceIamMemberResourceResourceFromSecuresourcemanagerinstanceIamMember = new Gcp.SecureSourceManager.InstanceIamMember("exampleinstanceIamMemberResourceResourceFromSecuresourcemanagerinstanceIamMember", new()
{
    InstanceId = "string",
    Member = "string",
    Role = "string",
    Condition = new Gcp.SecureSourceManager.Inputs.InstanceIamMemberConditionArgs
    {
        Expression = "string",
        Title = "string",
        Description = "string",
    },
    Location = "string",
    Project = "string",
});
Copy
example, err := securesourcemanager.NewInstanceIamMember(ctx, "exampleinstanceIamMemberResourceResourceFromSecuresourcemanagerinstanceIamMember", &securesourcemanager.InstanceIamMemberArgs{
	InstanceId: pulumi.String("string"),
	Member:     pulumi.String("string"),
	Role:       pulumi.String("string"),
	Condition: &securesourcemanager.InstanceIamMemberConditionArgs{
		Expression:  pulumi.String("string"),
		Title:       pulumi.String("string"),
		Description: pulumi.String("string"),
	},
	Location: pulumi.String("string"),
	Project:  pulumi.String("string"),
})
Copy
var exampleinstanceIamMemberResourceResourceFromSecuresourcemanagerinstanceIamMember = new InstanceIamMember("exampleinstanceIamMemberResourceResourceFromSecuresourcemanagerinstanceIamMember", InstanceIamMemberArgs.builder()
    .instanceId("string")
    .member("string")
    .role("string")
    .condition(InstanceIamMemberConditionArgs.builder()
        .expression("string")
        .title("string")
        .description("string")
        .build())
    .location("string")
    .project("string")
    .build());
Copy
exampleinstance_iam_member_resource_resource_from_securesourcemanagerinstance_iam_member = gcp.securesourcemanager.InstanceIamMember("exampleinstanceIamMemberResourceResourceFromSecuresourcemanagerinstanceIamMember",
    instance_id="string",
    member="string",
    role="string",
    condition={
        "expression": "string",
        "title": "string",
        "description": "string",
    },
    location="string",
    project="string")
Copy
const exampleinstanceIamMemberResourceResourceFromSecuresourcemanagerinstanceIamMember = new gcp.securesourcemanager.InstanceIamMember("exampleinstanceIamMemberResourceResourceFromSecuresourcemanagerinstanceIamMember", {
    instanceId: "string",
    member: "string",
    role: "string",
    condition: {
        expression: "string",
        title: "string",
        description: "string",
    },
    location: "string",
    project: "string",
});
Copy
type: gcp:securesourcemanager:InstanceIamMember
properties:
    condition:
        description: string
        expression: string
        title: string
    instanceId: string
    location: string
    member: string
    project: string
    role: string
Copy

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

InstanceId
This property is required.
Changes to this property will trigger replacement.
string
Member
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. InstanceIamMemberCondition
Location Changes to this property will trigger replacement. string
Project Changes to this property will trigger replacement. string
InstanceId
This property is required.
Changes to this property will trigger replacement.
string
Member
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. InstanceIamMemberConditionArgs
Location Changes to this property will trigger replacement. string
Project Changes to this property will trigger replacement. string
instanceId
This property is required.
Changes to this property will trigger replacement.
String
member
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. InstanceIamMemberCondition
location Changes to this property will trigger replacement. String
project Changes to this property will trigger replacement. String
instanceId
This property is required.
Changes to this property will trigger replacement.
string
member
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. InstanceIamMemberCondition
location Changes to this property will trigger replacement. string
project Changes to this property will trigger replacement. string
instance_id
This property is required.
Changes to this property will trigger replacement.
str
member
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. InstanceIamMemberConditionArgs
location Changes to this property will trigger replacement. str
project Changes to this property will trigger replacement. str
instanceId
This property is required.
Changes to this property will trigger replacement.
String
member
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
location 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 InstanceIamMember 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 InstanceIamMember Resource

Get an existing InstanceIamMember 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?: InstanceIamMemberState, opts?: CustomResourceOptions): InstanceIamMember
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        condition: Optional[InstanceIamMemberConditionArgs] = None,
        etag: Optional[str] = None,
        instance_id: Optional[str] = None,
        location: Optional[str] = None,
        member: Optional[str] = None,
        project: Optional[str] = None,
        role: Optional[str] = None) -> InstanceIamMember
func GetInstanceIamMember(ctx *Context, name string, id IDInput, state *InstanceIamMemberState, opts ...ResourceOption) (*InstanceIamMember, error)
public static InstanceIamMember Get(string name, Input<string> id, InstanceIamMemberState? state, CustomResourceOptions? opts = null)
public static InstanceIamMember get(String name, Output<String> id, InstanceIamMemberState state, CustomResourceOptions options)
resources:  _:    type: gcp:securesourcemanager:InstanceIamMember    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. InstanceIamMemberCondition
Etag string
InstanceId Changes to this property will trigger replacement. string
Location Changes to this property will trigger replacement. string
Member 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. InstanceIamMemberConditionArgs
Etag string
InstanceId Changes to this property will trigger replacement. string
Location Changes to this property will trigger replacement. string
Member 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. InstanceIamMemberCondition
etag String
instanceId Changes to this property will trigger replacement. String
location Changes to this property will trigger replacement. String
member 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. InstanceIamMemberCondition
etag string
instanceId Changes to this property will trigger replacement. string
location Changes to this property will trigger replacement. string
member 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. InstanceIamMemberConditionArgs
etag str
instance_id Changes to this property will trigger replacement. str
location Changes to this property will trigger replacement. str
member 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
instanceId Changes to this property will trigger replacement. String
location Changes to this property will trigger replacement. String
member 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

InstanceIamMemberCondition
, InstanceIamMemberConditionArgs

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.