1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. securesourcemanager
  5. InstanceIamBinding
Google Cloud Classic v7.23.0 published on Wednesday, May 15, 2024 by Pulumi

gcp.securesourcemanager.InstanceIamBinding

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.23.0 published on Wednesday, May 15, 2024 by Pulumi

    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,
                           instance_id: Optional[str] = None,
                           members: Optional[Sequence[str]] = None,
                           role: Optional[str] = None,
                           condition: Optional[InstanceIamBindingConditionArgs] = None,
                           location: 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:securesourcemanager:InstanceIamBinding
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args InstanceIamBindingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args 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 string
    The unique name of the resource.
    args InstanceIamBindingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InstanceIamBindingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InstanceIamBindingArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var exampleinstanceIamBindingResourceResourceFromSecuresourcemanagerinstanceIamBinding = new Gcp.SecureSourceManager.InstanceIamBinding("exampleinstanceIamBindingResourceResourceFromSecuresourcemanagerinstanceIamBinding", new()
    {
        InstanceId = "string",
        Members = new[]
        {
            "string",
        },
        Role = "string",
        Condition = new Gcp.SecureSourceManager.Inputs.InstanceIamBindingConditionArgs
        {
            Expression = "string",
            Title = "string",
            Description = "string",
        },
        Location = "string",
        Project = "string",
    });
    
    example, err := securesourcemanager.NewInstanceIamBinding(ctx, "exampleinstanceIamBindingResourceResourceFromSecuresourcemanagerinstanceIamBinding", &securesourcemanager.InstanceIamBindingArgs{
    	InstanceId: pulumi.String("string"),
    	Members: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Role: pulumi.String("string"),
    	Condition: &securesourcemanager.InstanceIamBindingConditionArgs{
    		Expression:  pulumi.String("string"),
    		Title:       pulumi.String("string"),
    		Description: pulumi.String("string"),
    	},
    	Location: pulumi.String("string"),
    	Project:  pulumi.String("string"),
    })
    
    var exampleinstanceIamBindingResourceResourceFromSecuresourcemanagerinstanceIamBinding = new InstanceIamBinding("exampleinstanceIamBindingResourceResourceFromSecuresourcemanagerinstanceIamBinding", InstanceIamBindingArgs.builder()        
        .instanceId("string")
        .members("string")
        .role("string")
        .condition(InstanceIamBindingConditionArgs.builder()
            .expression("string")
            .title("string")
            .description("string")
            .build())
        .location("string")
        .project("string")
        .build());
    
    exampleinstance_iam_binding_resource_resource_from_securesourcemanagerinstance_iam_binding = gcp.securesourcemanager.InstanceIamBinding("exampleinstanceIamBindingResourceResourceFromSecuresourcemanagerinstanceIamBinding",
        instance_id="string",
        members=["string"],
        role="string",
        condition=gcp.securesourcemanager.InstanceIamBindingConditionArgs(
            expression="string",
            title="string",
            description="string",
        ),
        location="string",
        project="string")
    
    const exampleinstanceIamBindingResourceResourceFromSecuresourcemanagerinstanceIamBinding = new gcp.securesourcemanager.InstanceIamBinding("exampleinstanceIamBindingResourceResourceFromSecuresourcemanagerinstanceIamBinding", {
        instanceId: "string",
        members: ["string"],
        role: "string",
        condition: {
            expression: "string",
            title: "string",
            description: "string",
        },
        location: "string",
        project: "string",
    });
    
    type: gcp:securesourcemanager:InstanceIamBinding
    properties:
        condition:
            description: string
            expression: string
            title: string
        instanceId: string
        location: string
        members:
            - 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

    The InstanceIamBinding resource accepts the following input properties:

    instanceId String
    members List<String>
    role String
    condition Property Map
    location String
    project String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the InstanceIamBinding 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 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,
            instance_id: Optional[str] = None,
            location: Optional[str] = None,
            members: Optional[Sequence[str]] = None,
            project: Optional[str] = None,
            role: Optional[str] = None) -> InstanceIamBinding
    func 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)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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 Property Map
    etag String
    instanceId String
    location String
    members List<String>
    project String
    role String

    Supporting Types

    InstanceIamBindingCondition, InstanceIamBindingConditionArgs

    Expression string
    Title string
    Description string
    Expression string
    Title string
    Description string
    expression String
    title String
    description String
    expression string
    title string
    description string
    expression String
    title String
    description 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.
    gcp logo
    Google Cloud Classic v7.23.0 published on Wednesday, May 15, 2024 by Pulumi