simpleapplicationserver

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.1

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type CustomImage

type CustomImage struct {
	pulumi.CustomResourceState

	// 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 (-).
	CustomImageName pulumi.StringOutput `pulumi:"customImageName"`
	// The description of the Custom Image.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The ID of the instance.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// The Shared status of the Custom Image. Valid values: `Share`, `UnShare`.
	Status pulumi.StringPtrOutput `pulumi:"status"`
	// The ID of the system snapshot.
	SystemSnapshotId pulumi.StringOutput `pulumi:"systemSnapshotId"`
}

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](https://www.alibabacloud.com/help/zh/doc-detail/333535.htm).

> **NOTE:** Available in v1.143.0+.

## Import

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

```sh

$ pulumi import alicloud:simpleapplicationserver/customImage:CustomImage example <id>

```

func GetCustomImage

func GetCustomImage(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CustomImageState, opts ...pulumi.ResourceOption) (*CustomImage, error)

GetCustomImage gets an existing CustomImage resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCustomImage

func NewCustomImage(ctx *pulumi.Context,
	name string, args *CustomImageArgs, opts ...pulumi.ResourceOption) (*CustomImage, error)

NewCustomImage registers a new resource with the given unique name, arguments, and options.

func (*CustomImage) ElementType

func (*CustomImage) ElementType() reflect.Type

func (*CustomImage) ToCustomImageOutput

func (i *CustomImage) ToCustomImageOutput() CustomImageOutput

func (*CustomImage) ToCustomImageOutputWithContext

func (i *CustomImage) ToCustomImageOutputWithContext(ctx context.Context) CustomImageOutput

type CustomImageArgs

type CustomImageArgs struct {
	// 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 (-).
	CustomImageName pulumi.StringInput
	// The description of the Custom Image.
	Description pulumi.StringPtrInput
	// The ID of the instance.
	InstanceId pulumi.StringInput
	// The Shared status of the Custom Image. Valid values: `Share`, `UnShare`.
	Status pulumi.StringPtrInput
	// The ID of the system snapshot.
	SystemSnapshotId pulumi.StringInput
}

The set of arguments for constructing a CustomImage resource.

func (CustomImageArgs) ElementType

func (CustomImageArgs) ElementType() reflect.Type

type CustomImageArray

type CustomImageArray []CustomImageInput

func (CustomImageArray) ElementType

func (CustomImageArray) ElementType() reflect.Type

func (CustomImageArray) ToCustomImageArrayOutput

func (i CustomImageArray) ToCustomImageArrayOutput() CustomImageArrayOutput

func (CustomImageArray) ToCustomImageArrayOutputWithContext

func (i CustomImageArray) ToCustomImageArrayOutputWithContext(ctx context.Context) CustomImageArrayOutput

type CustomImageArrayInput

type CustomImageArrayInput interface {
	pulumi.Input

	ToCustomImageArrayOutput() CustomImageArrayOutput
	ToCustomImageArrayOutputWithContext(context.Context) CustomImageArrayOutput
}

CustomImageArrayInput is an input type that accepts CustomImageArray and CustomImageArrayOutput values. You can construct a concrete instance of `CustomImageArrayInput` via:

CustomImageArray{ CustomImageArgs{...} }

type CustomImageArrayOutput

type CustomImageArrayOutput struct{ *pulumi.OutputState }

func (CustomImageArrayOutput) ElementType

func (CustomImageArrayOutput) ElementType() reflect.Type

func (CustomImageArrayOutput) Index

func (CustomImageArrayOutput) ToCustomImageArrayOutput

func (o CustomImageArrayOutput) ToCustomImageArrayOutput() CustomImageArrayOutput

func (CustomImageArrayOutput) ToCustomImageArrayOutputWithContext

func (o CustomImageArrayOutput) ToCustomImageArrayOutputWithContext(ctx context.Context) CustomImageArrayOutput

type CustomImageInput

type CustomImageInput interface {
	pulumi.Input

	ToCustomImageOutput() CustomImageOutput
	ToCustomImageOutputWithContext(ctx context.Context) CustomImageOutput
}

type CustomImageMap

type CustomImageMap map[string]CustomImageInput

func (CustomImageMap) ElementType

func (CustomImageMap) ElementType() reflect.Type

func (CustomImageMap) ToCustomImageMapOutput

func (i CustomImageMap) ToCustomImageMapOutput() CustomImageMapOutput

func (CustomImageMap) ToCustomImageMapOutputWithContext

func (i CustomImageMap) ToCustomImageMapOutputWithContext(ctx context.Context) CustomImageMapOutput

type CustomImageMapInput

type CustomImageMapInput interface {
	pulumi.Input

	ToCustomImageMapOutput() CustomImageMapOutput
	ToCustomImageMapOutputWithContext(context.Context) CustomImageMapOutput
}

CustomImageMapInput is an input type that accepts CustomImageMap and CustomImageMapOutput values. You can construct a concrete instance of `CustomImageMapInput` via:

CustomImageMap{ "key": CustomImageArgs{...} }

type CustomImageMapOutput

type CustomImageMapOutput struct{ *pulumi.OutputState }

func (CustomImageMapOutput) ElementType

func (CustomImageMapOutput) ElementType() reflect.Type

func (CustomImageMapOutput) MapIndex

func (CustomImageMapOutput) ToCustomImageMapOutput

func (o CustomImageMapOutput) ToCustomImageMapOutput() CustomImageMapOutput

func (CustomImageMapOutput) ToCustomImageMapOutputWithContext

func (o CustomImageMapOutput) ToCustomImageMapOutputWithContext(ctx context.Context) CustomImageMapOutput

type CustomImageOutput

type CustomImageOutput struct{ *pulumi.OutputState }

func (CustomImageOutput) CustomImageName

func (o CustomImageOutput) CustomImageName() pulumi.StringOutput

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 (-).

func (CustomImageOutput) Description

func (o CustomImageOutput) Description() pulumi.StringPtrOutput

The description of the Custom Image.

func (CustomImageOutput) ElementType

func (CustomImageOutput) ElementType() reflect.Type

func (CustomImageOutput) InstanceId

func (o CustomImageOutput) InstanceId() pulumi.StringOutput

The ID of the instance.

func (CustomImageOutput) Status

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

func (CustomImageOutput) SystemSnapshotId

func (o CustomImageOutput) SystemSnapshotId() pulumi.StringOutput

The ID of the system snapshot.

func (CustomImageOutput) ToCustomImageOutput

func (o CustomImageOutput) ToCustomImageOutput() CustomImageOutput

func (CustomImageOutput) ToCustomImageOutputWithContext

func (o CustomImageOutput) ToCustomImageOutputWithContext(ctx context.Context) CustomImageOutput

type CustomImageState

type CustomImageState struct {
	// 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 (-).
	CustomImageName pulumi.StringPtrInput
	// The description of the Custom Image.
	Description pulumi.StringPtrInput
	// The ID of the instance.
	InstanceId pulumi.StringPtrInput
	// The Shared status of the Custom Image. Valid values: `Share`, `UnShare`.
	Status pulumi.StringPtrInput
	// The ID of the system snapshot.
	SystemSnapshotId pulumi.StringPtrInput
}

func (CustomImageState) ElementType

func (CustomImageState) ElementType() reflect.Type

type FirewallRule

type FirewallRule struct {
	pulumi.CustomResourceState

	// The ID of the firewall rule.
	FirewallRuleId pulumi.StringOutput `pulumi:"firewallRuleId"`
	// Alibaba Cloud simple application server instance ID.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// The port range. Valid values of port numbers: `1` to `65535`. Specify a port range in the format of `<start port number>/<end port number>`. Example: `1024/1055`, which indicates the port range of `1024` through `1055`.
	Port pulumi.StringOutput `pulumi:"port"`
	// The remarks of the firewall rule.
	Remark pulumi.StringPtrOutput `pulumi:"remark"`
	// The transport layer protocol. Valid values: `Tcp`, `Udp`, `TcpAndUdp`.
	RuleProtocol pulumi.StringOutput `pulumi:"ruleProtocol"`
}

Provides a Simple Application Server Firewall Rule resource.

For information about Simple Application Server Firewall Rule and how to use it, see [What is Firewall Rule](https://www.alibabacloud.com/help/doc-detail/190449.htm).

> **NOTE:** Available in v1.143.0+.

## Import

Simple Application Server Firewall Rule can be imported using the id, e.g.

```sh

$ pulumi import alicloud:simpleapplicationserver/firewallRule:FirewallRule example <instance_id>:<firewall_rule_id>

```

func GetFirewallRule

func GetFirewallRule(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FirewallRuleState, opts ...pulumi.ResourceOption) (*FirewallRule, error)

GetFirewallRule gets an existing FirewallRule resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFirewallRule

func NewFirewallRule(ctx *pulumi.Context,
	name string, args *FirewallRuleArgs, opts ...pulumi.ResourceOption) (*FirewallRule, error)

NewFirewallRule registers a new resource with the given unique name, arguments, and options.

func (*FirewallRule) ElementType

func (*FirewallRule) ElementType() reflect.Type

func (*FirewallRule) ToFirewallRuleOutput

func (i *FirewallRule) ToFirewallRuleOutput() FirewallRuleOutput

func (*FirewallRule) ToFirewallRuleOutputWithContext

func (i *FirewallRule) ToFirewallRuleOutputWithContext(ctx context.Context) FirewallRuleOutput

type FirewallRuleArgs

type FirewallRuleArgs struct {
	// Alibaba Cloud simple application server instance ID.
	InstanceId pulumi.StringInput
	// The port range. Valid values of port numbers: `1` to `65535`. Specify a port range in the format of `<start port number>/<end port number>`. Example: `1024/1055`, which indicates the port range of `1024` through `1055`.
	Port pulumi.StringInput
	// The remarks of the firewall rule.
	Remark pulumi.StringPtrInput
	// The transport layer protocol. Valid values: `Tcp`, `Udp`, `TcpAndUdp`.
	RuleProtocol pulumi.StringInput
}

The set of arguments for constructing a FirewallRule resource.

func (FirewallRuleArgs) ElementType

func (FirewallRuleArgs) ElementType() reflect.Type

type FirewallRuleArray

type FirewallRuleArray []FirewallRuleInput

func (FirewallRuleArray) ElementType

func (FirewallRuleArray) ElementType() reflect.Type

func (FirewallRuleArray) ToFirewallRuleArrayOutput

func (i FirewallRuleArray) ToFirewallRuleArrayOutput() FirewallRuleArrayOutput

func (FirewallRuleArray) ToFirewallRuleArrayOutputWithContext

func (i FirewallRuleArray) ToFirewallRuleArrayOutputWithContext(ctx context.Context) FirewallRuleArrayOutput

type FirewallRuleArrayInput

type FirewallRuleArrayInput interface {
	pulumi.Input

	ToFirewallRuleArrayOutput() FirewallRuleArrayOutput
	ToFirewallRuleArrayOutputWithContext(context.Context) FirewallRuleArrayOutput
}

FirewallRuleArrayInput is an input type that accepts FirewallRuleArray and FirewallRuleArrayOutput values. You can construct a concrete instance of `FirewallRuleArrayInput` via:

FirewallRuleArray{ FirewallRuleArgs{...} }

type FirewallRuleArrayOutput

type FirewallRuleArrayOutput struct{ *pulumi.OutputState }

func (FirewallRuleArrayOutput) ElementType

func (FirewallRuleArrayOutput) ElementType() reflect.Type

func (FirewallRuleArrayOutput) Index

func (FirewallRuleArrayOutput) ToFirewallRuleArrayOutput

func (o FirewallRuleArrayOutput) ToFirewallRuleArrayOutput() FirewallRuleArrayOutput

func (FirewallRuleArrayOutput) ToFirewallRuleArrayOutputWithContext

func (o FirewallRuleArrayOutput) ToFirewallRuleArrayOutputWithContext(ctx context.Context) FirewallRuleArrayOutput

type FirewallRuleInput

type FirewallRuleInput interface {
	pulumi.Input

	ToFirewallRuleOutput() FirewallRuleOutput
	ToFirewallRuleOutputWithContext(ctx context.Context) FirewallRuleOutput
}

type FirewallRuleMap

type FirewallRuleMap map[string]FirewallRuleInput

func (FirewallRuleMap) ElementType

func (FirewallRuleMap) ElementType() reflect.Type

func (FirewallRuleMap) ToFirewallRuleMapOutput

func (i FirewallRuleMap) ToFirewallRuleMapOutput() FirewallRuleMapOutput

func (FirewallRuleMap) ToFirewallRuleMapOutputWithContext

func (i FirewallRuleMap) ToFirewallRuleMapOutputWithContext(ctx context.Context) FirewallRuleMapOutput

type FirewallRuleMapInput

type FirewallRuleMapInput interface {
	pulumi.Input

	ToFirewallRuleMapOutput() FirewallRuleMapOutput
	ToFirewallRuleMapOutputWithContext(context.Context) FirewallRuleMapOutput
}

FirewallRuleMapInput is an input type that accepts FirewallRuleMap and FirewallRuleMapOutput values. You can construct a concrete instance of `FirewallRuleMapInput` via:

FirewallRuleMap{ "key": FirewallRuleArgs{...} }

type FirewallRuleMapOutput

type FirewallRuleMapOutput struct{ *pulumi.OutputState }

func (FirewallRuleMapOutput) ElementType

func (FirewallRuleMapOutput) ElementType() reflect.Type

func (FirewallRuleMapOutput) MapIndex

func (FirewallRuleMapOutput) ToFirewallRuleMapOutput

func (o FirewallRuleMapOutput) ToFirewallRuleMapOutput() FirewallRuleMapOutput

func (FirewallRuleMapOutput) ToFirewallRuleMapOutputWithContext

func (o FirewallRuleMapOutput) ToFirewallRuleMapOutputWithContext(ctx context.Context) FirewallRuleMapOutput

type FirewallRuleOutput

type FirewallRuleOutput struct{ *pulumi.OutputState }

func (FirewallRuleOutput) ElementType

func (FirewallRuleOutput) ElementType() reflect.Type

func (FirewallRuleOutput) FirewallRuleId

func (o FirewallRuleOutput) FirewallRuleId() pulumi.StringOutput

The ID of the firewall rule.

func (FirewallRuleOutput) InstanceId

func (o FirewallRuleOutput) InstanceId() pulumi.StringOutput

Alibaba Cloud simple application server instance ID.

func (FirewallRuleOutput) Port

The port range. Valid values of port numbers: `1` to `65535`. Specify a port range in the format of `<start port number>/<end port number>`. Example: `1024/1055`, which indicates the port range of `1024` through `1055`.

func (FirewallRuleOutput) Remark

The remarks of the firewall rule.

func (FirewallRuleOutput) RuleProtocol

func (o FirewallRuleOutput) RuleProtocol() pulumi.StringOutput

The transport layer protocol. Valid values: `Tcp`, `Udp`, `TcpAndUdp`.

func (FirewallRuleOutput) ToFirewallRuleOutput

func (o FirewallRuleOutput) ToFirewallRuleOutput() FirewallRuleOutput

func (FirewallRuleOutput) ToFirewallRuleOutputWithContext

func (o FirewallRuleOutput) ToFirewallRuleOutputWithContext(ctx context.Context) FirewallRuleOutput

type FirewallRuleState

type FirewallRuleState struct {
	// The ID of the firewall rule.
	FirewallRuleId pulumi.StringPtrInput
	// Alibaba Cloud simple application server instance ID.
	InstanceId pulumi.StringPtrInput
	// The port range. Valid values of port numbers: `1` to `65535`. Specify a port range in the format of `<start port number>/<end port number>`. Example: `1024/1055`, which indicates the port range of `1024` through `1055`.
	Port pulumi.StringPtrInput
	// The remarks of the firewall rule.
	Remark pulumi.StringPtrInput
	// The transport layer protocol. Valid values: `Tcp`, `Udp`, `TcpAndUdp`.
	RuleProtocol pulumi.StringPtrInput
}

func (FirewallRuleState) ElementType

func (FirewallRuleState) ElementType() reflect.Type

type GetImagesArgs

type GetImagesArgs struct {
	Ids []string `pulumi:"ids"`
	// The type of the image. Valid values: `app`, `custom`, `system`.
	// * `system`: operating system (OS) image.
	// * `app`: application image.
	// * `custom`: custom image.
	ImageType  *string `pulumi:"imageType"`
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The platform of Plan supported.
	Platform *string `pulumi:"platform"`
}

A collection of arguments for invoking getImages.

type GetImagesImage

type GetImagesImage struct {
	// The description of the image.
	Description string `pulumi:"description"`
	// The ID of the Instance Image.
	Id string `pulumi:"id"`
	// The ID of the image.
	ImageId string `pulumi:"imageId"`
	// The name of the resource.
	ImageName string `pulumi:"imageName"`
	// The type of the image. Valid values: `app`, `custom`, `system`.
	// * `system`: operating system (OS) image.
	// * `app`: application image.
	// * `custom`: custom image.
	ImageType string `pulumi:"imageType"`
	// The platform of Plan supported.
	Platform string `pulumi:"platform"`
}

type GetImagesImageArgs

type GetImagesImageArgs struct {
	// The description of the image.
	Description pulumi.StringInput `pulumi:"description"`
	// The ID of the Instance Image.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of the image.
	ImageId pulumi.StringInput `pulumi:"imageId"`
	// The name of the resource.
	ImageName pulumi.StringInput `pulumi:"imageName"`
	// The type of the image. Valid values: `app`, `custom`, `system`.
	// * `system`: operating system (OS) image.
	// * `app`: application image.
	// * `custom`: custom image.
	ImageType pulumi.StringInput `pulumi:"imageType"`
	// The platform of Plan supported.
	Platform pulumi.StringInput `pulumi:"platform"`
}

func (GetImagesImageArgs) ElementType

func (GetImagesImageArgs) ElementType() reflect.Type

func (GetImagesImageArgs) ToGetImagesImageOutput

func (i GetImagesImageArgs) ToGetImagesImageOutput() GetImagesImageOutput

func (GetImagesImageArgs) ToGetImagesImageOutputWithContext

func (i GetImagesImageArgs) ToGetImagesImageOutputWithContext(ctx context.Context) GetImagesImageOutput

type GetImagesImageArray

type GetImagesImageArray []GetImagesImageInput

func (GetImagesImageArray) ElementType

func (GetImagesImageArray) ElementType() reflect.Type

func (GetImagesImageArray) ToGetImagesImageArrayOutput

func (i GetImagesImageArray) ToGetImagesImageArrayOutput() GetImagesImageArrayOutput

func (GetImagesImageArray) ToGetImagesImageArrayOutputWithContext

func (i GetImagesImageArray) ToGetImagesImageArrayOutputWithContext(ctx context.Context) GetImagesImageArrayOutput

type GetImagesImageArrayInput

type GetImagesImageArrayInput interface {
	pulumi.Input

	ToGetImagesImageArrayOutput() GetImagesImageArrayOutput
	ToGetImagesImageArrayOutputWithContext(context.Context) GetImagesImageArrayOutput
}

GetImagesImageArrayInput is an input type that accepts GetImagesImageArray and GetImagesImageArrayOutput values. You can construct a concrete instance of `GetImagesImageArrayInput` via:

GetImagesImageArray{ GetImagesImageArgs{...} }

type GetImagesImageArrayOutput

type GetImagesImageArrayOutput struct{ *pulumi.OutputState }

func (GetImagesImageArrayOutput) ElementType

func (GetImagesImageArrayOutput) ElementType() reflect.Type

func (GetImagesImageArrayOutput) Index

func (GetImagesImageArrayOutput) ToGetImagesImageArrayOutput

func (o GetImagesImageArrayOutput) ToGetImagesImageArrayOutput() GetImagesImageArrayOutput

func (GetImagesImageArrayOutput) ToGetImagesImageArrayOutputWithContext

func (o GetImagesImageArrayOutput) ToGetImagesImageArrayOutputWithContext(ctx context.Context) GetImagesImageArrayOutput

type GetImagesImageInput

type GetImagesImageInput interface {
	pulumi.Input

	ToGetImagesImageOutput() GetImagesImageOutput
	ToGetImagesImageOutputWithContext(context.Context) GetImagesImageOutput
}

GetImagesImageInput is an input type that accepts GetImagesImageArgs and GetImagesImageOutput values. You can construct a concrete instance of `GetImagesImageInput` via:

GetImagesImageArgs{...}

type GetImagesImageOutput

type GetImagesImageOutput struct{ *pulumi.OutputState }

func (GetImagesImageOutput) Description

func (o GetImagesImageOutput) Description() pulumi.StringOutput

The description of the image.

func (GetImagesImageOutput) ElementType

func (GetImagesImageOutput) ElementType() reflect.Type

func (GetImagesImageOutput) Id

The ID of the Instance Image.

func (GetImagesImageOutput) ImageId

The ID of the image.

func (GetImagesImageOutput) ImageName

The name of the resource.

func (GetImagesImageOutput) ImageType

The type of the image. Valid values: `app`, `custom`, `system`. * `system`: operating system (OS) image. * `app`: application image. * `custom`: custom image.

func (GetImagesImageOutput) Platform

The platform of Plan supported.

func (GetImagesImageOutput) ToGetImagesImageOutput

func (o GetImagesImageOutput) ToGetImagesImageOutput() GetImagesImageOutput

func (GetImagesImageOutput) ToGetImagesImageOutputWithContext

func (o GetImagesImageOutput) ToGetImagesImageOutputWithContext(ctx context.Context) GetImagesImageOutput

type GetImagesOutputArgs

type GetImagesOutputArgs struct {
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// The type of the image. Valid values: `app`, `custom`, `system`.
	// * `system`: operating system (OS) image.
	// * `app`: application image.
	// * `custom`: custom image.
	ImageType  pulumi.StringPtrInput `pulumi:"imageType"`
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The platform of Plan supported.
	Platform pulumi.StringPtrInput `pulumi:"platform"`
}

A collection of arguments for invoking getImages.

func (GetImagesOutputArgs) ElementType

func (GetImagesOutputArgs) ElementType() reflect.Type

type GetImagesResult

type GetImagesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string           `pulumi:"id"`
	Ids        []string         `pulumi:"ids"`
	ImageType  *string          `pulumi:"imageType"`
	Images     []GetImagesImage `pulumi:"images"`
	NameRegex  *string          `pulumi:"nameRegex"`
	Names      []string         `pulumi:"names"`
	OutputFile *string          `pulumi:"outputFile"`
	Platform   *string          `pulumi:"platform"`
}

A collection of values returned by getImages.

func GetImages

func GetImages(ctx *pulumi.Context, args *GetImagesArgs, opts ...pulumi.InvokeOption) (*GetImagesResult, error)

type GetImagesResultOutput

type GetImagesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getImages.

func (GetImagesResultOutput) ElementType

func (GetImagesResultOutput) ElementType() reflect.Type

func (GetImagesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetImagesResultOutput) Ids

func (GetImagesResultOutput) ImageType

func (GetImagesResultOutput) Images

func (GetImagesResultOutput) NameRegex

func (GetImagesResultOutput) Names

func (GetImagesResultOutput) OutputFile

func (GetImagesResultOutput) Platform

func (GetImagesResultOutput) ToGetImagesResultOutput

func (o GetImagesResultOutput) ToGetImagesResultOutput() GetImagesResultOutput

func (GetImagesResultOutput) ToGetImagesResultOutputWithContext

func (o GetImagesResultOutput) ToGetImagesResultOutputWithContext(ctx context.Context) GetImagesResultOutput

type GetInstancesArgs

type GetInstancesArgs struct {
	// A list of Instance IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Instance name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The billing method of the simple application server.
	PaymentType *string `pulumi:"paymentType"`
	// The status of the resource.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getInstances.

type GetInstancesInstance

type GetInstancesInstance struct {
	// The billing status of the simple application server. Valid values: `Normal`, `Expired` and `Overdue`.
	BusinessStatus string `pulumi:"businessStatus"`
	// The time when the simple application server was created.
	CreateTime string `pulumi:"createTime"`
	// The DDoS protection status. Valid values: `Normal`, `BlackHole`, and `Defense`.
	DdosStatus string `pulumi:"ddosStatus"`
	// The time when the simple application server expires.
	ExpiredTime string `pulumi:"expiredTime"`
	// The ID of the Instance.
	Id string `pulumi:"id"`
	// The ID of the simple application server Image.
	ImageId string `pulumi:"imageId"`
	// The internal IP address of the simple application server.
	InnerIpAddress string `pulumi:"innerIpAddress"`
	// The ID of the simple application server.
	InstanceId string `pulumi:"instanceId"`
	// The name of the resource.
	InstanceName string `pulumi:"instanceName"`
	// The billing method of the simple application server.
	PaymentType string `pulumi:"paymentType"`
	// The ID of the simple application server plan.
	PlanId string `pulumi:"planId"`
	// The public IP address of the simple application server.
	PublicIpAddress string `pulumi:"publicIpAddress"`
	// The status of the resource.
	Status string `pulumi:"status"`
}

type GetInstancesInstanceArgs

type GetInstancesInstanceArgs struct {
	// The billing status of the simple application server. Valid values: `Normal`, `Expired` and `Overdue`.
	BusinessStatus pulumi.StringInput `pulumi:"businessStatus"`
	// The time when the simple application server was created.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The DDoS protection status. Valid values: `Normal`, `BlackHole`, and `Defense`.
	DdosStatus pulumi.StringInput `pulumi:"ddosStatus"`
	// The time when the simple application server expires.
	ExpiredTime pulumi.StringInput `pulumi:"expiredTime"`
	// The ID of the Instance.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of the simple application server Image.
	ImageId pulumi.StringInput `pulumi:"imageId"`
	// The internal IP address of the simple application server.
	InnerIpAddress pulumi.StringInput `pulumi:"innerIpAddress"`
	// The ID of the simple application server.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// The name of the resource.
	InstanceName pulumi.StringInput `pulumi:"instanceName"`
	// The billing method of the simple application server.
	PaymentType pulumi.StringInput `pulumi:"paymentType"`
	// The ID of the simple application server plan.
	PlanId pulumi.StringInput `pulumi:"planId"`
	// The public IP address of the simple application server.
	PublicIpAddress pulumi.StringInput `pulumi:"publicIpAddress"`
	// The status of the resource.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetInstancesInstanceArgs) ElementType

func (GetInstancesInstanceArgs) ElementType() reflect.Type

func (GetInstancesInstanceArgs) ToGetInstancesInstanceOutput

func (i GetInstancesInstanceArgs) ToGetInstancesInstanceOutput() GetInstancesInstanceOutput

func (GetInstancesInstanceArgs) ToGetInstancesInstanceOutputWithContext

func (i GetInstancesInstanceArgs) ToGetInstancesInstanceOutputWithContext(ctx context.Context) GetInstancesInstanceOutput

type GetInstancesInstanceArray

type GetInstancesInstanceArray []GetInstancesInstanceInput

func (GetInstancesInstanceArray) ElementType

func (GetInstancesInstanceArray) ElementType() reflect.Type

func (GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutput

func (i GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput

func (GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutputWithContext

func (i GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutputWithContext(ctx context.Context) GetInstancesInstanceArrayOutput

type GetInstancesInstanceArrayInput

type GetInstancesInstanceArrayInput interface {
	pulumi.Input

	ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput
	ToGetInstancesInstanceArrayOutputWithContext(context.Context) GetInstancesInstanceArrayOutput
}

GetInstancesInstanceArrayInput is an input type that accepts GetInstancesInstanceArray and GetInstancesInstanceArrayOutput values. You can construct a concrete instance of `GetInstancesInstanceArrayInput` via:

GetInstancesInstanceArray{ GetInstancesInstanceArgs{...} }

type GetInstancesInstanceArrayOutput

type GetInstancesInstanceArrayOutput struct{ *pulumi.OutputState }

func (GetInstancesInstanceArrayOutput) ElementType

func (GetInstancesInstanceArrayOutput) Index

func (GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutput

func (o GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput

func (GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutputWithContext

func (o GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutputWithContext(ctx context.Context) GetInstancesInstanceArrayOutput

type GetInstancesInstanceInput

type GetInstancesInstanceInput interface {
	pulumi.Input

	ToGetInstancesInstanceOutput() GetInstancesInstanceOutput
	ToGetInstancesInstanceOutputWithContext(context.Context) GetInstancesInstanceOutput
}

GetInstancesInstanceInput is an input type that accepts GetInstancesInstanceArgs and GetInstancesInstanceOutput values. You can construct a concrete instance of `GetInstancesInstanceInput` via:

GetInstancesInstanceArgs{...}

type GetInstancesInstanceOutput

type GetInstancesInstanceOutput struct{ *pulumi.OutputState }

func (GetInstancesInstanceOutput) BusinessStatus

func (o GetInstancesInstanceOutput) BusinessStatus() pulumi.StringOutput

The billing status of the simple application server. Valid values: `Normal`, `Expired` and `Overdue`.

func (GetInstancesInstanceOutput) CreateTime

The time when the simple application server was created.

func (GetInstancesInstanceOutput) DdosStatus

The DDoS protection status. Valid values: `Normal`, `BlackHole`, and `Defense`.

func (GetInstancesInstanceOutput) ElementType

func (GetInstancesInstanceOutput) ElementType() reflect.Type

func (GetInstancesInstanceOutput) ExpiredTime

The time when the simple application server expires.

func (GetInstancesInstanceOutput) Id

The ID of the Instance.

func (GetInstancesInstanceOutput) ImageId

The ID of the simple application server Image.

func (GetInstancesInstanceOutput) InnerIpAddress

func (o GetInstancesInstanceOutput) InnerIpAddress() pulumi.StringOutput

The internal IP address of the simple application server.

func (GetInstancesInstanceOutput) InstanceId

The ID of the simple application server.

func (GetInstancesInstanceOutput) InstanceName

The name of the resource.

func (GetInstancesInstanceOutput) PaymentType

The billing method of the simple application server.

func (GetInstancesInstanceOutput) PlanId

The ID of the simple application server plan.

func (GetInstancesInstanceOutput) PublicIpAddress

func (o GetInstancesInstanceOutput) PublicIpAddress() pulumi.StringOutput

The public IP address of the simple application server.

func (GetInstancesInstanceOutput) Status

The status of the resource.

func (GetInstancesInstanceOutput) ToGetInstancesInstanceOutput

func (o GetInstancesInstanceOutput) ToGetInstancesInstanceOutput() GetInstancesInstanceOutput

func (GetInstancesInstanceOutput) ToGetInstancesInstanceOutputWithContext

func (o GetInstancesInstanceOutput) ToGetInstancesInstanceOutputWithContext(ctx context.Context) GetInstancesInstanceOutput

type GetInstancesOutputArgs

type GetInstancesOutputArgs struct {
	// A list of Instance IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Instance name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The billing method of the simple application server.
	PaymentType pulumi.StringPtrInput `pulumi:"paymentType"`
	// The status of the resource.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getInstances.

func (GetInstancesOutputArgs) ElementType

func (GetInstancesOutputArgs) ElementType() reflect.Type

type GetInstancesResult

type GetInstancesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id          string                 `pulumi:"id"`
	Ids         []string               `pulumi:"ids"`
	Instances   []GetInstancesInstance `pulumi:"instances"`
	NameRegex   *string                `pulumi:"nameRegex"`
	Names       []string               `pulumi:"names"`
	OutputFile  *string                `pulumi:"outputFile"`
	PaymentType *string                `pulumi:"paymentType"`
	Status      *string                `pulumi:"status"`
}

A collection of values returned by getInstances.

func GetInstances

func GetInstances(ctx *pulumi.Context, args *GetInstancesArgs, opts ...pulumi.InvokeOption) (*GetInstancesResult, error)

This data source provides the Simple Application Server Instances of the current Alibaba Cloud user.

> **NOTE:** Available in v1.135.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/simpleapplicationserver"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/simpleapplicationserver"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := simpleapplicationserver.GetInstances(ctx, &simpleapplicationserver.GetInstancesArgs{
			Ids: []string{
				"example_id",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("simpleApplicationServerInstanceId1", ids.Instances[0].Id)
		nameRegex, err := simpleapplicationserver.GetInstances(ctx, &simpleapplicationserver.GetInstancesArgs{
			NameRegex: pulumi.StringRef("^my-Instance"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("simpleApplicationServerInstanceId2", nameRegex.Instances[0].Id)
		return nil
	})
}

```

type GetInstancesResultOutput

type GetInstancesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInstances.

func (GetInstancesResultOutput) ElementType

func (GetInstancesResultOutput) ElementType() reflect.Type

func (GetInstancesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetInstancesResultOutput) Ids

func (GetInstancesResultOutput) Instances

func (GetInstancesResultOutput) NameRegex

func (GetInstancesResultOutput) Names

func (GetInstancesResultOutput) OutputFile

func (GetInstancesResultOutput) PaymentType

func (GetInstancesResultOutput) Status

func (GetInstancesResultOutput) ToGetInstancesResultOutput

func (o GetInstancesResultOutput) ToGetInstancesResultOutput() GetInstancesResultOutput

func (GetInstancesResultOutput) ToGetInstancesResultOutputWithContext

func (o GetInstancesResultOutput) ToGetInstancesResultOutputWithContext(ctx context.Context) GetInstancesResultOutput

type GetServerCustomImagesArgs

type GetServerCustomImagesArgs struct {
	// A list of Custom Image IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Custom Image name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getServerCustomImages.

type GetServerCustomImagesImage

type GetServerCustomImagesImage struct {
	// The first ID of the resource.
	CustomImageId string `pulumi:"customImageId"`
	// The name of the resource.
	CustomImageName string `pulumi:"customImageName"`
	// Image description information.
	Description string `pulumi:"description"`
	// The ID of the Custom Image.
	Id string `pulumi:"id"`
	// The type of operating system used by the Mirror. Valid values: `Linux`, `Windows`.
	Platform string `pulumi:"platform"`
}

type GetServerCustomImagesImageArgs

type GetServerCustomImagesImageArgs struct {
	// The first ID of the resource.
	CustomImageId pulumi.StringInput `pulumi:"customImageId"`
	// The name of the resource.
	CustomImageName pulumi.StringInput `pulumi:"customImageName"`
	// Image description information.
	Description pulumi.StringInput `pulumi:"description"`
	// The ID of the Custom Image.
	Id pulumi.StringInput `pulumi:"id"`
	// The type of operating system used by the Mirror. Valid values: `Linux`, `Windows`.
	Platform pulumi.StringInput `pulumi:"platform"`
}

func (GetServerCustomImagesImageArgs) ElementType

func (GetServerCustomImagesImageArgs) ToGetServerCustomImagesImageOutput

func (i GetServerCustomImagesImageArgs) ToGetServerCustomImagesImageOutput() GetServerCustomImagesImageOutput

func (GetServerCustomImagesImageArgs) ToGetServerCustomImagesImageOutputWithContext

func (i GetServerCustomImagesImageArgs) ToGetServerCustomImagesImageOutputWithContext(ctx context.Context) GetServerCustomImagesImageOutput

type GetServerCustomImagesImageArray

type GetServerCustomImagesImageArray []GetServerCustomImagesImageInput

func (GetServerCustomImagesImageArray) ElementType

func (GetServerCustomImagesImageArray) ToGetServerCustomImagesImageArrayOutput

func (i GetServerCustomImagesImageArray) ToGetServerCustomImagesImageArrayOutput() GetServerCustomImagesImageArrayOutput

func (GetServerCustomImagesImageArray) ToGetServerCustomImagesImageArrayOutputWithContext

func (i GetServerCustomImagesImageArray) ToGetServerCustomImagesImageArrayOutputWithContext(ctx context.Context) GetServerCustomImagesImageArrayOutput

type GetServerCustomImagesImageArrayInput

type GetServerCustomImagesImageArrayInput interface {
	pulumi.Input

	ToGetServerCustomImagesImageArrayOutput() GetServerCustomImagesImageArrayOutput
	ToGetServerCustomImagesImageArrayOutputWithContext(context.Context) GetServerCustomImagesImageArrayOutput
}

GetServerCustomImagesImageArrayInput is an input type that accepts GetServerCustomImagesImageArray and GetServerCustomImagesImageArrayOutput values. You can construct a concrete instance of `GetServerCustomImagesImageArrayInput` via:

GetServerCustomImagesImageArray{ GetServerCustomImagesImageArgs{...} }

type GetServerCustomImagesImageArrayOutput

type GetServerCustomImagesImageArrayOutput struct{ *pulumi.OutputState }

func (GetServerCustomImagesImageArrayOutput) ElementType

func (GetServerCustomImagesImageArrayOutput) Index

func (GetServerCustomImagesImageArrayOutput) ToGetServerCustomImagesImageArrayOutput

func (o GetServerCustomImagesImageArrayOutput) ToGetServerCustomImagesImageArrayOutput() GetServerCustomImagesImageArrayOutput

func (GetServerCustomImagesImageArrayOutput) ToGetServerCustomImagesImageArrayOutputWithContext

func (o GetServerCustomImagesImageArrayOutput) ToGetServerCustomImagesImageArrayOutputWithContext(ctx context.Context) GetServerCustomImagesImageArrayOutput

type GetServerCustomImagesImageInput

type GetServerCustomImagesImageInput interface {
	pulumi.Input

	ToGetServerCustomImagesImageOutput() GetServerCustomImagesImageOutput
	ToGetServerCustomImagesImageOutputWithContext(context.Context) GetServerCustomImagesImageOutput
}

GetServerCustomImagesImageInput is an input type that accepts GetServerCustomImagesImageArgs and GetServerCustomImagesImageOutput values. You can construct a concrete instance of `GetServerCustomImagesImageInput` via:

GetServerCustomImagesImageArgs{...}

type GetServerCustomImagesImageOutput

type GetServerCustomImagesImageOutput struct{ *pulumi.OutputState }

func (GetServerCustomImagesImageOutput) CustomImageId

The first ID of the resource.

func (GetServerCustomImagesImageOutput) CustomImageName

The name of the resource.

func (GetServerCustomImagesImageOutput) Description

Image description information.

func (GetServerCustomImagesImageOutput) ElementType

func (GetServerCustomImagesImageOutput) Id

The ID of the Custom Image.

func (GetServerCustomImagesImageOutput) Platform

The type of operating system used by the Mirror. Valid values: `Linux`, `Windows`.

func (GetServerCustomImagesImageOutput) ToGetServerCustomImagesImageOutput

func (o GetServerCustomImagesImageOutput) ToGetServerCustomImagesImageOutput() GetServerCustomImagesImageOutput

func (GetServerCustomImagesImageOutput) ToGetServerCustomImagesImageOutputWithContext

func (o GetServerCustomImagesImageOutput) ToGetServerCustomImagesImageOutputWithContext(ctx context.Context) GetServerCustomImagesImageOutput

type GetServerCustomImagesOutputArgs

type GetServerCustomImagesOutputArgs struct {
	// A list of Custom Image IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Custom Image name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getServerCustomImages.

func (GetServerCustomImagesOutputArgs) ElementType

type GetServerCustomImagesResult

type GetServerCustomImagesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string                       `pulumi:"id"`
	Ids        []string                     `pulumi:"ids"`
	Images     []GetServerCustomImagesImage `pulumi:"images"`
	NameRegex  *string                      `pulumi:"nameRegex"`
	Names      []string                     `pulumi:"names"`
	OutputFile *string                      `pulumi:"outputFile"`
}

A collection of values returned by getServerCustomImages.

func GetServerCustomImages

func GetServerCustomImages(ctx *pulumi.Context, args *GetServerCustomImagesArgs, opts ...pulumi.InvokeOption) (*GetServerCustomImagesResult, error)

This data source provides the Simple Application Server Custom Images of the current Alibaba Cloud user.

> **NOTE:** Available in v1.143.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/simpleapplicationserver"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/simpleapplicationserver"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := simpleapplicationserver.GetServerCustomImages(ctx, &simpleapplicationserver.GetServerCustomImagesArgs{
			Ids: []string{
				"example_id",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("simpleApplicationServerCustomImageId1", ids.Images[0].Id)
		nameRegex, err := simpleapplicationserver.GetServerCustomImages(ctx, &simpleapplicationserver.GetServerCustomImagesArgs{
			NameRegex: pulumi.StringRef("^my-CustomImage"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("simpleApplicationServerCustomImageId2", nameRegex.Images[0].Id)
		return nil
	})
}

```

type GetServerCustomImagesResultOutput

type GetServerCustomImagesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getServerCustomImages.

func (GetServerCustomImagesResultOutput) ElementType

func (GetServerCustomImagesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetServerCustomImagesResultOutput) Ids

func (GetServerCustomImagesResultOutput) Images

func (GetServerCustomImagesResultOutput) NameRegex

func (GetServerCustomImagesResultOutput) Names

func (GetServerCustomImagesResultOutput) OutputFile

func (GetServerCustomImagesResultOutput) ToGetServerCustomImagesResultOutput

func (o GetServerCustomImagesResultOutput) ToGetServerCustomImagesResultOutput() GetServerCustomImagesResultOutput

func (GetServerCustomImagesResultOutput) ToGetServerCustomImagesResultOutputWithContext

func (o GetServerCustomImagesResultOutput) ToGetServerCustomImagesResultOutputWithContext(ctx context.Context) GetServerCustomImagesResultOutput

type GetServerDisksArgs

type GetServerDisksArgs struct {
	// The type of the disk. Possible values: `System`, `Data`.
	DiskType *string `pulumi:"diskType"`
	// A list of Disk IDs.
	Ids []string `pulumi:"ids"`
	// Alibaba Cloud simple application server instance ID.
	InstanceId *string `pulumi:"instanceId"`
	// A regex string to filter results by Disk name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The status of the disk. Valid values: `ReIniting`, `Creating`, `In_Use`, `Available`, `Attaching`, `Detaching`.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getServerDisks.

type GetServerDisksDisk

type GetServerDisksDisk struct {
	// Disk type. Possible values: `ESSD`, `SSD`.
	Category string `pulumi:"category"`
	// The time when the disk was created. The time follows the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC.
	CreateTime string `pulumi:"createTime"`
	// The device name of the disk on the simple application server.
	Device string `pulumi:"device"`
	// The first ID of the resource.
	DiskId string `pulumi:"diskId"`
	// The name of the resource.
	DiskName string `pulumi:"diskName"`
	// The type of the disk. Possible values: `System`, `Data`.
	DiskType string `pulumi:"diskType"`
	// The ID of the Disk.
	Id string `pulumi:"id"`
	// Alibaba Cloud simple application server instance ID.
	InstanceId string `pulumi:"instanceId"`
	// The payment type of the resource. Valid values: `PayAsYouGo`, `Subscription`.
	PaymentType string `pulumi:"paymentType"`
	// The size of the disk. Unit: `GB`.
	Size int `pulumi:"size"`
	// The status of the disk. Valid values: `ReIniting`, `Creating`, `In_Use`, `Available`, `Attaching`, `Detaching`.
	Status string `pulumi:"status"`
}

type GetServerDisksDiskArgs

type GetServerDisksDiskArgs struct {
	// Disk type. Possible values: `ESSD`, `SSD`.
	Category pulumi.StringInput `pulumi:"category"`
	// The time when the disk was created. The time follows the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The device name of the disk on the simple application server.
	Device pulumi.StringInput `pulumi:"device"`
	// The first ID of the resource.
	DiskId pulumi.StringInput `pulumi:"diskId"`
	// The name of the resource.
	DiskName pulumi.StringInput `pulumi:"diskName"`
	// The type of the disk. Possible values: `System`, `Data`.
	DiskType pulumi.StringInput `pulumi:"diskType"`
	// The ID of the Disk.
	Id pulumi.StringInput `pulumi:"id"`
	// Alibaba Cloud simple application server instance ID.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// The payment type of the resource. Valid values: `PayAsYouGo`, `Subscription`.
	PaymentType pulumi.StringInput `pulumi:"paymentType"`
	// The size of the disk. Unit: `GB`.
	Size pulumi.IntInput `pulumi:"size"`
	// The status of the disk. Valid values: `ReIniting`, `Creating`, `In_Use`, `Available`, `Attaching`, `Detaching`.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetServerDisksDiskArgs) ElementType

func (GetServerDisksDiskArgs) ElementType() reflect.Type

func (GetServerDisksDiskArgs) ToGetServerDisksDiskOutput

func (i GetServerDisksDiskArgs) ToGetServerDisksDiskOutput() GetServerDisksDiskOutput

func (GetServerDisksDiskArgs) ToGetServerDisksDiskOutputWithContext

func (i GetServerDisksDiskArgs) ToGetServerDisksDiskOutputWithContext(ctx context.Context) GetServerDisksDiskOutput

type GetServerDisksDiskArray

type GetServerDisksDiskArray []GetServerDisksDiskInput

func (GetServerDisksDiskArray) ElementType

func (GetServerDisksDiskArray) ElementType() reflect.Type

func (GetServerDisksDiskArray) ToGetServerDisksDiskArrayOutput

func (i GetServerDisksDiskArray) ToGetServerDisksDiskArrayOutput() GetServerDisksDiskArrayOutput

func (GetServerDisksDiskArray) ToGetServerDisksDiskArrayOutputWithContext

func (i GetServerDisksDiskArray) ToGetServerDisksDiskArrayOutputWithContext(ctx context.Context) GetServerDisksDiskArrayOutput

type GetServerDisksDiskArrayInput

type GetServerDisksDiskArrayInput interface {
	pulumi.Input

	ToGetServerDisksDiskArrayOutput() GetServerDisksDiskArrayOutput
	ToGetServerDisksDiskArrayOutputWithContext(context.Context) GetServerDisksDiskArrayOutput
}

GetServerDisksDiskArrayInput is an input type that accepts GetServerDisksDiskArray and GetServerDisksDiskArrayOutput values. You can construct a concrete instance of `GetServerDisksDiskArrayInput` via:

GetServerDisksDiskArray{ GetServerDisksDiskArgs{...} }

type GetServerDisksDiskArrayOutput

type GetServerDisksDiskArrayOutput struct{ *pulumi.OutputState }

func (GetServerDisksDiskArrayOutput) ElementType

func (GetServerDisksDiskArrayOutput) Index

func (GetServerDisksDiskArrayOutput) ToGetServerDisksDiskArrayOutput

func (o GetServerDisksDiskArrayOutput) ToGetServerDisksDiskArrayOutput() GetServerDisksDiskArrayOutput

func (GetServerDisksDiskArrayOutput) ToGetServerDisksDiskArrayOutputWithContext

func (o GetServerDisksDiskArrayOutput) ToGetServerDisksDiskArrayOutputWithContext(ctx context.Context) GetServerDisksDiskArrayOutput

type GetServerDisksDiskInput

type GetServerDisksDiskInput interface {
	pulumi.Input

	ToGetServerDisksDiskOutput() GetServerDisksDiskOutput
	ToGetServerDisksDiskOutputWithContext(context.Context) GetServerDisksDiskOutput
}

GetServerDisksDiskInput is an input type that accepts GetServerDisksDiskArgs and GetServerDisksDiskOutput values. You can construct a concrete instance of `GetServerDisksDiskInput` via:

GetServerDisksDiskArgs{...}

type GetServerDisksDiskOutput

type GetServerDisksDiskOutput struct{ *pulumi.OutputState }

func (GetServerDisksDiskOutput) Category

Disk type. Possible values: `ESSD`, `SSD`.

func (GetServerDisksDiskOutput) CreateTime

The time when the disk was created. The time follows the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC.

func (GetServerDisksDiskOutput) Device

The device name of the disk on the simple application server.

func (GetServerDisksDiskOutput) DiskId

The first ID of the resource.

func (GetServerDisksDiskOutput) DiskName

The name of the resource.

func (GetServerDisksDiskOutput) DiskType

The type of the disk. Possible values: `System`, `Data`.

func (GetServerDisksDiskOutput) ElementType

func (GetServerDisksDiskOutput) ElementType() reflect.Type

func (GetServerDisksDiskOutput) Id

The ID of the Disk.

func (GetServerDisksDiskOutput) InstanceId

Alibaba Cloud simple application server instance ID.

func (GetServerDisksDiskOutput) PaymentType

The payment type of the resource. Valid values: `PayAsYouGo`, `Subscription`.

func (GetServerDisksDiskOutput) Size

The size of the disk. Unit: `GB`.

func (GetServerDisksDiskOutput) Status

The status of the disk. Valid values: `ReIniting`, `Creating`, `In_Use`, `Available`, `Attaching`, `Detaching`.

func (GetServerDisksDiskOutput) ToGetServerDisksDiskOutput

func (o GetServerDisksDiskOutput) ToGetServerDisksDiskOutput() GetServerDisksDiskOutput

func (GetServerDisksDiskOutput) ToGetServerDisksDiskOutputWithContext

func (o GetServerDisksDiskOutput) ToGetServerDisksDiskOutputWithContext(ctx context.Context) GetServerDisksDiskOutput

type GetServerDisksOutputArgs

type GetServerDisksOutputArgs struct {
	// The type of the disk. Possible values: `System`, `Data`.
	DiskType pulumi.StringPtrInput `pulumi:"diskType"`
	// A list of Disk IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// Alibaba Cloud simple application server instance ID.
	InstanceId pulumi.StringPtrInput `pulumi:"instanceId"`
	// A regex string to filter results by Disk name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The status of the disk. Valid values: `ReIniting`, `Creating`, `In_Use`, `Available`, `Attaching`, `Detaching`.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getServerDisks.

func (GetServerDisksOutputArgs) ElementType

func (GetServerDisksOutputArgs) ElementType() reflect.Type

type GetServerDisksResult

type GetServerDisksResult struct {
	DiskType *string              `pulumi:"diskType"`
	Disks    []GetServerDisksDisk `pulumi:"disks"`
	// The provider-assigned unique ID for this managed resource.
	Id         string   `pulumi:"id"`
	Ids        []string `pulumi:"ids"`
	InstanceId *string  `pulumi:"instanceId"`
	NameRegex  *string  `pulumi:"nameRegex"`
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	Status     *string  `pulumi:"status"`
}

A collection of values returned by getServerDisks.

func GetServerDisks

func GetServerDisks(ctx *pulumi.Context, args *GetServerDisksArgs, opts ...pulumi.InvokeOption) (*GetServerDisksResult, error)

This data source provides the Simple Application Server Disks of the current Alibaba Cloud user.

> **NOTE:** Available in v1.143.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/simpleapplicationserver"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/simpleapplicationserver"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := simpleapplicationserver.GetServerDisks(ctx, &simpleapplicationserver.GetServerDisksArgs{
			Ids: []string{
				"example_id",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("simpleApplicationServerDiskId1", ids.Disks[0].Id)
		nameRegex, err := simpleapplicationserver.GetServerDisks(ctx, &simpleapplicationserver.GetServerDisksArgs{
			NameRegex: pulumi.StringRef("^my-Disk"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("simpleApplicationServerDiskId2", nameRegex.Disks[0].Id)
		status, err := simpleapplicationserver.GetServerDisks(ctx, &simpleapplicationserver.GetServerDisksArgs{
			Status: pulumi.StringRef("In_use"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("simpleApplicationServerDiskId3", status.Disks[0].Id)
		instanceId, err := simpleapplicationserver.GetServerDisks(ctx, &simpleapplicationserver.GetServerDisksArgs{
			InstanceId: pulumi.StringRef("example_value"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("simpleApplicationServerDiskId4", instanceId.Disks[0].Id)
		diskType, err := simpleapplicationserver.GetServerDisks(ctx, &simpleapplicationserver.GetServerDisksArgs{
			DiskType: pulumi.StringRef("System"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("simpleApplicationServerDiskId5", diskType.Disks[0].Id)
		return nil
	})
}

```

type GetServerDisksResultOutput

type GetServerDisksResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getServerDisks.

func (GetServerDisksResultOutput) DiskType

func (GetServerDisksResultOutput) Disks

func (GetServerDisksResultOutput) ElementType

func (GetServerDisksResultOutput) ElementType() reflect.Type

func (GetServerDisksResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetServerDisksResultOutput) Ids

func (GetServerDisksResultOutput) InstanceId

func (GetServerDisksResultOutput) NameRegex

func (GetServerDisksResultOutput) Names

func (GetServerDisksResultOutput) OutputFile

func (GetServerDisksResultOutput) Status

func (GetServerDisksResultOutput) ToGetServerDisksResultOutput

func (o GetServerDisksResultOutput) ToGetServerDisksResultOutput() GetServerDisksResultOutput

func (GetServerDisksResultOutput) ToGetServerDisksResultOutputWithContext

func (o GetServerDisksResultOutput) ToGetServerDisksResultOutputWithContext(ctx context.Context) GetServerDisksResultOutput

type GetServerFirewallRulesArgs

type GetServerFirewallRulesArgs struct {
	// A list of Firewall Rule IDs.
	Ids []string `pulumi:"ids"`
	// Alibaba Cloud simple application server instance ID.
	InstanceId string  `pulumi:"instanceId"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getServerFirewallRules.

type GetServerFirewallRulesOutputArgs

type GetServerFirewallRulesOutputArgs struct {
	// A list of Firewall Rule IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// Alibaba Cloud simple application server instance ID.
	InstanceId pulumi.StringInput    `pulumi:"instanceId"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getServerFirewallRules.

func (GetServerFirewallRulesOutputArgs) ElementType

type GetServerFirewallRulesResult

type GetServerFirewallRulesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string                       `pulumi:"id"`
	Ids        []string                     `pulumi:"ids"`
	InstanceId string                       `pulumi:"instanceId"`
	OutputFile *string                      `pulumi:"outputFile"`
	Rules      []GetServerFirewallRulesRule `pulumi:"rules"`
}

A collection of values returned by getServerFirewallRules.

func GetServerFirewallRules

func GetServerFirewallRules(ctx *pulumi.Context, args *GetServerFirewallRulesArgs, opts ...pulumi.InvokeOption) (*GetServerFirewallRulesResult, error)

This data source provides the Simple Application Server Firewall Rules of the current Alibaba Cloud user.

> **NOTE:** Available in v1.143.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/simpleapplicationserver"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/simpleapplicationserver"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := simpleapplicationserver.GetServerFirewallRules(ctx, &simpleapplicationserver.GetServerFirewallRulesArgs{
			InstanceId: "example_value",
			Ids: []string{
				"example_value-1",
				"example_value-2",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("simpleApplicationServerFirewallRuleId1", ids.Rules[0].Id)
		return nil
	})
}

```

type GetServerFirewallRulesResultOutput

type GetServerFirewallRulesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getServerFirewallRules.

func (GetServerFirewallRulesResultOutput) ElementType

func (GetServerFirewallRulesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetServerFirewallRulesResultOutput) Ids

func (GetServerFirewallRulesResultOutput) InstanceId

func (GetServerFirewallRulesResultOutput) OutputFile

func (GetServerFirewallRulesResultOutput) Rules

func (GetServerFirewallRulesResultOutput) ToGetServerFirewallRulesResultOutput

func (o GetServerFirewallRulesResultOutput) ToGetServerFirewallRulesResultOutput() GetServerFirewallRulesResultOutput

func (GetServerFirewallRulesResultOutput) ToGetServerFirewallRulesResultOutputWithContext

func (o GetServerFirewallRulesResultOutput) ToGetServerFirewallRulesResultOutputWithContext(ctx context.Context) GetServerFirewallRulesResultOutput

type GetServerFirewallRulesRule

type GetServerFirewallRulesRule struct {
	// The ID of the firewall rule.
	FirewallRuleId string `pulumi:"firewallRuleId"`
	// The ID of the Firewall Rule. The value formats as `<instance_id>:<firewall_rule_id>`.
	Id string `pulumi:"id"`
	// Alibaba Cloud simple application server instance ID.
	InstanceId string `pulumi:"instanceId"`
	// The port range of the firewall rule.
	Port string `pulumi:"port"`
	// The remarks of the firewall rule.
	Remark string `pulumi:"remark"`
	// The transport layer protocol. Valid values: `Tcp`, `Udp`, `TcpAndUdp`.
	RuleProtocol string `pulumi:"ruleProtocol"`
}

type GetServerFirewallRulesRuleArgs

type GetServerFirewallRulesRuleArgs struct {
	// The ID of the firewall rule.
	FirewallRuleId pulumi.StringInput `pulumi:"firewallRuleId"`
	// The ID of the Firewall Rule. The value formats as `<instance_id>:<firewall_rule_id>`.
	Id pulumi.StringInput `pulumi:"id"`
	// Alibaba Cloud simple application server instance ID.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// The port range of the firewall rule.
	Port pulumi.StringInput `pulumi:"port"`
	// The remarks of the firewall rule.
	Remark pulumi.StringInput `pulumi:"remark"`
	// The transport layer protocol. Valid values: `Tcp`, `Udp`, `TcpAndUdp`.
	RuleProtocol pulumi.StringInput `pulumi:"ruleProtocol"`
}

func (GetServerFirewallRulesRuleArgs) ElementType

func (GetServerFirewallRulesRuleArgs) ToGetServerFirewallRulesRuleOutput

func (i GetServerFirewallRulesRuleArgs) ToGetServerFirewallRulesRuleOutput() GetServerFirewallRulesRuleOutput

func (GetServerFirewallRulesRuleArgs) ToGetServerFirewallRulesRuleOutputWithContext

func (i GetServerFirewallRulesRuleArgs) ToGetServerFirewallRulesRuleOutputWithContext(ctx context.Context) GetServerFirewallRulesRuleOutput

type GetServerFirewallRulesRuleArray

type GetServerFirewallRulesRuleArray []GetServerFirewallRulesRuleInput

func (GetServerFirewallRulesRuleArray) ElementType

func (GetServerFirewallRulesRuleArray) ToGetServerFirewallRulesRuleArrayOutput

func (i GetServerFirewallRulesRuleArray) ToGetServerFirewallRulesRuleArrayOutput() GetServerFirewallRulesRuleArrayOutput

func (GetServerFirewallRulesRuleArray) ToGetServerFirewallRulesRuleArrayOutputWithContext

func (i GetServerFirewallRulesRuleArray) ToGetServerFirewallRulesRuleArrayOutputWithContext(ctx context.Context) GetServerFirewallRulesRuleArrayOutput

type GetServerFirewallRulesRuleArrayInput

type GetServerFirewallRulesRuleArrayInput interface {
	pulumi.Input

	ToGetServerFirewallRulesRuleArrayOutput() GetServerFirewallRulesRuleArrayOutput
	ToGetServerFirewallRulesRuleArrayOutputWithContext(context.Context) GetServerFirewallRulesRuleArrayOutput
}

GetServerFirewallRulesRuleArrayInput is an input type that accepts GetServerFirewallRulesRuleArray and GetServerFirewallRulesRuleArrayOutput values. You can construct a concrete instance of `GetServerFirewallRulesRuleArrayInput` via:

GetServerFirewallRulesRuleArray{ GetServerFirewallRulesRuleArgs{...} }

type GetServerFirewallRulesRuleArrayOutput

type GetServerFirewallRulesRuleArrayOutput struct{ *pulumi.OutputState }

func (GetServerFirewallRulesRuleArrayOutput) ElementType

func (GetServerFirewallRulesRuleArrayOutput) Index

func (GetServerFirewallRulesRuleArrayOutput) ToGetServerFirewallRulesRuleArrayOutput

func (o GetServerFirewallRulesRuleArrayOutput) ToGetServerFirewallRulesRuleArrayOutput() GetServerFirewallRulesRuleArrayOutput

func (GetServerFirewallRulesRuleArrayOutput) ToGetServerFirewallRulesRuleArrayOutputWithContext

func (o GetServerFirewallRulesRuleArrayOutput) ToGetServerFirewallRulesRuleArrayOutputWithContext(ctx context.Context) GetServerFirewallRulesRuleArrayOutput

type GetServerFirewallRulesRuleInput

type GetServerFirewallRulesRuleInput interface {
	pulumi.Input

	ToGetServerFirewallRulesRuleOutput() GetServerFirewallRulesRuleOutput
	ToGetServerFirewallRulesRuleOutputWithContext(context.Context) GetServerFirewallRulesRuleOutput
}

GetServerFirewallRulesRuleInput is an input type that accepts GetServerFirewallRulesRuleArgs and GetServerFirewallRulesRuleOutput values. You can construct a concrete instance of `GetServerFirewallRulesRuleInput` via:

GetServerFirewallRulesRuleArgs{...}

type GetServerFirewallRulesRuleOutput

type GetServerFirewallRulesRuleOutput struct{ *pulumi.OutputState }

func (GetServerFirewallRulesRuleOutput) ElementType

func (GetServerFirewallRulesRuleOutput) FirewallRuleId

The ID of the firewall rule.

func (GetServerFirewallRulesRuleOutput) Id

The ID of the Firewall Rule. The value formats as `<instance_id>:<firewall_rule_id>`.

func (GetServerFirewallRulesRuleOutput) InstanceId

Alibaba Cloud simple application server instance ID.

func (GetServerFirewallRulesRuleOutput) Port

The port range of the firewall rule.

func (GetServerFirewallRulesRuleOutput) Remark

The remarks of the firewall rule.

func (GetServerFirewallRulesRuleOutput) RuleProtocol

The transport layer protocol. Valid values: `Tcp`, `Udp`, `TcpAndUdp`.

func (GetServerFirewallRulesRuleOutput) ToGetServerFirewallRulesRuleOutput

func (o GetServerFirewallRulesRuleOutput) ToGetServerFirewallRulesRuleOutput() GetServerFirewallRulesRuleOutput

func (GetServerFirewallRulesRuleOutput) ToGetServerFirewallRulesRuleOutputWithContext

func (o GetServerFirewallRulesRuleOutput) ToGetServerFirewallRulesRuleOutputWithContext(ctx context.Context) GetServerFirewallRulesRuleOutput

type GetServerPlansArgs

type GetServerPlansArgs struct {
	// The peak bandwidth. Unit: Mbit/s.
	Bandwidth *int `pulumi:"bandwidth"`
	// The number of CPU cores.
	Core *int `pulumi:"core"`
	// The size of the enhanced SSD (ESSD). Unit: GB.
	DiskSize *int `pulumi:"diskSize"`
	// The monthly data transfer quota. Unit: GB.
	Flow *int `pulumi:"flow"`
	// A list of Instance Plan IDs.
	Ids []string `pulumi:"ids"`
	// The memory size. Unit: GB.
	Memory     *int    `pulumi:"memory"`
	OutputFile *string `pulumi:"outputFile"`
	// The platform of Plan supported. Valid values: ["Linux", "Windows"].
	Platform *string `pulumi:"platform"`
}

A collection of arguments for invoking getServerPlans.

type GetServerPlansOutputArgs

type GetServerPlansOutputArgs struct {
	// The peak bandwidth. Unit: Mbit/s.
	Bandwidth pulumi.IntPtrInput `pulumi:"bandwidth"`
	// The number of CPU cores.
	Core pulumi.IntPtrInput `pulumi:"core"`
	// The size of the enhanced SSD (ESSD). Unit: GB.
	DiskSize pulumi.IntPtrInput `pulumi:"diskSize"`
	// The monthly data transfer quota. Unit: GB.
	Flow pulumi.IntPtrInput `pulumi:"flow"`
	// A list of Instance Plan IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// The memory size. Unit: GB.
	Memory     pulumi.IntPtrInput    `pulumi:"memory"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The platform of Plan supported. Valid values: ["Linux", "Windows"].
	Platform pulumi.StringPtrInput `pulumi:"platform"`
}

A collection of arguments for invoking getServerPlans.

func (GetServerPlansOutputArgs) ElementType

func (GetServerPlansOutputArgs) ElementType() reflect.Type

type GetServerPlansPlan

type GetServerPlansPlan struct {
	// The peak bandwidth. Unit: Mbit/s.
	Bandwidth int `pulumi:"bandwidth"`
	// The number of CPU cores.
	Core int `pulumi:"core"`
	// The size of the enhanced SSD (ESSD). Unit: GB.
	DiskSize int `pulumi:"diskSize"`
	// The monthly data transfer quota. Unit: GB.
	Flow int `pulumi:"flow"`
	// The ID of the Instance Plan.
	Id string `pulumi:"id"`
	// The memory size. Unit: GB.
	Memory int `pulumi:"memory"`
	// The ID of the Instance Plan.
	PlanId string `pulumi:"planId"`
	// The platform of Plan supported.
	SupportPlatform string `pulumi:"supportPlatform"`
}

type GetServerPlansPlanArgs

type GetServerPlansPlanArgs struct {
	// The peak bandwidth. Unit: Mbit/s.
	Bandwidth pulumi.IntInput `pulumi:"bandwidth"`
	// The number of CPU cores.
	Core pulumi.IntInput `pulumi:"core"`
	// The size of the enhanced SSD (ESSD). Unit: GB.
	DiskSize pulumi.IntInput `pulumi:"diskSize"`
	// The monthly data transfer quota. Unit: GB.
	Flow pulumi.IntInput `pulumi:"flow"`
	// The ID of the Instance Plan.
	Id pulumi.StringInput `pulumi:"id"`
	// The memory size. Unit: GB.
	Memory pulumi.IntInput `pulumi:"memory"`
	// The ID of the Instance Plan.
	PlanId pulumi.StringInput `pulumi:"planId"`
	// The platform of Plan supported.
	SupportPlatform pulumi.StringInput `pulumi:"supportPlatform"`
}

func (GetServerPlansPlanArgs) ElementType

func (GetServerPlansPlanArgs) ElementType() reflect.Type

func (GetServerPlansPlanArgs) ToGetServerPlansPlanOutput

func (i GetServerPlansPlanArgs) ToGetServerPlansPlanOutput() GetServerPlansPlanOutput

func (GetServerPlansPlanArgs) ToGetServerPlansPlanOutputWithContext

func (i GetServerPlansPlanArgs) ToGetServerPlansPlanOutputWithContext(ctx context.Context) GetServerPlansPlanOutput

type GetServerPlansPlanArray

type GetServerPlansPlanArray []GetServerPlansPlanInput

func (GetServerPlansPlanArray) ElementType

func (GetServerPlansPlanArray) ElementType() reflect.Type

func (GetServerPlansPlanArray) ToGetServerPlansPlanArrayOutput

func (i GetServerPlansPlanArray) ToGetServerPlansPlanArrayOutput() GetServerPlansPlanArrayOutput

func (GetServerPlansPlanArray) ToGetServerPlansPlanArrayOutputWithContext

func (i GetServerPlansPlanArray) ToGetServerPlansPlanArrayOutputWithContext(ctx context.Context) GetServerPlansPlanArrayOutput

type GetServerPlansPlanArrayInput

type GetServerPlansPlanArrayInput interface {
	pulumi.Input

	ToGetServerPlansPlanArrayOutput() GetServerPlansPlanArrayOutput
	ToGetServerPlansPlanArrayOutputWithContext(context.Context) GetServerPlansPlanArrayOutput
}

GetServerPlansPlanArrayInput is an input type that accepts GetServerPlansPlanArray and GetServerPlansPlanArrayOutput values. You can construct a concrete instance of `GetServerPlansPlanArrayInput` via:

GetServerPlansPlanArray{ GetServerPlansPlanArgs{...} }

type GetServerPlansPlanArrayOutput

type GetServerPlansPlanArrayOutput struct{ *pulumi.OutputState }

func (GetServerPlansPlanArrayOutput) ElementType

func (GetServerPlansPlanArrayOutput) Index

func (GetServerPlansPlanArrayOutput) ToGetServerPlansPlanArrayOutput

func (o GetServerPlansPlanArrayOutput) ToGetServerPlansPlanArrayOutput() GetServerPlansPlanArrayOutput

func (GetServerPlansPlanArrayOutput) ToGetServerPlansPlanArrayOutputWithContext

func (o GetServerPlansPlanArrayOutput) ToGetServerPlansPlanArrayOutputWithContext(ctx context.Context) GetServerPlansPlanArrayOutput

type GetServerPlansPlanInput

type GetServerPlansPlanInput interface {
	pulumi.Input

	ToGetServerPlansPlanOutput() GetServerPlansPlanOutput
	ToGetServerPlansPlanOutputWithContext(context.Context) GetServerPlansPlanOutput
}

GetServerPlansPlanInput is an input type that accepts GetServerPlansPlanArgs and GetServerPlansPlanOutput values. You can construct a concrete instance of `GetServerPlansPlanInput` via:

GetServerPlansPlanArgs{...}

type GetServerPlansPlanOutput

type GetServerPlansPlanOutput struct{ *pulumi.OutputState }

func (GetServerPlansPlanOutput) Bandwidth

The peak bandwidth. Unit: Mbit/s.

func (GetServerPlansPlanOutput) Core

The number of CPU cores.

func (GetServerPlansPlanOutput) DiskSize

The size of the enhanced SSD (ESSD). Unit: GB.

func (GetServerPlansPlanOutput) ElementType

func (GetServerPlansPlanOutput) ElementType() reflect.Type

func (GetServerPlansPlanOutput) Flow

The monthly data transfer quota. Unit: GB.

func (GetServerPlansPlanOutput) Id

The ID of the Instance Plan.

func (GetServerPlansPlanOutput) Memory

The memory size. Unit: GB.

func (GetServerPlansPlanOutput) PlanId

The ID of the Instance Plan.

func (GetServerPlansPlanOutput) SupportPlatform

func (o GetServerPlansPlanOutput) SupportPlatform() pulumi.StringOutput

The platform of Plan supported.

func (GetServerPlansPlanOutput) ToGetServerPlansPlanOutput

func (o GetServerPlansPlanOutput) ToGetServerPlansPlanOutput() GetServerPlansPlanOutput

func (GetServerPlansPlanOutput) ToGetServerPlansPlanOutputWithContext

func (o GetServerPlansPlanOutput) ToGetServerPlansPlanOutputWithContext(ctx context.Context) GetServerPlansPlanOutput

type GetServerPlansResult

type GetServerPlansResult struct {
	Bandwidth *int `pulumi:"bandwidth"`
	Core      *int `pulumi:"core"`
	DiskSize  *int `pulumi:"diskSize"`
	Flow      *int `pulumi:"flow"`
	// The provider-assigned unique ID for this managed resource.
	Id         string               `pulumi:"id"`
	Ids        []string             `pulumi:"ids"`
	Memory     *int                 `pulumi:"memory"`
	OutputFile *string              `pulumi:"outputFile"`
	Plans      []GetServerPlansPlan `pulumi:"plans"`
	Platform   *string              `pulumi:"platform"`
}

A collection of values returned by getServerPlans.

func GetServerPlans

func GetServerPlans(ctx *pulumi.Context, args *GetServerPlansArgs, opts ...pulumi.InvokeOption) (*GetServerPlansResult, error)

This data source provides the Simple Application Server Plans of the current Alibaba Cloud user.

> **NOTE:** Available in v1.135.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/simpleapplicationserver"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/simpleapplicationserver"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := simpleapplicationserver.GetServerPlans(ctx, &simpleapplicationserver.GetServerPlansArgs{
			Memory:    pulumi.IntRef(1),
			Bandwidth: pulumi.IntRef(3),
			DiskSize:  pulumi.IntRef(40),
			Flow:      pulumi.IntRef(6),
			Core:      pulumi.IntRef(2),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("simpleApplicationServerPlanId1", data.Alicloud_simple_application_server_plans.Ids.Plans[0].Id)
		return nil
	})
}

```

type GetServerPlansResultOutput

type GetServerPlansResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getServerPlans.

func (GetServerPlansResultOutput) Bandwidth

func (GetServerPlansResultOutput) Core

func (GetServerPlansResultOutput) DiskSize

func (GetServerPlansResultOutput) ElementType

func (GetServerPlansResultOutput) ElementType() reflect.Type

func (GetServerPlansResultOutput) Flow

func (GetServerPlansResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetServerPlansResultOutput) Ids

func (GetServerPlansResultOutput) Memory

func (GetServerPlansResultOutput) OutputFile

func (GetServerPlansResultOutput) Plans

func (GetServerPlansResultOutput) Platform

func (GetServerPlansResultOutput) ToGetServerPlansResultOutput

func (o GetServerPlansResultOutput) ToGetServerPlansResultOutput() GetServerPlansResultOutput

func (GetServerPlansResultOutput) ToGetServerPlansResultOutputWithContext

func (o GetServerPlansResultOutput) ToGetServerPlansResultOutputWithContext(ctx context.Context) GetServerPlansResultOutput

type GetServerSnapshotsArgs

type GetServerSnapshotsArgs struct {
	// The ID of the source disk. This parameter has a value even after the source disk is released.
	DiskId *string `pulumi:"diskId"`
	// A list of Snapshot IDs.
	Ids []string `pulumi:"ids"`
	// The ID of the simple application server.
	InstanceId *string `pulumi:"instanceId"`
	// A regex string to filter results by Snapshot name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The status of the snapshots. Valid values: `Progressing`, `Accomplished` and `Failed`.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getServerSnapshots.

type GetServerSnapshotsOutputArgs

type GetServerSnapshotsOutputArgs struct {
	// The ID of the source disk. This parameter has a value even after the source disk is released.
	DiskId pulumi.StringPtrInput `pulumi:"diskId"`
	// A list of Snapshot IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// The ID of the simple application server.
	InstanceId pulumi.StringPtrInput `pulumi:"instanceId"`
	// A regex string to filter results by Snapshot name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The status of the snapshots. Valid values: `Progressing`, `Accomplished` and `Failed`.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getServerSnapshots.

func (GetServerSnapshotsOutputArgs) ElementType

type GetServerSnapshotsResult

type GetServerSnapshotsResult struct {
	DiskId *string `pulumi:"diskId"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                       `pulumi:"id"`
	Ids        []string                     `pulumi:"ids"`
	InstanceId *string                      `pulumi:"instanceId"`
	NameRegex  *string                      `pulumi:"nameRegex"`
	Names      []string                     `pulumi:"names"`
	OutputFile *string                      `pulumi:"outputFile"`
	Snapshots  []GetServerSnapshotsSnapshot `pulumi:"snapshots"`
	Status     *string                      `pulumi:"status"`
}

A collection of values returned by getServerSnapshots.

func GetServerSnapshots

func GetServerSnapshots(ctx *pulumi.Context, args *GetServerSnapshotsArgs, opts ...pulumi.InvokeOption) (*GetServerSnapshotsResult, error)

This data source provides the Simple Application Server Snapshots of the current Alibaba Cloud user.

> **NOTE:** Available in v1.143.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/simpleapplicationserver"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/simpleapplicationserver"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := simpleapplicationserver.GetServerSnapshots(ctx, &simpleapplicationserver.GetServerSnapshotsArgs{
			Ids: []string{
				"example_id",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("simpleApplicationServerSnapshotId1", ids.Snapshots[0].Id)
		nameRegex, err := simpleapplicationserver.GetServerSnapshots(ctx, &simpleapplicationserver.GetServerSnapshotsArgs{
			NameRegex: pulumi.StringRef("^my-Snapshot"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("simpleApplicationServerSnapshotId2", nameRegex.Snapshots[0].Id)
		diskIdConf, err := simpleapplicationserver.GetServerSnapshots(ctx, &simpleapplicationserver.GetServerSnapshotsArgs{
			Ids: []string{
				"example_id",
			},
			DiskId: pulumi.StringRef("example_value"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("simpleApplicationServerSnapshotId3", diskIdConf.Snapshots[0].Id)
		instanceIdConf, err := simpleapplicationserver.GetServerSnapshots(ctx, &simpleapplicationserver.GetServerSnapshotsArgs{
			Ids: []string{
				"example_id",
			},
			InstanceId: pulumi.StringRef("example_value"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("simpleApplicationServerSnapshotId4", instanceIdConf.Snapshots[0].Id)
		return nil
	})
}

```

type GetServerSnapshotsResultOutput

type GetServerSnapshotsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getServerSnapshots.

func (GetServerSnapshotsResultOutput) DiskId

func (GetServerSnapshotsResultOutput) ElementType

func (GetServerSnapshotsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetServerSnapshotsResultOutput) Ids

func (GetServerSnapshotsResultOutput) InstanceId

func (GetServerSnapshotsResultOutput) NameRegex

func (GetServerSnapshotsResultOutput) Names

func (GetServerSnapshotsResultOutput) OutputFile

func (GetServerSnapshotsResultOutput) Snapshots

func (GetServerSnapshotsResultOutput) Status

func (GetServerSnapshotsResultOutput) ToGetServerSnapshotsResultOutput

func (o GetServerSnapshotsResultOutput) ToGetServerSnapshotsResultOutput() GetServerSnapshotsResultOutput

func (GetServerSnapshotsResultOutput) ToGetServerSnapshotsResultOutputWithContext

func (o GetServerSnapshotsResultOutput) ToGetServerSnapshotsResultOutputWithContext(ctx context.Context) GetServerSnapshotsResultOutput

type GetServerSnapshotsSnapshot

type GetServerSnapshotsSnapshot struct {
	// The time when the snapshot was created. The time follows the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC.
	CreateTime string `pulumi:"createTime"`
	// The ID of the source disk. This parameter has a value even after the source disk is released.
	DiskId string `pulumi:"diskId"`
	// The ID of the Snapshot.
	Id string `pulumi:"id"`
	// The progress of snapshot creation.
	Progress string `pulumi:"progress"`
	// The remarks of the snapshot.
	Remark string `pulumi:"remark"`
	// The ID of the snapshot.
	SnapshotId string `pulumi:"snapshotId"`
	// The name of the snapshot.
	SnapshotName string `pulumi:"snapshotName"`
	// A snapshot of the source of a disk type. Possible values: `System`, `Data`.
	SourceDiskType string `pulumi:"sourceDiskType"`
	// The status of the snapshots. Valid values: `Progressing`, `Accomplished` and `Failed`.
	Status string `pulumi:"status"`
}

type GetServerSnapshotsSnapshotArgs

type GetServerSnapshotsSnapshotArgs struct {
	// The time when the snapshot was created. The time follows the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The ID of the source disk. This parameter has a value even after the source disk is released.
	DiskId pulumi.StringInput `pulumi:"diskId"`
	// The ID of the Snapshot.
	Id pulumi.StringInput `pulumi:"id"`
	// The progress of snapshot creation.
	Progress pulumi.StringInput `pulumi:"progress"`
	// The remarks of the snapshot.
	Remark pulumi.StringInput `pulumi:"remark"`
	// The ID of the snapshot.
	SnapshotId pulumi.StringInput `pulumi:"snapshotId"`
	// The name of the snapshot.
	SnapshotName pulumi.StringInput `pulumi:"snapshotName"`
	// A snapshot of the source of a disk type. Possible values: `System`, `Data`.
	SourceDiskType pulumi.StringInput `pulumi:"sourceDiskType"`
	// The status of the snapshots. Valid values: `Progressing`, `Accomplished` and `Failed`.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetServerSnapshotsSnapshotArgs) ElementType

func (GetServerSnapshotsSnapshotArgs) ToGetServerSnapshotsSnapshotOutput

func (i GetServerSnapshotsSnapshotArgs) ToGetServerSnapshotsSnapshotOutput() GetServerSnapshotsSnapshotOutput

func (GetServerSnapshotsSnapshotArgs) ToGetServerSnapshotsSnapshotOutputWithContext

func (i GetServerSnapshotsSnapshotArgs) ToGetServerSnapshotsSnapshotOutputWithContext(ctx context.Context) GetServerSnapshotsSnapshotOutput

type GetServerSnapshotsSnapshotArray

type GetServerSnapshotsSnapshotArray []GetServerSnapshotsSnapshotInput

func (GetServerSnapshotsSnapshotArray) ElementType

func (GetServerSnapshotsSnapshotArray) ToGetServerSnapshotsSnapshotArrayOutput

func (i GetServerSnapshotsSnapshotArray) ToGetServerSnapshotsSnapshotArrayOutput() GetServerSnapshotsSnapshotArrayOutput

func (GetServerSnapshotsSnapshotArray) ToGetServerSnapshotsSnapshotArrayOutputWithContext

func (i GetServerSnapshotsSnapshotArray) ToGetServerSnapshotsSnapshotArrayOutputWithContext(ctx context.Context) GetServerSnapshotsSnapshotArrayOutput

type GetServerSnapshotsSnapshotArrayInput

type GetServerSnapshotsSnapshotArrayInput interface {
	pulumi.Input

	ToGetServerSnapshotsSnapshotArrayOutput() GetServerSnapshotsSnapshotArrayOutput
	ToGetServerSnapshotsSnapshotArrayOutputWithContext(context.Context) GetServerSnapshotsSnapshotArrayOutput
}

GetServerSnapshotsSnapshotArrayInput is an input type that accepts GetServerSnapshotsSnapshotArray and GetServerSnapshotsSnapshotArrayOutput values. You can construct a concrete instance of `GetServerSnapshotsSnapshotArrayInput` via:

GetServerSnapshotsSnapshotArray{ GetServerSnapshotsSnapshotArgs{...} }

type GetServerSnapshotsSnapshotArrayOutput

type GetServerSnapshotsSnapshotArrayOutput struct{ *pulumi.OutputState }

func (GetServerSnapshotsSnapshotArrayOutput) ElementType

func (GetServerSnapshotsSnapshotArrayOutput) Index

func (GetServerSnapshotsSnapshotArrayOutput) ToGetServerSnapshotsSnapshotArrayOutput

func (o GetServerSnapshotsSnapshotArrayOutput) ToGetServerSnapshotsSnapshotArrayOutput() GetServerSnapshotsSnapshotArrayOutput

func (GetServerSnapshotsSnapshotArrayOutput) ToGetServerSnapshotsSnapshotArrayOutputWithContext

func (o GetServerSnapshotsSnapshotArrayOutput) ToGetServerSnapshotsSnapshotArrayOutputWithContext(ctx context.Context) GetServerSnapshotsSnapshotArrayOutput

type GetServerSnapshotsSnapshotInput

type GetServerSnapshotsSnapshotInput interface {
	pulumi.Input

	ToGetServerSnapshotsSnapshotOutput() GetServerSnapshotsSnapshotOutput
	ToGetServerSnapshotsSnapshotOutputWithContext(context.Context) GetServerSnapshotsSnapshotOutput
}

GetServerSnapshotsSnapshotInput is an input type that accepts GetServerSnapshotsSnapshotArgs and GetServerSnapshotsSnapshotOutput values. You can construct a concrete instance of `GetServerSnapshotsSnapshotInput` via:

GetServerSnapshotsSnapshotArgs{...}

type GetServerSnapshotsSnapshotOutput

type GetServerSnapshotsSnapshotOutput struct{ *pulumi.OutputState }

func (GetServerSnapshotsSnapshotOutput) CreateTime

The time when the snapshot was created. The time follows the ISO 8601 standard in the `yyyy-MM-ddTHH:mm:ssZ` format. The time is displayed in UTC.

func (GetServerSnapshotsSnapshotOutput) DiskId

The ID of the source disk. This parameter has a value even after the source disk is released.

func (GetServerSnapshotsSnapshotOutput) ElementType

func (GetServerSnapshotsSnapshotOutput) Id

The ID of the Snapshot.

func (GetServerSnapshotsSnapshotOutput) Progress

The progress of snapshot creation.

func (GetServerSnapshotsSnapshotOutput) Remark

The remarks of the snapshot.

func (GetServerSnapshotsSnapshotOutput) SnapshotId

The ID of the snapshot.

func (GetServerSnapshotsSnapshotOutput) SnapshotName

The name of the snapshot.

func (GetServerSnapshotsSnapshotOutput) SourceDiskType

A snapshot of the source of a disk type. Possible values: `System`, `Data`.

func (GetServerSnapshotsSnapshotOutput) Status

The status of the snapshots. Valid values: `Progressing`, `Accomplished` and `Failed`.

func (GetServerSnapshotsSnapshotOutput) ToGetServerSnapshotsSnapshotOutput

func (o GetServerSnapshotsSnapshotOutput) ToGetServerSnapshotsSnapshotOutput() GetServerSnapshotsSnapshotOutput

func (GetServerSnapshotsSnapshotOutput) ToGetServerSnapshotsSnapshotOutputWithContext

func (o GetServerSnapshotsSnapshotOutput) ToGetServerSnapshotsSnapshotOutputWithContext(ctx context.Context) GetServerSnapshotsSnapshotOutput

type Instance

type Instance struct {
	pulumi.CustomResourceState

	// Specifies whether to enable auto-renewal. Unit: months. Valid values: `true` and `false`.
	AutoRenew pulumi.BoolPtrOutput `pulumi:"autoRenew"`
	// The auto renew period. Valid values: `1`,`3`, `6`, `12`, `24`, `36`. **NOTE:** The attribute `autoRenew` is valid when the attribute is `true`.
	AutoRenewPeriod pulumi.IntPtrOutput `pulumi:"autoRenewPeriod"`
	// The size of the data disk. Unit: GB. Valid values: `0` to `16380`.
	DataDiskSize pulumi.IntPtrOutput `pulumi:"dataDiskSize"`
	// The ID of the image.  You can use the `simpleapplicationserver.getImages` to query the available images in the specified region. The value must be an integral multiple of 20.
	ImageId pulumi.StringOutput `pulumi:"imageId"`
	// The name of the simple application server.
	InstanceName pulumi.StringPtrOutput `pulumi:"instanceName"`
	// The password of the simple application server. The password must be 8 to 30 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include: `( ) ~ ! @ # $ % ^ & * - + = | { } [ ] : ; < > , . ? /`.
	Password pulumi.StringPtrOutput `pulumi:"password"`
	// The paymen type of the resource. Valid values: `Subscription`.
	PaymentType pulumi.StringOutput `pulumi:"paymentType"`
	// The period. Unit: months. Valid values: `1`,`3`, `6`, `12`, `24`, `36`.
	Period pulumi.IntOutput `pulumi:"period"`
	// The ID of the plan. You can use the `simpleapplicationserver.getServerPlans`  to query all the plans provided by Simple Application Server in the specified region.
	PlanId pulumi.StringOutput `pulumi:"planId"`
	// The status of the simple application server. Valid values: `Resetting`, `Running`, `Stopped`.
	Status pulumi.StringOutput `pulumi:"status"`
}

Provides a Simple Application Server Instance resource.

For information about Simple Application Server Instance and how to use it, see [What is Instance](https://www.alibabacloud.com/help/doc-detail/190440.htm).

> **NOTE:** Available in v1.135.0+.

## Import

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

```sh

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

```

func GetInstance

func GetInstance(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InstanceState, opts ...pulumi.ResourceOption) (*Instance, error)

GetInstance gets an existing Instance resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewInstance

func NewInstance(ctx *pulumi.Context,
	name string, args *InstanceArgs, opts ...pulumi.ResourceOption) (*Instance, error)

NewInstance registers a new resource with the given unique name, arguments, and options.

func (*Instance) ElementType

func (*Instance) ElementType() reflect.Type

func (*Instance) ToInstanceOutput

func (i *Instance) ToInstanceOutput() InstanceOutput

func (*Instance) ToInstanceOutputWithContext

func (i *Instance) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput

type InstanceArgs

type InstanceArgs struct {
	// Specifies whether to enable auto-renewal. Unit: months. Valid values: `true` and `false`.
	AutoRenew pulumi.BoolPtrInput
	// The auto renew period. Valid values: `1`,`3`, `6`, `12`, `24`, `36`. **NOTE:** The attribute `autoRenew` is valid when the attribute is `true`.
	AutoRenewPeriod pulumi.IntPtrInput
	// The size of the data disk. Unit: GB. Valid values: `0` to `16380`.
	DataDiskSize pulumi.IntPtrInput
	// The ID of the image.  You can use the `simpleapplicationserver.getImages` to query the available images in the specified region. The value must be an integral multiple of 20.
	ImageId pulumi.StringInput
	// The name of the simple application server.
	InstanceName pulumi.StringPtrInput
	// The password of the simple application server. The password must be 8 to 30 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include: `( ) ~ ! @ # $ % ^ & * - + = | { } [ ] : ; < > , . ? /`.
	Password pulumi.StringPtrInput
	// The paymen type of the resource. Valid values: `Subscription`.
	PaymentType pulumi.StringPtrInput
	// The period. Unit: months. Valid values: `1`,`3`, `6`, `12`, `24`, `36`.
	Period pulumi.IntInput
	// The ID of the plan. You can use the `simpleapplicationserver.getServerPlans`  to query all the plans provided by Simple Application Server in the specified region.
	PlanId pulumi.StringInput
	// The status of the simple application server. Valid values: `Resetting`, `Running`, `Stopped`.
	Status pulumi.StringPtrInput
}

The set of arguments for constructing a Instance resource.

func (InstanceArgs) ElementType

func (InstanceArgs) ElementType() reflect.Type

type InstanceArray

type InstanceArray []InstanceInput

func (InstanceArray) ElementType

func (InstanceArray) ElementType() reflect.Type

func (InstanceArray) ToInstanceArrayOutput

func (i InstanceArray) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArray) ToInstanceArrayOutputWithContext

func (i InstanceArray) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput

type InstanceArrayInput

type InstanceArrayInput interface {
	pulumi.Input

	ToInstanceArrayOutput() InstanceArrayOutput
	ToInstanceArrayOutputWithContext(context.Context) InstanceArrayOutput
}

InstanceArrayInput is an input type that accepts InstanceArray and InstanceArrayOutput values. You can construct a concrete instance of `InstanceArrayInput` via:

InstanceArray{ InstanceArgs{...} }

type InstanceArrayOutput

type InstanceArrayOutput struct{ *pulumi.OutputState }

func (InstanceArrayOutput) ElementType

func (InstanceArrayOutput) ElementType() reflect.Type

func (InstanceArrayOutput) Index

func (InstanceArrayOutput) ToInstanceArrayOutput

func (o InstanceArrayOutput) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArrayOutput) ToInstanceArrayOutputWithContext

func (o InstanceArrayOutput) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput

type InstanceInput

type InstanceInput interface {
	pulumi.Input

	ToInstanceOutput() InstanceOutput
	ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
}

type InstanceMap

type InstanceMap map[string]InstanceInput

func (InstanceMap) ElementType

func (InstanceMap) ElementType() reflect.Type

func (InstanceMap) ToInstanceMapOutput

func (i InstanceMap) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMap) ToInstanceMapOutputWithContext

func (i InstanceMap) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput

type InstanceMapInput

type InstanceMapInput interface {
	pulumi.Input

	ToInstanceMapOutput() InstanceMapOutput
	ToInstanceMapOutputWithContext(context.Context) InstanceMapOutput
}

InstanceMapInput is an input type that accepts InstanceMap and InstanceMapOutput values. You can construct a concrete instance of `InstanceMapInput` via:

InstanceMap{ "key": InstanceArgs{...} }

type InstanceMapOutput

type InstanceMapOutput struct{ *pulumi.OutputState }

func (InstanceMapOutput) ElementType

func (InstanceMapOutput) ElementType() reflect.Type

func (InstanceMapOutput) MapIndex

func (InstanceMapOutput) ToInstanceMapOutput

func (o InstanceMapOutput) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMapOutput) ToInstanceMapOutputWithContext

func (o InstanceMapOutput) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput

type InstanceOutput

type InstanceOutput struct{ *pulumi.OutputState }

func (InstanceOutput) AutoRenew

func (o InstanceOutput) AutoRenew() pulumi.BoolPtrOutput

Specifies whether to enable auto-renewal. Unit: months. Valid values: `true` and `false`.

func (InstanceOutput) AutoRenewPeriod

func (o InstanceOutput) AutoRenewPeriod() pulumi.IntPtrOutput

The auto renew period. Valid values: `1`,`3`, `6`, `12`, `24`, `36`. **NOTE:** The attribute `autoRenew` is valid when the attribute is `true`.

func (InstanceOutput) DataDiskSize

func (o InstanceOutput) DataDiskSize() pulumi.IntPtrOutput

The size of the data disk. Unit: GB. Valid values: `0` to `16380`.

func (InstanceOutput) ElementType

func (InstanceOutput) ElementType() reflect.Type

func (InstanceOutput) ImageId

func (o InstanceOutput) ImageId() pulumi.StringOutput

The ID of the image. You can use the `simpleapplicationserver.getImages` to query the available images in the specified region. The value must be an integral multiple of 20.

func (InstanceOutput) InstanceName

func (o InstanceOutput) InstanceName() pulumi.StringPtrOutput

The name of the simple application server.

func (InstanceOutput) Password

func (o InstanceOutput) Password() pulumi.StringPtrOutput

The password of the simple application server. The password must be 8 to 30 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include: `( ) ~ ! @ # $ % ^ & * - + = | { } [ ] : ; < > , . ? /`.

func (InstanceOutput) PaymentType

func (o InstanceOutput) PaymentType() pulumi.StringOutput

The paymen type of the resource. Valid values: `Subscription`.

func (InstanceOutput) Period

func (o InstanceOutput) Period() pulumi.IntOutput

The period. Unit: months. Valid values: `1`,`3`, `6`, `12`, `24`, `36`.

func (InstanceOutput) PlanId

func (o InstanceOutput) PlanId() pulumi.StringOutput

The ID of the plan. You can use the `simpleapplicationserver.getServerPlans` to query all the plans provided by Simple Application Server in the specified region.

func (InstanceOutput) Status

func (o InstanceOutput) Status() pulumi.StringOutput

The status of the simple application server. Valid values: `Resetting`, `Running`, `Stopped`.

func (InstanceOutput) ToInstanceOutput

func (o InstanceOutput) ToInstanceOutput() InstanceOutput

func (InstanceOutput) ToInstanceOutputWithContext

func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput

type InstanceState

type InstanceState struct {
	// Specifies whether to enable auto-renewal. Unit: months. Valid values: `true` and `false`.
	AutoRenew pulumi.BoolPtrInput
	// The auto renew period. Valid values: `1`,`3`, `6`, `12`, `24`, `36`. **NOTE:** The attribute `autoRenew` is valid when the attribute is `true`.
	AutoRenewPeriod pulumi.IntPtrInput
	// The size of the data disk. Unit: GB. Valid values: `0` to `16380`.
	DataDiskSize pulumi.IntPtrInput
	// The ID of the image.  You can use the `simpleapplicationserver.getImages` to query the available images in the specified region. The value must be an integral multiple of 20.
	ImageId pulumi.StringPtrInput
	// The name of the simple application server.
	InstanceName pulumi.StringPtrInput
	// The password of the simple application server. The password must be 8 to 30 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include: `( ) ~ ! @ # $ % ^ & * - + = | { } [ ] : ; < > , . ? /`.
	Password pulumi.StringPtrInput
	// The paymen type of the resource. Valid values: `Subscription`.
	PaymentType pulumi.StringPtrInput
	// The period. Unit: months. Valid values: `1`,`3`, `6`, `12`, `24`, `36`.
	Period pulumi.IntPtrInput
	// The ID of the plan. You can use the `simpleapplicationserver.getServerPlans`  to query all the plans provided by Simple Application Server in the specified region.
	PlanId pulumi.StringPtrInput
	// The status of the simple application server. Valid values: `Resetting`, `Running`, `Stopped`.
	Status pulumi.StringPtrInput
}

func (InstanceState) ElementType

func (InstanceState) ElementType() reflect.Type

type Snapshot

type Snapshot struct {
	pulumi.CustomResourceState

	// The ID of the disk.
	DiskId pulumi.StringOutput `pulumi:"diskId"`
	// The name of the snapshot. The name must be `2` to `50` characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
	SnapshotName pulumi.StringOutput `pulumi:"snapshotName"`
	// The status of the snapshot. Valid values: `Progressing`, `Accomplished` and `Failed`.
	Status pulumi.StringOutput `pulumi:"status"`
}

Provides a Simple Application Server Snapshot resource.

For information about Simple Application Server Snapshot and how to use it, see [What is Snapshot](https://www.alibabacloud.com/help/doc-detail/190452.htm).

> **NOTE:** Available in v1.143.0+.

## Import

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

```sh

$ pulumi import alicloud:simpleapplicationserver/snapshot:Snapshot example <id>

```

func GetSnapshot

func GetSnapshot(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SnapshotState, opts ...pulumi.ResourceOption) (*Snapshot, error)

GetSnapshot gets an existing Snapshot resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSnapshot

func NewSnapshot(ctx *pulumi.Context,
	name string, args *SnapshotArgs, opts ...pulumi.ResourceOption) (*Snapshot, error)

NewSnapshot registers a new resource with the given unique name, arguments, and options.

func (*Snapshot) ElementType

func (*Snapshot) ElementType() reflect.Type

func (*Snapshot) ToSnapshotOutput

func (i *Snapshot) ToSnapshotOutput() SnapshotOutput

func (*Snapshot) ToSnapshotOutputWithContext

func (i *Snapshot) ToSnapshotOutputWithContext(ctx context.Context) SnapshotOutput

type SnapshotArgs

type SnapshotArgs struct {
	// The ID of the disk.
	DiskId pulumi.StringInput
	// The name of the snapshot. The name must be `2` to `50` characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
	SnapshotName pulumi.StringInput
}

The set of arguments for constructing a Snapshot resource.

func (SnapshotArgs) ElementType

func (SnapshotArgs) ElementType() reflect.Type

type SnapshotArray

type SnapshotArray []SnapshotInput

func (SnapshotArray) ElementType

func (SnapshotArray) ElementType() reflect.Type

func (SnapshotArray) ToSnapshotArrayOutput

func (i SnapshotArray) ToSnapshotArrayOutput() SnapshotArrayOutput

func (SnapshotArray) ToSnapshotArrayOutputWithContext

func (i SnapshotArray) ToSnapshotArrayOutputWithContext(ctx context.Context) SnapshotArrayOutput

type SnapshotArrayInput

type SnapshotArrayInput interface {
	pulumi.Input

	ToSnapshotArrayOutput() SnapshotArrayOutput
	ToSnapshotArrayOutputWithContext(context.Context) SnapshotArrayOutput
}

SnapshotArrayInput is an input type that accepts SnapshotArray and SnapshotArrayOutput values. You can construct a concrete instance of `SnapshotArrayInput` via:

SnapshotArray{ SnapshotArgs{...} }

type SnapshotArrayOutput

type SnapshotArrayOutput struct{ *pulumi.OutputState }

func (SnapshotArrayOutput) ElementType

func (SnapshotArrayOutput) ElementType() reflect.Type

func (SnapshotArrayOutput) Index

func (SnapshotArrayOutput) ToSnapshotArrayOutput

func (o SnapshotArrayOutput) ToSnapshotArrayOutput() SnapshotArrayOutput

func (SnapshotArrayOutput) ToSnapshotArrayOutputWithContext

func (o SnapshotArrayOutput) ToSnapshotArrayOutputWithContext(ctx context.Context) SnapshotArrayOutput

type SnapshotInput

type SnapshotInput interface {
	pulumi.Input

	ToSnapshotOutput() SnapshotOutput
	ToSnapshotOutputWithContext(ctx context.Context) SnapshotOutput
}

type SnapshotMap

type SnapshotMap map[string]SnapshotInput

func (SnapshotMap) ElementType

func (SnapshotMap) ElementType() reflect.Type

func (SnapshotMap) ToSnapshotMapOutput

func (i SnapshotMap) ToSnapshotMapOutput() SnapshotMapOutput

func (SnapshotMap) ToSnapshotMapOutputWithContext

func (i SnapshotMap) ToSnapshotMapOutputWithContext(ctx context.Context) SnapshotMapOutput

type SnapshotMapInput

type SnapshotMapInput interface {
	pulumi.Input

	ToSnapshotMapOutput() SnapshotMapOutput
	ToSnapshotMapOutputWithContext(context.Context) SnapshotMapOutput
}

SnapshotMapInput is an input type that accepts SnapshotMap and SnapshotMapOutput values. You can construct a concrete instance of `SnapshotMapInput` via:

SnapshotMap{ "key": SnapshotArgs{...} }

type SnapshotMapOutput

type SnapshotMapOutput struct{ *pulumi.OutputState }

func (SnapshotMapOutput) ElementType

func (SnapshotMapOutput) ElementType() reflect.Type

func (SnapshotMapOutput) MapIndex

func (SnapshotMapOutput) ToSnapshotMapOutput

func (o SnapshotMapOutput) ToSnapshotMapOutput() SnapshotMapOutput

func (SnapshotMapOutput) ToSnapshotMapOutputWithContext

func (o SnapshotMapOutput) ToSnapshotMapOutputWithContext(ctx context.Context) SnapshotMapOutput

type SnapshotOutput

type SnapshotOutput struct{ *pulumi.OutputState }

func (SnapshotOutput) DiskId

func (o SnapshotOutput) DiskId() pulumi.StringOutput

The ID of the disk.

func (SnapshotOutput) ElementType

func (SnapshotOutput) ElementType() reflect.Type

func (SnapshotOutput) SnapshotName

func (o SnapshotOutput) SnapshotName() pulumi.StringOutput

The name of the snapshot. The name must be `2` to `50` characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).

func (SnapshotOutput) Status

func (o SnapshotOutput) Status() pulumi.StringOutput

The status of the snapshot. Valid values: `Progressing`, `Accomplished` and `Failed`.

func (SnapshotOutput) ToSnapshotOutput

func (o SnapshotOutput) ToSnapshotOutput() SnapshotOutput

func (SnapshotOutput) ToSnapshotOutputWithContext

func (o SnapshotOutput) ToSnapshotOutputWithContext(ctx context.Context) SnapshotOutput

type SnapshotState

type SnapshotState struct {
	// The ID of the disk.
	DiskId pulumi.StringPtrInput
	// The name of the snapshot. The name must be `2` to `50` characters in length. It must start with a letter and cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (_), periods (.),and hyphens (-).
	SnapshotName pulumi.StringPtrInput
	// The status of the snapshot. Valid values: `Progressing`, `Accomplished` and `Failed`.
	Status pulumi.StringPtrInput
}

func (SnapshotState) ElementType

func (SnapshotState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL