1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. VpcClassicLinkAttachment
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.VpcClassicLinkAttachment

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Create VpcClassicLinkAttachment Resource

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

    Constructor syntax

    new VpcClassicLinkAttachment(name: string, args: VpcClassicLinkAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def VpcClassicLinkAttachment(resource_name: str,
                                 args: VpcClassicLinkAttachmentArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcClassicLinkAttachment(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 instance_ids: Optional[Sequence[str]] = None,
                                 vpc_id: Optional[str] = None,
                                 vpc_classic_link_attachment_id: Optional[str] = None)
    func NewVpcClassicLinkAttachment(ctx *Context, name string, args VpcClassicLinkAttachmentArgs, opts ...ResourceOption) (*VpcClassicLinkAttachment, error)
    public VpcClassicLinkAttachment(string name, VpcClassicLinkAttachmentArgs args, CustomResourceOptions? opts = null)
    public VpcClassicLinkAttachment(String name, VpcClassicLinkAttachmentArgs args)
    public VpcClassicLinkAttachment(String name, VpcClassicLinkAttachmentArgs args, CustomResourceOptions options)
    
    type: tencentcloud:VpcClassicLinkAttachment
    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 VpcClassicLinkAttachmentArgs
    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 VpcClassicLinkAttachmentArgs
    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 VpcClassicLinkAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcClassicLinkAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcClassicLinkAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    InstanceIds List<string>
    CVM instance ID. It only support set one instance now.
    VpcId string
    VPC instance ID.
    VpcClassicLinkAttachmentId string
    InstanceIds []string
    CVM instance ID. It only support set one instance now.
    VpcId string
    VPC instance ID.
    VpcClassicLinkAttachmentId string
    instanceIds List<String>
    CVM instance ID. It only support set one instance now.
    vpcId String
    VPC instance ID.
    vpcClassicLinkAttachmentId String
    instanceIds string[]
    CVM instance ID. It only support set one instance now.
    vpcId string
    VPC instance ID.
    vpcClassicLinkAttachmentId string
    instance_ids Sequence[str]
    CVM instance ID. It only support set one instance now.
    vpc_id str
    VPC instance ID.
    vpc_classic_link_attachment_id str
    instanceIds List<String>
    CVM instance ID. It only support set one instance now.
    vpcId String
    VPC instance ID.
    vpcClassicLinkAttachmentId String

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing VpcClassicLinkAttachment Resource

    Get an existing VpcClassicLinkAttachment 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?: VpcClassicLinkAttachmentState, opts?: CustomResourceOptions): VpcClassicLinkAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            instance_ids: Optional[Sequence[str]] = None,
            vpc_classic_link_attachment_id: Optional[str] = None,
            vpc_id: Optional[str] = None) -> VpcClassicLinkAttachment
    func GetVpcClassicLinkAttachment(ctx *Context, name string, id IDInput, state *VpcClassicLinkAttachmentState, opts ...ResourceOption) (*VpcClassicLinkAttachment, error)
    public static VpcClassicLinkAttachment Get(string name, Input<string> id, VpcClassicLinkAttachmentState? state, CustomResourceOptions? opts = null)
    public static VpcClassicLinkAttachment get(String name, Output<String> id, VpcClassicLinkAttachmentState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:VpcClassicLinkAttachment    get:      id: ${id}
    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:
    InstanceIds List<string>
    CVM instance ID. It only support set one instance now.
    VpcClassicLinkAttachmentId string
    VpcId string
    VPC instance ID.
    InstanceIds []string
    CVM instance ID. It only support set one instance now.
    VpcClassicLinkAttachmentId string
    VpcId string
    VPC instance ID.
    instanceIds List<String>
    CVM instance ID. It only support set one instance now.
    vpcClassicLinkAttachmentId String
    vpcId String
    VPC instance ID.
    instanceIds string[]
    CVM instance ID. It only support set one instance now.
    vpcClassicLinkAttachmentId string
    vpcId string
    VPC instance ID.
    instance_ids Sequence[str]
    CVM instance ID. It only support set one instance now.
    vpc_classic_link_attachment_id str
    vpc_id str
    VPC instance ID.
    instanceIds List<String>
    CVM instance ID. It only support set one instance now.
    vpcClassicLinkAttachmentId String
    vpcId String
    VPC instance ID.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack