simpleapplicationserver

package
v3.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 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 GetImagesArgs

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

A collection of arguments for invoking getImages.

type GetImagesImage

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

type GetImagesImageArgs

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

func (GetImagesImageArgs) ElementType

func (GetImagesImageArgs) ElementType() reflect.Type

func (GetImagesImageArgs) ToGetImagesImageOutput

func (i GetImagesImageArgs) ToGetImagesImageOutput() GetImagesImageOutput

func (GetImagesImageArgs) ToGetImagesImageOutputWithContext

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

type GetImagesImageArray

type GetImagesImageArray []GetImagesImageInput

func (GetImagesImageArray) ElementType

func (GetImagesImageArray) ElementType() reflect.Type

func (GetImagesImageArray) ToGetImagesImageArrayOutput

func (i GetImagesImageArray) ToGetImagesImageArrayOutput() GetImagesImageArrayOutput

func (GetImagesImageArray) ToGetImagesImageArrayOutputWithContext

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

type GetImagesImageArrayInput

type GetImagesImageArrayInput interface {
	pulumi.Input

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

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

GetImagesImageArray{ GetImagesImageArgs{...} }

type GetImagesImageArrayOutput

type GetImagesImageArrayOutput struct{ *pulumi.OutputState }

func (GetImagesImageArrayOutput) ElementType

func (GetImagesImageArrayOutput) ElementType() reflect.Type

func (GetImagesImageArrayOutput) Index

func (GetImagesImageArrayOutput) ToGetImagesImageArrayOutput

func (o GetImagesImageArrayOutput) ToGetImagesImageArrayOutput() GetImagesImageArrayOutput

func (GetImagesImageArrayOutput) ToGetImagesImageArrayOutputWithContext

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

type GetImagesImageInput

type GetImagesImageInput interface {
	pulumi.Input

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

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

GetImagesImageArgs{...}

type GetImagesImageOutput

type GetImagesImageOutput struct{ *pulumi.OutputState }

func (GetImagesImageOutput) Description

func (o GetImagesImageOutput) Description() pulumi.StringOutput

The description of the image.

func (GetImagesImageOutput) ElementType

func (GetImagesImageOutput) ElementType() reflect.Type

func (GetImagesImageOutput) Id

The ID of the Instance Image.

func (GetImagesImageOutput) ImageId

The ID of the image.

func (GetImagesImageOutput) ImageName

The name of the resource.

func (GetImagesImageOutput) ImageType

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

func (GetImagesImageOutput) 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`.
	// * `system`: operating system (OS) image.
	// * `app`: application image.
	// * `custom`: custom image.
	ImageType  pulumi.StringPtrInput `pulumi:"imageType"`
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

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

A collection of values returned by getImages.

func GetImages

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

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) 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"`
	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"`
	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)
		opt0 := "^my-Instance"
		nameRegex, err := simpleapplicationserver.GetInstances(ctx, &simpleapplicationserver.GetInstancesArgs{
			NameRegex: &opt0,
		}, 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 GetServerPlansArgs

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

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"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

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

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

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

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 {
		opt0 := 1
		opt1 := 3
		opt2 := 40
		opt3 := 6
		opt4 := 2
		_, err := simpleapplicationserver.GetServerPlans(ctx, &simpleapplicationserver.GetServerPlansArgs{
			Memory:    &opt0,
			Bandwidth: &opt1,
			DiskSize:  &opt2,
			Flow:      &opt3,
			Core:      &opt4,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("simpleApplicationServerPlanId1", data.Alicloud_simple_application_server_plans.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) 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 Instance

type Instance struct {
	pulumi.CustomResourceState

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

Provides a Simple Application Server Instance resource.

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

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

## Import

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

```sh

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

```

func GetInstance

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

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

func NewInstance

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

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

func (*Instance) ElementType

func (*Instance) ElementType() reflect.Type

func (*Instance) ToInstanceOutput

func (i *Instance) ToInstanceOutput() InstanceOutput

func (*Instance) ToInstanceOutputWithContext

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

func (*Instance) ToInstancePtrOutput

func (i *Instance) ToInstancePtrOutput() InstancePtrOutput

func (*Instance) ToInstancePtrOutputWithContext

func (i *Instance) ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput

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) ElementType

func (InstanceOutput) ElementType() reflect.Type

func (InstanceOutput) ToInstanceOutput

func (o InstanceOutput) ToInstanceOutput() InstanceOutput

func (InstanceOutput) ToInstanceOutputWithContext

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

func (InstanceOutput) ToInstancePtrOutput

func (o InstanceOutput) ToInstancePtrOutput() InstancePtrOutput

func (InstanceOutput) ToInstancePtrOutputWithContext

func (o InstanceOutput) ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput

type InstancePtrInput

type InstancePtrInput interface {
	pulumi.Input

	ToInstancePtrOutput() InstancePtrOutput
	ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput
}

type InstancePtrOutput

type InstancePtrOutput struct{ *pulumi.OutputState }

func (InstancePtrOutput) Elem added in v3.9.0

func (InstancePtrOutput) ElementType

func (InstancePtrOutput) ElementType() reflect.Type

func (InstancePtrOutput) ToInstancePtrOutput

func (o InstancePtrOutput) ToInstancePtrOutput() InstancePtrOutput

func (InstancePtrOutput) ToInstancePtrOutputWithContext

func (o InstancePtrOutput) ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput

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

Jump to

Keyboard shortcuts

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