tencentcloud.CcnInstancesAcceptAttach
Explore with Pulumi AI
Provides a resource to create a vpc ccn_instances_accept_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 ccnInstancesAcceptAttach = new tencentcloud.CcnInstancesAcceptAttach("ccnInstancesAcceptAttach", {
ccnId: "ccn-39lqkygf",
instances: [{
instanceId: "vpc-j9yhbzpn",
instanceRegion: "ap-guangzhou",
instanceType: "VPC",
}],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
ccn_instances_accept_attach = tencentcloud.CcnInstancesAcceptAttach("ccnInstancesAcceptAttach",
ccn_id="ccn-39lqkygf",
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.NewCcnInstancesAcceptAttach(ctx, "ccnInstancesAcceptAttach", &tencentcloud.CcnInstancesAcceptAttachArgs{
CcnId: pulumi.String("ccn-39lqkygf"),
Instances: tencentcloud.CcnInstancesAcceptAttachInstanceArray{
&tencentcloud.CcnInstancesAcceptAttachInstanceArgs{
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 ccnInstancesAcceptAttach = new Tencentcloud.CcnInstancesAcceptAttach("ccnInstancesAcceptAttach", new()
{
CcnId = "ccn-39lqkygf",
Instances = new[]
{
new Tencentcloud.Inputs.CcnInstancesAcceptAttachInstanceArgs
{
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.CcnInstancesAcceptAttach;
import com.pulumi.tencentcloud.CcnInstancesAcceptAttachArgs;
import com.pulumi.tencentcloud.inputs.CcnInstancesAcceptAttachInstanceArgs;
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 ccnInstancesAcceptAttach = new CcnInstancesAcceptAttach("ccnInstancesAcceptAttach", CcnInstancesAcceptAttachArgs.builder()
.ccnId("ccn-39lqkygf")
.instances(CcnInstancesAcceptAttachInstanceArgs.builder()
.instanceId("vpc-j9yhbzpn")
.instanceRegion("ap-guangzhou")
.instanceType("VPC")
.build())
.build());
}
}
resources:
ccnInstancesAcceptAttach:
type: tencentcloud:CcnInstancesAcceptAttach
properties:
ccnId: ccn-39lqkygf
instances:
- instanceId: vpc-j9yhbzpn
instanceRegion: ap-guangzhou
instanceType: VPC
Create CcnInstancesAcceptAttach Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CcnInstancesAcceptAttach(name: string, args: CcnInstancesAcceptAttachArgs, opts?: CustomResourceOptions);
@overload
def CcnInstancesAcceptAttach(resource_name: str,
args: CcnInstancesAcceptAttachArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CcnInstancesAcceptAttach(resource_name: str,
opts: Optional[ResourceOptions] = None,
ccn_id: Optional[str] = None,
instances: Optional[Sequence[CcnInstancesAcceptAttachInstanceArgs]] = None,
ccn_instances_accept_attach_id: Optional[str] = None)
func NewCcnInstancesAcceptAttach(ctx *Context, name string, args CcnInstancesAcceptAttachArgs, opts ...ResourceOption) (*CcnInstancesAcceptAttach, error)
public CcnInstancesAcceptAttach(string name, CcnInstancesAcceptAttachArgs args, CustomResourceOptions? opts = null)
public CcnInstancesAcceptAttach(String name, CcnInstancesAcceptAttachArgs args)
public CcnInstancesAcceptAttach(String name, CcnInstancesAcceptAttachArgs args, CustomResourceOptions options)
type: tencentcloud:CcnInstancesAcceptAttach
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 CcnInstancesAcceptAttachArgs
- 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 CcnInstancesAcceptAttachArgs
- 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 CcnInstancesAcceptAttachArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CcnInstancesAcceptAttachArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CcnInstancesAcceptAttachArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CcnInstancesAcceptAttach 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 CcnInstancesAcceptAttach resource accepts the following input properties:
- Ccn
Id string - CCN Instance ID.
- Instances
List<Ccn
Instances Accept Attach Instance> - Accept List Of Attachment Instances.
- Ccn
Instances stringAccept Attach Id - ID of the resource.
- Ccn
Id string - CCN Instance ID.
- Instances
[]Ccn
Instances Accept Attach Instance Args - Accept List Of Attachment Instances.
- Ccn
Instances stringAccept Attach Id - ID of the resource.
- ccn
Id String - CCN Instance ID.
- instances
List<Ccn
Instances Accept Attach Instance> - Accept List Of Attachment Instances.
- ccn
Instances StringAccept Attach Id - ID of the resource.
- ccn
Id string - CCN Instance ID.
- instances
Ccn
Instances Accept Attach Instance[] - Accept List Of Attachment Instances.
- ccn
Instances stringAccept Attach Id - ID of the resource.
- ccn_
id str - CCN Instance ID.
- instances
Sequence[Ccn
Instances Accept Attach Instance Args] - Accept List Of Attachment Instances.
- ccn_
instances_ straccept_ attach_ id - ID of the resource.
- ccn
Id String - CCN Instance ID.
- instances List<Property Map>
- Accept List Of Attachment Instances.
- ccn
Instances StringAccept Attach Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the CcnInstancesAcceptAttach 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 CcnInstancesAcceptAttach Resource
Get an existing CcnInstancesAcceptAttach 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?: CcnInstancesAcceptAttachState, opts?: CustomResourceOptions): CcnInstancesAcceptAttach
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ccn_id: Optional[str] = None,
ccn_instances_accept_attach_id: Optional[str] = None,
instances: Optional[Sequence[CcnInstancesAcceptAttachInstanceArgs]] = None) -> CcnInstancesAcceptAttach
func GetCcnInstancesAcceptAttach(ctx *Context, name string, id IDInput, state *CcnInstancesAcceptAttachState, opts ...ResourceOption) (*CcnInstancesAcceptAttach, error)
public static CcnInstancesAcceptAttach Get(string name, Input<string> id, CcnInstancesAcceptAttachState? state, CustomResourceOptions? opts = null)
public static CcnInstancesAcceptAttach get(String name, Output<String> id, CcnInstancesAcceptAttachState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CcnInstancesAcceptAttach 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.
- Ccn
Id string - CCN Instance ID.
- Ccn
Instances stringAccept Attach Id - ID of the resource.
- Instances
List<Ccn
Instances Accept Attach Instance> - Accept List Of Attachment Instances.
- Ccn
Id string - CCN Instance ID.
- Ccn
Instances stringAccept Attach Id - ID of the resource.
- Instances
[]Ccn
Instances Accept Attach Instance Args - Accept List Of Attachment Instances.
- ccn
Id String - CCN Instance ID.
- ccn
Instances StringAccept Attach Id - ID of the resource.
- instances
List<Ccn
Instances Accept Attach Instance> - Accept List Of Attachment Instances.
- ccn
Id string - CCN Instance ID.
- ccn
Instances stringAccept Attach Id - ID of the resource.
- instances
Ccn
Instances Accept Attach Instance[] - Accept List Of Attachment Instances.
- ccn_
id str - CCN Instance ID.
- ccn_
instances_ straccept_ attach_ id - ID of the resource.
- instances
Sequence[Ccn
Instances Accept Attach Instance Args] - Accept List Of Attachment Instances.
- ccn
Id String - CCN Instance ID.
- ccn
Instances StringAccept Attach Id - ID of the resource.
- instances List<Property Map>
- Accept List Of Attachment Instances.
Supporting Types
CcnInstancesAcceptAttachInstance, CcnInstancesAcceptAttachInstanceArgs
- Instance
Id string - Attachment Instance ID.
- Instance
Region string - Instance Region.
- Description string
- Description.
- Instance
Type string - InstanceType:
VPC
,DIRECTCONNECT
,BMVPC
,VPNGW
. - Route
Table stringId - 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 string - Attachment Instance ID.
- Instance
Region string - Instance Region.
- Description string
- Description.
- Instance
Type string - InstanceType:
VPC
,DIRECTCONNECT
,BMVPC
,VPNGW
. - Route
Table stringId - 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 String - Attachment Instance ID.
- instance
Region String - Instance Region.
- description String
- Description.
- instance
Type String - InstanceType:
VPC
,DIRECTCONNECT
,BMVPC
,VPNGW
. - route
Table StringId - 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 string - Attachment Instance ID.
- instance
Region string - Instance Region.
- description string
- Description.
- instance
Type string - InstanceType:
VPC
,DIRECTCONNECT
,BMVPC
,VPNGW
. - route
Table stringId - 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_ strid - 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 String - Attachment Instance ID.
- instance
Region String - Instance Region.
- description String
- Description.
- instance
Type String - InstanceType:
VPC
,DIRECTCONNECT
,BMVPC
,VPNGW
. - route
Table StringId - 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.