volcengine.cen.AttachInstance
Explore with Pulumi AI
Provides a resource to manage cen attach instance
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Volcengine.Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Cen.AttachInstance("foo", new()
{
CenId = "cen-12ar8uclj68sg17q7y20v9gil",
InstanceId = "vpc-2fe5dpn0av2m859gp68rhk2dc",
InstanceRegionId = "cn-beijing",
InstanceType = "VPC",
});
var foo1 = new Volcengine.Cen.AttachInstance("foo1", new()
{
CenId = "cen-12ar8uclj68sg17q7y20v9gil",
InstanceId = "vpc-in66ktl5t24g8gbssz0sqva1",
InstanceRegionId = "cn-beijing",
InstanceType = "VPC",
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cen"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cen.NewAttachInstance(ctx, "foo", &cen.AttachInstanceArgs{
CenId: pulumi.String("cen-12ar8uclj68sg17q7y20v9gil"),
InstanceId: pulumi.String("vpc-2fe5dpn0av2m859gp68rhk2dc"),
InstanceRegionId: pulumi.String("cn-beijing"),
InstanceType: pulumi.String("VPC"),
})
if err != nil {
return err
}
_, err = cen.NewAttachInstance(ctx, "foo1", &cen.AttachInstanceArgs{
CenId: pulumi.String("cen-12ar8uclj68sg17q7y20v9gil"),
InstanceId: pulumi.String("vpc-in66ktl5t24g8gbssz0sqva1"),
InstanceRegionId: pulumi.String("cn-beijing"),
InstanceType: pulumi.String("VPC"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.cen.AttachInstance;
import com.pulumi.volcengine.cen.AttachInstanceArgs;
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 foo = new AttachInstance("foo", AttachInstanceArgs.builder()
.cenId("cen-12ar8uclj68sg17q7y20v9gil")
.instanceId("vpc-2fe5dpn0av2m859gp68rhk2dc")
.instanceRegionId("cn-beijing")
.instanceType("VPC")
.build());
var foo1 = new AttachInstance("foo1", AttachInstanceArgs.builder()
.cenId("cen-12ar8uclj68sg17q7y20v9gil")
.instanceId("vpc-in66ktl5t24g8gbssz0sqva1")
.instanceRegionId("cn-beijing")
.instanceType("VPC")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.cen.AttachInstance("foo",
cen_id="cen-12ar8uclj68sg17q7y20v9gil",
instance_id="vpc-2fe5dpn0av2m859gp68rhk2dc",
instance_region_id="cn-beijing",
instance_type="VPC")
foo1 = volcengine.cen.AttachInstance("foo1",
cen_id="cen-12ar8uclj68sg17q7y20v9gil",
instance_id="vpc-in66ktl5t24g8gbssz0sqva1",
instance_region_id="cn-beijing",
instance_type="VPC")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.cen.AttachInstance("foo", {
cenId: "cen-12ar8uclj68sg17q7y20v9gil",
instanceId: "vpc-2fe5dpn0av2m859gp68rhk2dc",
instanceRegionId: "cn-beijing",
instanceType: "VPC",
});
const foo1 = new volcengine.cen.AttachInstance("foo1", {
cenId: "cen-12ar8uclj68sg17q7y20v9gil",
instanceId: "vpc-in66ktl5t24g8gbssz0sqva1",
instanceRegionId: "cn-beijing",
instanceType: "VPC",
});
resources:
foo:
type: volcengine:cen:AttachInstance
properties:
cenId: cen-12ar8uclj68sg17q7y20v9gil
instanceId: vpc-2fe5dpn0av2m859gp68rhk2dc
instanceRegionId: cn-beijing
instanceType: VPC
foo1:
type: volcengine:cen:AttachInstance
properties:
cenId: cen-12ar8uclj68sg17q7y20v9gil
instanceId: vpc-in66ktl5t24g8gbssz0sqva1
instanceRegionId: cn-beijing
instanceType: VPC
Create AttachInstance Resource
new AttachInstance(name: string, args: AttachInstanceArgs, opts?: CustomResourceOptions);
@overload
def AttachInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
cen_id: Optional[str] = None,
instance_id: Optional[str] = None,
instance_owner_id: Optional[str] = None,
instance_region_id: Optional[str] = None,
instance_type: Optional[str] = None)
@overload
def AttachInstance(resource_name: str,
args: AttachInstanceArgs,
opts: Optional[ResourceOptions] = None)
func NewAttachInstance(ctx *Context, name string, args AttachInstanceArgs, opts ...ResourceOption) (*AttachInstance, error)
public AttachInstance(string name, AttachInstanceArgs args, CustomResourceOptions? opts = null)
public AttachInstance(String name, AttachInstanceArgs args)
public AttachInstance(String name, AttachInstanceArgs args, CustomResourceOptions options)
type: volcengine:cen:AttachInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AttachInstanceArgs
- 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 AttachInstanceArgs
- 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 AttachInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AttachInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AttachInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AttachInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The AttachInstance resource accepts the following input properties:
- Cen
Id string The ID of the cen.
- Instance
Id string The ID of the instance.
- Instance
Region stringId The region ID of the instance.
- Instance
Type string The type of the instance. Valid values:
VPC
,DCGW
.- Instance
Owner stringId The owner ID of the instance.
- Cen
Id string The ID of the cen.
- Instance
Id string The ID of the instance.
- Instance
Region stringId The region ID of the instance.
- Instance
Type string The type of the instance. Valid values:
VPC
,DCGW
.- Instance
Owner stringId The owner ID of the instance.
- cen
Id String The ID of the cen.
- instance
Id String The ID of the instance.
- instance
Region StringId The region ID of the instance.
- instance
Type String The type of the instance. Valid values:
VPC
,DCGW
.- instance
Owner StringId The owner ID of the instance.
- cen
Id string The ID of the cen.
- instance
Id string The ID of the instance.
- instance
Region stringId The region ID of the instance.
- instance
Type string The type of the instance. Valid values:
VPC
,DCGW
.- instance
Owner stringId The owner ID of the instance.
- cen_
id str The ID of the cen.
- instance_
id str The ID of the instance.
- instance_
region_ strid The region ID of the instance.
- instance_
type str The type of the instance. Valid values:
VPC
,DCGW
.- instance_
owner_ strid The owner ID of the instance.
- cen
Id String The ID of the cen.
- instance
Id String The ID of the instance.
- instance
Region StringId The region ID of the instance.
- instance
Type String The type of the instance. Valid values:
VPC
,DCGW
.- instance
Owner StringId The owner ID of the instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the AttachInstance resource produces the following output properties:
- Creation
Time string The create time of the cen attaching instance.
- Id string
The provider-assigned unique ID for this managed resource.
- Status string
The status of the cen attaching instance.
- Creation
Time string The create time of the cen attaching instance.
- Id string
The provider-assigned unique ID for this managed resource.
- Status string
The status of the cen attaching instance.
- creation
Time String The create time of the cen attaching instance.
- id String
The provider-assigned unique ID for this managed resource.
- status String
The status of the cen attaching instance.
- creation
Time string The create time of the cen attaching instance.
- id string
The provider-assigned unique ID for this managed resource.
- status string
The status of the cen attaching instance.
- creation_
time str The create time of the cen attaching instance.
- id str
The provider-assigned unique ID for this managed resource.
- status str
The status of the cen attaching instance.
- creation
Time String The create time of the cen attaching instance.
- id String
The provider-assigned unique ID for this managed resource.
- status String
The status of the cen attaching instance.
Look up Existing AttachInstance Resource
Get an existing AttachInstance 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?: AttachInstanceState, opts?: CustomResourceOptions): AttachInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cen_id: Optional[str] = None,
creation_time: Optional[str] = None,
instance_id: Optional[str] = None,
instance_owner_id: Optional[str] = None,
instance_region_id: Optional[str] = None,
instance_type: Optional[str] = None,
status: Optional[str] = None) -> AttachInstance
func GetAttachInstance(ctx *Context, name string, id IDInput, state *AttachInstanceState, opts ...ResourceOption) (*AttachInstance, error)
public static AttachInstance Get(string name, Input<string> id, AttachInstanceState? state, CustomResourceOptions? opts = null)
public static AttachInstance get(String name, Output<String> id, AttachInstanceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Cen
Id string The ID of the cen.
- Creation
Time string The create time of the cen attaching instance.
- Instance
Id string The ID of the instance.
- Instance
Owner stringId The owner ID of the instance.
- Instance
Region stringId The region ID of the instance.
- Instance
Type string The type of the instance. Valid values:
VPC
,DCGW
.- Status string
The status of the cen attaching instance.
- Cen
Id string The ID of the cen.
- Creation
Time string The create time of the cen attaching instance.
- Instance
Id string The ID of the instance.
- Instance
Owner stringId The owner ID of the instance.
- Instance
Region stringId The region ID of the instance.
- Instance
Type string The type of the instance. Valid values:
VPC
,DCGW
.- Status string
The status of the cen attaching instance.
- cen
Id String The ID of the cen.
- creation
Time String The create time of the cen attaching instance.
- instance
Id String The ID of the instance.
- instance
Owner StringId The owner ID of the instance.
- instance
Region StringId The region ID of the instance.
- instance
Type String The type of the instance. Valid values:
VPC
,DCGW
.- status String
The status of the cen attaching instance.
- cen
Id string The ID of the cen.
- creation
Time string The create time of the cen attaching instance.
- instance
Id string The ID of the instance.
- instance
Owner stringId The owner ID of the instance.
- instance
Region stringId The region ID of the instance.
- instance
Type string The type of the instance. Valid values:
VPC
,DCGW
.- status string
The status of the cen attaching instance.
- cen_
id str The ID of the cen.
- creation_
time str The create time of the cen attaching instance.
- instance_
id str The ID of the instance.
- instance_
owner_ strid The owner ID of the instance.
- instance_
region_ strid The region ID of the instance.
- instance_
type str The type of the instance. Valid values:
VPC
,DCGW
.- status str
The status of the cen attaching instance.
- cen
Id String The ID of the cen.
- creation
Time String The create time of the cen attaching instance.
- instance
Id String The ID of the instance.
- instance
Owner StringId The owner ID of the instance.
- instance
Region StringId The region ID of the instance.
- instance
Type String The type of the instance. Valid values:
VPC
,DCGW
.- status String
The status of the cen attaching instance.
Import
Cen attach instance can be imported using the CenId:InstanceId:InstanceType:RegionId, e.g.
$ pulumi import volcengine:cen/attachInstance:AttachInstance default cen-7qthudw0ll6jmc***:vpc-2fexiqjlgjif45oxruvso****:VPC:cn-beijing
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
volcengine
Terraform Provider.