alicloud.eais.Instance
Explore with Pulumi AI
Import
EAIS Instance can be imported using the id, e.g.
$ pulumi import alicloud:eais/instance:Instance example <id>
Create Instance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);
@overload
def Instance(resource_name: str,
args: InstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Instance(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_type: Optional[str] = None,
security_group_id: Optional[str] = None,
vswitch_id: Optional[str] = None,
category: Optional[str] = None,
environment_vars: Optional[Sequence[InstanceEnvironmentVarArgs]] = None,
force: Optional[bool] = None,
image: Optional[str] = None,
instance_name: Optional[str] = None,
resource_group_id: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleinstanceResourceResourceFromEaisinstance = new AliCloud.Eais.Instance("exampleinstanceResourceResourceFromEaisinstance", new()
{
InstanceType = "string",
SecurityGroupId = "string",
VswitchId = "string",
Category = "string",
EnvironmentVars = new[]
{
new AliCloud.Eais.Inputs.InstanceEnvironmentVarArgs
{
Key = "string",
Value = "string",
},
},
Image = "string",
InstanceName = "string",
ResourceGroupId = "string",
Status = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := eais.NewInstance(ctx, "exampleinstanceResourceResourceFromEaisinstance", &eais.InstanceArgs{
InstanceType: pulumi.String("string"),
SecurityGroupId: pulumi.String("string"),
VswitchId: pulumi.String("string"),
Category: pulumi.String("string"),
EnvironmentVars: eais.InstanceEnvironmentVarArray{
&eais.InstanceEnvironmentVarArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Image: pulumi.String("string"),
InstanceName: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
Status: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var exampleinstanceResourceResourceFromEaisinstance = new com.pulumi.alicloud.eais.Instance("exampleinstanceResourceResourceFromEaisinstance", com.pulumi.alicloud.eais.InstanceArgs.builder()
.instanceType("string")
.securityGroupId("string")
.vswitchId("string")
.category("string")
.environmentVars(InstanceEnvironmentVarArgs.builder()
.key("string")
.value("string")
.build())
.image("string")
.instanceName("string")
.resourceGroupId("string")
.status("string")
.tags(Map.of("string", "string"))
.build());
exampleinstance_resource_resource_from_eaisinstance = alicloud.eais.Instance("exampleinstanceResourceResourceFromEaisinstance",
instance_type="string",
security_group_id="string",
vswitch_id="string",
category="string",
environment_vars=[{
"key": "string",
"value": "string",
}],
image="string",
instance_name="string",
resource_group_id="string",
status="string",
tags={
"string": "string",
})
const exampleinstanceResourceResourceFromEaisinstance = new alicloud.eais.Instance("exampleinstanceResourceResourceFromEaisinstance", {
instanceType: "string",
securityGroupId: "string",
vswitchId: "string",
category: "string",
environmentVars: [{
key: "string",
value: "string",
}],
image: "string",
instanceName: "string",
resourceGroupId: "string",
status: "string",
tags: {
string: "string",
},
});
type: alicloud:eais:Instance
properties:
category: string
environmentVars:
- key: string
value: string
image: string
instanceName: string
instanceType: string
resourceGroupId: string
securityGroupId: string
status: string
tags:
string: string
vswitchId: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Instance resource accepts the following input properties:
- Instance
Type string - EAIS instance type
- Security
Group stringId - Security group ID
- Vswitch
Id string - Switch ID.
- Category string
- EAIS instance category, valid values:
eais
,jupyter
,ei
, default iseais
. - Environment
Vars List<Pulumi.Ali Cloud. Eais. Inputs. Instance Environment Var> - Setting environment variables in eais instance on Initialization See
environment_var
below. - Force bool
- Whether to force the deletion when the instance status does not meet the deletion conditions.
- Image string
- EAIS instance image.
- Instance
Name string - Name of the instance
- Resource
Group stringId - The ID of the resource group
- Status string
- The status of the resource
- Dictionary<string, string>
- The tags.
- Instance
Type string - EAIS instance type
- Security
Group stringId - Security group ID
- Vswitch
Id string - Switch ID.
- Category string
- EAIS instance category, valid values:
eais
,jupyter
,ei
, default iseais
. - Environment
Vars []InstanceEnvironment Var Args - Setting environment variables in eais instance on Initialization See
environment_var
below. - Force bool
- Whether to force the deletion when the instance status does not meet the deletion conditions.
- Image string
- EAIS instance image.
- Instance
Name string - Name of the instance
- Resource
Group stringId - The ID of the resource group
- Status string
- The status of the resource
- map[string]string
- The tags.
- instance
Type String - EAIS instance type
- security
Group StringId - Security group ID
- vswitch
Id String - Switch ID.
- category String
- EAIS instance category, valid values:
eais
,jupyter
,ei
, default iseais
. - environment
Vars List<InstanceEnvironment Var> - Setting environment variables in eais instance on Initialization See
environment_var
below. - force Boolean
- Whether to force the deletion when the instance status does not meet the deletion conditions.
- image String
- EAIS instance image.
- instance
Name String - Name of the instance
- resource
Group StringId - The ID of the resource group
- status String
- The status of the resource
- Map<String,String>
- The tags.
- instance
Type string - EAIS instance type
- security
Group stringId - Security group ID
- vswitch
Id string - Switch ID.
- category string
- EAIS instance category, valid values:
eais
,jupyter
,ei
, default iseais
. - environment
Vars InstanceEnvironment Var[] - Setting environment variables in eais instance on Initialization See
environment_var
below. - force boolean
- Whether to force the deletion when the instance status does not meet the deletion conditions.
- image string
- EAIS instance image.
- instance
Name string - Name of the instance
- resource
Group stringId - The ID of the resource group
- status string
- The status of the resource
- {[key: string]: string}
- The tags.
- instance_
type str - EAIS instance type
- security_
group_ strid - Security group ID
- vswitch_
id str - Switch ID.
- category str
- EAIS instance category, valid values:
eais
,jupyter
,ei
, default iseais
. - environment_
vars Sequence[InstanceEnvironment Var Args] - Setting environment variables in eais instance on Initialization See
environment_var
below. - force bool
- Whether to force the deletion when the instance status does not meet the deletion conditions.
- image str
- EAIS instance image.
- instance_
name str - Name of the instance
- resource_
group_ strid - The ID of the resource group
- status str
- The status of the resource
- Mapping[str, str]
- The tags.
- instance
Type String - EAIS instance type
- security
Group StringId - Security group ID
- vswitch
Id String - Switch ID.
- category String
- EAIS instance category, valid values:
eais
,jupyter
,ei
, default iseais
. - environment
Vars List<Property Map> - Setting environment variables in eais instance on Initialization See
environment_var
below. - force Boolean
- Whether to force the deletion when the instance status does not meet the deletion conditions.
- image String
- EAIS instance image.
- instance
Name String - Name of the instance
- resource
Group StringId - The ID of the resource group
- status String
- The status of the resource
- Map<String>
- The tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Create
Time string - The creation time of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Region
Id string - Region ID
- Create
Time string - The creation time of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Region
Id string - Region ID
- create
Time String - The creation time of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- region
Id String - Region ID
- create
Time string - The creation time of the resource
- id string
- The provider-assigned unique ID for this managed resource.
- region
Id string - Region ID
- create_
time str - The creation time of the resource
- id str
- The provider-assigned unique ID for this managed resource.
- region_
id str - Region ID
- create
Time String - The creation time of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- region
Id String - Region ID
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,
category: Optional[str] = None,
create_time: Optional[str] = None,
environment_vars: Optional[Sequence[InstanceEnvironmentVarArgs]] = None,
force: Optional[bool] = None,
image: Optional[str] = None,
instance_name: Optional[str] = None,
instance_type: Optional[str] = None,
region_id: Optional[str] = None,
resource_group_id: Optional[str] = None,
security_group_id: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, 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)
resources: _: type: alicloud:eais:Instance 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.
- Category string
- EAIS instance category, valid values:
eais
,jupyter
,ei
, default iseais
. - Create
Time string - The creation time of the resource
- Environment
Vars List<Pulumi.Ali Cloud. Eais. Inputs. Instance Environment Var> - Setting environment variables in eais instance on Initialization See
environment_var
below. - Force bool
- Whether to force the deletion when the instance status does not meet the deletion conditions.
- Image string
- EAIS instance image.
- Instance
Name string - Name of the instance
- Instance
Type string - EAIS instance type
- Region
Id string - Region ID
- Resource
Group stringId - The ID of the resource group
- Security
Group stringId - Security group ID
- Status string
- The status of the resource
- Dictionary<string, string>
- The tags.
- Vswitch
Id string - Switch ID.
- Category string
- EAIS instance category, valid values:
eais
,jupyter
,ei
, default iseais
. - Create
Time string - The creation time of the resource
- Environment
Vars []InstanceEnvironment Var Args - Setting environment variables in eais instance on Initialization See
environment_var
below. - Force bool
- Whether to force the deletion when the instance status does not meet the deletion conditions.
- Image string
- EAIS instance image.
- Instance
Name string - Name of the instance
- Instance
Type string - EAIS instance type
- Region
Id string - Region ID
- Resource
Group stringId - The ID of the resource group
- Security
Group stringId - Security group ID
- Status string
- The status of the resource
- map[string]string
- The tags.
- Vswitch
Id string - Switch ID.
- category String
- EAIS instance category, valid values:
eais
,jupyter
,ei
, default iseais
. - create
Time String - The creation time of the resource
- environment
Vars List<InstanceEnvironment Var> - Setting environment variables in eais instance on Initialization See
environment_var
below. - force Boolean
- Whether to force the deletion when the instance status does not meet the deletion conditions.
- image String
- EAIS instance image.
- instance
Name String - Name of the instance
- instance
Type String - EAIS instance type
- region
Id String - Region ID
- resource
Group StringId - The ID of the resource group
- security
Group StringId - Security group ID
- status String
- The status of the resource
- Map<String,String>
- The tags.
- vswitch
Id String - Switch ID.
- category string
- EAIS instance category, valid values:
eais
,jupyter
,ei
, default iseais
. - create
Time string - The creation time of the resource
- environment
Vars InstanceEnvironment Var[] - Setting environment variables in eais instance on Initialization See
environment_var
below. - force boolean
- Whether to force the deletion when the instance status does not meet the deletion conditions.
- image string
- EAIS instance image.
- instance
Name string - Name of the instance
- instance
Type string - EAIS instance type
- region
Id string - Region ID
- resource
Group stringId - The ID of the resource group
- security
Group stringId - Security group ID
- status string
- The status of the resource
- {[key: string]: string}
- The tags.
- vswitch
Id string - Switch ID.
- category str
- EAIS instance category, valid values:
eais
,jupyter
,ei
, default iseais
. - create_
time str - The creation time of the resource
- environment_
vars Sequence[InstanceEnvironment Var Args] - Setting environment variables in eais instance on Initialization See
environment_var
below. - force bool
- Whether to force the deletion when the instance status does not meet the deletion conditions.
- image str
- EAIS instance image.
- instance_
name str - Name of the instance
- instance_
type str - EAIS instance type
- region_
id str - Region ID
- resource_
group_ strid - The ID of the resource group
- security_
group_ strid - Security group ID
- status str
- The status of the resource
- Mapping[str, str]
- The tags.
- vswitch_
id str - Switch ID.
- category String
- EAIS instance category, valid values:
eais
,jupyter
,ei
, default iseais
. - create
Time String - The creation time of the resource
- environment
Vars List<Property Map> - Setting environment variables in eais instance on Initialization See
environment_var
below. - force Boolean
- Whether to force the deletion when the instance status does not meet the deletion conditions.
- image String
- EAIS instance image.
- instance
Name String - Name of the instance
- instance
Type String - EAIS instance type
- region
Id String - Region ID
- resource
Group StringId - The ID of the resource group
- security
Group StringId - Security group ID
- status String
- The status of the resource
- Map<String>
- The tags.
- vswitch
Id String - Switch ID.
Supporting Types
InstanceEnvironmentVar, InstanceEnvironmentVarArgs
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.