alicloud.simpleapplicationserver.CustomImage

Provides a Simple Application Server Custom Image resource.

For information about Simple Application Server Custom Image and how to use it, see What is Custom Image.

NOTE: Available in v1.143.0+.

Create CustomImage Resource

new CustomImage(name: string, args: CustomImageArgs, opts?: CustomResourceOptions);
@overload
def CustomImage(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                custom_image_name: Optional[str] = None,
                description: Optional[str] = None,
                instance_id: Optional[str] = None,
                status: Optional[str] = None,
                system_snapshot_id: Optional[str] = None)
@overload
def CustomImage(resource_name: str,
                args: CustomImageArgs,
                opts: Optional[ResourceOptions] = None)
func NewCustomImage(ctx *Context, name string, args CustomImageArgs, opts ...ResourceOption) (*CustomImage, error)
public CustomImage(string name, CustomImageArgs args, CustomResourceOptions? opts = null)
public CustomImage(String name, CustomImageArgs args)
public CustomImage(String name, CustomImageArgs args, CustomResourceOptions options)
type: alicloud:simpleapplicationserver:CustomImage
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

CustomImageName string

The name of the resource. The name must be 2 to 128 characters in length. It must start with a letter or a number. It can contain letters, digits, colons (:), underscores (_) and hyphens (-).

InstanceId string

The ID of the instance.

SystemSnapshotId string

The ID of the system snapshot.

Description string

The description of the Custom Image.

Status string

The Shared status of the Custom Image. Valid values: Share, UnShare.

CustomImageName string

The name of the resource. The name must be 2 to 128 characters in length. It must start with a letter or a number. It can contain letters, digits, colons (:), underscores (_) and hyphens (-).

InstanceId string

The ID of the instance.

SystemSnapshotId string

The ID of the system snapshot.

Description string

The description of the Custom Image.

Status string

The Shared status of the Custom Image. Valid values: Share, UnShare.

customImageName String

The name of the resource. The name must be 2 to 128 characters in length. It must start with a letter or a number. It can contain letters, digits, colons (:), underscores (_) and hyphens (-).

instanceId String

The ID of the instance.

systemSnapshotId String

The ID of the system snapshot.

description String

The description of the Custom Image.

status String

The Shared status of the Custom Image. Valid values: Share, UnShare.

customImageName string

The name of the resource. The name must be 2 to 128 characters in length. It must start with a letter or a number. It can contain letters, digits, colons (:), underscores (_) and hyphens (-).

instanceId string

The ID of the instance.

systemSnapshotId string

The ID of the system snapshot.

description string

The description of the Custom Image.

status string

The Shared status of the Custom Image. Valid values: Share, UnShare.

custom_image_name str

The name of the resource. The name must be 2 to 128 characters in length. It must start with a letter or a number. It can contain letters, digits, colons (:), underscores (_) and hyphens (-).

instance_id str

The ID of the instance.

system_snapshot_id str

The ID of the system snapshot.

description str

The description of the Custom Image.

status str

The Shared status of the Custom Image. Valid values: Share, UnShare.

customImageName String

The name of the resource. The name must be 2 to 128 characters in length. It must start with a letter or a number. It can contain letters, digits, colons (:), underscores (_) and hyphens (-).

instanceId String

The ID of the instance.

systemSnapshotId String

The ID of the system snapshot.

description String

The description of the Custom Image.

status String

The Shared status of the Custom Image. Valid values: Share, UnShare.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing CustomImage Resource

Get an existing CustomImage 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?: CustomImageState, opts?: CustomResourceOptions): CustomImage
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        custom_image_name: Optional[str] = None,
        description: Optional[str] = None,
        instance_id: Optional[str] = None,
        status: Optional[str] = None,
        system_snapshot_id: Optional[str] = None) -> CustomImage
func GetCustomImage(ctx *Context, name string, id IDInput, state *CustomImageState, opts ...ResourceOption) (*CustomImage, error)
public static CustomImage Get(string name, Input<string> id, CustomImageState? state, CustomResourceOptions? opts = null)
public static CustomImage get(String name, Output<String> id, CustomImageState 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:
CustomImageName string

The name of the resource. The name must be 2 to 128 characters in length. It must start with a letter or a number. It can contain letters, digits, colons (:), underscores (_) and hyphens (-).

Description string

The description of the Custom Image.

InstanceId string

The ID of the instance.

Status string

The Shared status of the Custom Image. Valid values: Share, UnShare.

SystemSnapshotId string

The ID of the system snapshot.

CustomImageName string

The name of the resource. The name must be 2 to 128 characters in length. It must start with a letter or a number. It can contain letters, digits, colons (:), underscores (_) and hyphens (-).

Description string

The description of the Custom Image.

InstanceId string

The ID of the instance.

Status string

The Shared status of the Custom Image. Valid values: Share, UnShare.

SystemSnapshotId string

The ID of the system snapshot.

customImageName String

The name of the resource. The name must be 2 to 128 characters in length. It must start with a letter or a number. It can contain letters, digits, colons (:), underscores (_) and hyphens (-).

description String

The description of the Custom Image.

instanceId String

The ID of the instance.

status String

The Shared status of the Custom Image. Valid values: Share, UnShare.

systemSnapshotId String

The ID of the system snapshot.

customImageName string

The name of the resource. The name must be 2 to 128 characters in length. It must start with a letter or a number. It can contain letters, digits, colons (:), underscores (_) and hyphens (-).

description string

The description of the Custom Image.

instanceId string

The ID of the instance.

status string

The Shared status of the Custom Image. Valid values: Share, UnShare.

systemSnapshotId string

The ID of the system snapshot.

custom_image_name str

The name of the resource. The name must be 2 to 128 characters in length. It must start with a letter or a number. It can contain letters, digits, colons (:), underscores (_) and hyphens (-).

description str

The description of the Custom Image.

instance_id str

The ID of the instance.

status str

The Shared status of the Custom Image. Valid values: Share, UnShare.

system_snapshot_id str

The ID of the system snapshot.

customImageName String

The name of the resource. The name must be 2 to 128 characters in length. It must start with a letter or a number. It can contain letters, digits, colons (:), underscores (_) and hyphens (-).

description String

The description of the Custom Image.

instanceId String

The ID of the instance.

status String

The Shared status of the Custom Image. Valid values: Share, UnShare.

systemSnapshotId String

The ID of the system snapshot.

Import

Simple Application Server Custom Image can be imported using the id, e.g.

 $ pulumi import alicloud:simpleapplicationserver/customImage:CustomImage 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.