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

tencentcloud.CcnInstancesResetAttach

Explore with Pulumi AI

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

    Provides a resource to create a vpc ccn_instances_reset_attach, you can use this resource to reset cross-region attachment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const ccnInstancesResetAttach = new tencentcloud.CcnInstancesResetAttach("ccnInstancesResetAttach", {
        ccnId: "ccn-39lqkygf",
        ccnUin: "100022975249",
        instances: [{
            instanceId: "vpc-j9yhbzpn",
            instanceRegion: "ap-guangzhou",
            instanceType: "VPC",
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    ccn_instances_reset_attach = tencentcloud.CcnInstancesResetAttach("ccnInstancesResetAttach",
        ccn_id="ccn-39lqkygf",
        ccn_uin="100022975249",
        instances=[{
            "instance_id": "vpc-j9yhbzpn",
            "instance_region": "ap-guangzhou",
            "instance_type": "VPC",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewCcnInstancesResetAttach(ctx, "ccnInstancesResetAttach", &tencentcloud.CcnInstancesResetAttachArgs{
    			CcnId:  pulumi.String("ccn-39lqkygf"),
    			CcnUin: pulumi.String("100022975249"),
    			Instances: tencentcloud.CcnInstancesResetAttachInstanceArray{
    				&tencentcloud.CcnInstancesResetAttachInstanceArgs{
    					InstanceId:     pulumi.String("vpc-j9yhbzpn"),
    					InstanceRegion: pulumi.String("ap-guangzhou"),
    					InstanceType:   pulumi.String("VPC"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var ccnInstancesResetAttach = new Tencentcloud.CcnInstancesResetAttach("ccnInstancesResetAttach", new()
        {
            CcnId = "ccn-39lqkygf",
            CcnUin = "100022975249",
            Instances = new[]
            {
                new Tencentcloud.Inputs.CcnInstancesResetAttachInstanceArgs
                {
                    InstanceId = "vpc-j9yhbzpn",
                    InstanceRegion = "ap-guangzhou",
                    InstanceType = "VPC",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CcnInstancesResetAttach;
    import com.pulumi.tencentcloud.CcnInstancesResetAttachArgs;
    import com.pulumi.tencentcloud.inputs.CcnInstancesResetAttachInstanceArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var ccnInstancesResetAttach = new CcnInstancesResetAttach("ccnInstancesResetAttach", CcnInstancesResetAttachArgs.builder()
                .ccnId("ccn-39lqkygf")
                .ccnUin("100022975249")
                .instances(CcnInstancesResetAttachInstanceArgs.builder()
                    .instanceId("vpc-j9yhbzpn")
                    .instanceRegion("ap-guangzhou")
                    .instanceType("VPC")
                    .build())
                .build());
    
        }
    }
    
    resources:
      ccnInstancesResetAttach:
        type: tencentcloud:CcnInstancesResetAttach
        properties:
          ccnId: ccn-39lqkygf
          ccnUin: '100022975249'
          instances:
            - instanceId: vpc-j9yhbzpn
              instanceRegion: ap-guangzhou
              instanceType: VPC
    

    Create CcnInstancesResetAttach Resource

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

    Constructor syntax

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

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

    CcnId string
    CCN Instance ID.
    CcnUin string
    CCN Uin (root account).
    Instances List<CcnInstancesResetAttachInstance>
    List Of Attachment Instances.
    CcnInstancesResetAttachId string
    ID of the resource.
    CcnId string
    CCN Instance ID.
    CcnUin string
    CCN Uin (root account).
    Instances []CcnInstancesResetAttachInstanceArgs
    List Of Attachment Instances.
    CcnInstancesResetAttachId string
    ID of the resource.
    ccnId String
    CCN Instance ID.
    ccnUin String
    CCN Uin (root account).
    instances List<CcnInstancesResetAttachInstance>
    List Of Attachment Instances.
    ccnInstancesResetAttachId String
    ID of the resource.
    ccnId string
    CCN Instance ID.
    ccnUin string
    CCN Uin (root account).
    instances CcnInstancesResetAttachInstance[]
    List Of Attachment Instances.
    ccnInstancesResetAttachId string
    ID of the resource.
    ccn_id str
    CCN Instance ID.
    ccn_uin str
    CCN Uin (root account).
    instances Sequence[CcnInstancesResetAttachInstanceArgs]
    List Of Attachment Instances.
    ccn_instances_reset_attach_id str
    ID of the resource.
    ccnId String
    CCN Instance ID.
    ccnUin String
    CCN Uin (root account).
    instances List<Property Map>
    List Of Attachment Instances.
    ccnInstancesResetAttachId String
    ID of the resource.

    Outputs

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

    Get an existing CcnInstancesResetAttach 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?: CcnInstancesResetAttachState, opts?: CustomResourceOptions): CcnInstancesResetAttach
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ccn_id: Optional[str] = None,
            ccn_instances_reset_attach_id: Optional[str] = None,
            ccn_uin: Optional[str] = None,
            instances: Optional[Sequence[CcnInstancesResetAttachInstanceArgs]] = None) -> CcnInstancesResetAttach
    func GetCcnInstancesResetAttach(ctx *Context, name string, id IDInput, state *CcnInstancesResetAttachState, opts ...ResourceOption) (*CcnInstancesResetAttach, error)
    public static CcnInstancesResetAttach Get(string name, Input<string> id, CcnInstancesResetAttachState? state, CustomResourceOptions? opts = null)
    public static CcnInstancesResetAttach get(String name, Output<String> id, CcnInstancesResetAttachState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CcnInstancesResetAttach    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:
    CcnId string
    CCN Instance ID.
    CcnInstancesResetAttachId string
    ID of the resource.
    CcnUin string
    CCN Uin (root account).
    Instances List<CcnInstancesResetAttachInstance>
    List Of Attachment Instances.
    CcnId string
    CCN Instance ID.
    CcnInstancesResetAttachId string
    ID of the resource.
    CcnUin string
    CCN Uin (root account).
    Instances []CcnInstancesResetAttachInstanceArgs
    List Of Attachment Instances.
    ccnId String
    CCN Instance ID.
    ccnInstancesResetAttachId String
    ID of the resource.
    ccnUin String
    CCN Uin (root account).
    instances List<CcnInstancesResetAttachInstance>
    List Of Attachment Instances.
    ccnId string
    CCN Instance ID.
    ccnInstancesResetAttachId string
    ID of the resource.
    ccnUin string
    CCN Uin (root account).
    instances CcnInstancesResetAttachInstance[]
    List Of Attachment Instances.
    ccn_id str
    CCN Instance ID.
    ccn_instances_reset_attach_id str
    ID of the resource.
    ccn_uin str
    CCN Uin (root account).
    instances Sequence[CcnInstancesResetAttachInstanceArgs]
    List Of Attachment Instances.
    ccnId String
    CCN Instance ID.
    ccnInstancesResetAttachId String
    ID of the resource.
    ccnUin String
    CCN Uin (root account).
    instances List<Property Map>
    List Of Attachment Instances.

    Supporting Types

    CcnInstancesResetAttachInstance, CcnInstancesResetAttachInstanceArgs

    InstanceId string
    Attachment Instance ID.
    InstanceRegion string
    Instance Region.
    Description string
    Description.
    InstanceType string
    InstanceType: VPC, DIRECTCONNECT, BMVPC, VPNGW.
    RouteTableId string
    ID of the routing table associated with the instance. Note: This field may return null, indicating that no valid value can be obtained.
    InstanceId string
    Attachment Instance ID.
    InstanceRegion string
    Instance Region.
    Description string
    Description.
    InstanceType string
    InstanceType: VPC, DIRECTCONNECT, BMVPC, VPNGW.
    RouteTableId string
    ID of the routing table associated with the instance. Note: This field may return null, indicating that no valid value can be obtained.
    instanceId String
    Attachment Instance ID.
    instanceRegion String
    Instance Region.
    description String
    Description.
    instanceType String
    InstanceType: VPC, DIRECTCONNECT, BMVPC, VPNGW.
    routeTableId String
    ID of the routing table associated with the instance. Note: This field may return null, indicating that no valid value can be obtained.
    instanceId string
    Attachment Instance ID.
    instanceRegion string
    Instance Region.
    description string
    Description.
    instanceType string
    InstanceType: VPC, DIRECTCONNECT, BMVPC, VPNGW.
    routeTableId string
    ID of the routing table associated with the instance. Note: This field may return null, indicating that no valid value can be obtained.
    instance_id str
    Attachment Instance ID.
    instance_region str
    Instance Region.
    description str
    Description.
    instance_type str
    InstanceType: VPC, DIRECTCONNECT, BMVPC, VPNGW.
    route_table_id str
    ID of the routing table associated with the instance. Note: This field may return null, indicating that no valid value can be obtained.
    instanceId String
    Attachment Instance ID.
    instanceRegion String
    Instance Region.
    description String
    Description.
    instanceType String
    InstanceType: VPC, DIRECTCONNECT, BMVPC, VPNGW.
    routeTableId String
    ID of the routing table associated with the instance. Note: This field may return null, indicating that no valid value can be obtained.

    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