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

tencentcloud.VpcClassicLinkAttachment

Explore with Pulumi AI

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 This property is required. string
The unique name of the resource.
args This property is required. VpcClassicLinkAttachmentArgs
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. 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 This property is required. string
The unique name of the resource.
args This property is required. VpcClassicLinkAttachmentArgs
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. VpcClassicLinkAttachmentArgs
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. 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 This property is required. List<string>
CVM instance ID. It only support set one instance now.
VpcId This property is required. string
VPC instance ID.
VpcClassicLinkAttachmentId string
InstanceIds This property is required. []string
CVM instance ID. It only support set one instance now.
VpcId This property is required. string
VPC instance ID.
VpcClassicLinkAttachmentId string
instanceIds This property is required. List<String>
CVM instance ID. It only support set one instance now.
vpcId This property is required. String
VPC instance ID.
vpcClassicLinkAttachmentId String
instanceIds This property is required. string[]
CVM instance ID. It only support set one instance now.
vpcId This property is required. string
VPC instance ID.
vpcClassicLinkAttachmentId string
instance_ids This property is required. Sequence[str]
CVM instance ID. It only support set one instance now.
vpc_id This property is required. str
VPC instance ID.
vpc_classic_link_attachment_id str
instanceIds This property is required. List<String>
CVM instance ID. It only support set one instance now.
vpcId This property is required. 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 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:
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.