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

gcp.securesourcemanager.InstanceIamPolicy

Explore with Pulumi AI

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

    Create InstanceIamPolicy Resource

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

    Constructor syntax

    new InstanceIamPolicy(name: string, args: InstanceIamPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def InstanceIamPolicy(resource_name: str,
                          args: InstanceIamPolicyArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def InstanceIamPolicy(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          instance_id: Optional[str] = None,
                          policy_data: Optional[str] = None,
                          location: Optional[str] = None,
                          project: Optional[str] = None)
    func NewInstanceIamPolicy(ctx *Context, name string, args InstanceIamPolicyArgs, opts ...ResourceOption) (*InstanceIamPolicy, error)
    public InstanceIamPolicy(string name, InstanceIamPolicyArgs args, CustomResourceOptions? opts = null)
    public InstanceIamPolicy(String name, InstanceIamPolicyArgs args)
    public InstanceIamPolicy(String name, InstanceIamPolicyArgs args, CustomResourceOptions options)
    
    type: gcp:securesourcemanager:InstanceIamPolicy
    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 InstanceIamPolicyArgs
    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 InstanceIamPolicyArgs
    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 InstanceIamPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InstanceIamPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InstanceIamPolicyArgs
    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 exampleinstanceIamPolicyResourceResourceFromSecuresourcemanagerinstanceIamPolicy = new Gcp.SecureSourceManager.InstanceIamPolicy("exampleinstanceIamPolicyResourceResourceFromSecuresourcemanagerinstanceIamPolicy", new()
    {
        InstanceId = "string",
        PolicyData = "string",
        Location = "string",
        Project = "string",
    });
    
    example, err := securesourcemanager.NewInstanceIamPolicy(ctx, "exampleinstanceIamPolicyResourceResourceFromSecuresourcemanagerinstanceIamPolicy", &securesourcemanager.InstanceIamPolicyArgs{
    	InstanceId: pulumi.String("string"),
    	PolicyData: pulumi.String("string"),
    	Location:   pulumi.String("string"),
    	Project:    pulumi.String("string"),
    })
    
    var exampleinstanceIamPolicyResourceResourceFromSecuresourcemanagerinstanceIamPolicy = new InstanceIamPolicy("exampleinstanceIamPolicyResourceResourceFromSecuresourcemanagerinstanceIamPolicy", InstanceIamPolicyArgs.builder()        
        .instanceId("string")
        .policyData("string")
        .location("string")
        .project("string")
        .build());
    
    exampleinstance_iam_policy_resource_resource_from_securesourcemanagerinstance_iam_policy = gcp.securesourcemanager.InstanceIamPolicy("exampleinstanceIamPolicyResourceResourceFromSecuresourcemanagerinstanceIamPolicy",
        instance_id="string",
        policy_data="string",
        location="string",
        project="string")
    
    const exampleinstanceIamPolicyResourceResourceFromSecuresourcemanagerinstanceIamPolicy = new gcp.securesourcemanager.InstanceIamPolicy("exampleinstanceIamPolicyResourceResourceFromSecuresourcemanagerinstanceIamPolicy", {
        instanceId: "string",
        policyData: "string",
        location: "string",
        project: "string",
    });
    
    type: gcp:securesourcemanager:InstanceIamPolicy
    properties:
        instanceId: string
        location: string
        policyData: string
        project: string
    

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

    InstanceId string
    PolicyData string
    Location string
    Project string
    InstanceId string
    PolicyData string
    Location string
    Project string
    instanceId String
    policyData String
    location String
    project String
    instanceId string
    policyData string
    location string
    project string
    instanceId String
    policyData String
    location String
    project String

    Outputs

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

    Get an existing InstanceIamPolicy 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?: InstanceIamPolicyState, opts?: CustomResourceOptions): InstanceIamPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            etag: Optional[str] = None,
            instance_id: Optional[str] = None,
            location: Optional[str] = None,
            policy_data: Optional[str] = None,
            project: Optional[str] = None) -> InstanceIamPolicy
    func GetInstanceIamPolicy(ctx *Context, name string, id IDInput, state *InstanceIamPolicyState, opts ...ResourceOption) (*InstanceIamPolicy, error)
    public static InstanceIamPolicy Get(string name, Input<string> id, InstanceIamPolicyState? state, CustomResourceOptions? opts = null)
    public static InstanceIamPolicy get(String name, Output<String> id, InstanceIamPolicyState 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:
    Etag string
    InstanceId string
    Location string
    PolicyData string
    Project string
    Etag string
    InstanceId string
    Location string
    PolicyData string
    Project string
    etag String
    instanceId String
    location String
    policyData String
    project String
    etag string
    instanceId string
    location string
    policyData string
    project string
    etag String
    instanceId String
    location String
    policyData String
    project 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