gpdb

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.1

func PkgVersion() (semver.Version, error)

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

Types

type Account

type Account struct {
	pulumi.CustomResourceState

	// The description of the account.
	// * Starts with a letter.
	// * Does not start with `http://` or `https://`.
	// * Contains letters, underscores (_), hyphens (-), or digits.
	// * Be 2 to 256 characters in length.
	AccountDescription pulumi.StringPtrOutput `pulumi:"accountDescription"`
	// The name of the account. The account name must be unique and meet the following requirements:
	// * Starts with a letter.
	// * Contains only lowercase letters, digits, or underscores (_).
	// * Be up to 16 characters in length.
	// * Contains no reserved keywords.
	AccountName pulumi.StringOutput `pulumi:"accountName"`
	// The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include `! @ # $ % ^ & * ( ) _ + - =`.
	AccountPassword pulumi.StringOutput `pulumi:"accountPassword"`
	// The ID of the instance.
	DbInstanceId pulumi.StringOutput `pulumi:"dbInstanceId"`
	// The status of the account. Valid values: `Active`, `Creating` and `Deleting`.
	Status pulumi.StringOutput `pulumi:"status"`
}

Provides a GPDB Account resource.

For information about GPDB Account and how to use it, see [What is Account](https://www.alibabacloud.com/help/doc-detail/86924.htm).

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

## Import

GPDB Account can be imported using the id, e.g.

```sh

$ pulumi import alicloud:gpdb/account:Account example <db_instance_id>:<account_name>

```

func GetAccount

func GetAccount(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AccountState, opts ...pulumi.ResourceOption) (*Account, error)

GetAccount gets an existing Account 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 NewAccount

func NewAccount(ctx *pulumi.Context,
	name string, args *AccountArgs, opts ...pulumi.ResourceOption) (*Account, error)

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

func (*Account) ElementType

func (*Account) ElementType() reflect.Type

func (*Account) ToAccountOutput

func (i *Account) ToAccountOutput() AccountOutput

func (*Account) ToAccountOutputWithContext

func (i *Account) ToAccountOutputWithContext(ctx context.Context) AccountOutput

type AccountArgs

type AccountArgs struct {
	// The description of the account.
	// * Starts with a letter.
	// * Does not start with `http://` or `https://`.
	// * Contains letters, underscores (_), hyphens (-), or digits.
	// * Be 2 to 256 characters in length.
	AccountDescription pulumi.StringPtrInput
	// The name of the account. The account name must be unique and meet the following requirements:
	// * Starts with a letter.
	// * Contains only lowercase letters, digits, or underscores (_).
	// * Be up to 16 characters in length.
	// * Contains no reserved keywords.
	AccountName pulumi.StringInput
	// The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include `! @ # $ % ^ & * ( ) _ + - =`.
	AccountPassword pulumi.StringInput
	// The ID of the instance.
	DbInstanceId pulumi.StringInput
}

The set of arguments for constructing a Account resource.

func (AccountArgs) ElementType

func (AccountArgs) ElementType() reflect.Type

type AccountArray

type AccountArray []AccountInput

func (AccountArray) ElementType

func (AccountArray) ElementType() reflect.Type

func (AccountArray) ToAccountArrayOutput

func (i AccountArray) ToAccountArrayOutput() AccountArrayOutput

func (AccountArray) ToAccountArrayOutputWithContext

func (i AccountArray) ToAccountArrayOutputWithContext(ctx context.Context) AccountArrayOutput

type AccountArrayInput

type AccountArrayInput interface {
	pulumi.Input

	ToAccountArrayOutput() AccountArrayOutput
	ToAccountArrayOutputWithContext(context.Context) AccountArrayOutput
}

AccountArrayInput is an input type that accepts AccountArray and AccountArrayOutput values. You can construct a concrete instance of `AccountArrayInput` via:

AccountArray{ AccountArgs{...} }

type AccountArrayOutput

type AccountArrayOutput struct{ *pulumi.OutputState }

func (AccountArrayOutput) ElementType

func (AccountArrayOutput) ElementType() reflect.Type

func (AccountArrayOutput) Index

func (AccountArrayOutput) ToAccountArrayOutput

func (o AccountArrayOutput) ToAccountArrayOutput() AccountArrayOutput

func (AccountArrayOutput) ToAccountArrayOutputWithContext

func (o AccountArrayOutput) ToAccountArrayOutputWithContext(ctx context.Context) AccountArrayOutput

type AccountInput

type AccountInput interface {
	pulumi.Input

	ToAccountOutput() AccountOutput
	ToAccountOutputWithContext(ctx context.Context) AccountOutput
}

type AccountMap

type AccountMap map[string]AccountInput

func (AccountMap) ElementType

func (AccountMap) ElementType() reflect.Type

func (AccountMap) ToAccountMapOutput

func (i AccountMap) ToAccountMapOutput() AccountMapOutput

func (AccountMap) ToAccountMapOutputWithContext

func (i AccountMap) ToAccountMapOutputWithContext(ctx context.Context) AccountMapOutput

type AccountMapInput

type AccountMapInput interface {
	pulumi.Input

	ToAccountMapOutput() AccountMapOutput
	ToAccountMapOutputWithContext(context.Context) AccountMapOutput
}

AccountMapInput is an input type that accepts AccountMap and AccountMapOutput values. You can construct a concrete instance of `AccountMapInput` via:

AccountMap{ "key": AccountArgs{...} }

type AccountMapOutput

type AccountMapOutput struct{ *pulumi.OutputState }

func (AccountMapOutput) ElementType

func (AccountMapOutput) ElementType() reflect.Type

func (AccountMapOutput) MapIndex

func (AccountMapOutput) ToAccountMapOutput

func (o AccountMapOutput) ToAccountMapOutput() AccountMapOutput

func (AccountMapOutput) ToAccountMapOutputWithContext

func (o AccountMapOutput) ToAccountMapOutputWithContext(ctx context.Context) AccountMapOutput

type AccountOutput

type AccountOutput struct{ *pulumi.OutputState }

func (AccountOutput) AccountDescription

func (o AccountOutput) AccountDescription() pulumi.StringPtrOutput

The description of the account. * Starts with a letter. * Does not start with `http://` or `https://`. * Contains letters, underscores (_), hyphens (-), or digits. * Be 2 to 256 characters in length.

func (AccountOutput) AccountName

func (o AccountOutput) AccountName() pulumi.StringOutput

The name of the account. The account name must be unique and meet the following requirements: * Starts with a letter. * Contains only lowercase letters, digits, or underscores (_). * Be up to 16 characters in length. * Contains no reserved keywords.

func (AccountOutput) AccountPassword

func (o AccountOutput) AccountPassword() pulumi.StringOutput

The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include `! @ # $ % ^ & * ( ) _ + - =`.

func (AccountOutput) DbInstanceId

func (o AccountOutput) DbInstanceId() pulumi.StringOutput

The ID of the instance.

func (AccountOutput) ElementType

func (AccountOutput) ElementType() reflect.Type

func (AccountOutput) Status

func (o AccountOutput) Status() pulumi.StringOutput

The status of the account. Valid values: `Active`, `Creating` and `Deleting`.

func (AccountOutput) ToAccountOutput

func (o AccountOutput) ToAccountOutput() AccountOutput

func (AccountOutput) ToAccountOutputWithContext

func (o AccountOutput) ToAccountOutputWithContext(ctx context.Context) AccountOutput

type AccountState

type AccountState struct {
	// The description of the account.
	// * Starts with a letter.
	// * Does not start with `http://` or `https://`.
	// * Contains letters, underscores (_), hyphens (-), or digits.
	// * Be 2 to 256 characters in length.
	AccountDescription pulumi.StringPtrInput
	// The name of the account. The account name must be unique and meet the following requirements:
	// * Starts with a letter.
	// * Contains only lowercase letters, digits, or underscores (_).
	// * Be up to 16 characters in length.
	// * Contains no reserved keywords.
	AccountName pulumi.StringPtrInput
	// The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include `! @ # $ % ^ & * ( ) _ + - =`.
	AccountPassword pulumi.StringPtrInput
	// The ID of the instance.
	DbInstanceId pulumi.StringPtrInput
	// The status of the account. Valid values: `Active`, `Creating` and `Deleting`.
	Status pulumi.StringPtrInput
}

func (AccountState) ElementType

func (AccountState) ElementType() reflect.Type

type Connection

type Connection struct {
	pulumi.CustomResourceState

	// Prefix of an Internet connection string. It must be checked for uniqueness. It may consist of lowercase letters, numbers, and underlines, and must start with a letter and have no more than 30 characters. Default to <instance_id> + '-tf'.
	ConnectionPrefix pulumi.StringOutput `pulumi:"connectionPrefix"`
	// Connection instance string.
	ConnectionString pulumi.StringOutput `pulumi:"connectionString"`
	// The Id of instance that can run database.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// The ip address of connection string.
	IpAddress pulumi.StringOutput `pulumi:"ipAddress"`
	// Internet connection port. Valid value: [3200-3999]. Default to 3306.
	Port pulumi.StringPtrOutput `pulumi:"port"`
}

Provides a connection resource to allocate an Internet connection string for instance.

> **NOTE:** Available in 1.48.0+

> **NOTE:** Each instance will allocate a intranet connection string automatically and its prefix is instance ID.

To avoid unnecessary conflict, please specified a internet connection prefix before applying the resource.

## Import

AnalyticDB for PostgreSQL's connection can be imported using the id, e.g.

```sh

$ pulumi import alicloud:gpdb/connection:Connection example abc12345678

```

func GetConnection

func GetConnection(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ConnectionState, opts ...pulumi.ResourceOption) (*Connection, error)

GetConnection gets an existing Connection 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 NewConnection

func NewConnection(ctx *pulumi.Context,
	name string, args *ConnectionArgs, opts ...pulumi.ResourceOption) (*Connection, error)

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

func (*Connection) ElementType

func (*Connection) ElementType() reflect.Type

func (*Connection) ToConnectionOutput

func (i *Connection) ToConnectionOutput() ConnectionOutput

func (*Connection) ToConnectionOutputWithContext

func (i *Connection) ToConnectionOutputWithContext(ctx context.Context) ConnectionOutput

type ConnectionArgs

type ConnectionArgs struct {
	// Prefix of an Internet connection string. It must be checked for uniqueness. It may consist of lowercase letters, numbers, and underlines, and must start with a letter and have no more than 30 characters. Default to <instance_id> + '-tf'.
	ConnectionPrefix pulumi.StringPtrInput
	// The Id of instance that can run database.
	InstanceId pulumi.StringInput
	// Internet connection port. Valid value: [3200-3999]. Default to 3306.
	Port pulumi.StringPtrInput
}

The set of arguments for constructing a Connection resource.

func (ConnectionArgs) ElementType

func (ConnectionArgs) ElementType() reflect.Type

type ConnectionArray

type ConnectionArray []ConnectionInput

func (ConnectionArray) ElementType

func (ConnectionArray) ElementType() reflect.Type

func (ConnectionArray) ToConnectionArrayOutput

func (i ConnectionArray) ToConnectionArrayOutput() ConnectionArrayOutput

func (ConnectionArray) ToConnectionArrayOutputWithContext

func (i ConnectionArray) ToConnectionArrayOutputWithContext(ctx context.Context) ConnectionArrayOutput

type ConnectionArrayInput

type ConnectionArrayInput interface {
	pulumi.Input

	ToConnectionArrayOutput() ConnectionArrayOutput
	ToConnectionArrayOutputWithContext(context.Context) ConnectionArrayOutput
}

ConnectionArrayInput is an input type that accepts ConnectionArray and ConnectionArrayOutput values. You can construct a concrete instance of `ConnectionArrayInput` via:

ConnectionArray{ ConnectionArgs{...} }

type ConnectionArrayOutput

type ConnectionArrayOutput struct{ *pulumi.OutputState }

func (ConnectionArrayOutput) ElementType

func (ConnectionArrayOutput) ElementType() reflect.Type

func (ConnectionArrayOutput) Index

func (ConnectionArrayOutput) ToConnectionArrayOutput

func (o ConnectionArrayOutput) ToConnectionArrayOutput() ConnectionArrayOutput

func (ConnectionArrayOutput) ToConnectionArrayOutputWithContext

func (o ConnectionArrayOutput) ToConnectionArrayOutputWithContext(ctx context.Context) ConnectionArrayOutput

type ConnectionInput

type ConnectionInput interface {
	pulumi.Input

	ToConnectionOutput() ConnectionOutput
	ToConnectionOutputWithContext(ctx context.Context) ConnectionOutput
}

type ConnectionMap

type ConnectionMap map[string]ConnectionInput

func (ConnectionMap) ElementType

func (ConnectionMap) ElementType() reflect.Type

func (ConnectionMap) ToConnectionMapOutput

func (i ConnectionMap) ToConnectionMapOutput() ConnectionMapOutput

func (ConnectionMap) ToConnectionMapOutputWithContext

func (i ConnectionMap) ToConnectionMapOutputWithContext(ctx context.Context) ConnectionMapOutput

type ConnectionMapInput

type ConnectionMapInput interface {
	pulumi.Input

	ToConnectionMapOutput() ConnectionMapOutput
	ToConnectionMapOutputWithContext(context.Context) ConnectionMapOutput
}

ConnectionMapInput is an input type that accepts ConnectionMap and ConnectionMapOutput values. You can construct a concrete instance of `ConnectionMapInput` via:

ConnectionMap{ "key": ConnectionArgs{...} }

type ConnectionMapOutput

type ConnectionMapOutput struct{ *pulumi.OutputState }

func (ConnectionMapOutput) ElementType

func (ConnectionMapOutput) ElementType() reflect.Type

func (ConnectionMapOutput) MapIndex

func (ConnectionMapOutput) ToConnectionMapOutput

func (o ConnectionMapOutput) ToConnectionMapOutput() ConnectionMapOutput

func (ConnectionMapOutput) ToConnectionMapOutputWithContext

func (o ConnectionMapOutput) ToConnectionMapOutputWithContext(ctx context.Context) ConnectionMapOutput

type ConnectionOutput

type ConnectionOutput struct{ *pulumi.OutputState }

func (ConnectionOutput) ConnectionPrefix

func (o ConnectionOutput) ConnectionPrefix() pulumi.StringOutput

Prefix of an Internet connection string. It must be checked for uniqueness. It may consist of lowercase letters, numbers, and underlines, and must start with a letter and have no more than 30 characters. Default to <instance_id> + '-tf'.

func (ConnectionOutput) ConnectionString

func (o ConnectionOutput) ConnectionString() pulumi.StringOutput

Connection instance string.

func (ConnectionOutput) ElementType

func (ConnectionOutput) ElementType() reflect.Type

func (ConnectionOutput) InstanceId

func (o ConnectionOutput) InstanceId() pulumi.StringOutput

The Id of instance that can run database.

func (ConnectionOutput) IpAddress

func (o ConnectionOutput) IpAddress() pulumi.StringOutput

The ip address of connection string.

func (ConnectionOutput) Port

Internet connection port. Valid value: [3200-3999]. Default to 3306.

func (ConnectionOutput) ToConnectionOutput

func (o ConnectionOutput) ToConnectionOutput() ConnectionOutput

func (ConnectionOutput) ToConnectionOutputWithContext

func (o ConnectionOutput) ToConnectionOutputWithContext(ctx context.Context) ConnectionOutput

type ConnectionState

type ConnectionState struct {
	// Prefix of an Internet connection string. It must be checked for uniqueness. It may consist of lowercase letters, numbers, and underlines, and must start with a letter and have no more than 30 characters. Default to <instance_id> + '-tf'.
	ConnectionPrefix pulumi.StringPtrInput
	// Connection instance string.
	ConnectionString pulumi.StringPtrInput
	// The Id of instance that can run database.
	InstanceId pulumi.StringPtrInput
	// The ip address of connection string.
	IpAddress pulumi.StringPtrInput
	// Internet connection port. Valid value: [3200-3999]. Default to 3306.
	Port pulumi.StringPtrInput
}

func (ConnectionState) ElementType

func (ConnectionState) ElementType() reflect.Type

type ElasticInstance

type ElasticInstance struct {
	pulumi.CustomResourceState

	// ADB PG instance connection string.
	ConnectionString pulumi.StringOutput `pulumi:"connectionString"`
	// The edition of the instance. Valid values: `Basic`, `HighAvailability`. Default value: `HighAvailability`.
	DbInstanceCategory pulumi.StringOutput `pulumi:"dbInstanceCategory"`
	// The description of ADB PG instance. It is a string of 2 to 256 characters.
	DbInstanceDescription pulumi.StringPtrOutput `pulumi:"dbInstanceDescription"`
	// The ID of the encryption key. **Note:** If the `encryptionType` parameter is set to `CloudDisk`, you must specify this parameter to the encryption key that is in the same region as the disk that is specified by the EncryptionType parameter. Otherwise, leave this parameter empty.
	EncryptionKey pulumi.StringPtrOutput `pulumi:"encryptionKey"`
	// The type of the encryption. Valid values: `CloudDisk`. **Note:** Disk encryption cannot be disabled after it is enabled.
	EncryptionType pulumi.StringPtrOutput `pulumi:"encryptionType"`
	// Database engine: `gpdb`.
	Engine pulumi.StringOutput `pulumi:"engine"`
	// Database version. Valid value is `6.0`.
	EngineVersion pulumi.StringOutput `pulumi:"engineVersion"`
	// The network type of ADB PG instance. Only `VPC` supported now.
	InstanceNetworkType pulumi.StringPtrOutput `pulumi:"instanceNetworkType"`
	// The specification of segment nodes.
	// * When `dbInstanceCategory` is `HighAvailability`, Valid values: `2C16G`, `4C32G`, `16C128G`.
	// * When `dbInstanceCategory` is `Basic`, Valid values: `2C8G`, `4C16G`, `8C32G`, `16C64G`.
	InstanceSpec pulumi.StringOutput `pulumi:"instanceSpec"`
	// The subscription period. Valid values: [1~12]. It is valid when paymentType is `Subscription`.\
	// **NOTE:** Will not take effect after modifying `paymentDuration` for now, if you want to renew a PayAsYouGo instance, need to do in on aliyun console.
	PaymentDuration pulumi.IntPtrOutput `pulumi:"paymentDuration"`
	// The unit of the subscription period. Valid values: `Month`, `Year`. It is valid when paymentType is `Subscription`.\
	// **NOTE:** Will not take effect after modifying `paymentDurationUnit` for now, if you want to renew a PayAsYouGo instance, need to do in on aliyun console.
	PaymentDurationUnit pulumi.StringPtrOutput `pulumi:"paymentDurationUnit"`
	// Valid values are `PayAsYouGo`, `Subscription`. Default to `PayAsYouGo`.
	PaymentType pulumi.StringPtrOutput `pulumi:"paymentType"`
	// List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
	SecurityIpLists pulumi.StringArrayOutput `pulumi:"securityIpLists"`
	// The number of segment nodes. Minimum is `4`, max is `256`, step is `4`.
	SegNodeNum pulumi.IntOutput `pulumi:"segNodeNum"`
	// The disk type of segment nodes. Valid values: `cloudEssd`, `cloudEfficiency`.
	SegStorageType pulumi.StringOutput `pulumi:"segStorageType"`
	// Instance status.
	Status pulumi.StringOutput `pulumi:"status"`
	// The storage capacity of per segment node. Unit: GB. Minimum is `50`, max is `4000`, step is `50`.
	StorageSize pulumi.IntOutput `pulumi:"storageSize"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapOutput `pulumi:"tags"`
	// The virtual switch ID to launch ADB PG instances in one VPC.
	VswitchId pulumi.StringOutput `pulumi:"vswitchId"`
	// The Zone to launch the ADB PG instance. If specified, must be consistent with the zone where the vswitch is located.
	ZoneId pulumi.StringOutput `pulumi:"zoneId"`
}

Provides a AnalyticDB for PostgreSQL instance resource which storage type is flexible. Compared to the reserved storage ADB PG instance, you can scale up each disk and smoothly scale out nodes online.\ For more detail product introduction, see [here](https://www.alibabacloud.com/help/doc-detail/141368.htm).

> **NOTE:** Available in 1.127.0+

## Example Usage ### Create a AnalyticDB for PostgreSQL instance

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultZones, err := alicloud.GetZones(ctx, &GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("Gpdb"),
		}, nil)
		if err != nil {
			return err
		}
		defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
			CidrBlock: pulumi.String("172.16.0.0/16"),
		})
		if err != nil {
			return err
		}
		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
			ZoneId:      pulumi.String(defaultZones.Zones[0].Id),
			VpcId:       defaultNetwork.ID(),
			CidrBlock:   pulumi.String("172.16.0.0/24"),
			VswitchName: pulumi.String("vpc-123456"),
		})
		if err != nil {
			return err
		}
		_, err = gpdb.NewElasticInstance(ctx, "adbPgInstance", &gpdb.ElasticInstanceArgs{
			Engine:                pulumi.String("gpdb"),
			EngineVersion:         pulumi.String("6.0"),
			SegStorageType:        pulumi.String("cloud_essd"),
			SegNodeNum:            pulumi.Int(4),
			StorageSize:           pulumi.Int(50),
			InstanceSpec:          pulumi.String("2C16G"),
			DbInstanceDescription: pulumi.String("Created by terraform"),
			InstanceNetworkType:   pulumi.String("VPC"),
			PaymentType:           pulumi.String("PayAsYouGo"),
			VswitchId:             defaultSwitch.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

AnalyticDB for PostgreSQL can be imported using the id, e.g.

```sh

$ pulumi import alicloud:gpdb/elasticInstance:ElasticInstance adb_pg_instance gp-bpxxxxxxxxxxxxxx

```

func GetElasticInstance

func GetElasticInstance(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ElasticInstanceState, opts ...pulumi.ResourceOption) (*ElasticInstance, error)

GetElasticInstance gets an existing ElasticInstance 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 NewElasticInstance

func NewElasticInstance(ctx *pulumi.Context,
	name string, args *ElasticInstanceArgs, opts ...pulumi.ResourceOption) (*ElasticInstance, error)

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

func (*ElasticInstance) ElementType

func (*ElasticInstance) ElementType() reflect.Type

func (*ElasticInstance) ToElasticInstanceOutput

func (i *ElasticInstance) ToElasticInstanceOutput() ElasticInstanceOutput

func (*ElasticInstance) ToElasticInstanceOutputWithContext

func (i *ElasticInstance) ToElasticInstanceOutputWithContext(ctx context.Context) ElasticInstanceOutput

type ElasticInstanceArgs

type ElasticInstanceArgs struct {
	// The edition of the instance. Valid values: `Basic`, `HighAvailability`. Default value: `HighAvailability`.
	DbInstanceCategory pulumi.StringPtrInput
	// The description of ADB PG instance. It is a string of 2 to 256 characters.
	DbInstanceDescription pulumi.StringPtrInput
	// The ID of the encryption key. **Note:** If the `encryptionType` parameter is set to `CloudDisk`, you must specify this parameter to the encryption key that is in the same region as the disk that is specified by the EncryptionType parameter. Otherwise, leave this parameter empty.
	EncryptionKey pulumi.StringPtrInput
	// The type of the encryption. Valid values: `CloudDisk`. **Note:** Disk encryption cannot be disabled after it is enabled.
	EncryptionType pulumi.StringPtrInput
	// Database engine: `gpdb`.
	Engine pulumi.StringInput
	// Database version. Valid value is `6.0`.
	EngineVersion pulumi.StringInput
	// The network type of ADB PG instance. Only `VPC` supported now.
	InstanceNetworkType pulumi.StringPtrInput
	// The specification of segment nodes.
	// * When `dbInstanceCategory` is `HighAvailability`, Valid values: `2C16G`, `4C32G`, `16C128G`.
	// * When `dbInstanceCategory` is `Basic`, Valid values: `2C8G`, `4C16G`, `8C32G`, `16C64G`.
	InstanceSpec pulumi.StringInput
	// The subscription period. Valid values: [1~12]. It is valid when paymentType is `Subscription`.\
	// **NOTE:** Will not take effect after modifying `paymentDuration` for now, if you want to renew a PayAsYouGo instance, need to do in on aliyun console.
	PaymentDuration pulumi.IntPtrInput
	// The unit of the subscription period. Valid values: `Month`, `Year`. It is valid when paymentType is `Subscription`.\
	// **NOTE:** Will not take effect after modifying `paymentDurationUnit` for now, if you want to renew a PayAsYouGo instance, need to do in on aliyun console.
	PaymentDurationUnit pulumi.StringPtrInput
	// Valid values are `PayAsYouGo`, `Subscription`. Default to `PayAsYouGo`.
	PaymentType pulumi.StringPtrInput
	// List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
	SecurityIpLists pulumi.StringArrayInput
	// The number of segment nodes. Minimum is `4`, max is `256`, step is `4`.
	SegNodeNum pulumi.IntInput
	// The disk type of segment nodes. Valid values: `cloudEssd`, `cloudEfficiency`.
	SegStorageType pulumi.StringInput
	// The storage capacity of per segment node. Unit: GB. Minimum is `50`, max is `4000`, step is `50`.
	StorageSize pulumi.IntInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
	// The virtual switch ID to launch ADB PG instances in one VPC.
	VswitchId pulumi.StringInput
	// The Zone to launch the ADB PG instance. If specified, must be consistent with the zone where the vswitch is located.
	ZoneId pulumi.StringPtrInput
}

The set of arguments for constructing a ElasticInstance resource.

func (ElasticInstanceArgs) ElementType

func (ElasticInstanceArgs) ElementType() reflect.Type

type ElasticInstanceArray

type ElasticInstanceArray []ElasticInstanceInput

func (ElasticInstanceArray) ElementType

func (ElasticInstanceArray) ElementType() reflect.Type

func (ElasticInstanceArray) ToElasticInstanceArrayOutput

func (i ElasticInstanceArray) ToElasticInstanceArrayOutput() ElasticInstanceArrayOutput

func (ElasticInstanceArray) ToElasticInstanceArrayOutputWithContext

func (i ElasticInstanceArray) ToElasticInstanceArrayOutputWithContext(ctx context.Context) ElasticInstanceArrayOutput

type ElasticInstanceArrayInput

type ElasticInstanceArrayInput interface {
	pulumi.Input

	ToElasticInstanceArrayOutput() ElasticInstanceArrayOutput
	ToElasticInstanceArrayOutputWithContext(context.Context) ElasticInstanceArrayOutput
}

ElasticInstanceArrayInput is an input type that accepts ElasticInstanceArray and ElasticInstanceArrayOutput values. You can construct a concrete instance of `ElasticInstanceArrayInput` via:

ElasticInstanceArray{ ElasticInstanceArgs{...} }

type ElasticInstanceArrayOutput

type ElasticInstanceArrayOutput struct{ *pulumi.OutputState }

func (ElasticInstanceArrayOutput) ElementType

func (ElasticInstanceArrayOutput) ElementType() reflect.Type

func (ElasticInstanceArrayOutput) Index

func (ElasticInstanceArrayOutput) ToElasticInstanceArrayOutput

func (o ElasticInstanceArrayOutput) ToElasticInstanceArrayOutput() ElasticInstanceArrayOutput

func (ElasticInstanceArrayOutput) ToElasticInstanceArrayOutputWithContext

func (o ElasticInstanceArrayOutput) ToElasticInstanceArrayOutputWithContext(ctx context.Context) ElasticInstanceArrayOutput

type ElasticInstanceInput

type ElasticInstanceInput interface {
	pulumi.Input

	ToElasticInstanceOutput() ElasticInstanceOutput
	ToElasticInstanceOutputWithContext(ctx context.Context) ElasticInstanceOutput
}

type ElasticInstanceMap

type ElasticInstanceMap map[string]ElasticInstanceInput

func (ElasticInstanceMap) ElementType

func (ElasticInstanceMap) ElementType() reflect.Type

func (ElasticInstanceMap) ToElasticInstanceMapOutput

func (i ElasticInstanceMap) ToElasticInstanceMapOutput() ElasticInstanceMapOutput

func (ElasticInstanceMap) ToElasticInstanceMapOutputWithContext

func (i ElasticInstanceMap) ToElasticInstanceMapOutputWithContext(ctx context.Context) ElasticInstanceMapOutput

type ElasticInstanceMapInput

type ElasticInstanceMapInput interface {
	pulumi.Input

	ToElasticInstanceMapOutput() ElasticInstanceMapOutput
	ToElasticInstanceMapOutputWithContext(context.Context) ElasticInstanceMapOutput
}

ElasticInstanceMapInput is an input type that accepts ElasticInstanceMap and ElasticInstanceMapOutput values. You can construct a concrete instance of `ElasticInstanceMapInput` via:

ElasticInstanceMap{ "key": ElasticInstanceArgs{...} }

type ElasticInstanceMapOutput

type ElasticInstanceMapOutput struct{ *pulumi.OutputState }

func (ElasticInstanceMapOutput) ElementType

func (ElasticInstanceMapOutput) ElementType() reflect.Type

func (ElasticInstanceMapOutput) MapIndex

func (ElasticInstanceMapOutput) ToElasticInstanceMapOutput

func (o ElasticInstanceMapOutput) ToElasticInstanceMapOutput() ElasticInstanceMapOutput

func (ElasticInstanceMapOutput) ToElasticInstanceMapOutputWithContext

func (o ElasticInstanceMapOutput) ToElasticInstanceMapOutputWithContext(ctx context.Context) ElasticInstanceMapOutput

type ElasticInstanceOutput

type ElasticInstanceOutput struct{ *pulumi.OutputState }

func (ElasticInstanceOutput) ConnectionString

func (o ElasticInstanceOutput) ConnectionString() pulumi.StringOutput

ADB PG instance connection string.

func (ElasticInstanceOutput) DbInstanceCategory

func (o ElasticInstanceOutput) DbInstanceCategory() pulumi.StringOutput

The edition of the instance. Valid values: `Basic`, `HighAvailability`. Default value: `HighAvailability`.

func (ElasticInstanceOutput) DbInstanceDescription

func (o ElasticInstanceOutput) DbInstanceDescription() pulumi.StringPtrOutput

The description of ADB PG instance. It is a string of 2 to 256 characters.

func (ElasticInstanceOutput) ElementType

func (ElasticInstanceOutput) ElementType() reflect.Type

func (ElasticInstanceOutput) EncryptionKey

func (o ElasticInstanceOutput) EncryptionKey() pulumi.StringPtrOutput

The ID of the encryption key. **Note:** If the `encryptionType` parameter is set to `CloudDisk`, you must specify this parameter to the encryption key that is in the same region as the disk that is specified by the EncryptionType parameter. Otherwise, leave this parameter empty.

func (ElasticInstanceOutput) EncryptionType

func (o ElasticInstanceOutput) EncryptionType() pulumi.StringPtrOutput

The type of the encryption. Valid values: `CloudDisk`. **Note:** Disk encryption cannot be disabled after it is enabled.

func (ElasticInstanceOutput) Engine

Database engine: `gpdb`.

func (ElasticInstanceOutput) EngineVersion

func (o ElasticInstanceOutput) EngineVersion() pulumi.StringOutput

Database version. Valid value is `6.0`.

func (ElasticInstanceOutput) InstanceNetworkType

func (o ElasticInstanceOutput) InstanceNetworkType() pulumi.StringPtrOutput

The network type of ADB PG instance. Only `VPC` supported now.

func (ElasticInstanceOutput) InstanceSpec

func (o ElasticInstanceOutput) InstanceSpec() pulumi.StringOutput

The specification of segment nodes. * When `dbInstanceCategory` is `HighAvailability`, Valid values: `2C16G`, `4C32G`, `16C128G`. * When `dbInstanceCategory` is `Basic`, Valid values: `2C8G`, `4C16G`, `8C32G`, `16C64G`.

func (ElasticInstanceOutput) PaymentDuration

func (o ElasticInstanceOutput) PaymentDuration() pulumi.IntPtrOutput

The subscription period. Valid values: [1~12]. It is valid when paymentType is `Subscription`.\ **NOTE:** Will not take effect after modifying `paymentDuration` for now, if you want to renew a PayAsYouGo instance, need to do in on aliyun console.

func (ElasticInstanceOutput) PaymentDurationUnit

func (o ElasticInstanceOutput) PaymentDurationUnit() pulumi.StringPtrOutput

The unit of the subscription period. Valid values: `Month`, `Year`. It is valid when paymentType is `Subscription`.\ **NOTE:** Will not take effect after modifying `paymentDurationUnit` for now, if you want to renew a PayAsYouGo instance, need to do in on aliyun console.

func (ElasticInstanceOutput) PaymentType

Valid values are `PayAsYouGo`, `Subscription`. Default to `PayAsYouGo`.

func (ElasticInstanceOutput) SecurityIpLists

func (o ElasticInstanceOutput) SecurityIpLists() pulumi.StringArrayOutput

List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).

func (ElasticInstanceOutput) SegNodeNum

func (o ElasticInstanceOutput) SegNodeNum() pulumi.IntOutput

The number of segment nodes. Minimum is `4`, max is `256`, step is `4`.

func (ElasticInstanceOutput) SegStorageType

func (o ElasticInstanceOutput) SegStorageType() pulumi.StringOutput

The disk type of segment nodes. Valid values: `cloudEssd`, `cloudEfficiency`.

func (ElasticInstanceOutput) Status

Instance status.

func (ElasticInstanceOutput) StorageSize

func (o ElasticInstanceOutput) StorageSize() pulumi.IntOutput

The storage capacity of per segment node. Unit: GB. Minimum is `50`, max is `4000`, step is `50`.

func (ElasticInstanceOutput) Tags

A mapping of tags to assign to the resource.

func (ElasticInstanceOutput) ToElasticInstanceOutput

func (o ElasticInstanceOutput) ToElasticInstanceOutput() ElasticInstanceOutput

func (ElasticInstanceOutput) ToElasticInstanceOutputWithContext

func (o ElasticInstanceOutput) ToElasticInstanceOutputWithContext(ctx context.Context) ElasticInstanceOutput

func (ElasticInstanceOutput) VswitchId

The virtual switch ID to launch ADB PG instances in one VPC.

func (ElasticInstanceOutput) ZoneId

The Zone to launch the ADB PG instance. If specified, must be consistent with the zone where the vswitch is located.

type ElasticInstanceState

type ElasticInstanceState struct {
	// ADB PG instance connection string.
	ConnectionString pulumi.StringPtrInput
	// The edition of the instance. Valid values: `Basic`, `HighAvailability`. Default value: `HighAvailability`.
	DbInstanceCategory pulumi.StringPtrInput
	// The description of ADB PG instance. It is a string of 2 to 256 characters.
	DbInstanceDescription pulumi.StringPtrInput
	// The ID of the encryption key. **Note:** If the `encryptionType` parameter is set to `CloudDisk`, you must specify this parameter to the encryption key that is in the same region as the disk that is specified by the EncryptionType parameter. Otherwise, leave this parameter empty.
	EncryptionKey pulumi.StringPtrInput
	// The type of the encryption. Valid values: `CloudDisk`. **Note:** Disk encryption cannot be disabled after it is enabled.
	EncryptionType pulumi.StringPtrInput
	// Database engine: `gpdb`.
	Engine pulumi.StringPtrInput
	// Database version. Valid value is `6.0`.
	EngineVersion pulumi.StringPtrInput
	// The network type of ADB PG instance. Only `VPC` supported now.
	InstanceNetworkType pulumi.StringPtrInput
	// The specification of segment nodes.
	// * When `dbInstanceCategory` is `HighAvailability`, Valid values: `2C16G`, `4C32G`, `16C128G`.
	// * When `dbInstanceCategory` is `Basic`, Valid values: `2C8G`, `4C16G`, `8C32G`, `16C64G`.
	InstanceSpec pulumi.StringPtrInput
	// The subscription period. Valid values: [1~12]. It is valid when paymentType is `Subscription`.\
	// **NOTE:** Will not take effect after modifying `paymentDuration` for now, if you want to renew a PayAsYouGo instance, need to do in on aliyun console.
	PaymentDuration pulumi.IntPtrInput
	// The unit of the subscription period. Valid values: `Month`, `Year`. It is valid when paymentType is `Subscription`.\
	// **NOTE:** Will not take effect after modifying `paymentDurationUnit` for now, if you want to renew a PayAsYouGo instance, need to do in on aliyun console.
	PaymentDurationUnit pulumi.StringPtrInput
	// Valid values are `PayAsYouGo`, `Subscription`. Default to `PayAsYouGo`.
	PaymentType pulumi.StringPtrInput
	// List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
	SecurityIpLists pulumi.StringArrayInput
	// The number of segment nodes. Minimum is `4`, max is `256`, step is `4`.
	SegNodeNum pulumi.IntPtrInput
	// The disk type of segment nodes. Valid values: `cloudEssd`, `cloudEfficiency`.
	SegStorageType pulumi.StringPtrInput
	// Instance status.
	Status pulumi.StringPtrInput
	// The storage capacity of per segment node. Unit: GB. Minimum is `50`, max is `4000`, step is `50`.
	StorageSize pulumi.IntPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
	// The virtual switch ID to launch ADB PG instances in one VPC.
	VswitchId pulumi.StringPtrInput
	// The Zone to launch the ADB PG instance. If specified, must be consistent with the zone where the vswitch is located.
	ZoneId pulumi.StringPtrInput
}

func (ElasticInstanceState) ElementType

func (ElasticInstanceState) ElementType() reflect.Type

type GetAccountsAccount

type GetAccountsAccount struct {
	// The description of the account.
	AccountDescription string `pulumi:"accountDescription"`
	// The name of the account.
	AccountName string `pulumi:"accountName"`
	// The ID of the instance.
	DbInstanceId string `pulumi:"dbInstanceId"`
	// The ID of the Account. Its value is same as Queue Name.
	Id string `pulumi:"id"`
	// The status of the account. Valid values: `Active`, `Creating` and `Deleting`.
	Status string `pulumi:"status"`
}

type GetAccountsAccountArgs

type GetAccountsAccountArgs struct {
	// The description of the account.
	AccountDescription pulumi.StringInput `pulumi:"accountDescription"`
	// The name of the account.
	AccountName pulumi.StringInput `pulumi:"accountName"`
	// The ID of the instance.
	DbInstanceId pulumi.StringInput `pulumi:"dbInstanceId"`
	// The ID of the Account. Its value is same as Queue Name.
	Id pulumi.StringInput `pulumi:"id"`
	// The status of the account. Valid values: `Active`, `Creating` and `Deleting`.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetAccountsAccountArgs) ElementType

func (GetAccountsAccountArgs) ElementType() reflect.Type

func (GetAccountsAccountArgs) ToGetAccountsAccountOutput

func (i GetAccountsAccountArgs) ToGetAccountsAccountOutput() GetAccountsAccountOutput

func (GetAccountsAccountArgs) ToGetAccountsAccountOutputWithContext

func (i GetAccountsAccountArgs) ToGetAccountsAccountOutputWithContext(ctx context.Context) GetAccountsAccountOutput

type GetAccountsAccountArray

type GetAccountsAccountArray []GetAccountsAccountInput

func (GetAccountsAccountArray) ElementType

func (GetAccountsAccountArray) ElementType() reflect.Type

func (GetAccountsAccountArray) ToGetAccountsAccountArrayOutput

func (i GetAccountsAccountArray) ToGetAccountsAccountArrayOutput() GetAccountsAccountArrayOutput

func (GetAccountsAccountArray) ToGetAccountsAccountArrayOutputWithContext

func (i GetAccountsAccountArray) ToGetAccountsAccountArrayOutputWithContext(ctx context.Context) GetAccountsAccountArrayOutput

type GetAccountsAccountArrayInput

type GetAccountsAccountArrayInput interface {
	pulumi.Input

	ToGetAccountsAccountArrayOutput() GetAccountsAccountArrayOutput
	ToGetAccountsAccountArrayOutputWithContext(context.Context) GetAccountsAccountArrayOutput
}

GetAccountsAccountArrayInput is an input type that accepts GetAccountsAccountArray and GetAccountsAccountArrayOutput values. You can construct a concrete instance of `GetAccountsAccountArrayInput` via:

GetAccountsAccountArray{ GetAccountsAccountArgs{...} }

type GetAccountsAccountArrayOutput

type GetAccountsAccountArrayOutput struct{ *pulumi.OutputState }

func (GetAccountsAccountArrayOutput) ElementType

func (GetAccountsAccountArrayOutput) Index

func (GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutput

func (o GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutput() GetAccountsAccountArrayOutput

func (GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutputWithContext

func (o GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutputWithContext(ctx context.Context) GetAccountsAccountArrayOutput

type GetAccountsAccountInput

type GetAccountsAccountInput interface {
	pulumi.Input

	ToGetAccountsAccountOutput() GetAccountsAccountOutput
	ToGetAccountsAccountOutputWithContext(context.Context) GetAccountsAccountOutput
}

GetAccountsAccountInput is an input type that accepts GetAccountsAccountArgs and GetAccountsAccountOutput values. You can construct a concrete instance of `GetAccountsAccountInput` via:

GetAccountsAccountArgs{...}

type GetAccountsAccountOutput

type GetAccountsAccountOutput struct{ *pulumi.OutputState }

func (GetAccountsAccountOutput) AccountDescription

func (o GetAccountsAccountOutput) AccountDescription() pulumi.StringOutput

The description of the account.

func (GetAccountsAccountOutput) AccountName

The name of the account.

func (GetAccountsAccountOutput) DbInstanceId

func (o GetAccountsAccountOutput) DbInstanceId() pulumi.StringOutput

The ID of the instance.

func (GetAccountsAccountOutput) ElementType

func (GetAccountsAccountOutput) ElementType() reflect.Type

func (GetAccountsAccountOutput) Id

The ID of the Account. Its value is same as Queue Name.

func (GetAccountsAccountOutput) Status

The status of the account. Valid values: `Active`, `Creating` and `Deleting`.

func (GetAccountsAccountOutput) ToGetAccountsAccountOutput

func (o GetAccountsAccountOutput) ToGetAccountsAccountOutput() GetAccountsAccountOutput

func (GetAccountsAccountOutput) ToGetAccountsAccountOutputWithContext

func (o GetAccountsAccountOutput) ToGetAccountsAccountOutputWithContext(ctx context.Context) GetAccountsAccountOutput

type GetAccountsArgs

type GetAccountsArgs struct {
	// The ID of the instance.
	DbInstanceId string `pulumi:"dbInstanceId"`
	// A list of Account IDs. Its element value is same as Account Name.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Account name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The status of the account. Valid values: `Active`, `Creating` and `Deleting`.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getAccounts.

type GetAccountsOutputArgs

type GetAccountsOutputArgs struct {
	// The ID of the instance.
	DbInstanceId pulumi.StringInput `pulumi:"dbInstanceId"`
	// A list of Account IDs. Its element value is same as Account Name.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Account name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The status of the account. Valid values: `Active`, `Creating` and `Deleting`.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getAccounts.

func (GetAccountsOutputArgs) ElementType

func (GetAccountsOutputArgs) ElementType() reflect.Type

type GetAccountsResult

type GetAccountsResult struct {
	Accounts     []GetAccountsAccount `pulumi:"accounts"`
	DbInstanceId string               `pulumi:"dbInstanceId"`
	// The provider-assigned unique ID for this managed resource.
	Id         string   `pulumi:"id"`
	Ids        []string `pulumi:"ids"`
	NameRegex  *string  `pulumi:"nameRegex"`
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	Status     *string  `pulumi:"status"`
}

A collection of values returned by getAccounts.

func GetAccounts

func GetAccounts(ctx *pulumi.Context, args *GetAccountsArgs, opts ...pulumi.InvokeOption) (*GetAccountsResult, error)

This data source provides the Gpdb Accounts of the current Alibaba Cloud user.

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

## Example Usage

Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := gpdb.GetAccounts(ctx, &gpdb.GetAccountsArgs{
			DbInstanceId: "example_value",
			Ids: []string{
				"my-Account-1",
				"my-Account-2",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("gpdbAccountId1", ids.Accounts[0].Id)
		nameRegex, err := gpdb.GetAccounts(ctx, &gpdb.GetAccountsArgs{
			DbInstanceId: "example_value",
			NameRegex:    pulumi.StringRef("^my-Account"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("gpdbAccountId2", nameRegex.Accounts[0].Id)
		return nil
	})
}

```

type GetAccountsResultOutput

type GetAccountsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getAccounts.

func (GetAccountsResultOutput) Accounts

func (GetAccountsResultOutput) DbInstanceId

func (o GetAccountsResultOutput) DbInstanceId() pulumi.StringOutput

func (GetAccountsResultOutput) ElementType

func (GetAccountsResultOutput) ElementType() reflect.Type

func (GetAccountsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetAccountsResultOutput) Ids

func (GetAccountsResultOutput) NameRegex

func (GetAccountsResultOutput) Names

func (GetAccountsResultOutput) OutputFile

func (GetAccountsResultOutput) Status

func (GetAccountsResultOutput) ToGetAccountsResultOutput

func (o GetAccountsResultOutput) ToGetAccountsResultOutput() GetAccountsResultOutput

func (GetAccountsResultOutput) ToGetAccountsResultOutputWithContext

func (o GetAccountsResultOutput) ToGetAccountsResultOutputWithContext(ctx context.Context) GetAccountsResultOutput

type GetInstancesArgs

type GetInstancesArgs struct {
	// Instance availability zone.
	AvailabilityZone *string `pulumi:"availabilityZone"`
	// The db instance categories.
	DbInstanceCategories *string `pulumi:"dbInstanceCategories"`
	// The db instance modes.
	DbInstanceModes *string `pulumi:"dbInstanceModes"`
	// The description of the instance.
	Description *string `pulumi:"description"`
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails *bool `pulumi:"enableDetails"`
	// The ids list of AnalyticDB for PostgreSQL instances.
	Ids []string `pulumi:"ids"`
	// The network type of the instance.
	InstanceNetworkType *string `pulumi:"instanceNetworkType"`
	// A regex string to apply to the instance name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The ID of the enterprise resource group to which the instance belongs.
	ResourceGroupId *string `pulumi:"resourceGroupId"`
	// The status of the instance. Valid values: `Creating`, `DBInstanceClassChanging`, `DBInstanceNetTypeChanging`, `Deleting`, `EngineVersionUpgrading`, `GuardDBInstanceCreating`, `GuardSwitching`, `Importing`, `ImportingFromOtherInstance`, `Rebooting`, `Restoring`, `Running`, `Transfering`, `TransferingToOtherInstance`.
	Status *string `pulumi:"status"`
	// The tags of the instance.
	Tags map[string]interface{} `pulumi:"tags"`
	// The vswitch id.
	VswitchId *string `pulumi:"vswitchId"`
}

A collection of arguments for invoking getInstances.

type GetInstancesInstance

type GetInstancesInstance struct {
	// Instance availability zone.
	AvailabilityZone string `pulumi:"availabilityZone"`
	ChargeType       string `pulumi:"chargeType"`
	// The endpoint of the instance.
	ConnectionString string `pulumi:"connectionString"`
	// The number of CPU cores of the computing node. Unit: Core.
	CpuCores string `pulumi:"cpuCores"`
	// The time when the instance was created. The time is in the YYYY-MM-DDThh:mm:ssZ format, such as 2011-05-30T12:11:4Z.
	CreateTime   string `pulumi:"createTime"`
	CreationTime string `pulumi:"creationTime"`
	// The db instance category. Valid values: `HighAvailability`, `Basic`.
	DbInstanceCategory string `pulumi:"dbInstanceCategory"`
	// The db instance class.
	DbInstanceClass string `pulumi:"dbInstanceClass"`
	// The db instance id.
	DbInstanceId string `pulumi:"dbInstanceId"`
	// The db instance mode. Valid values: `StorageElastic`, `Serverless`, `Classic`.
	DbInstanceMode string `pulumi:"dbInstanceMode"`
	// The description of the instance.
	Description string `pulumi:"description"`
	// The database engine used by the instance.
	Engine string `pulumi:"engine"`
	// The version of the database engine used by the instance.
	EngineVersion string `pulumi:"engineVersion"`
	// The ID of the db Instance.
	Id string `pulumi:"id"`
	// The network type of the instance.
	InstanceNetworkType string `pulumi:"instanceNetworkType"`
	// The ip whitelist.
	IpWhitelists []GetInstancesInstanceIpWhitelist `pulumi:"ipWhitelists"`
	// The end time of the maintenance window for the instance.
	MaintainEndTime string `pulumi:"maintainEndTime"`
	// The start time of the maintenance window for the instance.
	MaintainStartTime string `pulumi:"maintainStartTime"`
	// The number of Master nodes. Valid values: 1 to 2. if it is not filled in, the default value is 1 Master node.
	MasterNodeNum string `pulumi:"masterNodeNum"`
	// The memory size of the compute node.
	MemorySize string `pulumi:"memorySize"`
	// The billing method of the instance. Valid values: `Subscription`, `PayAsYouGo`.
	PaymentType string `pulumi:"paymentType"`
	// Region ID the instance belongs to.
	RegionId string `pulumi:"regionId"`
	// Calculate the number of nodes. The value range of the high-availability version of the storage elastic mode is 4 to 512, and the value must be a multiple of 4. The value range of the basic version of the storage elastic mode is 2 to 512, and the value must be a multiple of 2. The-Serverless version has a value range of 2 to 512. The value must be a multiple of 2.
	SegNodeNum string `pulumi:"segNodeNum"`
	// The status of the instance. Valid values: `Creating`, `DBInstanceClassChanging`, `DBInstanceNetTypeChanging`, `Deleting`, `EngineVersionUpgrading`, `GuardDBInstanceCreating`, `GuardSwitching`, `Importing`, `ImportingFromOtherInstance`, `Rebooting`, `Restoring`, `Running`, `Transfering`, `TransferingToOtherInstance`.
	Status string `pulumi:"status"`
	// The storage capacity. Unit: GB. Value: `50` to `4000`.
	StorageSize int `pulumi:"storageSize"`
	// The type of disks. Valid values: `cloudEssd`, `cloudEfficiency`.
	StorageType string `pulumi:"storageType"`
	// The tags of the instance.
	Tags map[string]interface{} `pulumi:"tags"`
	// The ID of the VPC。.
	VpcId string `pulumi:"vpcId"`
	// The vswitch id.
	VswitchId string `pulumi:"vswitchId"`
	// The zone ID of the instance.
	ZoneId string `pulumi:"zoneId"`
}

type GetInstancesInstanceArgs

type GetInstancesInstanceArgs struct {
	// Instance availability zone.
	AvailabilityZone pulumi.StringInput `pulumi:"availabilityZone"`
	ChargeType       pulumi.StringInput `pulumi:"chargeType"`
	// The endpoint of the instance.
	ConnectionString pulumi.StringInput `pulumi:"connectionString"`
	// The number of CPU cores of the computing node. Unit: Core.
	CpuCores pulumi.StringInput `pulumi:"cpuCores"`
	// The time when the instance was created. The time is in the YYYY-MM-DDThh:mm:ssZ format, such as 2011-05-30T12:11:4Z.
	CreateTime   pulumi.StringInput `pulumi:"createTime"`
	CreationTime pulumi.StringInput `pulumi:"creationTime"`
	// The db instance category. Valid values: `HighAvailability`, `Basic`.
	DbInstanceCategory pulumi.StringInput `pulumi:"dbInstanceCategory"`
	// The db instance class.
	DbInstanceClass pulumi.StringInput `pulumi:"dbInstanceClass"`
	// The db instance id.
	DbInstanceId pulumi.StringInput `pulumi:"dbInstanceId"`
	// The db instance mode. Valid values: `StorageElastic`, `Serverless`, `Classic`.
	DbInstanceMode pulumi.StringInput `pulumi:"dbInstanceMode"`
	// The description of the instance.
	Description pulumi.StringInput `pulumi:"description"`
	// The database engine used by the instance.
	Engine pulumi.StringInput `pulumi:"engine"`
	// The version of the database engine used by the instance.
	EngineVersion pulumi.StringInput `pulumi:"engineVersion"`
	// The ID of the db Instance.
	Id pulumi.StringInput `pulumi:"id"`
	// The network type of the instance.
	InstanceNetworkType pulumi.StringInput `pulumi:"instanceNetworkType"`
	// The ip whitelist.
	IpWhitelists GetInstancesInstanceIpWhitelistArrayInput `pulumi:"ipWhitelists"`
	// The end time of the maintenance window for the instance.
	MaintainEndTime pulumi.StringInput `pulumi:"maintainEndTime"`
	// The start time of the maintenance window for the instance.
	MaintainStartTime pulumi.StringInput `pulumi:"maintainStartTime"`
	// The number of Master nodes. Valid values: 1 to 2. if it is not filled in, the default value is 1 Master node.
	MasterNodeNum pulumi.StringInput `pulumi:"masterNodeNum"`
	// The memory size of the compute node.
	MemorySize pulumi.StringInput `pulumi:"memorySize"`
	// The billing method of the instance. Valid values: `Subscription`, `PayAsYouGo`.
	PaymentType pulumi.StringInput `pulumi:"paymentType"`
	// Region ID the instance belongs to.
	RegionId pulumi.StringInput `pulumi:"regionId"`
	// Calculate the number of nodes. The value range of the high-availability version of the storage elastic mode is 4 to 512, and the value must be a multiple of 4. The value range of the basic version of the storage elastic mode is 2 to 512, and the value must be a multiple of 2. The-Serverless version has a value range of 2 to 512. The value must be a multiple of 2.
	SegNodeNum pulumi.StringInput `pulumi:"segNodeNum"`
	// The status of the instance. Valid values: `Creating`, `DBInstanceClassChanging`, `DBInstanceNetTypeChanging`, `Deleting`, `EngineVersionUpgrading`, `GuardDBInstanceCreating`, `GuardSwitching`, `Importing`, `ImportingFromOtherInstance`, `Rebooting`, `Restoring`, `Running`, `Transfering`, `TransferingToOtherInstance`.
	Status pulumi.StringInput `pulumi:"status"`
	// The storage capacity. Unit: GB. Value: `50` to `4000`.
	StorageSize pulumi.IntInput `pulumi:"storageSize"`
	// The type of disks. Valid values: `cloudEssd`, `cloudEfficiency`.
	StorageType pulumi.StringInput `pulumi:"storageType"`
	// The tags of the instance.
	Tags pulumi.MapInput `pulumi:"tags"`
	// The ID of the VPC。.
	VpcId pulumi.StringInput `pulumi:"vpcId"`
	// The vswitch id.
	VswitchId pulumi.StringInput `pulumi:"vswitchId"`
	// The zone ID of the instance.
	ZoneId pulumi.StringInput `pulumi:"zoneId"`
}

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 GetInstancesInstanceIpWhitelist

type GetInstancesInstanceIpWhitelist struct {
	// The value of this parameter is empty by default. The attribute of the whitelist group. The console does not display the whitelist group whose value of this parameter is hidden.
	IpGroupAttribute string `pulumi:"ipGroupAttribute"`
	// IP whitelist group name
	IpGroupName string `pulumi:"ipGroupName"`
	// List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]). System default to `["127.0.0.1"]`.
	SecurityIpList string `pulumi:"securityIpList"`
}

type GetInstancesInstanceIpWhitelistArgs

type GetInstancesInstanceIpWhitelistArgs struct {
	// The value of this parameter is empty by default. The attribute of the whitelist group. The console does not display the whitelist group whose value of this parameter is hidden.
	IpGroupAttribute pulumi.StringInput `pulumi:"ipGroupAttribute"`
	// IP whitelist group name
	IpGroupName pulumi.StringInput `pulumi:"ipGroupName"`
	// List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]). System default to `["127.0.0.1"]`.
	SecurityIpList pulumi.StringInput `pulumi:"securityIpList"`
}

func (GetInstancesInstanceIpWhitelistArgs) ElementType

func (GetInstancesInstanceIpWhitelistArgs) ToGetInstancesInstanceIpWhitelistOutput

func (i GetInstancesInstanceIpWhitelistArgs) ToGetInstancesInstanceIpWhitelistOutput() GetInstancesInstanceIpWhitelistOutput

func (GetInstancesInstanceIpWhitelistArgs) ToGetInstancesInstanceIpWhitelistOutputWithContext

func (i GetInstancesInstanceIpWhitelistArgs) ToGetInstancesInstanceIpWhitelistOutputWithContext(ctx context.Context) GetInstancesInstanceIpWhitelistOutput

type GetInstancesInstanceIpWhitelistArray

type GetInstancesInstanceIpWhitelistArray []GetInstancesInstanceIpWhitelistInput

func (GetInstancesInstanceIpWhitelistArray) ElementType

func (GetInstancesInstanceIpWhitelistArray) ToGetInstancesInstanceIpWhitelistArrayOutput

func (i GetInstancesInstanceIpWhitelistArray) ToGetInstancesInstanceIpWhitelistArrayOutput() GetInstancesInstanceIpWhitelistArrayOutput

func (GetInstancesInstanceIpWhitelistArray) ToGetInstancesInstanceIpWhitelistArrayOutputWithContext

func (i GetInstancesInstanceIpWhitelistArray) ToGetInstancesInstanceIpWhitelistArrayOutputWithContext(ctx context.Context) GetInstancesInstanceIpWhitelistArrayOutput

type GetInstancesInstanceIpWhitelistArrayInput

type GetInstancesInstanceIpWhitelistArrayInput interface {
	pulumi.Input

	ToGetInstancesInstanceIpWhitelistArrayOutput() GetInstancesInstanceIpWhitelistArrayOutput
	ToGetInstancesInstanceIpWhitelistArrayOutputWithContext(context.Context) GetInstancesInstanceIpWhitelistArrayOutput
}

GetInstancesInstanceIpWhitelistArrayInput is an input type that accepts GetInstancesInstanceIpWhitelistArray and GetInstancesInstanceIpWhitelistArrayOutput values. You can construct a concrete instance of `GetInstancesInstanceIpWhitelistArrayInput` via:

GetInstancesInstanceIpWhitelistArray{ GetInstancesInstanceIpWhitelistArgs{...} }

type GetInstancesInstanceIpWhitelistArrayOutput

type GetInstancesInstanceIpWhitelistArrayOutput struct{ *pulumi.OutputState }

func (GetInstancesInstanceIpWhitelistArrayOutput) ElementType

func (GetInstancesInstanceIpWhitelistArrayOutput) Index

func (GetInstancesInstanceIpWhitelistArrayOutput) ToGetInstancesInstanceIpWhitelistArrayOutput

func (o GetInstancesInstanceIpWhitelistArrayOutput) ToGetInstancesInstanceIpWhitelistArrayOutput() GetInstancesInstanceIpWhitelistArrayOutput

func (GetInstancesInstanceIpWhitelistArrayOutput) ToGetInstancesInstanceIpWhitelistArrayOutputWithContext

func (o GetInstancesInstanceIpWhitelistArrayOutput) ToGetInstancesInstanceIpWhitelistArrayOutputWithContext(ctx context.Context) GetInstancesInstanceIpWhitelistArrayOutput

type GetInstancesInstanceIpWhitelistInput

type GetInstancesInstanceIpWhitelistInput interface {
	pulumi.Input

	ToGetInstancesInstanceIpWhitelistOutput() GetInstancesInstanceIpWhitelistOutput
	ToGetInstancesInstanceIpWhitelistOutputWithContext(context.Context) GetInstancesInstanceIpWhitelistOutput
}

GetInstancesInstanceIpWhitelistInput is an input type that accepts GetInstancesInstanceIpWhitelistArgs and GetInstancesInstanceIpWhitelistOutput values. You can construct a concrete instance of `GetInstancesInstanceIpWhitelistInput` via:

GetInstancesInstanceIpWhitelistArgs{...}

type GetInstancesInstanceIpWhitelistOutput

type GetInstancesInstanceIpWhitelistOutput struct{ *pulumi.OutputState }

func (GetInstancesInstanceIpWhitelistOutput) ElementType

func (GetInstancesInstanceIpWhitelistOutput) IpGroupAttribute

The value of this parameter is empty by default. The attribute of the whitelist group. The console does not display the whitelist group whose value of this parameter is hidden.

func (GetInstancesInstanceIpWhitelistOutput) IpGroupName

IP whitelist group name

func (GetInstancesInstanceIpWhitelistOutput) SecurityIpList

List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]). System default to `["127.0.0.1"]`.

func (GetInstancesInstanceIpWhitelistOutput) ToGetInstancesInstanceIpWhitelistOutput

func (o GetInstancesInstanceIpWhitelistOutput) ToGetInstancesInstanceIpWhitelistOutput() GetInstancesInstanceIpWhitelistOutput

func (GetInstancesInstanceIpWhitelistOutput) ToGetInstancesInstanceIpWhitelistOutputWithContext

func (o GetInstancesInstanceIpWhitelistOutput) ToGetInstancesInstanceIpWhitelistOutputWithContext(ctx context.Context) GetInstancesInstanceIpWhitelistOutput

type GetInstancesInstanceOutput

type GetInstancesInstanceOutput struct{ *pulumi.OutputState }

func (GetInstancesInstanceOutput) AvailabilityZone

func (o GetInstancesInstanceOutput) AvailabilityZone() pulumi.StringOutput

Instance availability zone.

func (GetInstancesInstanceOutput) ChargeType

func (GetInstancesInstanceOutput) ConnectionString

func (o GetInstancesInstanceOutput) ConnectionString() pulumi.StringOutput

The endpoint of the instance.

func (GetInstancesInstanceOutput) CpuCores

The number of CPU cores of the computing node. Unit: Core.

func (GetInstancesInstanceOutput) CreateTime

The time when the instance was created. The time is in the YYYY-MM-DDThh:mm:ssZ format, such as 2011-05-30T12:11:4Z.

func (GetInstancesInstanceOutput) CreationTime

func (GetInstancesInstanceOutput) DbInstanceCategory

func (o GetInstancesInstanceOutput) DbInstanceCategory() pulumi.StringOutput

The db instance category. Valid values: `HighAvailability`, `Basic`.

func (GetInstancesInstanceOutput) DbInstanceClass

func (o GetInstancesInstanceOutput) DbInstanceClass() pulumi.StringOutput

The db instance class.

func (GetInstancesInstanceOutput) DbInstanceId

The db instance id.

func (GetInstancesInstanceOutput) DbInstanceMode

func (o GetInstancesInstanceOutput) DbInstanceMode() pulumi.StringOutput

The db instance mode. Valid values: `StorageElastic`, `Serverless`, `Classic`.

func (GetInstancesInstanceOutput) Description

The description of the instance.

func (GetInstancesInstanceOutput) ElementType

func (GetInstancesInstanceOutput) ElementType() reflect.Type

func (GetInstancesInstanceOutput) Engine

The database engine used by the instance.

func (GetInstancesInstanceOutput) EngineVersion

The version of the database engine used by the instance.

func (GetInstancesInstanceOutput) Id

The ID of the db Instance.

func (GetInstancesInstanceOutput) InstanceNetworkType

func (o GetInstancesInstanceOutput) InstanceNetworkType() pulumi.StringOutput

The network type of the instance.

func (GetInstancesInstanceOutput) IpWhitelists

The ip whitelist.

func (GetInstancesInstanceOutput) MaintainEndTime

func (o GetInstancesInstanceOutput) MaintainEndTime() pulumi.StringOutput

The end time of the maintenance window for the instance.

func (GetInstancesInstanceOutput) MaintainStartTime

func (o GetInstancesInstanceOutput) MaintainStartTime() pulumi.StringOutput

The start time of the maintenance window for the instance.

func (GetInstancesInstanceOutput) MasterNodeNum

The number of Master nodes. Valid values: 1 to 2. if it is not filled in, the default value is 1 Master node.

func (GetInstancesInstanceOutput) MemorySize

The memory size of the compute node.

func (GetInstancesInstanceOutput) PaymentType

The billing method of the instance. Valid values: `Subscription`, `PayAsYouGo`.

func (GetInstancesInstanceOutput) RegionId

Region ID the instance belongs to.

func (GetInstancesInstanceOutput) SegNodeNum

Calculate the number of nodes. The value range of the high-availability version of the storage elastic mode is 4 to 512, and the value must be a multiple of 4. The value range of the basic version of the storage elastic mode is 2 to 512, and the value must be a multiple of 2. The-Serverless version has a value range of 2 to 512. The value must be a multiple of 2.

func (GetInstancesInstanceOutput) Status

The status of the instance. Valid values: `Creating`, `DBInstanceClassChanging`, `DBInstanceNetTypeChanging`, `Deleting`, `EngineVersionUpgrading`, `GuardDBInstanceCreating`, `GuardSwitching`, `Importing`, `ImportingFromOtherInstance`, `Rebooting`, `Restoring`, `Running`, `Transfering`, `TransferingToOtherInstance`.

func (GetInstancesInstanceOutput) StorageSize

The storage capacity. Unit: GB. Value: `50` to `4000`.

func (GetInstancesInstanceOutput) StorageType

The type of disks. Valid values: `cloudEssd`, `cloudEfficiency`.

func (GetInstancesInstanceOutput) Tags

The tags of the instance.

func (GetInstancesInstanceOutput) ToGetInstancesInstanceOutput

func (o GetInstancesInstanceOutput) ToGetInstancesInstanceOutput() GetInstancesInstanceOutput

func (GetInstancesInstanceOutput) ToGetInstancesInstanceOutputWithContext

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

func (GetInstancesInstanceOutput) VpcId

The ID of the VPC。.

func (GetInstancesInstanceOutput) VswitchId

The vswitch id.

func (GetInstancesInstanceOutput) ZoneId

The zone ID of the instance.

type GetInstancesOutputArgs

type GetInstancesOutputArgs struct {
	// Instance availability zone.
	AvailabilityZone pulumi.StringPtrInput `pulumi:"availabilityZone"`
	// The db instance categories.
	DbInstanceCategories pulumi.StringPtrInput `pulumi:"dbInstanceCategories"`
	// The db instance modes.
	DbInstanceModes pulumi.StringPtrInput `pulumi:"dbInstanceModes"`
	// The description of the instance.
	Description pulumi.StringPtrInput `pulumi:"description"`
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"`
	// The ids list of AnalyticDB for PostgreSQL instances.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// The network type of the instance.
	InstanceNetworkType pulumi.StringPtrInput `pulumi:"instanceNetworkType"`
	// A regex string to apply to the instance name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The ID of the enterprise resource group to which the instance belongs.
	ResourceGroupId pulumi.StringPtrInput `pulumi:"resourceGroupId"`
	// The status of the instance. Valid values: `Creating`, `DBInstanceClassChanging`, `DBInstanceNetTypeChanging`, `Deleting`, `EngineVersionUpgrading`, `GuardDBInstanceCreating`, `GuardSwitching`, `Importing`, `ImportingFromOtherInstance`, `Rebooting`, `Restoring`, `Running`, `Transfering`, `TransferingToOtherInstance`.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// The tags of the instance.
	Tags pulumi.MapInput `pulumi:"tags"`
	// The vswitch id.
	VswitchId pulumi.StringPtrInput `pulumi:"vswitchId"`
}

A collection of arguments for invoking getInstances.

func (GetInstancesOutputArgs) ElementType

func (GetInstancesOutputArgs) ElementType() reflect.Type

type GetInstancesResult

type GetInstancesResult struct {
	AvailabilityZone     *string `pulumi:"availabilityZone"`
	DbInstanceCategories *string `pulumi:"dbInstanceCategories"`
	DbInstanceModes      *string `pulumi:"dbInstanceModes"`
	Description          *string `pulumi:"description"`
	EnableDetails        *bool   `pulumi:"enableDetails"`
	// The provider-assigned unique ID for this managed resource.
	Id                  string                 `pulumi:"id"`
	Ids                 []string               `pulumi:"ids"`
	InstanceNetworkType *string                `pulumi:"instanceNetworkType"`
	Instances           []GetInstancesInstance `pulumi:"instances"`
	NameRegex           *string                `pulumi:"nameRegex"`
	Names               []string               `pulumi:"names"`
	OutputFile          *string                `pulumi:"outputFile"`
	ResourceGroupId     *string                `pulumi:"resourceGroupId"`
	Status              *string                `pulumi:"status"`
	Tags                map[string]interface{} `pulumi:"tags"`
	VswitchId           *string                `pulumi:"vswitchId"`
}

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 AnalyticDB for PostgreSQL instances of the current Alibaba Cloud user.

> **NOTE:** Available in 1.47.0+

## Example Usage

Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := gpdb.GetInstances(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("gpdbDbInstanceId1", ids.Instances[0].Id)
		return nil
	})
}

```

type GetInstancesResultOutput

type GetInstancesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInstances.

func (GetInstancesResultOutput) AvailabilityZone

func (o GetInstancesResultOutput) AvailabilityZone() pulumi.StringPtrOutput

func (GetInstancesResultOutput) DbInstanceCategories

func (o GetInstancesResultOutput) DbInstanceCategories() pulumi.StringPtrOutput

func (GetInstancesResultOutput) DbInstanceModes

func (o GetInstancesResultOutput) DbInstanceModes() pulumi.StringPtrOutput

func (GetInstancesResultOutput) Description

func (GetInstancesResultOutput) ElementType

func (GetInstancesResultOutput) ElementType() reflect.Type

func (GetInstancesResultOutput) EnableDetails

func (o GetInstancesResultOutput) EnableDetails() pulumi.BoolPtrOutput

func (GetInstancesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetInstancesResultOutput) Ids

func (GetInstancesResultOutput) InstanceNetworkType

func (o GetInstancesResultOutput) InstanceNetworkType() pulumi.StringPtrOutput

func (GetInstancesResultOutput) Instances

func (GetInstancesResultOutput) NameRegex

func (GetInstancesResultOutput) Names

func (GetInstancesResultOutput) OutputFile

func (GetInstancesResultOutput) ResourceGroupId

func (o GetInstancesResultOutput) ResourceGroupId() pulumi.StringPtrOutput

func (GetInstancesResultOutput) Status

func (GetInstancesResultOutput) Tags

func (GetInstancesResultOutput) ToGetInstancesResultOutput

func (o GetInstancesResultOutput) ToGetInstancesResultOutput() GetInstancesResultOutput

func (GetInstancesResultOutput) ToGetInstancesResultOutputWithContext

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

func (GetInstancesResultOutput) VswitchId

type GetZonesArgs

type GetZonesArgs struct {
	// Indicate whether the zones can be used in a multi AZ configuration. Default to `false`. Multi AZ is usually used to launch Gpdb instances.
	Multi      *bool   `pulumi:"multi"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getZones.

type GetZonesOutputArgs

type GetZonesOutputArgs struct {
	// Indicate whether the zones can be used in a multi AZ configuration. Default to `false`. Multi AZ is usually used to launch Gpdb instances.
	Multi      pulumi.BoolPtrInput   `pulumi:"multi"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getZones.

func (GetZonesOutputArgs) ElementType

func (GetZonesOutputArgs) ElementType() reflect.Type

type GetZonesResult

type GetZonesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of zone IDs.
	Ids        []string `pulumi:"ids"`
	Multi      *bool    `pulumi:"multi"`
	OutputFile *string  `pulumi:"outputFile"`
	// A list of availability zones. Each element contains the following attributes:
	Zones []GetZonesZone `pulumi:"zones"`
}

A collection of values returned by getZones.

func GetZones

func GetZones(ctx *pulumi.Context, args *GetZonesArgs, opts ...pulumi.InvokeOption) (*GetZonesResult, error)

This data source provides availability zones for Gpdb that can be accessed by an Alibaba Cloud account within the region configured in the provider.

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

type GetZonesResultOutput

type GetZonesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getZones.

func (GetZonesResultOutput) ElementType

func (GetZonesResultOutput) ElementType() reflect.Type

func (GetZonesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetZonesResultOutput) Ids

A list of zone IDs.

func (GetZonesResultOutput) Multi

func (GetZonesResultOutput) OutputFile

func (GetZonesResultOutput) ToGetZonesResultOutput

func (o GetZonesResultOutput) ToGetZonesResultOutput() GetZonesResultOutput

func (GetZonesResultOutput) ToGetZonesResultOutputWithContext

func (o GetZonesResultOutput) ToGetZonesResultOutputWithContext(ctx context.Context) GetZonesResultOutput

func (GetZonesResultOutput) Zones

A list of availability zones. Each element contains the following attributes:

type GetZonesZone

type GetZonesZone struct {
	// ID of the zone.
	Id string `pulumi:"id"`
	// A list of zone ids in which the multi zone.
	MultiZoneIds []string `pulumi:"multiZoneIds"`
}

type GetZonesZoneArgs

type GetZonesZoneArgs struct {
	// ID of the zone.
	Id pulumi.StringInput `pulumi:"id"`
	// A list of zone ids in which the multi zone.
	MultiZoneIds pulumi.StringArrayInput `pulumi:"multiZoneIds"`
}

func (GetZonesZoneArgs) ElementType

func (GetZonesZoneArgs) ElementType() reflect.Type

func (GetZonesZoneArgs) ToGetZonesZoneOutput

func (i GetZonesZoneArgs) ToGetZonesZoneOutput() GetZonesZoneOutput

func (GetZonesZoneArgs) ToGetZonesZoneOutputWithContext

func (i GetZonesZoneArgs) ToGetZonesZoneOutputWithContext(ctx context.Context) GetZonesZoneOutput

type GetZonesZoneArray

type GetZonesZoneArray []GetZonesZoneInput

func (GetZonesZoneArray) ElementType

func (GetZonesZoneArray) ElementType() reflect.Type

func (GetZonesZoneArray) ToGetZonesZoneArrayOutput

func (i GetZonesZoneArray) ToGetZonesZoneArrayOutput() GetZonesZoneArrayOutput

func (GetZonesZoneArray) ToGetZonesZoneArrayOutputWithContext

func (i GetZonesZoneArray) ToGetZonesZoneArrayOutputWithContext(ctx context.Context) GetZonesZoneArrayOutput

type GetZonesZoneArrayInput

type GetZonesZoneArrayInput interface {
	pulumi.Input

	ToGetZonesZoneArrayOutput() GetZonesZoneArrayOutput
	ToGetZonesZoneArrayOutputWithContext(context.Context) GetZonesZoneArrayOutput
}

GetZonesZoneArrayInput is an input type that accepts GetZonesZoneArray and GetZonesZoneArrayOutput values. You can construct a concrete instance of `GetZonesZoneArrayInput` via:

GetZonesZoneArray{ GetZonesZoneArgs{...} }

type GetZonesZoneArrayOutput

type GetZonesZoneArrayOutput struct{ *pulumi.OutputState }

func (GetZonesZoneArrayOutput) ElementType

func (GetZonesZoneArrayOutput) ElementType() reflect.Type

func (GetZonesZoneArrayOutput) Index

func (GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutput

func (o GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutput() GetZonesZoneArrayOutput

func (GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutputWithContext

func (o GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutputWithContext(ctx context.Context) GetZonesZoneArrayOutput

type GetZonesZoneInput

type GetZonesZoneInput interface {
	pulumi.Input

	ToGetZonesZoneOutput() GetZonesZoneOutput
	ToGetZonesZoneOutputWithContext(context.Context) GetZonesZoneOutput
}

GetZonesZoneInput is an input type that accepts GetZonesZoneArgs and GetZonesZoneOutput values. You can construct a concrete instance of `GetZonesZoneInput` via:

GetZonesZoneArgs{...}

type GetZonesZoneOutput

type GetZonesZoneOutput struct{ *pulumi.OutputState }

func (GetZonesZoneOutput) ElementType

func (GetZonesZoneOutput) ElementType() reflect.Type

func (GetZonesZoneOutput) Id

ID of the zone.

func (GetZonesZoneOutput) MultiZoneIds

func (o GetZonesZoneOutput) MultiZoneIds() pulumi.StringArrayOutput

A list of zone ids in which the multi zone.

func (GetZonesZoneOutput) ToGetZonesZoneOutput

func (o GetZonesZoneOutput) ToGetZonesZoneOutput() GetZonesZoneOutput

func (GetZonesZoneOutput) ToGetZonesZoneOutputWithContext

func (o GetZonesZoneOutput) ToGetZonesZoneOutputWithContext(ctx context.Context) GetZonesZoneOutput

type Instance

type Instance struct {
	pulumi.CustomResourceState

	// Field `availabilityZone` has been deprecated from provider version 1.187.0. New field `zoneId` instead.
	//
	// Deprecated: Field 'availability_zone' has been deprecated from version 1.187.0. Use 'zone_id' instead.
	AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
	// Whether to load the sample dataset after the instance is created. Valid values: `true`, `false`.
	CreateSampleData pulumi.BoolOutput `pulumi:"createSampleData"`
	// The db instance category. Valid values: `HighAvailability`, `Basic`.
	// > **NOTE:** This parameter must be passed in to create a storage reservation mode instance.
	DbInstanceCategory pulumi.StringOutput `pulumi:"dbInstanceCategory"`
	// The db instance class. see [Instance specifications](https://www.alibabacloud.com/help/doc-detail/86942.htm).
	// > **NOTE:** This parameter must be passed in to create a storage reservation mode instance.
	DbInstanceClass pulumi.StringPtrOutput `pulumi:"dbInstanceClass"`
	// The db instance mode. Valid values: `StorageElastic`, `Serverless`, `Classic`.
	DbInstanceMode pulumi.StringOutput `pulumi:"dbInstanceMode"`
	// The description of the instance.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The database engine used by the instance. Value options can refer to the latest docs [CreateDBInstance](https://www.alibabacloud.com/help/doc-detail/86908.htm) `EngineVersion`.
	Engine pulumi.StringOutput `pulumi:"engine"`
	// The version of the database engine used by the instance.
	EngineVersion pulumi.StringOutput `pulumi:"engineVersion"`
	// Field `instanceChargeType` has been deprecated from provider version 1.187.0. New field `paymentType` instead.
	//
	// Deprecated: Field 'instance_charge_type' has been deprecated from version 1.187.0. Use 'payment_type' instead.
	InstanceChargeType pulumi.StringOutput `pulumi:"instanceChargeType"`
	// The number of nodes. Valid values: `2`, `4`, `8`, `12`, `16`, `24`, `32`, `64`, `96`, `128`.
	InstanceGroupCount pulumi.IntPtrOutput `pulumi:"instanceGroupCount"`
	// The network type of the instance.
	InstanceNetworkType pulumi.StringOutput `pulumi:"instanceNetworkType"`
	// The specification of segment nodes.
	// * When `dbInstanceCategory` is `HighAvailability`, Valid values: `2C16G`, `4C32G`, `16C128G`.
	// * When `dbInstanceCategory` is `Basic`, Valid values: `2C8G`, `4C16G`, `8C32G`, `16C64G`.
	// * When `dbInstanceCategory` is `Serverless`, Valid values: `4C16G`, `8C32G`.
	// > **NOTE:** This parameter must be passed to create a storage elastic mode instance and a serverless version instance.
	InstanceSpec pulumi.StringPtrOutput `pulumi:"instanceSpec"`
	// The ip whitelist.
	IpWhitelists InstanceIpWhitelistArrayOutput `pulumi:"ipWhitelists"`
	// The end time of the maintenance window for the instance. in the format of HH:mmZ (UTC time), for example 03:00Z. start time should be later than end time.
	MaintainEndTime pulumi.StringOutput `pulumi:"maintainEndTime"`
	// The start time of the maintenance window for the instance. in the format of HH:mmZ (UTC time), for example 02:00Z.
	MaintainStartTime pulumi.StringOutput `pulumi:"maintainStartTime"`
	// The number of Master nodes. Valid values: 1 to 2. if it is not filled in, the default value is 1 Master node.
	MasterNodeNum pulumi.IntPtrOutput `pulumi:"masterNodeNum"`
	// The billing method of the instance. Valid values: `Subscription`, `PayAsYouGo`.
	PaymentType pulumi.StringOutput `pulumi:"paymentType"`
	// The duration that you will buy the resource, in month. required when `paymentType` is `Subscription`. Valid values: `Year`, `Month`.
	Period pulumi.StringPtrOutput `pulumi:"period"`
	// The private ip address.
	PrivateIpAddress pulumi.StringPtrOutput `pulumi:"privateIpAddress"`
	// The ID of the enterprise resource group to which the instance belongs.
	ResourceGroupId pulumi.StringPtrOutput `pulumi:"resourceGroupId"`
	// List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]). System default to `["127.0.0.1"]`.
	//
	// Deprecated: Field 'security_ip_list' has been deprecated from version 1.187.0. Use 'ip_whitelist' instead.
	SecurityIpLists pulumi.StringArrayOutput `pulumi:"securityIpLists"`
	// Calculate the number of nodes. The value range of the high-availability version of the storage elastic mode is 4 to 512, and the value must be a multiple of 4. The value range of the basic version of the storage elastic mode is 2 to 512, and the value must be a multiple of 2. The-Serverless version has a value range of 2 to 512. The value must be a multiple of 2.
	// > **NOTE:** This parameter must be passed in to create a storage elastic mode instance and a Serverless version instance. During the public beta of the Serverless version (from 0101, 2022 to 0131, 2022), a maximum of 12 compute nodes can be created.
	SegNodeNum pulumi.IntOutput `pulumi:"segNodeNum"`
	// The seg storage type. Valid values: `cloudEssd`, `cloudEfficiency`.
	// > **NOTE:** This parameter must be passed in to create a storage elastic mode instance. Storage Elastic Mode Basic Edition instances only support ESSD cloud disks.
	SegStorageType pulumi.StringPtrOutput `pulumi:"segStorageType"`
	// Enable or disable SSL. Valid values: `0` and `1`.
	SslEnabled pulumi.IntOutput `pulumi:"sslEnabled"`
	// The status of the instance.
	Status pulumi.StringOutput `pulumi:"status"`
	// The storage capacity. Unit: GB. Value: `50` to `4000`.
	// > **NOTE:** This parameter must be passed in to create a storage reservation mode instance.
	StorageSize pulumi.IntOutput `pulumi:"storageSize"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapOutput `pulumi:"tags"`
	// The used time. When the parameter `period` is `Year`, the `usedTime` value is 1 to 3. When the parameter `period` is `Month`, the `usedTime` value is 1 to 9.
	UsedTime pulumi.StringPtrOutput `pulumi:"usedTime"`
	// The vpc ID of the resource.
	VpcId pulumi.StringOutput `pulumi:"vpcId"`
	// The vswitch id.
	VswitchId pulumi.StringOutput `pulumi:"vswitchId"`
	// The zone ID of the instance.
	ZoneId pulumi.StringOutput `pulumi:"zoneId"`
}

Provides a AnalyticDB for PostgreSQL instance resource supports replica set instances only. the AnalyticDB for PostgreSQL provides stable, reliable, and automatic scalable database services. You can see detail product introduction [here](https://www.alibabacloud.com/help/doc-detail/35387.htm)

> **NOTE:** Available in 1.47.0+

## Import

AnalyticDB for PostgreSQL can be imported using the id, e.g.

```sh

$ pulumi import alicloud:gpdb/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 {
	// Field `availabilityZone` has been deprecated from provider version 1.187.0. New field `zoneId` instead.
	//
	// Deprecated: Field 'availability_zone' has been deprecated from version 1.187.0. Use 'zone_id' instead.
	AvailabilityZone pulumi.StringPtrInput
	// Whether to load the sample dataset after the instance is created. Valid values: `true`, `false`.
	CreateSampleData pulumi.BoolPtrInput
	// The db instance category. Valid values: `HighAvailability`, `Basic`.
	// > **NOTE:** This parameter must be passed in to create a storage reservation mode instance.
	DbInstanceCategory pulumi.StringPtrInput
	// The db instance class. see [Instance specifications](https://www.alibabacloud.com/help/doc-detail/86942.htm).
	// > **NOTE:** This parameter must be passed in to create a storage reservation mode instance.
	DbInstanceClass pulumi.StringPtrInput
	// The db instance mode. Valid values: `StorageElastic`, `Serverless`, `Classic`.
	DbInstanceMode pulumi.StringInput
	// The description of the instance.
	Description pulumi.StringPtrInput
	// The database engine used by the instance. Value options can refer to the latest docs [CreateDBInstance](https://www.alibabacloud.com/help/doc-detail/86908.htm) `EngineVersion`.
	Engine pulumi.StringInput
	// The version of the database engine used by the instance.
	EngineVersion pulumi.StringInput
	// Field `instanceChargeType` has been deprecated from provider version 1.187.0. New field `paymentType` instead.
	//
	// Deprecated: Field 'instance_charge_type' has been deprecated from version 1.187.0. Use 'payment_type' instead.
	InstanceChargeType pulumi.StringPtrInput
	// The number of nodes. Valid values: `2`, `4`, `8`, `12`, `16`, `24`, `32`, `64`, `96`, `128`.
	InstanceGroupCount pulumi.IntPtrInput
	// The network type of the instance.
	InstanceNetworkType pulumi.StringPtrInput
	// The specification of segment nodes.
	// * When `dbInstanceCategory` is `HighAvailability`, Valid values: `2C16G`, `4C32G`, `16C128G`.
	// * When `dbInstanceCategory` is `Basic`, Valid values: `2C8G`, `4C16G`, `8C32G`, `16C64G`.
	// * When `dbInstanceCategory` is `Serverless`, Valid values: `4C16G`, `8C32G`.
	// > **NOTE:** This parameter must be passed to create a storage elastic mode instance and a serverless version instance.
	InstanceSpec pulumi.StringPtrInput
	// The ip whitelist.
	IpWhitelists InstanceIpWhitelistArrayInput
	// The end time of the maintenance window for the instance. in the format of HH:mmZ (UTC time), for example 03:00Z. start time should be later than end time.
	MaintainEndTime pulumi.StringPtrInput
	// The start time of the maintenance window for the instance. in the format of HH:mmZ (UTC time), for example 02:00Z.
	MaintainStartTime pulumi.StringPtrInput
	// The number of Master nodes. Valid values: 1 to 2. if it is not filled in, the default value is 1 Master node.
	MasterNodeNum pulumi.IntPtrInput
	// The billing method of the instance. Valid values: `Subscription`, `PayAsYouGo`.
	PaymentType pulumi.StringPtrInput
	// The duration that you will buy the resource, in month. required when `paymentType` is `Subscription`. Valid values: `Year`, `Month`.
	Period pulumi.StringPtrInput
	// The private ip address.
	PrivateIpAddress pulumi.StringPtrInput
	// The ID of the enterprise resource group to which the instance belongs.
	ResourceGroupId pulumi.StringPtrInput
	// List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]). System default to `["127.0.0.1"]`.
	//
	// Deprecated: Field 'security_ip_list' has been deprecated from version 1.187.0. Use 'ip_whitelist' instead.
	SecurityIpLists pulumi.StringArrayInput
	// Calculate the number of nodes. The value range of the high-availability version of the storage elastic mode is 4 to 512, and the value must be a multiple of 4. The value range of the basic version of the storage elastic mode is 2 to 512, and the value must be a multiple of 2. The-Serverless version has a value range of 2 to 512. The value must be a multiple of 2.
	// > **NOTE:** This parameter must be passed in to create a storage elastic mode instance and a Serverless version instance. During the public beta of the Serverless version (from 0101, 2022 to 0131, 2022), a maximum of 12 compute nodes can be created.
	SegNodeNum pulumi.IntPtrInput
	// The seg storage type. Valid values: `cloudEssd`, `cloudEfficiency`.
	// > **NOTE:** This parameter must be passed in to create a storage elastic mode instance. Storage Elastic Mode Basic Edition instances only support ESSD cloud disks.
	SegStorageType pulumi.StringPtrInput
	// Enable or disable SSL. Valid values: `0` and `1`.
	SslEnabled pulumi.IntPtrInput
	// The storage capacity. Unit: GB. Value: `50` to `4000`.
	// > **NOTE:** This parameter must be passed in to create a storage reservation mode instance.
	StorageSize pulumi.IntPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
	// The used time. When the parameter `period` is `Year`, the `usedTime` value is 1 to 3. When the parameter `period` is `Month`, the `usedTime` value is 1 to 9.
	UsedTime pulumi.StringPtrInput
	// The vpc ID of the resource.
	VpcId pulumi.StringPtrInput
	// The vswitch id.
	VswitchId pulumi.StringInput
	// The zone ID of the instance.
	ZoneId 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 InstanceIpWhitelist

type InstanceIpWhitelist struct {
	// The value of this parameter is empty by default. The attribute of the whitelist group. The console does not display the whitelist group whose value of this parameter is hidden.
	IpGroupAttribute *string `pulumi:"ipGroupAttribute"`
	// IP whitelist group name
	IpGroupName *string `pulumi:"ipGroupName"`
	// List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]). System default to `["127.0.0.1"]`.
	SecurityIpList string `pulumi:"securityIpList"`
}

type InstanceIpWhitelistArgs

type InstanceIpWhitelistArgs struct {
	// The value of this parameter is empty by default. The attribute of the whitelist group. The console does not display the whitelist group whose value of this parameter is hidden.
	IpGroupAttribute pulumi.StringPtrInput `pulumi:"ipGroupAttribute"`
	// IP whitelist group name
	IpGroupName pulumi.StringPtrInput `pulumi:"ipGroupName"`
	// List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]). System default to `["127.0.0.1"]`.
	SecurityIpList pulumi.StringInput `pulumi:"securityIpList"`
}

func (InstanceIpWhitelistArgs) ElementType

func (InstanceIpWhitelistArgs) ElementType() reflect.Type

func (InstanceIpWhitelistArgs) ToInstanceIpWhitelistOutput

func (i InstanceIpWhitelistArgs) ToInstanceIpWhitelistOutput() InstanceIpWhitelistOutput

func (InstanceIpWhitelistArgs) ToInstanceIpWhitelistOutputWithContext

func (i InstanceIpWhitelistArgs) ToInstanceIpWhitelistOutputWithContext(ctx context.Context) InstanceIpWhitelistOutput

type InstanceIpWhitelistArray

type InstanceIpWhitelistArray []InstanceIpWhitelistInput

func (InstanceIpWhitelistArray) ElementType

func (InstanceIpWhitelistArray) ElementType() reflect.Type

func (InstanceIpWhitelistArray) ToInstanceIpWhitelistArrayOutput

func (i InstanceIpWhitelistArray) ToInstanceIpWhitelistArrayOutput() InstanceIpWhitelistArrayOutput

func (InstanceIpWhitelistArray) ToInstanceIpWhitelistArrayOutputWithContext

func (i InstanceIpWhitelistArray) ToInstanceIpWhitelistArrayOutputWithContext(ctx context.Context) InstanceIpWhitelistArrayOutput

type InstanceIpWhitelistArrayInput

type InstanceIpWhitelistArrayInput interface {
	pulumi.Input

	ToInstanceIpWhitelistArrayOutput() InstanceIpWhitelistArrayOutput
	ToInstanceIpWhitelistArrayOutputWithContext(context.Context) InstanceIpWhitelistArrayOutput
}

InstanceIpWhitelistArrayInput is an input type that accepts InstanceIpWhitelistArray and InstanceIpWhitelistArrayOutput values. You can construct a concrete instance of `InstanceIpWhitelistArrayInput` via:

InstanceIpWhitelistArray{ InstanceIpWhitelistArgs{...} }

type InstanceIpWhitelistArrayOutput

type InstanceIpWhitelistArrayOutput struct{ *pulumi.OutputState }

func (InstanceIpWhitelistArrayOutput) ElementType

func (InstanceIpWhitelistArrayOutput) Index

func (InstanceIpWhitelistArrayOutput) ToInstanceIpWhitelistArrayOutput

func (o InstanceIpWhitelistArrayOutput) ToInstanceIpWhitelistArrayOutput() InstanceIpWhitelistArrayOutput

func (InstanceIpWhitelistArrayOutput) ToInstanceIpWhitelistArrayOutputWithContext

func (o InstanceIpWhitelistArrayOutput) ToInstanceIpWhitelistArrayOutputWithContext(ctx context.Context) InstanceIpWhitelistArrayOutput

type InstanceIpWhitelistInput

type InstanceIpWhitelistInput interface {
	pulumi.Input

	ToInstanceIpWhitelistOutput() InstanceIpWhitelistOutput
	ToInstanceIpWhitelistOutputWithContext(context.Context) InstanceIpWhitelistOutput
}

InstanceIpWhitelistInput is an input type that accepts InstanceIpWhitelistArgs and InstanceIpWhitelistOutput values. You can construct a concrete instance of `InstanceIpWhitelistInput` via:

InstanceIpWhitelistArgs{...}

type InstanceIpWhitelistOutput

type InstanceIpWhitelistOutput struct{ *pulumi.OutputState }

func (InstanceIpWhitelistOutput) ElementType

func (InstanceIpWhitelistOutput) ElementType() reflect.Type

func (InstanceIpWhitelistOutput) IpGroupAttribute

func (o InstanceIpWhitelistOutput) IpGroupAttribute() pulumi.StringPtrOutput

The value of this parameter is empty by default. The attribute of the whitelist group. The console does not display the whitelist group whose value of this parameter is hidden.

func (InstanceIpWhitelistOutput) IpGroupName

IP whitelist group name

func (InstanceIpWhitelistOutput) SecurityIpList

func (o InstanceIpWhitelistOutput) SecurityIpList() pulumi.StringOutput

List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]). System default to `["127.0.0.1"]`.

func (InstanceIpWhitelistOutput) ToInstanceIpWhitelistOutput

func (o InstanceIpWhitelistOutput) ToInstanceIpWhitelistOutput() InstanceIpWhitelistOutput

func (InstanceIpWhitelistOutput) ToInstanceIpWhitelistOutputWithContext

func (o InstanceIpWhitelistOutput) ToInstanceIpWhitelistOutputWithContext(ctx context.Context) InstanceIpWhitelistOutput

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) AvailabilityZone deprecated

func (o InstanceOutput) AvailabilityZone() pulumi.StringOutput

Field `availabilityZone` has been deprecated from provider version 1.187.0. New field `zoneId` instead.

Deprecated: Field 'availability_zone' has been deprecated from version 1.187.0. Use 'zone_id' instead.

func (InstanceOutput) CreateSampleData

func (o InstanceOutput) CreateSampleData() pulumi.BoolOutput

Whether to load the sample dataset after the instance is created. Valid values: `true`, `false`.

func (InstanceOutput) DbInstanceCategory

func (o InstanceOutput) DbInstanceCategory() pulumi.StringOutput

The db instance category. Valid values: `HighAvailability`, `Basic`. > **NOTE:** This parameter must be passed in to create a storage reservation mode instance.

func (InstanceOutput) DbInstanceClass

func (o InstanceOutput) DbInstanceClass() pulumi.StringPtrOutput

The db instance class. see [Instance specifications](https://www.alibabacloud.com/help/doc-detail/86942.htm). > **NOTE:** This parameter must be passed in to create a storage reservation mode instance.

func (InstanceOutput) DbInstanceMode

func (o InstanceOutput) DbInstanceMode() pulumi.StringOutput

The db instance mode. Valid values: `StorageElastic`, `Serverless`, `Classic`.

func (InstanceOutput) Description

func (o InstanceOutput) Description() pulumi.StringPtrOutput

The description of the instance.

func (InstanceOutput) ElementType

func (InstanceOutput) ElementType() reflect.Type

func (InstanceOutput) Engine

func (o InstanceOutput) Engine() pulumi.StringOutput

The database engine used by the instance. Value options can refer to the latest docs [CreateDBInstance](https://www.alibabacloud.com/help/doc-detail/86908.htm) `EngineVersion`.

func (InstanceOutput) EngineVersion

func (o InstanceOutput) EngineVersion() pulumi.StringOutput

The version of the database engine used by the instance.

func (InstanceOutput) InstanceChargeType deprecated

func (o InstanceOutput) InstanceChargeType() pulumi.StringOutput

Field `instanceChargeType` has been deprecated from provider version 1.187.0. New field `paymentType` instead.

Deprecated: Field 'instance_charge_type' has been deprecated from version 1.187.0. Use 'payment_type' instead.

func (InstanceOutput) InstanceGroupCount

func (o InstanceOutput) InstanceGroupCount() pulumi.IntPtrOutput

The number of nodes. Valid values: `2`, `4`, `8`, `12`, `16`, `24`, `32`, `64`, `96`, `128`.

func (InstanceOutput) InstanceNetworkType

func (o InstanceOutput) InstanceNetworkType() pulumi.StringOutput

The network type of the instance.

func (InstanceOutput) InstanceSpec

func (o InstanceOutput) InstanceSpec() pulumi.StringPtrOutput

The specification of segment nodes. * When `dbInstanceCategory` is `HighAvailability`, Valid values: `2C16G`, `4C32G`, `16C128G`. * When `dbInstanceCategory` is `Basic`, Valid values: `2C8G`, `4C16G`, `8C32G`, `16C64G`. * When `dbInstanceCategory` is `Serverless`, Valid values: `4C16G`, `8C32G`. > **NOTE:** This parameter must be passed to create a storage elastic mode instance and a serverless version instance.

func (InstanceOutput) IpWhitelists

The ip whitelist.

func (InstanceOutput) MaintainEndTime

func (o InstanceOutput) MaintainEndTime() pulumi.StringOutput

The end time of the maintenance window for the instance. in the format of HH:mmZ (UTC time), for example 03:00Z. start time should be later than end time.

func (InstanceOutput) MaintainStartTime

func (o InstanceOutput) MaintainStartTime() pulumi.StringOutput

The start time of the maintenance window for the instance. in the format of HH:mmZ (UTC time), for example 02:00Z.

func (InstanceOutput) MasterNodeNum

func (o InstanceOutput) MasterNodeNum() pulumi.IntPtrOutput

The number of Master nodes. Valid values: 1 to 2. if it is not filled in, the default value is 1 Master node.

func (InstanceOutput) PaymentType

func (o InstanceOutput) PaymentType() pulumi.StringOutput

The billing method of the instance. Valid values: `Subscription`, `PayAsYouGo`.

func (InstanceOutput) Period

The duration that you will buy the resource, in month. required when `paymentType` is `Subscription`. Valid values: `Year`, `Month`.

func (InstanceOutput) PrivateIpAddress

func (o InstanceOutput) PrivateIpAddress() pulumi.StringPtrOutput

The private ip address.

func (InstanceOutput) ResourceGroupId

func (o InstanceOutput) ResourceGroupId() pulumi.StringPtrOutput

The ID of the enterprise resource group to which the instance belongs.

func (InstanceOutput) SecurityIpLists deprecated

func (o InstanceOutput) SecurityIpLists() pulumi.StringArrayOutput

List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]). System default to `["127.0.0.1"]`.

Deprecated: Field 'security_ip_list' has been deprecated from version 1.187.0. Use 'ip_whitelist' instead.

func (InstanceOutput) SegNodeNum

func (o InstanceOutput) SegNodeNum() pulumi.IntOutput

Calculate the number of nodes. The value range of the high-availability version of the storage elastic mode is 4 to 512, and the value must be a multiple of 4. The value range of the basic version of the storage elastic mode is 2 to 512, and the value must be a multiple of 2. The-Serverless version has a value range of 2 to 512. The value must be a multiple of 2. > **NOTE:** This parameter must be passed in to create a storage elastic mode instance and a Serverless version instance. During the public beta of the Serverless version (from 0101, 2022 to 0131, 2022), a maximum of 12 compute nodes can be created.

func (InstanceOutput) SegStorageType

func (o InstanceOutput) SegStorageType() pulumi.StringPtrOutput

The seg storage type. Valid values: `cloudEssd`, `cloudEfficiency`. > **NOTE:** This parameter must be passed in to create a storage elastic mode instance. Storage Elastic Mode Basic Edition instances only support ESSD cloud disks.

func (InstanceOutput) SslEnabled

func (o InstanceOutput) SslEnabled() pulumi.IntOutput

Enable or disable SSL. Valid values: `0` and `1`.

func (InstanceOutput) Status

func (o InstanceOutput) Status() pulumi.StringOutput

The status of the instance.

func (InstanceOutput) StorageSize

func (o InstanceOutput) StorageSize() pulumi.IntOutput

The storage capacity. Unit: GB. Value: `50` to `4000`. > **NOTE:** This parameter must be passed in to create a storage reservation mode instance.

func (InstanceOutput) Tags

func (o InstanceOutput) Tags() pulumi.MapOutput

A mapping of tags to assign to the resource.

func (InstanceOutput) ToInstanceOutput

func (o InstanceOutput) ToInstanceOutput() InstanceOutput

func (InstanceOutput) ToInstanceOutputWithContext

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

func (InstanceOutput) UsedTime

func (o InstanceOutput) UsedTime() pulumi.StringPtrOutput

The used time. When the parameter `period` is `Year`, the `usedTime` value is 1 to 3. When the parameter `period` is `Month`, the `usedTime` value is 1 to 9.

func (InstanceOutput) VpcId

The vpc ID of the resource.

func (InstanceOutput) VswitchId

func (o InstanceOutput) VswitchId() pulumi.StringOutput

The vswitch id.

func (InstanceOutput) ZoneId

func (o InstanceOutput) ZoneId() pulumi.StringOutput

The zone ID of the instance.

type InstanceState

type InstanceState struct {
	// Field `availabilityZone` has been deprecated from provider version 1.187.0. New field `zoneId` instead.
	//
	// Deprecated: Field 'availability_zone' has been deprecated from version 1.187.0. Use 'zone_id' instead.
	AvailabilityZone pulumi.StringPtrInput
	// Whether to load the sample dataset after the instance is created. Valid values: `true`, `false`.
	CreateSampleData pulumi.BoolPtrInput
	// The db instance category. Valid values: `HighAvailability`, `Basic`.
	// > **NOTE:** This parameter must be passed in to create a storage reservation mode instance.
	DbInstanceCategory pulumi.StringPtrInput
	// The db instance class. see [Instance specifications](https://www.alibabacloud.com/help/doc-detail/86942.htm).
	// > **NOTE:** This parameter must be passed in to create a storage reservation mode instance.
	DbInstanceClass pulumi.StringPtrInput
	// The db instance mode. Valid values: `StorageElastic`, `Serverless`, `Classic`.
	DbInstanceMode pulumi.StringPtrInput
	// The description of the instance.
	Description pulumi.StringPtrInput
	// The database engine used by the instance. Value options can refer to the latest docs [CreateDBInstance](https://www.alibabacloud.com/help/doc-detail/86908.htm) `EngineVersion`.
	Engine pulumi.StringPtrInput
	// The version of the database engine used by the instance.
	EngineVersion pulumi.StringPtrInput
	// Field `instanceChargeType` has been deprecated from provider version 1.187.0. New field `paymentType` instead.
	//
	// Deprecated: Field 'instance_charge_type' has been deprecated from version 1.187.0. Use 'payment_type' instead.
	InstanceChargeType pulumi.StringPtrInput
	// The number of nodes. Valid values: `2`, `4`, `8`, `12`, `16`, `24`, `32`, `64`, `96`, `128`.
	InstanceGroupCount pulumi.IntPtrInput
	// The network type of the instance.
	InstanceNetworkType pulumi.StringPtrInput
	// The specification of segment nodes.
	// * When `dbInstanceCategory` is `HighAvailability`, Valid values: `2C16G`, `4C32G`, `16C128G`.
	// * When `dbInstanceCategory` is `Basic`, Valid values: `2C8G`, `4C16G`, `8C32G`, `16C64G`.
	// * When `dbInstanceCategory` is `Serverless`, Valid values: `4C16G`, `8C32G`.
	// > **NOTE:** This parameter must be passed to create a storage elastic mode instance and a serverless version instance.
	InstanceSpec pulumi.StringPtrInput
	// The ip whitelist.
	IpWhitelists InstanceIpWhitelistArrayInput
	// The end time of the maintenance window for the instance. in the format of HH:mmZ (UTC time), for example 03:00Z. start time should be later than end time.
	MaintainEndTime pulumi.StringPtrInput
	// The start time of the maintenance window for the instance. in the format of HH:mmZ (UTC time), for example 02:00Z.
	MaintainStartTime pulumi.StringPtrInput
	// The number of Master nodes. Valid values: 1 to 2. if it is not filled in, the default value is 1 Master node.
	MasterNodeNum pulumi.IntPtrInput
	// The billing method of the instance. Valid values: `Subscription`, `PayAsYouGo`.
	PaymentType pulumi.StringPtrInput
	// The duration that you will buy the resource, in month. required when `paymentType` is `Subscription`. Valid values: `Year`, `Month`.
	Period pulumi.StringPtrInput
	// The private ip address.
	PrivateIpAddress pulumi.StringPtrInput
	// The ID of the enterprise resource group to which the instance belongs.
	ResourceGroupId pulumi.StringPtrInput
	// List of IP addresses allowed to access all databases of an instance. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]). System default to `["127.0.0.1"]`.
	//
	// Deprecated: Field 'security_ip_list' has been deprecated from version 1.187.0. Use 'ip_whitelist' instead.
	SecurityIpLists pulumi.StringArrayInput
	// Calculate the number of nodes. The value range of the high-availability version of the storage elastic mode is 4 to 512, and the value must be a multiple of 4. The value range of the basic version of the storage elastic mode is 2 to 512, and the value must be a multiple of 2. The-Serverless version has a value range of 2 to 512. The value must be a multiple of 2.
	// > **NOTE:** This parameter must be passed in to create a storage elastic mode instance and a Serverless version instance. During the public beta of the Serverless version (from 0101, 2022 to 0131, 2022), a maximum of 12 compute nodes can be created.
	SegNodeNum pulumi.IntPtrInput
	// The seg storage type. Valid values: `cloudEssd`, `cloudEfficiency`.
	// > **NOTE:** This parameter must be passed in to create a storage elastic mode instance. Storage Elastic Mode Basic Edition instances only support ESSD cloud disks.
	SegStorageType pulumi.StringPtrInput
	// Enable or disable SSL. Valid values: `0` and `1`.
	SslEnabled pulumi.IntPtrInput
	// The status of the instance.
	Status pulumi.StringPtrInput
	// The storage capacity. Unit: GB. Value: `50` to `4000`.
	// > **NOTE:** This parameter must be passed in to create a storage reservation mode instance.
	StorageSize pulumi.IntPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
	// The used time. When the parameter `period` is `Year`, the `usedTime` value is 1 to 3. When the parameter `period` is `Month`, the `usedTime` value is 1 to 9.
	UsedTime pulumi.StringPtrInput
	// The vpc ID of the resource.
	VpcId pulumi.StringPtrInput
	// The vswitch id.
	VswitchId pulumi.StringPtrInput
	// The zone ID of the instance.
	ZoneId 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