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

tencentcloud.CcnInstancesRejectAttach

Explore with Pulumi AI

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

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const ccnInstancesRejectAttach = new tencentcloud.CcnInstancesRejectAttach("ccnInstancesRejectAttach", {
    ccnId: "ccn-39lqkygf",
    instances: [{
        instanceId: "vpc-j9yhbzpn",
        instanceRegion: "ap-guangzhou",
        instanceType: "VPC",
    }],
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

ccn_instances_reject_attach = tencentcloud.CcnInstancesRejectAttach("ccnInstancesRejectAttach",
    ccn_id="ccn-39lqkygf",
    instances=[{
        "instance_id": "vpc-j9yhbzpn",
        "instance_region": "ap-guangzhou",
        "instance_type": "VPC",
    }])
Copy
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.NewCcnInstancesRejectAttach(ctx, "ccnInstancesRejectAttach", &tencentcloud.CcnInstancesRejectAttachArgs{
			CcnId: pulumi.String("ccn-39lqkygf"),
			Instances: tencentcloud.CcnInstancesRejectAttachInstanceArray{
				&tencentcloud.CcnInstancesRejectAttachInstanceArgs{
					InstanceId:     pulumi.String("vpc-j9yhbzpn"),
					InstanceRegion: pulumi.String("ap-guangzhou"),
					InstanceType:   pulumi.String("VPC"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var ccnInstancesRejectAttach = new Tencentcloud.CcnInstancesRejectAttach("ccnInstancesRejectAttach", new()
    {
        CcnId = "ccn-39lqkygf",
        Instances = new[]
        {
            new Tencentcloud.Inputs.CcnInstancesRejectAttachInstanceArgs
            {
                InstanceId = "vpc-j9yhbzpn",
                InstanceRegion = "ap-guangzhou",
                InstanceType = "VPC",
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CcnInstancesRejectAttach;
import com.pulumi.tencentcloud.CcnInstancesRejectAttachArgs;
import com.pulumi.tencentcloud.inputs.CcnInstancesRejectAttachInstanceArgs;
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 ccnInstancesRejectAttach = new CcnInstancesRejectAttach("ccnInstancesRejectAttach", CcnInstancesRejectAttachArgs.builder()
            .ccnId("ccn-39lqkygf")
            .instances(CcnInstancesRejectAttachInstanceArgs.builder()
                .instanceId("vpc-j9yhbzpn")
                .instanceRegion("ap-guangzhou")
                .instanceType("VPC")
                .build())
            .build());

    }
}
Copy
resources:
  ccnInstancesRejectAttach:
    type: tencentcloud:CcnInstancesRejectAttach
    properties:
      ccnId: ccn-39lqkygf
      instances:
        - instanceId: vpc-j9yhbzpn
          instanceRegion: ap-guangzhou
          instanceType: VPC
Copy

Create CcnInstancesRejectAttach Resource

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

Constructor syntax

new CcnInstancesRejectAttach(name: string, args: CcnInstancesRejectAttachArgs, opts?: CustomResourceOptions);
@overload
def CcnInstancesRejectAttach(resource_name: str,
                             args: CcnInstancesRejectAttachArgs,
                             opts: Optional[ResourceOptions] = None)

@overload
def CcnInstancesRejectAttach(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             ccn_id: Optional[str] = None,
                             instances: Optional[Sequence[CcnInstancesRejectAttachInstanceArgs]] = None,
                             ccn_instances_reject_attach_id: Optional[str] = None)
func NewCcnInstancesRejectAttach(ctx *Context, name string, args CcnInstancesRejectAttachArgs, opts ...ResourceOption) (*CcnInstancesRejectAttach, error)
public CcnInstancesRejectAttach(string name, CcnInstancesRejectAttachArgs args, CustomResourceOptions? opts = null)
public CcnInstancesRejectAttach(String name, CcnInstancesRejectAttachArgs args)
public CcnInstancesRejectAttach(String name, CcnInstancesRejectAttachArgs args, CustomResourceOptions options)
type: tencentcloud:CcnInstancesRejectAttach
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. CcnInstancesRejectAttachArgs
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. CcnInstancesRejectAttachArgs
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. CcnInstancesRejectAttachArgs
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. CcnInstancesRejectAttachArgs
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. CcnInstancesRejectAttachArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

CcnId This property is required. string
CCN Instance ID.
Instances This property is required. List<CcnInstancesRejectAttachInstance>
Reject List Of Attachment Instances.
CcnInstancesRejectAttachId string
ID of the resource.
CcnId This property is required. string
CCN Instance ID.
Instances This property is required. []CcnInstancesRejectAttachInstanceArgs
Reject List Of Attachment Instances.
CcnInstancesRejectAttachId string
ID of the resource.
ccnId This property is required. String
CCN Instance ID.
instances This property is required. List<CcnInstancesRejectAttachInstance>
Reject List Of Attachment Instances.
ccnInstancesRejectAttachId String
ID of the resource.
ccnId This property is required. string
CCN Instance ID.
instances This property is required. CcnInstancesRejectAttachInstance[]
Reject List Of Attachment Instances.
ccnInstancesRejectAttachId string
ID of the resource.
ccn_id This property is required. str
CCN Instance ID.
instances This property is required. Sequence[CcnInstancesRejectAttachInstanceArgs]
Reject List Of Attachment Instances.
ccn_instances_reject_attach_id str
ID of the resource.
ccnId This property is required. String
CCN Instance ID.
instances This property is required. List<Property Map>
Reject List Of Attachment Instances.
ccnInstancesRejectAttachId String
ID of the resource.

Outputs

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

Get an existing CcnInstancesRejectAttach 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?: CcnInstancesRejectAttachState, opts?: CustomResourceOptions): CcnInstancesRejectAttach
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        ccn_id: Optional[str] = None,
        ccn_instances_reject_attach_id: Optional[str] = None,
        instances: Optional[Sequence[CcnInstancesRejectAttachInstanceArgs]] = None) -> CcnInstancesRejectAttach
func GetCcnInstancesRejectAttach(ctx *Context, name string, id IDInput, state *CcnInstancesRejectAttachState, opts ...ResourceOption) (*CcnInstancesRejectAttach, error)
public static CcnInstancesRejectAttach Get(string name, Input<string> id, CcnInstancesRejectAttachState? state, CustomResourceOptions? opts = null)
public static CcnInstancesRejectAttach get(String name, Output<String> id, CcnInstancesRejectAttachState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:CcnInstancesRejectAttach    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:
CcnId string
CCN Instance ID.
CcnInstancesRejectAttachId string
ID of the resource.
Instances List<CcnInstancesRejectAttachInstance>
Reject List Of Attachment Instances.
CcnId string
CCN Instance ID.
CcnInstancesRejectAttachId string
ID of the resource.
Instances []CcnInstancesRejectAttachInstanceArgs
Reject List Of Attachment Instances.
ccnId String
CCN Instance ID.
ccnInstancesRejectAttachId String
ID of the resource.
instances List<CcnInstancesRejectAttachInstance>
Reject List Of Attachment Instances.
ccnId string
CCN Instance ID.
ccnInstancesRejectAttachId string
ID of the resource.
instances CcnInstancesRejectAttachInstance[]
Reject List Of Attachment Instances.
ccn_id str
CCN Instance ID.
ccn_instances_reject_attach_id str
ID of the resource.
instances Sequence[CcnInstancesRejectAttachInstanceArgs]
Reject List Of Attachment Instances.
ccnId String
CCN Instance ID.
ccnInstancesRejectAttachId String
ID of the resource.
instances List<Property Map>
Reject List Of Attachment Instances.

Supporting Types

CcnInstancesRejectAttachInstance
, CcnInstancesRejectAttachInstanceArgs

InstanceId This property is required. string
Attachment Instance ID.
InstanceRegion This property is required. 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 This property is required. string
Attachment Instance ID.
InstanceRegion This property is required. 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 This property is required. String
Attachment Instance ID.
instanceRegion This property is required. 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 This property is required. string
Attachment Instance ID.
instanceRegion This property is required. 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 This property is required. str
Attachment Instance ID.
instance_region This property is required. 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 This property is required. String
Attachment Instance ID.
instanceRegion This property is required. 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.