simpleapplicationserver

package
v3.55.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomImage added in v3.10.0

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`.
	//
	// **NOTE:** The `status` will be automatically change to `UnShare` when the resource is deleted, please operate with caution.
	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/en/doc-detail/333535.htm).

> **NOTE:** Available since v1.143.0.

## Example Usage

Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf_example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_default, err := simpleapplicationserver.GetImages(ctx, nil, nil)
		if err != nil {
			return err
		}
		defaultGetServerPlans, err := simpleapplicationserver.GetServerPlans(ctx, nil, nil)
		if err != nil {
			return err
		}
		defaultInstance, err := simpleapplicationserver.NewInstance(ctx, "default", &simpleapplicationserver.InstanceArgs{
			PaymentType:  pulumi.String("Subscription"),
			PlanId:       pulumi.String(defaultGetServerPlans.Plans[0].Id),
			InstanceName: pulumi.String(name),
			ImageId:      pulumi.String(_default.Images[0].Id),
			Period:       pulumi.Int(1),
			DataDiskSize: pulumi.Int(100),
		})
		if err != nil {
			return err
		}
		defaultGetServerDisks := simpleapplicationserver.GetServerDisksOutput(ctx, simpleapplicationserver.GetServerDisksOutputArgs{
			InstanceId: defaultInstance.ID(),
		}, nil)
		defaultSnapshot, err := simpleapplicationserver.NewSnapshot(ctx, "default", &simpleapplicationserver.SnapshotArgs{
			DiskId: defaultGetServerDisks.ApplyT(func(defaultGetServerDisks simpleapplicationserver.GetServerDisksResult) (*string, error) {
				return &defaultGetServerDisks.Ids[0], nil
			}).(pulumi.StringPtrOutput),
			SnapshotName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		_, err = simpleapplicationserver.NewCustomImage(ctx, "default", &simpleapplicationserver.CustomImageArgs{
			CustomImageName:  pulumi.String(name),
			InstanceId:       defaultInstance.ID(),
			SystemSnapshotId: defaultSnapshot.ID(),
			Status:           pulumi.String("Share"),
			Description:      pulumi.String(name),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## 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 added in v3.10.0

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 added in v3.10.0

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 added in v3.10.0

func (*CustomImage) ElementType() reflect.Type

func (*CustomImage) ToCustomImageOutput added in v3.10.0

func (i *CustomImage) ToCustomImageOutput() CustomImageOutput

func (*CustomImage) ToCustomImageOutputWithContext added in v3.10.0

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

type CustomImageArgs added in v3.10.0

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`.
	//
	// **NOTE:** The `status` will be automatically change to `UnShare` when the resource is deleted, please operate with caution.
	Status pulumi.StringPtrInput
	// The ID of the system snapshot.
	SystemSnapshotId pulumi.StringInput
}

The set of arguments for constructing a CustomImage resource.

func (CustomImageArgs) ElementType added in v3.10.0

func (CustomImageArgs) ElementType() reflect.Type

type CustomImageArray added in v3.10.0

type CustomImageArray []CustomImageInput

func (CustomImageArray) ElementType added in v3.10.0

func (CustomImageArray) ElementType() reflect.Type

func (CustomImageArray) ToCustomImageArrayOutput added in v3.10.0

func (i CustomImageArray) ToCustomImageArrayOutput() CustomImageArrayOutput

func (CustomImageArray) ToCustomImageArrayOutputWithContext added in v3.10.0

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

type CustomImageArrayInput added in v3.10.0

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 added in v3.10.0

type CustomImageArrayOutput struct{ *pulumi.OutputState }

func (CustomImageArrayOutput) ElementType added in v3.10.0

func (CustomImageArrayOutput) ElementType() reflect.Type

func (CustomImageArrayOutput) Index added in v3.10.0

func (CustomImageArrayOutput) ToCustomImageArrayOutput added in v3.10.0

func (o CustomImageArrayOutput) ToCustomImageArrayOutput() CustomImageArrayOutput

func (CustomImageArrayOutput) ToCustomImageArrayOutputWithContext added in v3.10.0

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

type CustomImageInput added in v3.10.0

type CustomImageInput interface {
	pulumi.Input

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

type CustomImageMap added in v3.10.0

type CustomImageMap map[string]CustomImageInput

func (CustomImageMap) ElementType added in v3.10.0

func (CustomImageMap) ElementType() reflect.Type

func (CustomImageMap) ToCustomImageMapOutput added in v3.10.0

func (i CustomImageMap) ToCustomImageMapOutput() CustomImageMapOutput

func (CustomImageMap) ToCustomImageMapOutputWithContext added in v3.10.0

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

type CustomImageMapInput added in v3.10.0

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 added in v3.10.0

type CustomImageMapOutput struct{ *pulumi.OutputState }

func (CustomImageMapOutput) ElementType added in v3.10.0

func (CustomImageMapOutput) ElementType() reflect.Type

func (CustomImageMapOutput) MapIndex added in v3.10.0

func (CustomImageMapOutput) ToCustomImageMapOutput added in v3.10.0

func (o CustomImageMapOutput) ToCustomImageMapOutput() CustomImageMapOutput

func (CustomImageMapOutput) ToCustomImageMapOutputWithContext added in v3.10.0

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

type CustomImageOutput added in v3.10.0

type CustomImageOutput struct{ *pulumi.OutputState }

func (CustomImageOutput) CustomImageName added in v3.27.0

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 added in v3.27.0

func (o CustomImageOutput) Description() pulumi.StringPtrOutput

The description of the Custom Image.

func (CustomImageOutput) ElementType added in v3.10.0

func (CustomImageOutput) ElementType() reflect.Type

func (CustomImageOutput) InstanceId added in v3.27.0

func (o CustomImageOutput) InstanceId() pulumi.StringOutput

The ID of the instance.

func (CustomImageOutput) Status added in v3.27.0

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

**NOTE:** The `status` will be automatically change to `UnShare` when the resource is deleted, please operate with caution.

func (CustomImageOutput) SystemSnapshotId added in v3.27.0

func (o CustomImageOutput) SystemSnapshotId() pulumi.StringOutput

The ID of the system snapshot.

func (CustomImageOutput) ToCustomImageOutput added in v3.10.0

func (o CustomImageOutput) ToCustomImageOutput() CustomImageOutput

func (CustomImageOutput) ToCustomImageOutputWithContext added in v3.10.0

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

type CustomImageState added in v3.10.0

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`.
	//
	// **NOTE:** The `status` will be automatically change to `UnShare` when the resource is deleted, please operate with caution.
	Status pulumi.StringPtrInput
	// The ID of the system snapshot.
	SystemSnapshotId pulumi.StringPtrInput
}

func (CustomImageState) ElementType added in v3.10.0

func (CustomImageState) ElementType() reflect.Type

type FirewallRule added in v3.10.0

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 since v1.143.0.

## Example Usage

Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf_example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_default, err := simpleapplicationserver.GetImages(ctx, nil, nil)
		if err != nil {
			return err
		}
		defaultGetServerPlans, err := simpleapplicationserver.GetServerPlans(ctx, nil, nil)
		if err != nil {
			return err
		}
		defaultInstance, err := simpleapplicationserver.NewInstance(ctx, "default", &simpleapplicationserver.InstanceArgs{
			PaymentType:  pulumi.String("Subscription"),
			PlanId:       pulumi.String(defaultGetServerPlans.Plans[0].Id),
			InstanceName: pulumi.String(name),
			ImageId:      pulumi.String(_default.Images[0].Id),
			Period:       pulumi.Int(1),
			DataDiskSize: pulumi.Int(100),
		})
		if err != nil {
			return err
		}
		_, err = simpleapplicationserver.NewFirewallRule(ctx, "default", &simpleapplicationserver.FirewallRuleArgs{
			InstanceId:   defaultInstance.ID(),
			RuleProtocol: pulumi.String("Tcp"),
			Port:         pulumi.String("9999"),
			Remark:       pulumi.String(name),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## 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 added in v3.10.0

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 added in v3.10.0

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 added in v3.10.0

func (*FirewallRule) ElementType() reflect.Type

func (*FirewallRule) ToFirewallRuleOutput added in v3.10.0

func (i *FirewallRule) ToFirewallRuleOutput() FirewallRuleOutput

func (*FirewallRule) ToFirewallRuleOutputWithContext added in v3.10.0

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

type FirewallRuleArgs added in v3.10.0

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 added in v3.10.0

func (FirewallRuleArgs) ElementType() reflect.Type

type FirewallRuleArray added in v3.10.0

type FirewallRuleArray []FirewallRuleInput

func (FirewallRuleArray) ElementType added in v3.10.0

func (FirewallRuleArray) ElementType() reflect.Type

func (FirewallRuleArray) ToFirewallRuleArrayOutput added in v3.10.0

func (i FirewallRuleArray) ToFirewallRuleArrayOutput() FirewallRuleArrayOutput

func (FirewallRuleArray) ToFirewallRuleArrayOutputWithContext added in v3.10.0

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

type FirewallRuleArrayInput added in v3.10.0

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 added in v3.10.0

type FirewallRuleArrayOutput struct{ *pulumi.OutputState }

func (FirewallRuleArrayOutput) ElementType added in v3.10.0

func (FirewallRuleArrayOutput) ElementType() reflect.Type

func (FirewallRuleArrayOutput) Index added in v3.10.0

func (FirewallRuleArrayOutput) ToFirewallRuleArrayOutput added in v3.10.0

func (o FirewallRuleArrayOutput) ToFirewallRuleArrayOutput() FirewallRuleArrayOutput

func (FirewallRuleArrayOutput) ToFirewallRuleArrayOutputWithContext added in v3.10.0

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

type FirewallRuleInput added in v3.10.0

type FirewallRuleInput interface {
	pulumi.Input

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

type FirewallRuleMap added in v3.10.0

type FirewallRuleMap map[string]FirewallRuleInput

func (FirewallRuleMap) ElementType added in v3.10.0

func (FirewallRuleMap) ElementType() reflect.Type

func (FirewallRuleMap) ToFirewallRuleMapOutput added in v3.10.0

func (i FirewallRuleMap) ToFirewallRuleMapOutput() FirewallRuleMapOutput

func (FirewallRuleMap) ToFirewallRuleMapOutputWithContext added in v3.10.0

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

type FirewallRuleMapInput added in v3.10.0

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 added in v3.10.0

type FirewallRuleMapOutput struct{ *pulumi.OutputState }

func (FirewallRuleMapOutput) ElementType added in v3.10.0

func (FirewallRuleMapOutput) ElementType() reflect.Type

func (FirewallRuleMapOutput) MapIndex added in v3.10.0

func (FirewallRuleMapOutput) ToFirewallRuleMapOutput added in v3.10.0

func (o FirewallRuleMapOutput) ToFirewallRuleMapOutput() FirewallRuleMapOutput

func (FirewallRuleMapOutput) ToFirewallRuleMapOutputWithContext added in v3.10.0

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

type FirewallRuleOutput added in v3.10.0

type FirewallRuleOutput struct{ *pulumi.OutputState }

func (FirewallRuleOutput) ElementType added in v3.10.0

func (FirewallRuleOutput) ElementType() reflect.Type

func (FirewallRuleOutput) FirewallRuleId added in v3.27.0

func (o FirewallRuleOutput) FirewallRuleId() pulumi.StringOutput

The ID of the firewall rule.

func (FirewallRuleOutput) InstanceId added in v3.27.0

func (o FirewallRuleOutput) InstanceId() pulumi.StringOutput

Alibaba Cloud simple application server instance ID.

func (FirewallRuleOutput) Port added in v3.27.0

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 added in v3.27.0

The remarks of the firewall rule.

func (FirewallRuleOutput) RuleProtocol added in v3.27.0

func (o FirewallRuleOutput) RuleProtocol() pulumi.StringOutput

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

func (FirewallRuleOutput) ToFirewallRuleOutput added in v3.10.0

func (o FirewallRuleOutput) ToFirewallRuleOutput() FirewallRuleOutput

func (FirewallRuleOutput) ToFirewallRuleOutputWithContext added in v3.10.0

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

type FirewallRuleState added in v3.10.0

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 added in v3.10.0

func (FirewallRuleState) ElementType() reflect.Type

type GetImagesArgs

type GetImagesArgs struct {
	Ids []string `pulumi:"ids"`
	// The type of the image. Valid values: `app`, `custom`, `system`.
	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`.
	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`.
	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`.

func (GetImagesImageOutput) Platform added in v3.20.0

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 added in v3.9.0

type GetImagesOutputArgs struct {
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// The type of the image. Valid values: `app`, `custom`, `system`.
	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 added in v3.9.0

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)

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

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

type GetImagesResultOutput added in v3.9.0

type GetImagesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getImages.

func GetImagesOutput added in v3.9.0

func GetImagesOutput(ctx *pulumi.Context, args GetImagesOutputArgs, opts ...pulumi.InvokeOption) GetImagesResultOutput

func (GetImagesResultOutput) ElementType added in v3.9.0

func (GetImagesResultOutput) ElementType() reflect.Type

func (GetImagesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetImagesResultOutput) Ids added in v3.9.0

func (GetImagesResultOutput) ImageType added in v3.9.0

func (GetImagesResultOutput) Images added in v3.9.0

func (GetImagesResultOutput) NameRegex added in v3.9.0

func (GetImagesResultOutput) Names added in v3.9.0

func (GetImagesResultOutput) OutputFile added in v3.9.0

func (GetImagesResultOutput) Platform added in v3.20.0

func (GetImagesResultOutput) ToGetImagesResultOutput added in v3.9.0

func (o GetImagesResultOutput) ToGetImagesResultOutput() GetImagesResultOutput

func (GetImagesResultOutput) ToGetImagesResultOutputWithContext added in v3.9.0

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"`
	// File name where to save data source results (after running `pulumi preview`).
	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 added in v3.9.0

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"`
	// File name where to save data source results (after running `pulumi preview`).
	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 added in v3.9.0

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/v3/go/alicloud/simpleapplicationserver"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

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 added in v3.9.0

type GetInstancesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInstances.

func GetInstancesOutput added in v3.9.0

func GetInstancesOutput(ctx *pulumi.Context, args GetInstancesOutputArgs, opts ...pulumi.InvokeOption) GetInstancesResultOutput

func (GetInstancesResultOutput) ElementType added in v3.9.0

func (GetInstancesResultOutput) ElementType() reflect.Type

func (GetInstancesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetInstancesResultOutput) Ids added in v3.9.0

func (GetInstancesResultOutput) Instances added in v3.9.0

func (GetInstancesResultOutput) NameRegex added in v3.9.0

func (GetInstancesResultOutput) Names added in v3.9.0

func (GetInstancesResultOutput) OutputFile added in v3.9.0

func (GetInstancesResultOutput) PaymentType added in v3.9.0

func (GetInstancesResultOutput) Status added in v3.9.0

func (GetInstancesResultOutput) ToGetInstancesResultOutput added in v3.9.0

func (o GetInstancesResultOutput) ToGetInstancesResultOutput() GetInstancesResultOutput

func (GetInstancesResultOutput) ToGetInstancesResultOutputWithContext added in v3.9.0

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

type GetServerCustomImagesArgs added in v3.10.0

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"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getServerCustomImages.

type GetServerCustomImagesImage added in v3.10.0

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 added in v3.10.0

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 added in v3.10.0

func (GetServerCustomImagesImageArgs) ToGetServerCustomImagesImageOutput added in v3.10.0

func (i GetServerCustomImagesImageArgs) ToGetServerCustomImagesImageOutput() GetServerCustomImagesImageOutput

func (GetServerCustomImagesImageArgs) ToGetServerCustomImagesImageOutputWithContext added in v3.10.0

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

type GetServerCustomImagesImageArray added in v3.10.0

type GetServerCustomImagesImageArray []GetServerCustomImagesImageInput

func (GetServerCustomImagesImageArray) ElementType added in v3.10.0

func (GetServerCustomImagesImageArray) ToGetServerCustomImagesImageArrayOutput added in v3.10.0

func (i GetServerCustomImagesImageArray) ToGetServerCustomImagesImageArrayOutput() GetServerCustomImagesImageArrayOutput

func (GetServerCustomImagesImageArray) ToGetServerCustomImagesImageArrayOutputWithContext added in v3.10.0

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

type GetServerCustomImagesImageArrayInput added in v3.10.0

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 added in v3.10.0

type GetServerCustomImagesImageArrayOutput struct{ *pulumi.OutputState }

func (GetServerCustomImagesImageArrayOutput) ElementType added in v3.10.0

func (GetServerCustomImagesImageArrayOutput) Index added in v3.10.0

func (GetServerCustomImagesImageArrayOutput) ToGetServerCustomImagesImageArrayOutput added in v3.10.0

func (o GetServerCustomImagesImageArrayOutput) ToGetServerCustomImagesImageArrayOutput() GetServerCustomImagesImageArrayOutput

func (GetServerCustomImagesImageArrayOutput) ToGetServerCustomImagesImageArrayOutputWithContext added in v3.10.0

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

type GetServerCustomImagesImageInput added in v3.10.0

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 added in v3.10.0

type GetServerCustomImagesImageOutput struct{ *pulumi.OutputState }

func (GetServerCustomImagesImageOutput) CustomImageId added in v3.10.0

The first ID of the resource.

func (GetServerCustomImagesImageOutput) CustomImageName added in v3.10.0

The name of the resource.

func (GetServerCustomImagesImageOutput) Description added in v3.10.0

Image description information.

func (GetServerCustomImagesImageOutput) ElementType added in v3.10.0

func (GetServerCustomImagesImageOutput) Id added in v3.10.0

The ID of the Custom Image.

func (GetServerCustomImagesImageOutput) Platform added in v3.10.0

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

func (GetServerCustomImagesImageOutput) ToGetServerCustomImagesImageOutput added in v3.10.0

func (o GetServerCustomImagesImageOutput) ToGetServerCustomImagesImageOutput() GetServerCustomImagesImageOutput

func (GetServerCustomImagesImageOutput) ToGetServerCustomImagesImageOutputWithContext added in v3.10.0

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

type GetServerCustomImagesOutputArgs added in v3.10.0

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"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getServerCustomImages.

func (GetServerCustomImagesOutputArgs) ElementType added in v3.10.0

type GetServerCustomImagesResult added in v3.10.0

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 added in v3.10.0

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/v3/go/alicloud/simpleapplicationserver"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

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 added in v3.10.0

type GetServerCustomImagesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getServerCustomImages.

func GetServerCustomImagesOutput added in v3.10.0

func (GetServerCustomImagesResultOutput) ElementType added in v3.10.0

func (GetServerCustomImagesResultOutput) Id added in v3.10.0

The provider-assigned unique ID for this managed resource.

func (GetServerCustomImagesResultOutput) Ids added in v3.10.0

func (GetServerCustomImagesResultOutput) Images added in v3.10.0

func (GetServerCustomImagesResultOutput) NameRegex added in v3.10.0

func (GetServerCustomImagesResultOutput) Names added in v3.10.0

func (GetServerCustomImagesResultOutput) OutputFile added in v3.10.0

func (GetServerCustomImagesResultOutput) ToGetServerCustomImagesResultOutput added in v3.10.0

func (o GetServerCustomImagesResultOutput) ToGetServerCustomImagesResultOutput() GetServerCustomImagesResultOutput

func (GetServerCustomImagesResultOutput) ToGetServerCustomImagesResultOutputWithContext added in v3.10.0

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

type GetServerDisksArgs added in v3.10.0

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"`
	// File name where to save data source results (after running `pulumi preview`).
	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 added in v3.10.0

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 added in v3.10.0

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 added in v3.10.0

func (GetServerDisksDiskArgs) ElementType() reflect.Type

func (GetServerDisksDiskArgs) ToGetServerDisksDiskOutput added in v3.10.0

func (i GetServerDisksDiskArgs) ToGetServerDisksDiskOutput() GetServerDisksDiskOutput

func (GetServerDisksDiskArgs) ToGetServerDisksDiskOutputWithContext added in v3.10.0

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

type GetServerDisksDiskArray added in v3.10.0

type GetServerDisksDiskArray []GetServerDisksDiskInput

func (GetServerDisksDiskArray) ElementType added in v3.10.0

func (GetServerDisksDiskArray) ElementType() reflect.Type

func (GetServerDisksDiskArray) ToGetServerDisksDiskArrayOutput added in v3.10.0

func (i GetServerDisksDiskArray) ToGetServerDisksDiskArrayOutput() GetServerDisksDiskArrayOutput

func (GetServerDisksDiskArray) ToGetServerDisksDiskArrayOutputWithContext added in v3.10.0

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

type GetServerDisksDiskArrayInput added in v3.10.0

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 added in v3.10.0

type GetServerDisksDiskArrayOutput struct{ *pulumi.OutputState }

func (GetServerDisksDiskArrayOutput) ElementType added in v3.10.0

func (GetServerDisksDiskArrayOutput) Index added in v3.10.0

func (GetServerDisksDiskArrayOutput) ToGetServerDisksDiskArrayOutput added in v3.10.0

func (o GetServerDisksDiskArrayOutput) ToGetServerDisksDiskArrayOutput() GetServerDisksDiskArrayOutput

func (GetServerDisksDiskArrayOutput) ToGetServerDisksDiskArrayOutputWithContext added in v3.10.0

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

type GetServerDisksDiskInput added in v3.10.0

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 added in v3.10.0

type GetServerDisksDiskOutput struct{ *pulumi.OutputState }

func (GetServerDisksDiskOutput) Category added in v3.10.0

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

func (GetServerDisksDiskOutput) CreateTime added in v3.10.0

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 added in v3.10.0

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

func (GetServerDisksDiskOutput) DiskId added in v3.10.0

The first ID of the resource.

func (GetServerDisksDiskOutput) DiskName added in v3.10.0

The name of the resource.

func (GetServerDisksDiskOutput) DiskType added in v3.10.0

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

func (GetServerDisksDiskOutput) ElementType added in v3.10.0

func (GetServerDisksDiskOutput) ElementType() reflect.Type

func (GetServerDisksDiskOutput) Id added in v3.10.0

The ID of the Disk.

func (GetServerDisksDiskOutput) InstanceId added in v3.10.0

Alibaba Cloud simple application server instance ID.

func (GetServerDisksDiskOutput) PaymentType added in v3.10.0

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

func (GetServerDisksDiskOutput) Size added in v3.10.0

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

func (GetServerDisksDiskOutput) Status added in v3.10.0

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

func (GetServerDisksDiskOutput) ToGetServerDisksDiskOutput added in v3.10.0

func (o GetServerDisksDiskOutput) ToGetServerDisksDiskOutput() GetServerDisksDiskOutput

func (GetServerDisksDiskOutput) ToGetServerDisksDiskOutputWithContext added in v3.10.0

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

type GetServerDisksOutputArgs added in v3.10.0

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"`
	// File name where to save data source results (after running `pulumi preview`).
	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 added in v3.10.0

func (GetServerDisksOutputArgs) ElementType() reflect.Type

type GetServerDisksResult added in v3.10.0

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 added in v3.10.0

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/v3/go/alicloud/simpleapplicationserver"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

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 added in v3.10.0

type GetServerDisksResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getServerDisks.

func GetServerDisksOutput added in v3.10.0

func GetServerDisksOutput(ctx *pulumi.Context, args GetServerDisksOutputArgs, opts ...pulumi.InvokeOption) GetServerDisksResultOutput

func (GetServerDisksResultOutput) DiskType added in v3.10.0

func (GetServerDisksResultOutput) Disks added in v3.10.0

func (GetServerDisksResultOutput) ElementType added in v3.10.0

func (GetServerDisksResultOutput) ElementType() reflect.Type

func (GetServerDisksResultOutput) Id added in v3.10.0

The provider-assigned unique ID for this managed resource.

func (GetServerDisksResultOutput) Ids added in v3.10.0

func (GetServerDisksResultOutput) InstanceId added in v3.10.0

func (GetServerDisksResultOutput) NameRegex added in v3.10.0

func (GetServerDisksResultOutput) Names added in v3.10.0

func (GetServerDisksResultOutput) OutputFile added in v3.10.0

func (GetServerDisksResultOutput) Status added in v3.10.0

func (GetServerDisksResultOutput) ToGetServerDisksResultOutput added in v3.10.0

func (o GetServerDisksResultOutput) ToGetServerDisksResultOutput() GetServerDisksResultOutput

func (GetServerDisksResultOutput) ToGetServerDisksResultOutputWithContext added in v3.10.0

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

type GetServerFirewallRulesArgs added in v3.10.0

type GetServerFirewallRulesArgs struct {
	// A list of Firewall Rule IDs.
	Ids []string `pulumi:"ids"`
	// Alibaba Cloud simple application server instance ID.
	InstanceId string `pulumi:"instanceId"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getServerFirewallRules.

type GetServerFirewallRulesOutputArgs added in v3.10.0

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"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getServerFirewallRules.

func (GetServerFirewallRulesOutputArgs) ElementType added in v3.10.0

type GetServerFirewallRulesResult added in v3.10.0

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 added in v3.10.0

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/v3/go/alicloud/simpleapplicationserver"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

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 added in v3.10.0

type GetServerFirewallRulesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getServerFirewallRules.

func GetServerFirewallRulesOutput added in v3.10.0

func (GetServerFirewallRulesResultOutput) ElementType added in v3.10.0

func (GetServerFirewallRulesResultOutput) Id added in v3.10.0

The provider-assigned unique ID for this managed resource.

func (GetServerFirewallRulesResultOutput) Ids added in v3.10.0

func (GetServerFirewallRulesResultOutput) InstanceId added in v3.10.0

func (GetServerFirewallRulesResultOutput) OutputFile added in v3.10.0

func (GetServerFirewallRulesResultOutput) Rules added in v3.10.0

func (GetServerFirewallRulesResultOutput) ToGetServerFirewallRulesResultOutput added in v3.10.0

func (o GetServerFirewallRulesResultOutput) ToGetServerFirewallRulesResultOutput() GetServerFirewallRulesResultOutput

func (GetServerFirewallRulesResultOutput) ToGetServerFirewallRulesResultOutputWithContext added in v3.10.0

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

type GetServerFirewallRulesRule added in v3.10.0

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 added in v3.10.0

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 added in v3.10.0

func (GetServerFirewallRulesRuleArgs) ToGetServerFirewallRulesRuleOutput added in v3.10.0

func (i GetServerFirewallRulesRuleArgs) ToGetServerFirewallRulesRuleOutput() GetServerFirewallRulesRuleOutput

func (GetServerFirewallRulesRuleArgs) ToGetServerFirewallRulesRuleOutputWithContext added in v3.10.0

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

type GetServerFirewallRulesRuleArray added in v3.10.0

type GetServerFirewallRulesRuleArray []GetServerFirewallRulesRuleInput

func (GetServerFirewallRulesRuleArray) ElementType added in v3.10.0

func (GetServerFirewallRulesRuleArray) ToGetServerFirewallRulesRuleArrayOutput added in v3.10.0

func (i GetServerFirewallRulesRuleArray) ToGetServerFirewallRulesRuleArrayOutput() GetServerFirewallRulesRuleArrayOutput

func (GetServerFirewallRulesRuleArray) ToGetServerFirewallRulesRuleArrayOutputWithContext added in v3.10.0

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

type GetServerFirewallRulesRuleArrayInput added in v3.10.0

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 added in v3.10.0

type GetServerFirewallRulesRuleArrayOutput struct{ *pulumi.OutputState }

func (GetServerFirewallRulesRuleArrayOutput) ElementType added in v3.10.0

func (GetServerFirewallRulesRuleArrayOutput) Index added in v3.10.0

func (GetServerFirewallRulesRuleArrayOutput) ToGetServerFirewallRulesRuleArrayOutput added in v3.10.0

func (o GetServerFirewallRulesRuleArrayOutput) ToGetServerFirewallRulesRuleArrayOutput() GetServerFirewallRulesRuleArrayOutput

func (GetServerFirewallRulesRuleArrayOutput) ToGetServerFirewallRulesRuleArrayOutputWithContext added in v3.10.0

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

type GetServerFirewallRulesRuleInput added in v3.10.0

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 added in v3.10.0

type GetServerFirewallRulesRuleOutput struct{ *pulumi.OutputState }

func (GetServerFirewallRulesRuleOutput) ElementType added in v3.10.0

func (GetServerFirewallRulesRuleOutput) FirewallRuleId added in v3.10.0

The ID of the firewall rule.

func (GetServerFirewallRulesRuleOutput) Id added in v3.10.0

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

func (GetServerFirewallRulesRuleOutput) InstanceId added in v3.10.0

Alibaba Cloud simple application server instance ID.

func (GetServerFirewallRulesRuleOutput) Port added in v3.10.0

The port range of the firewall rule.

func (GetServerFirewallRulesRuleOutput) Remark added in v3.10.0

The remarks of the firewall rule.

func (GetServerFirewallRulesRuleOutput) RuleProtocol added in v3.10.0

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

func (GetServerFirewallRulesRuleOutput) ToGetServerFirewallRulesRuleOutput added in v3.10.0

func (o GetServerFirewallRulesRuleOutput) ToGetServerFirewallRulesRuleOutput() GetServerFirewallRulesRuleOutput

func (GetServerFirewallRulesRuleOutput) ToGetServerFirewallRulesRuleOutputWithContext added in v3.10.0

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"`
	// File name where to save data source results (after running `pulumi preview`).
	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 added in v3.9.0

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"`
	// File name where to save data source results (after running `pulumi preview`).
	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 added in v3.9.0

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 added in v3.20.0

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/v3/go/alicloud/simpleapplicationserver"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

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", ids.Plans[0].Id)
		return nil
	})
}

```

type GetServerPlansResultOutput added in v3.9.0

type GetServerPlansResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getServerPlans.

func GetServerPlansOutput added in v3.9.0

func GetServerPlansOutput(ctx *pulumi.Context, args GetServerPlansOutputArgs, opts ...pulumi.InvokeOption) GetServerPlansResultOutput

func (GetServerPlansResultOutput) Bandwidth added in v3.9.0

func (GetServerPlansResultOutput) Core added in v3.9.0

func (GetServerPlansResultOutput) DiskSize added in v3.9.0

func (GetServerPlansResultOutput) ElementType added in v3.9.0

func (GetServerPlansResultOutput) ElementType() reflect.Type

func (GetServerPlansResultOutput) Flow added in v3.9.0

func (GetServerPlansResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetServerPlansResultOutput) Ids added in v3.9.0

func (GetServerPlansResultOutput) Memory added in v3.9.0

func (GetServerPlansResultOutput) OutputFile added in v3.9.0

func (GetServerPlansResultOutput) Plans added in v3.9.0

func (GetServerPlansResultOutput) Platform added in v3.20.0

func (GetServerPlansResultOutput) ToGetServerPlansResultOutput added in v3.9.0

func (o GetServerPlansResultOutput) ToGetServerPlansResultOutput() GetServerPlansResultOutput

func (GetServerPlansResultOutput) ToGetServerPlansResultOutputWithContext added in v3.9.0

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

type GetServerSnapshotsArgs added in v3.10.0

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"`
	// File name where to save data source results (after running `pulumi preview`).
	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 added in v3.10.0

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"`
	// File name where to save data source results (after running `pulumi preview`).
	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 added in v3.10.0

type GetServerSnapshotsResult added in v3.10.0

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 added in v3.10.0

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/v3/go/alicloud/simpleapplicationserver"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

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 added in v3.10.0

type GetServerSnapshotsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getServerSnapshots.

func GetServerSnapshotsOutput added in v3.10.0

func (GetServerSnapshotsResultOutput) DiskId added in v3.10.0

func (GetServerSnapshotsResultOutput) ElementType added in v3.10.0

func (GetServerSnapshotsResultOutput) Id added in v3.10.0

The provider-assigned unique ID for this managed resource.

func (GetServerSnapshotsResultOutput) Ids added in v3.10.0

func (GetServerSnapshotsResultOutput) InstanceId added in v3.10.0

func (GetServerSnapshotsResultOutput) NameRegex added in v3.10.0

func (GetServerSnapshotsResultOutput) Names added in v3.10.0

func (GetServerSnapshotsResultOutput) OutputFile added in v3.10.0

func (GetServerSnapshotsResultOutput) Snapshots added in v3.10.0

func (GetServerSnapshotsResultOutput) Status added in v3.10.0

func (GetServerSnapshotsResultOutput) ToGetServerSnapshotsResultOutput added in v3.10.0

func (o GetServerSnapshotsResultOutput) ToGetServerSnapshotsResultOutput() GetServerSnapshotsResultOutput

func (GetServerSnapshotsResultOutput) ToGetServerSnapshotsResultOutputWithContext added in v3.10.0

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

type GetServerSnapshotsSnapshot added in v3.10.0

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 added in v3.10.0

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 added in v3.10.0

func (GetServerSnapshotsSnapshotArgs) ToGetServerSnapshotsSnapshotOutput added in v3.10.0

func (i GetServerSnapshotsSnapshotArgs) ToGetServerSnapshotsSnapshotOutput() GetServerSnapshotsSnapshotOutput

func (GetServerSnapshotsSnapshotArgs) ToGetServerSnapshotsSnapshotOutputWithContext added in v3.10.0

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

type GetServerSnapshotsSnapshotArray added in v3.10.0

type GetServerSnapshotsSnapshotArray []GetServerSnapshotsSnapshotInput

func (GetServerSnapshotsSnapshotArray) ElementType added in v3.10.0

func (GetServerSnapshotsSnapshotArray) ToGetServerSnapshotsSnapshotArrayOutput added in v3.10.0

func (i GetServerSnapshotsSnapshotArray) ToGetServerSnapshotsSnapshotArrayOutput() GetServerSnapshotsSnapshotArrayOutput

func (GetServerSnapshotsSnapshotArray) ToGetServerSnapshotsSnapshotArrayOutputWithContext added in v3.10.0

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

type GetServerSnapshotsSnapshotArrayInput added in v3.10.0

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 added in v3.10.0

type GetServerSnapshotsSnapshotArrayOutput struct{ *pulumi.OutputState }

func (GetServerSnapshotsSnapshotArrayOutput) ElementType added in v3.10.0

func (GetServerSnapshotsSnapshotArrayOutput) Index added in v3.10.0

func (GetServerSnapshotsSnapshotArrayOutput) ToGetServerSnapshotsSnapshotArrayOutput added in v3.10.0

func (o GetServerSnapshotsSnapshotArrayOutput) ToGetServerSnapshotsSnapshotArrayOutput() GetServerSnapshotsSnapshotArrayOutput

func (GetServerSnapshotsSnapshotArrayOutput) ToGetServerSnapshotsSnapshotArrayOutputWithContext added in v3.10.0

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

type GetServerSnapshotsSnapshotInput added in v3.10.0

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 added in v3.10.0

type GetServerSnapshotsSnapshotOutput struct{ *pulumi.OutputState }

func (GetServerSnapshotsSnapshotOutput) CreateTime added in v3.10.0

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 added in v3.10.0

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

func (GetServerSnapshotsSnapshotOutput) ElementType added in v3.10.0

func (GetServerSnapshotsSnapshotOutput) Id added in v3.10.0

The ID of the Snapshot.

func (GetServerSnapshotsSnapshotOutput) Progress added in v3.10.0

The progress of snapshot creation.

func (GetServerSnapshotsSnapshotOutput) Remark added in v3.10.0

The remarks of the snapshot.

func (GetServerSnapshotsSnapshotOutput) SnapshotId added in v3.10.0

The ID of the snapshot.

func (GetServerSnapshotsSnapshotOutput) SnapshotName added in v3.10.0

The name of the snapshot.

func (GetServerSnapshotsSnapshotOutput) SourceDiskType added in v3.10.0

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

func (GetServerSnapshotsSnapshotOutput) Status added in v3.10.0

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

func (GetServerSnapshotsSnapshotOutput) ToGetServerSnapshotsSnapshotOutput added in v3.10.0

func (o GetServerSnapshotsSnapshotOutput) ToGetServerSnapshotsSnapshotOutput() GetServerSnapshotsSnapshotOutput

func (GetServerSnapshotsSnapshotOutput) ToGetServerSnapshotsSnapshotOutputWithContext added in v3.10.0

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"`
}

## 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 added in v3.27.0

func (o InstanceOutput) AutoRenew() pulumi.BoolPtrOutput

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

func (InstanceOutput) AutoRenewPeriod added in v3.27.0

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 added in v3.27.0

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 added in v3.27.0

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 added in v3.27.0

func (o InstanceOutput) InstanceName() pulumi.StringPtrOutput

The name of the simple application server.

func (InstanceOutput) Password added in v3.27.0

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 added in v3.27.0

func (o InstanceOutput) PaymentType() pulumi.StringOutput

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

func (InstanceOutput) Period added in v3.27.0

func (o InstanceOutput) Period() pulumi.IntOutput

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

func (InstanceOutput) PlanId added in v3.27.0

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 added in v3.27.0

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 added in v3.10.0

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 since v1.143.0.

## Example Usage

Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf_example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_default, err := simpleapplicationserver.GetImages(ctx, nil, nil)
		if err != nil {
			return err
		}
		defaultGetServerPlans, err := simpleapplicationserver.GetServerPlans(ctx, nil, nil)
		if err != nil {
			return err
		}
		defaultInstance, err := simpleapplicationserver.NewInstance(ctx, "default", &simpleapplicationserver.InstanceArgs{
			PaymentType:  pulumi.String("Subscription"),
			PlanId:       pulumi.String(defaultGetServerPlans.Plans[0].Id),
			InstanceName: pulumi.String(name),
			ImageId:      pulumi.String(_default.Images[0].Id),
			Period:       pulumi.Int(1),
			DataDiskSize: pulumi.Int(100),
		})
		if err != nil {
			return err
		}
		defaultGetServerDisks := simpleapplicationserver.GetServerDisksOutput(ctx, simpleapplicationserver.GetServerDisksOutputArgs{
			InstanceId: defaultInstance.ID(),
		}, nil)
		_, err = simpleapplicationserver.NewSnapshot(ctx, "default", &simpleapplicationserver.SnapshotArgs{
			DiskId: defaultGetServerDisks.ApplyT(func(defaultGetServerDisks simpleapplicationserver.GetServerDisksResult) (*string, error) {
				return &defaultGetServerDisks.Ids[0], nil
			}).(pulumi.StringPtrOutput),
			SnapshotName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

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

func GetSnapshot added in v3.10.0

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 added in v3.10.0

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 added in v3.10.0

func (*Snapshot) ElementType() reflect.Type

func (*Snapshot) ToSnapshotOutput added in v3.10.0

func (i *Snapshot) ToSnapshotOutput() SnapshotOutput

func (*Snapshot) ToSnapshotOutputWithContext added in v3.10.0

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

type SnapshotArgs added in v3.10.0

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 added in v3.10.0

func (SnapshotArgs) ElementType() reflect.Type

type SnapshotArray added in v3.10.0

type SnapshotArray []SnapshotInput

func (SnapshotArray) ElementType added in v3.10.0

func (SnapshotArray) ElementType() reflect.Type

func (SnapshotArray) ToSnapshotArrayOutput added in v3.10.0

func (i SnapshotArray) ToSnapshotArrayOutput() SnapshotArrayOutput

func (SnapshotArray) ToSnapshotArrayOutputWithContext added in v3.10.0

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

type SnapshotArrayInput added in v3.10.0

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 added in v3.10.0

type SnapshotArrayOutput struct{ *pulumi.OutputState }

func (SnapshotArrayOutput) ElementType added in v3.10.0

func (SnapshotArrayOutput) ElementType() reflect.Type

func (SnapshotArrayOutput) Index added in v3.10.0

func (SnapshotArrayOutput) ToSnapshotArrayOutput added in v3.10.0

func (o SnapshotArrayOutput) ToSnapshotArrayOutput() SnapshotArrayOutput

func (SnapshotArrayOutput) ToSnapshotArrayOutputWithContext added in v3.10.0

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

type SnapshotInput added in v3.10.0

type SnapshotInput interface {
	pulumi.Input

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

type SnapshotMap added in v3.10.0

type SnapshotMap map[string]SnapshotInput

func (SnapshotMap) ElementType added in v3.10.0

func (SnapshotMap) ElementType() reflect.Type

func (SnapshotMap) ToSnapshotMapOutput added in v3.10.0

func (i SnapshotMap) ToSnapshotMapOutput() SnapshotMapOutput

func (SnapshotMap) ToSnapshotMapOutputWithContext added in v3.10.0

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

type SnapshotMapInput added in v3.10.0

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 added in v3.10.0

type SnapshotMapOutput struct{ *pulumi.OutputState }

func (SnapshotMapOutput) ElementType added in v3.10.0

func (SnapshotMapOutput) ElementType() reflect.Type

func (SnapshotMapOutput) MapIndex added in v3.10.0

func (SnapshotMapOutput) ToSnapshotMapOutput added in v3.10.0

func (o SnapshotMapOutput) ToSnapshotMapOutput() SnapshotMapOutput

func (SnapshotMapOutput) ToSnapshotMapOutputWithContext added in v3.10.0

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

type SnapshotOutput added in v3.10.0

type SnapshotOutput struct{ *pulumi.OutputState }

func (SnapshotOutput) DiskId added in v3.27.0

func (o SnapshotOutput) DiskId() pulumi.StringOutput

The ID of the disk.

func (SnapshotOutput) ElementType added in v3.10.0

func (SnapshotOutput) ElementType() reflect.Type

func (SnapshotOutput) SnapshotName added in v3.27.0

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 added in v3.27.0

func (o SnapshotOutput) Status() pulumi.StringOutput

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

func (SnapshotOutput) ToSnapshotOutput added in v3.10.0

func (o SnapshotOutput) ToSnapshotOutput() SnapshotOutput

func (SnapshotOutput) ToSnapshotOutputWithContext added in v3.10.0

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

type SnapshotState added in v3.10.0

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 added in v3.10.0

func (SnapshotState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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