1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. eais
  5. Instance
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.eais.Instance

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

    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:

    InstanceType string
    EAIS instance type
    SecurityGroupId string
    Security group ID
    VswitchId string
    Switch ID.
    Category string
    EAIS instance category, valid values: eais, jupyter, ei, default is eais.
    EnvironmentVars List<Pulumi.AliCloud.Eais.Inputs.InstanceEnvironmentVar>
    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.

    Deprecated: Field 'force' is deprecated and will be removed in a future release.

    Image string
    EAIS instance image.
    InstanceName string
    Name of the instance
    ResourceGroupId string
    The ID of the resource group
    Status string
    The status of the resource
    Tags Dictionary<string, string>
    The tags.
    InstanceType string
    EAIS instance type
    SecurityGroupId string
    Security group ID
    VswitchId string
    Switch ID.
    Category string
    EAIS instance category, valid values: eais, jupyter, ei, default is eais.
    EnvironmentVars []InstanceEnvironmentVarArgs
    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.

    Deprecated: Field 'force' is deprecated and will be removed in a future release.

    Image string
    EAIS instance image.
    InstanceName string
    Name of the instance
    ResourceGroupId string
    The ID of the resource group
    Status string
    The status of the resource
    Tags map[string]string
    The tags.
    instanceType String
    EAIS instance type
    securityGroupId String
    Security group ID
    vswitchId String
    Switch ID.
    category String
    EAIS instance category, valid values: eais, jupyter, ei, default is eais.
    environmentVars List<InstanceEnvironmentVar>
    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.

    Deprecated: Field 'force' is deprecated and will be removed in a future release.

    image String
    EAIS instance image.
    instanceName String
    Name of the instance
    resourceGroupId String
    The ID of the resource group
    status String
    The status of the resource
    tags Map<String,String>
    The tags.
    instanceType string
    EAIS instance type
    securityGroupId string
    Security group ID
    vswitchId string
    Switch ID.
    category string
    EAIS instance category, valid values: eais, jupyter, ei, default is eais.
    environmentVars InstanceEnvironmentVar[]
    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.

    Deprecated: Field 'force' is deprecated and will be removed in a future release.

    image string
    EAIS instance image.
    instanceName string
    Name of the instance
    resourceGroupId string
    The ID of the resource group
    status string
    The status of the resource
    tags {[key: string]: string}
    The tags.
    instance_type str
    EAIS instance type
    security_group_id str
    Security group ID
    vswitch_id str
    Switch ID.
    category str
    EAIS instance category, valid values: eais, jupyter, ei, default is eais.
    environment_vars Sequence[InstanceEnvironmentVarArgs]
    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.

    Deprecated: Field 'force' is deprecated and will be removed in a future release.

    image str
    EAIS instance image.
    instance_name str
    Name of the instance
    resource_group_id str
    The ID of the resource group
    status str
    The status of the resource
    tags Mapping[str, str]
    The tags.
    instanceType String
    EAIS instance type
    securityGroupId String
    Security group ID
    vswitchId String
    Switch ID.
    category String
    EAIS instance category, valid values: eais, jupyter, ei, default is eais.
    environmentVars 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.

    Deprecated: Field 'force' is deprecated and will be removed in a future release.

    image String
    EAIS instance image.
    instanceName String
    Name of the instance
    resourceGroupId String
    The ID of the resource group
    status String
    The status of the resource
    tags Map<String>
    The tags.

    Outputs

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

    CreateTime string
    The creation time of the resource
    Id string
    The provider-assigned unique ID for this managed resource.
    RegionId string
    Region ID
    CreateTime string
    The creation time of the resource
    Id string
    The provider-assigned unique ID for this managed resource.
    RegionId string
    Region ID
    createTime String
    The creation time of the resource
    id String
    The provider-assigned unique ID for this managed resource.
    regionId String
    Region ID
    createTime string
    The creation time of the resource
    id string
    The provider-assigned unique ID for this managed resource.
    regionId 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
    createTime String
    The creation time of the resource
    id String
    The provider-assigned unique ID for this managed resource.
    regionId 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.
    The following state arguments are supported:
    Category string
    EAIS instance category, valid values: eais, jupyter, ei, default is eais.
    CreateTime string
    The creation time of the resource
    EnvironmentVars List<Pulumi.AliCloud.Eais.Inputs.InstanceEnvironmentVar>
    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.

    Deprecated: Field 'force' is deprecated and will be removed in a future release.

    Image string
    EAIS instance image.
    InstanceName string
    Name of the instance
    InstanceType string
    EAIS instance type
    RegionId string
    Region ID
    ResourceGroupId string
    The ID of the resource group
    SecurityGroupId string
    Security group ID
    Status string
    The status of the resource
    Tags Dictionary<string, string>
    The tags.
    VswitchId string
    Switch ID.
    Category string
    EAIS instance category, valid values: eais, jupyter, ei, default is eais.
    CreateTime string
    The creation time of the resource
    EnvironmentVars []InstanceEnvironmentVarArgs
    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.

    Deprecated: Field 'force' is deprecated and will be removed in a future release.

    Image string
    EAIS instance image.
    InstanceName string
    Name of the instance
    InstanceType string
    EAIS instance type
    RegionId string
    Region ID
    ResourceGroupId string
    The ID of the resource group
    SecurityGroupId string
    Security group ID
    Status string
    The status of the resource
    Tags map[string]string
    The tags.
    VswitchId string
    Switch ID.
    category String
    EAIS instance category, valid values: eais, jupyter, ei, default is eais.
    createTime String
    The creation time of the resource
    environmentVars List<InstanceEnvironmentVar>
    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.

    Deprecated: Field 'force' is deprecated and will be removed in a future release.

    image String
    EAIS instance image.
    instanceName String
    Name of the instance
    instanceType String
    EAIS instance type
    regionId String
    Region ID
    resourceGroupId String
    The ID of the resource group
    securityGroupId String
    Security group ID
    status String
    The status of the resource
    tags Map<String,String>
    The tags.
    vswitchId String
    Switch ID.
    category string
    EAIS instance category, valid values: eais, jupyter, ei, default is eais.
    createTime string
    The creation time of the resource
    environmentVars InstanceEnvironmentVar[]
    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.

    Deprecated: Field 'force' is deprecated and will be removed in a future release.

    image string
    EAIS instance image.
    instanceName string
    Name of the instance
    instanceType string
    EAIS instance type
    regionId string
    Region ID
    resourceGroupId string
    The ID of the resource group
    securityGroupId string
    Security group ID
    status string
    The status of the resource
    tags {[key: string]: string}
    The tags.
    vswitchId string
    Switch ID.
    category str
    EAIS instance category, valid values: eais, jupyter, ei, default is eais.
    create_time str
    The creation time of the resource
    environment_vars Sequence[InstanceEnvironmentVarArgs]
    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.

    Deprecated: Field 'force' is deprecated and will be removed in a future release.

    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_id str
    The ID of the resource group
    security_group_id str
    Security group ID
    status str
    The status of the resource
    tags Mapping[str, str]
    The tags.
    vswitch_id str
    Switch ID.
    category String
    EAIS instance category, valid values: eais, jupyter, ei, default is eais.
    createTime String
    The creation time of the resource
    environmentVars 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.

    Deprecated: Field 'force' is deprecated and will be removed in a future release.

    image String
    EAIS instance image.
    instanceName String
    Name of the instance
    instanceType String
    EAIS instance type
    regionId String
    Region ID
    resourceGroupId String
    The ID of the resource group
    securityGroupId String
    Security group ID
    status String
    The status of the resource
    tags Map<String>
    The tags.
    vswitchId String
    Switch ID.

    Supporting Types

    InstanceEnvironmentVar, InstanceEnvironmentVarArgs

    Key string
    Keys for environment variables
    Value string
    Values of environment variables
    Key string
    Keys for environment variables
    Value string
    Values of environment variables
    key String
    Keys for environment variables
    value String
    Values of environment variables
    key string
    Keys for environment variables
    value string
    Values of environment variables
    key str
    Keys for environment variables
    value str
    Values of environment variables
    key String
    Keys for environment variables
    value String
    Values of environment variables

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi