1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. apigee
  5. InstanceAttachment
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

gcp.apigee.InstanceAttachment

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

    An Instance attachment in Apigee.

    To get more information about InstanceAttachment, see:

    Example Usage

    Create InstanceAttachment Resource

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

    Constructor syntax

    new InstanceAttachment(name: string, args: InstanceAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def InstanceAttachment(resource_name: str,
                           args: InstanceAttachmentArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def InstanceAttachment(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           environment: Optional[str] = None,
                           instance_id: Optional[str] = None)
    func NewInstanceAttachment(ctx *Context, name string, args InstanceAttachmentArgs, opts ...ResourceOption) (*InstanceAttachment, error)
    public InstanceAttachment(string name, InstanceAttachmentArgs args, CustomResourceOptions? opts = null)
    public InstanceAttachment(String name, InstanceAttachmentArgs args)
    public InstanceAttachment(String name, InstanceAttachmentArgs args, CustomResourceOptions options)
    
    type: gcp:apigee:InstanceAttachment
    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 InstanceAttachmentArgs
    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 InstanceAttachmentArgs
    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 InstanceAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InstanceAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InstanceAttachmentArgs
    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 instanceAttachmentResource = new Gcp.Apigee.InstanceAttachment("instanceAttachmentResource", new()
    {
        Environment = "string",
        InstanceId = "string",
    });
    
    example, err := apigee.NewInstanceAttachment(ctx, "instanceAttachmentResource", &apigee.InstanceAttachmentArgs{
    	Environment: pulumi.String("string"),
    	InstanceId:  pulumi.String("string"),
    })
    
    var instanceAttachmentResource = new InstanceAttachment("instanceAttachmentResource", InstanceAttachmentArgs.builder()
        .environment("string")
        .instanceId("string")
        .build());
    
    instance_attachment_resource = gcp.apigee.InstanceAttachment("instanceAttachmentResource",
        environment="string",
        instance_id="string")
    
    const instanceAttachmentResource = new gcp.apigee.InstanceAttachment("instanceAttachmentResource", {
        environment: "string",
        instanceId: "string",
    });
    
    type: gcp:apigee:InstanceAttachment
    properties:
        environment: string
        instanceId: string
    

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

    Environment string
    The resource ID of the environment.
    InstanceId string
    The Apigee instance associated with the Apigee environment, in the format organizations/{{org_name}}/instances/{{instance_name}}.


    Environment string
    The resource ID of the environment.
    InstanceId string
    The Apigee instance associated with the Apigee environment, in the format organizations/{{org_name}}/instances/{{instance_name}}.


    environment String
    The resource ID of the environment.
    instanceId String
    The Apigee instance associated with the Apigee environment, in the format organizations/{{org_name}}/instances/{{instance_name}}.


    environment string
    The resource ID of the environment.
    instanceId string
    The Apigee instance associated with the Apigee environment, in the format organizations/{{org_name}}/instances/{{instance_name}}.


    environment str
    The resource ID of the environment.
    instance_id str
    The Apigee instance associated with the Apigee environment, in the format organizations/{{org_name}}/instances/{{instance_name}}.


    environment String
    The resource ID of the environment.
    instanceId String
    The Apigee instance associated with the Apigee environment, in the format organizations/{{org_name}}/instances/{{instance_name}}.


    Outputs

    All input properties are implicitly available as output properties. Additionally, the InstanceAttachment resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the newly created attachment (output parameter).
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the newly created attachment (output parameter).
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the newly created attachment (output parameter).
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the newly created attachment (output parameter).
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the newly created attachment (output parameter).
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the newly created attachment (output parameter).

    Look up Existing InstanceAttachment Resource

    Get an existing InstanceAttachment 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?: InstanceAttachmentState, opts?: CustomResourceOptions): InstanceAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            environment: Optional[str] = None,
            instance_id: Optional[str] = None,
            name: Optional[str] = None) -> InstanceAttachment
    func GetInstanceAttachment(ctx *Context, name string, id IDInput, state *InstanceAttachmentState, opts ...ResourceOption) (*InstanceAttachment, error)
    public static InstanceAttachment Get(string name, Input<string> id, InstanceAttachmentState? state, CustomResourceOptions? opts = null)
    public static InstanceAttachment get(String name, Output<String> id, InstanceAttachmentState 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:
    Environment string
    The resource ID of the environment.
    InstanceId string
    The Apigee instance associated with the Apigee environment, in the format organizations/{{org_name}}/instances/{{instance_name}}.


    Name string
    The name of the newly created attachment (output parameter).
    Environment string
    The resource ID of the environment.
    InstanceId string
    The Apigee instance associated with the Apigee environment, in the format organizations/{{org_name}}/instances/{{instance_name}}.


    Name string
    The name of the newly created attachment (output parameter).
    environment String
    The resource ID of the environment.
    instanceId String
    The Apigee instance associated with the Apigee environment, in the format organizations/{{org_name}}/instances/{{instance_name}}.


    name String
    The name of the newly created attachment (output parameter).
    environment string
    The resource ID of the environment.
    instanceId string
    The Apigee instance associated with the Apigee environment, in the format organizations/{{org_name}}/instances/{{instance_name}}.


    name string
    The name of the newly created attachment (output parameter).
    environment str
    The resource ID of the environment.
    instance_id str
    The Apigee instance associated with the Apigee environment, in the format organizations/{{org_name}}/instances/{{instance_name}}.


    name str
    The name of the newly created attachment (output parameter).
    environment String
    The resource ID of the environment.
    instanceId String
    The Apigee instance associated with the Apigee environment, in the format organizations/{{org_name}}/instances/{{instance_name}}.


    name String
    The name of the newly created attachment (output parameter).

    Import

    InstanceAttachment can be imported using any of these accepted formats:

    • {{instance_id}}/attachments/{{name}}

    • {{instance_id}}/{{name}}

    When using the pulumi import command, InstanceAttachment can be imported using one of the formats above. For example:

    $ pulumi import gcp:apigee/instanceAttachment:InstanceAttachment default {{instance_id}}/attachments/{{name}}
    
    $ pulumi import gcp:apigee/instanceAttachment:InstanceAttachment default {{instance_id}}/{{name}}
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.29.0 published on Wednesday, Jun 26, 2024 by Pulumi