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:
- Instance
Type 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
.- Security
Group stringId The ID of the security group.
- Vswitch
Id 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
andfalse
.- Instance
Name string The name of the instance.
- Instance
Type 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
.- Security
Group stringId The ID of the security group.
- Vswitch
Id 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
andfalse
.- Instance
Name string The name of the instance.
- instance
Type 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
.- security
Group StringId The ID of the security group.
- vswitch
Id 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
andfalse
.- instance
Name String The name of the instance.
- instance
Type 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
.- security
Group stringId The ID of the security group.
- vswitch
Id 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
andfalse
.- instance
Name 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_ strid 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
andfalse
.- instance_
name str The name of the instance.
- instance
Type 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
.- security
Group StringId The ID of the security group.
- vswitch
Id 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
andfalse
.- instance
Name 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:
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.
- Force bool
Whether to force deletion when the instance status does not meet the deletion conditions. Valid values:
true
andfalse
.- Instance
Name string The name of the instance.
- Instance
Type 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
.- Security
Group stringId The ID of the security group.
- Status string
The status of the resource. Valid values:
Attaching
,Available
,Detaching
,InUse
,Starting
,Unavailable
.- Vswitch
Id 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
andfalse
.- Instance
Name string The name of the instance.
- Instance
Type 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
.- Security
Group stringId The ID of the security group.
- Status string
The status of the resource. Valid values:
Attaching
,Available
,Detaching
,InUse
,Starting
,Unavailable
.- Vswitch
Id 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
andfalse
.- instance
Name String The name of the instance.
- instance
Type 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
.- security
Group StringId The ID of the security group.
- status String
The status of the resource. Valid values:
Attaching
,Available
,Detaching
,InUse
,Starting
,Unavailable
.- vswitch
Id 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
andfalse
.- instance
Name string The name of the instance.
- instance
Type 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
.- security
Group stringId The ID of the security group.
- status string
The status of the resource. Valid values:
Attaching
,Available
,Detaching
,InUse
,Starting
,Unavailable
.- vswitch
Id 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
andfalse
.- 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_ strid 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
andfalse
.- instance
Name String The name of the instance.
- instance
Type 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
.- security
Group StringId The ID of the security group.
- status String
The status of the resource. Valid values:
Attaching
,Available
,Detaching
,InUse
,Starting
,Unavailable
.- vswitch
Id 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.