alicloud logo
Alibaba Cloud v3.37.0, May 15 23

alicloud.eais.Instance

Explore with Pulumi AI

Provides a EAIS Instance resource.

For information about EAIS Instance and how to use it, see What is Instance.

NOTE: Available in v1.137.0+.

Create Instance Resource

new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);
@overload
def Instance(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             force: Optional[bool] = None,
             instance_name: Optional[str] = None,
             instance_type: Optional[str] = None,
             security_group_id: Optional[str] = None,
             vswitch_id: Optional[str] = None)
@overload
def Instance(resource_name: str,
             args: InstanceArgs,
             opts: Optional[ResourceOptions] = None)
func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)
public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
public Instance(String name, InstanceArgs args)
public Instance(String name, InstanceArgs args, CustomResourceOptions options)
type: alicloud:eais:Instance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args InstanceArgs
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 InstanceArgs
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 InstanceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args InstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args InstanceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

InstanceType string

The type of the resource. Valid values: eais.ei-a6.4xlarge, eais.ei-a6.2xlarge, eais.ei-a6.xlarge, eais.ei-a6.large, eais.ei-a6.medium.

SecurityGroupId string

The ID of the security group.

VswitchId string

The ID of the vswitch.

Force bool

Whether to force deletion when the instance status does not meet the deletion conditions. Valid values: true and false.

InstanceName string

The name of the instance.

InstanceType string

The type of the resource. Valid values: eais.ei-a6.4xlarge, eais.ei-a6.2xlarge, eais.ei-a6.xlarge, eais.ei-a6.large, eais.ei-a6.medium.

SecurityGroupId string

The ID of the security group.

VswitchId string

The ID of the vswitch.

Force bool

Whether to force deletion when the instance status does not meet the deletion conditions. Valid values: true and false.

InstanceName string

The name of the instance.

instanceType String

The type of the resource. Valid values: eais.ei-a6.4xlarge, eais.ei-a6.2xlarge, eais.ei-a6.xlarge, eais.ei-a6.large, eais.ei-a6.medium.

securityGroupId String

The ID of the security group.

vswitchId String

The ID of the vswitch.

force Boolean

Whether to force deletion when the instance status does not meet the deletion conditions. Valid values: true and false.

instanceName String

The name of the instance.

instanceType string

The type of the resource. Valid values: eais.ei-a6.4xlarge, eais.ei-a6.2xlarge, eais.ei-a6.xlarge, eais.ei-a6.large, eais.ei-a6.medium.

securityGroupId string

The ID of the security group.

vswitchId string

The ID of the vswitch.

force boolean

Whether to force deletion when the instance status does not meet the deletion conditions. Valid values: true and false.

instanceName string

The name of the instance.

instance_type str

The type of the resource. Valid values: eais.ei-a6.4xlarge, eais.ei-a6.2xlarge, eais.ei-a6.xlarge, eais.ei-a6.large, eais.ei-a6.medium.

security_group_id str

The ID of the security group.

vswitch_id str

The ID of the vswitch.

force bool

Whether to force deletion when the instance status does not meet the deletion conditions. Valid values: true and false.

instance_name str

The name of the instance.

instanceType String

The type of the resource. Valid values: eais.ei-a6.4xlarge, eais.ei-a6.2xlarge, eais.ei-a6.xlarge, eais.ei-a6.large, eais.ei-a6.medium.

securityGroupId String

The ID of the security group.

vswitchId String

The ID of the vswitch.

force Boolean

Whether to force deletion when the instance status does not meet the deletion conditions. Valid values: true and false.

instanceName String

The name of the instance.

Outputs

All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of the resource. Valid values: Attaching, Available, Detaching, InUse, Starting, Unavailable.

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of the resource. Valid values: Attaching, Available, Detaching, InUse, Starting, Unavailable.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the resource. Valid values: Attaching, Available, Detaching, InUse, Starting, Unavailable.

id string

The provider-assigned unique ID for this managed resource.

status string

The status of the resource. Valid values: Attaching, Available, Detaching, InUse, Starting, Unavailable.

id str

The provider-assigned unique ID for this managed resource.

status str

The status of the resource. Valid values: Attaching, Available, Detaching, InUse, Starting, Unavailable.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the resource. Valid values: Attaching, Available, Detaching, InUse, Starting, Unavailable.

Look up Existing Instance Resource

Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instance
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        force: Optional[bool] = None,
        instance_name: Optional[str] = None,
        instance_type: Optional[str] = None,
        security_group_id: Optional[str] = None,
        status: Optional[str] = None,
        vswitch_id: Optional[str] = None) -> Instance
func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)
public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)
public static Instance get(String name, Output<String> id, InstanceState 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.
The following state arguments are supported:
Force bool

Whether to force deletion when the instance status does not meet the deletion conditions. Valid values: true and false.

InstanceName string

The name of the instance.

InstanceType string

The type of the resource. Valid values: eais.ei-a6.4xlarge, eais.ei-a6.2xlarge, eais.ei-a6.xlarge, eais.ei-a6.large, eais.ei-a6.medium.

SecurityGroupId string

The ID of the security group.

Status string

The status of the resource. Valid values: Attaching, Available, Detaching, InUse, Starting, Unavailable.

VswitchId string

The ID of the vswitch.

Force bool

Whether to force deletion when the instance status does not meet the deletion conditions. Valid values: true and false.

InstanceName string

The name of the instance.

InstanceType string

The type of the resource. Valid values: eais.ei-a6.4xlarge, eais.ei-a6.2xlarge, eais.ei-a6.xlarge, eais.ei-a6.large, eais.ei-a6.medium.

SecurityGroupId string

The ID of the security group.

Status string

The status of the resource. Valid values: Attaching, Available, Detaching, InUse, Starting, Unavailable.

VswitchId string

The ID of the vswitch.

force Boolean

Whether to force deletion when the instance status does not meet the deletion conditions. Valid values: true and false.

instanceName String

The name of the instance.

instanceType String

The type of the resource. Valid values: eais.ei-a6.4xlarge, eais.ei-a6.2xlarge, eais.ei-a6.xlarge, eais.ei-a6.large, eais.ei-a6.medium.

securityGroupId String

The ID of the security group.

status String

The status of the resource. Valid values: Attaching, Available, Detaching, InUse, Starting, Unavailable.

vswitchId String

The ID of the vswitch.

force boolean

Whether to force deletion when the instance status does not meet the deletion conditions. Valid values: true and false.

instanceName string

The name of the instance.

instanceType string

The type of the resource. Valid values: eais.ei-a6.4xlarge, eais.ei-a6.2xlarge, eais.ei-a6.xlarge, eais.ei-a6.large, eais.ei-a6.medium.

securityGroupId string

The ID of the security group.

status string

The status of the resource. Valid values: Attaching, Available, Detaching, InUse, Starting, Unavailable.

vswitchId string

The ID of the vswitch.

force bool

Whether to force deletion when the instance status does not meet the deletion conditions. Valid values: true and false.

instance_name str

The name of the instance.

instance_type str

The type of the resource. Valid values: eais.ei-a6.4xlarge, eais.ei-a6.2xlarge, eais.ei-a6.xlarge, eais.ei-a6.large, eais.ei-a6.medium.

security_group_id str

The ID of the security group.

status str

The status of the resource. Valid values: Attaching, Available, Detaching, InUse, Starting, Unavailable.

vswitch_id str

The ID of the vswitch.

force Boolean

Whether to force deletion when the instance status does not meet the deletion conditions. Valid values: true and false.

instanceName String

The name of the instance.

instanceType String

The type of the resource. Valid values: eais.ei-a6.4xlarge, eais.ei-a6.2xlarge, eais.ei-a6.xlarge, eais.ei-a6.large, eais.ei-a6.medium.

securityGroupId String

The ID of the security group.

status String

The status of the resource. Valid values: Attaching, Available, Detaching, InUse, Starting, Unavailable.

vswitchId String

The ID of the vswitch.

Import

EAIS Instance can be imported using the id, e.g.

 $ pulumi import alicloud:eais/instance:Instance example <id>

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.