gpdb

package
v3.54.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account added in v3.10.0

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

## Example Usage

Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "terraform-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_default, err := gpdb.GetZones(ctx, nil, nil)
		if err != nil {
			return err
		}
		defaultGetNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
			NameRegex: pulumi.StringRef("^default-NODELETING$"),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
			VpcId:  pulumi.StringRef(defaultGetNetworks.Ids[0]),
			ZoneId: pulumi.StringRef(_default.Ids[0]),
		}, nil)
		if err != nil {
			return err
		}
		defaultInstance, err := gpdb.NewInstance(ctx, "default", &gpdb.InstanceArgs{
			DbInstanceCategory:  pulumi.String("HighAvailability"),
			DbInstanceClass:     pulumi.String("gpdb.group.segsdx1"),
			DbInstanceMode:      pulumi.String("StorageElastic"),
			Description:         pulumi.String(name),
			Engine:              pulumi.String("gpdb"),
			EngineVersion:       pulumi.String("6.0"),
			ZoneId:              pulumi.String(_default.Ids[0]),
			InstanceNetworkType: pulumi.String("VPC"),
			InstanceSpec:        pulumi.String("2C16G"),
			MasterNodeNum:       pulumi.Int(1),
			PaymentType:         pulumi.String("PayAsYouGo"),
			PrivateIpAddress:    pulumi.String("1.1.1.1"),
			SegStorageType:      pulumi.String("cloud_essd"),
			SegNodeNum:          pulumi.Int(4),
			StorageSize:         pulumi.Int(50),
			VpcId:               pulumi.String(defaultGetNetworks.Ids[0]),
			VswitchId:           pulumi.String(defaultGetSwitches.Ids[0]),
			IpWhitelists: gpdb.InstanceIpWhitelistArray{
				&gpdb.InstanceIpWhitelistArgs{
					SecurityIpList: pulumi.String("127.0.0.1"),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = gpdb.NewAccount(ctx, "default", &gpdb.AccountArgs{
			AccountName:        pulumi.String("tf_example"),
			DbInstanceId:       defaultInstance.ID(),
			AccountPassword:    pulumi.String("Example1234"),
			AccountDescription: pulumi.String("tf_example"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

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

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

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

func (*Account) ElementType() reflect.Type

func (*Account) ToAccountOutput added in v3.10.0

func (i *Account) ToAccountOutput() AccountOutput

func (*Account) ToAccountOutputWithContext added in v3.10.0

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

type AccountArgs added in v3.10.0

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

func (AccountArgs) ElementType() reflect.Type

type AccountArray added in v3.10.0

type AccountArray []AccountInput

func (AccountArray) ElementType added in v3.10.0

func (AccountArray) ElementType() reflect.Type

func (AccountArray) ToAccountArrayOutput added in v3.10.0

func (i AccountArray) ToAccountArrayOutput() AccountArrayOutput

func (AccountArray) ToAccountArrayOutputWithContext added in v3.10.0

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

type AccountArrayInput added in v3.10.0

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

type AccountArrayOutput struct{ *pulumi.OutputState }

func (AccountArrayOutput) ElementType added in v3.10.0

func (AccountArrayOutput) ElementType() reflect.Type

func (AccountArrayOutput) Index added in v3.10.0

func (AccountArrayOutput) ToAccountArrayOutput added in v3.10.0

func (o AccountArrayOutput) ToAccountArrayOutput() AccountArrayOutput

func (AccountArrayOutput) ToAccountArrayOutputWithContext added in v3.10.0

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

type AccountInput added in v3.10.0

type AccountInput interface {
	pulumi.Input

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

type AccountMap added in v3.10.0

type AccountMap map[string]AccountInput

func (AccountMap) ElementType added in v3.10.0

func (AccountMap) ElementType() reflect.Type

func (AccountMap) ToAccountMapOutput added in v3.10.0

func (i AccountMap) ToAccountMapOutput() AccountMapOutput

func (AccountMap) ToAccountMapOutputWithContext added in v3.10.0

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

type AccountMapInput added in v3.10.0

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

type AccountMapOutput struct{ *pulumi.OutputState }

func (AccountMapOutput) ElementType added in v3.10.0

func (AccountMapOutput) ElementType() reflect.Type

func (AccountMapOutput) MapIndex added in v3.10.0

func (AccountMapOutput) ToAccountMapOutput added in v3.10.0

func (o AccountMapOutput) ToAccountMapOutput() AccountMapOutput

func (AccountMapOutput) ToAccountMapOutputWithContext added in v3.10.0

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

type AccountOutput added in v3.10.0

type AccountOutput struct{ *pulumi.OutputState }

func (AccountOutput) AccountDescription added in v3.27.0

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

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

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

func (o AccountOutput) DbInstanceId() pulumi.StringOutput

The ID of the instance.

func (AccountOutput) ElementType added in v3.10.0

func (AccountOutput) ElementType() reflect.Type

func (AccountOutput) Status added in v3.27.0

func (o AccountOutput) Status() pulumi.StringOutput

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

func (AccountOutput) ToAccountOutput added in v3.10.0

func (o AccountOutput) ToAccountOutput() AccountOutput

func (AccountOutput) ToAccountOutputWithContext added in v3.10.0

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

type AccountState added in v3.10.0

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

func (AccountState) ElementType() reflect.Type

type BackupPolicy added in v3.44.0

type BackupPolicy struct {
	pulumi.CustomResourceState

	// Data backup retention days.
	BackupRetentionPeriod pulumi.IntOutput `pulumi:"backupRetentionPeriod"`
	// The instance ID.
	// > **NOTE:**  You can call the DescribeDBInstances operation to view the details of all AnalyticDB PostgreSQL instances in the target region, including the instance ID.
	DbInstanceId pulumi.StringOutput `pulumi:"dbInstanceId"`
	// Whether to enable automatic recovery points. Value Description:
	// - **true**: enabled.
	// - **false**: Closed.
	EnableRecoveryPoint pulumi.BoolOutput `pulumi:"enableRecoveryPoint"`
	// Data backup cycle. Separate multiple values with commas (,). Value Description:
	// - **Monday**: Monday.
	// - **Tuesday**: Tuesday.
	// - **Wednesday**: Wednesday.
	// - **Thursday**: Thursday.
	// - **Friday**: Friday.
	// - **Saturday**: Saturday.
	// - **Sunday**: Sunday.
	PreferredBackupPeriod pulumi.StringOutput `pulumi:"preferredBackupPeriod"`
	// Data backup time. Format: HH:mmZ-HH:mmZ(UTC time).
	PreferredBackupTime pulumi.StringOutput `pulumi:"preferredBackupTime"`
	// Recovery point frequency. Value Description:
	// - **1**: Hourly.
	// - **2**: Every two hours.
	// - **4**: Every four hours.
	// - **8**: Every eight hours.
	RecoveryPointPeriod pulumi.StringOutput `pulumi:"recoveryPointPeriod"`
}

## Import

GPDB Backup Policy can be imported using the id, e.g.

```sh $ pulumi import alicloud:gpdb/backupPolicy:BackupPolicy example <id> ```

func GetBackupPolicy added in v3.44.0

func GetBackupPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *BackupPolicyState, opts ...pulumi.ResourceOption) (*BackupPolicy, error)

GetBackupPolicy gets an existing BackupPolicy 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 NewBackupPolicy added in v3.44.0

func NewBackupPolicy(ctx *pulumi.Context,
	name string, args *BackupPolicyArgs, opts ...pulumi.ResourceOption) (*BackupPolicy, error)

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

func (*BackupPolicy) ElementType added in v3.44.0

func (*BackupPolicy) ElementType() reflect.Type

func (*BackupPolicy) ToBackupPolicyOutput added in v3.44.0

func (i *BackupPolicy) ToBackupPolicyOutput() BackupPolicyOutput

func (*BackupPolicy) ToBackupPolicyOutputWithContext added in v3.44.0

func (i *BackupPolicy) ToBackupPolicyOutputWithContext(ctx context.Context) BackupPolicyOutput

type BackupPolicyArgs added in v3.44.0

type BackupPolicyArgs struct {
	// Data backup retention days.
	BackupRetentionPeriod pulumi.IntPtrInput
	// The instance ID.
	// > **NOTE:**  You can call the DescribeDBInstances operation to view the details of all AnalyticDB PostgreSQL instances in the target region, including the instance ID.
	DbInstanceId pulumi.StringInput
	// Whether to enable automatic recovery points. Value Description:
	// - **true**: enabled.
	// - **false**: Closed.
	EnableRecoveryPoint pulumi.BoolPtrInput
	// Data backup cycle. Separate multiple values with commas (,). Value Description:
	// - **Monday**: Monday.
	// - **Tuesday**: Tuesday.
	// - **Wednesday**: Wednesday.
	// - **Thursday**: Thursday.
	// - **Friday**: Friday.
	// - **Saturday**: Saturday.
	// - **Sunday**: Sunday.
	PreferredBackupPeriod pulumi.StringInput
	// Data backup time. Format: HH:mmZ-HH:mmZ(UTC time).
	PreferredBackupTime pulumi.StringInput
	// Recovery point frequency. Value Description:
	// - **1**: Hourly.
	// - **2**: Every two hours.
	// - **4**: Every four hours.
	// - **8**: Every eight hours.
	RecoveryPointPeriod pulumi.StringPtrInput
}

The set of arguments for constructing a BackupPolicy resource.

func (BackupPolicyArgs) ElementType added in v3.44.0

func (BackupPolicyArgs) ElementType() reflect.Type

type BackupPolicyArray added in v3.44.0

type BackupPolicyArray []BackupPolicyInput

func (BackupPolicyArray) ElementType added in v3.44.0

func (BackupPolicyArray) ElementType() reflect.Type

func (BackupPolicyArray) ToBackupPolicyArrayOutput added in v3.44.0

func (i BackupPolicyArray) ToBackupPolicyArrayOutput() BackupPolicyArrayOutput

func (BackupPolicyArray) ToBackupPolicyArrayOutputWithContext added in v3.44.0

func (i BackupPolicyArray) ToBackupPolicyArrayOutputWithContext(ctx context.Context) BackupPolicyArrayOutput

type BackupPolicyArrayInput added in v3.44.0

type BackupPolicyArrayInput interface {
	pulumi.Input

	ToBackupPolicyArrayOutput() BackupPolicyArrayOutput
	ToBackupPolicyArrayOutputWithContext(context.Context) BackupPolicyArrayOutput
}

BackupPolicyArrayInput is an input type that accepts BackupPolicyArray and BackupPolicyArrayOutput values. You can construct a concrete instance of `BackupPolicyArrayInput` via:

BackupPolicyArray{ BackupPolicyArgs{...} }

type BackupPolicyArrayOutput added in v3.44.0

type BackupPolicyArrayOutput struct{ *pulumi.OutputState }

func (BackupPolicyArrayOutput) ElementType added in v3.44.0

func (BackupPolicyArrayOutput) ElementType() reflect.Type

func (BackupPolicyArrayOutput) Index added in v3.44.0

func (BackupPolicyArrayOutput) ToBackupPolicyArrayOutput added in v3.44.0

func (o BackupPolicyArrayOutput) ToBackupPolicyArrayOutput() BackupPolicyArrayOutput

func (BackupPolicyArrayOutput) ToBackupPolicyArrayOutputWithContext added in v3.44.0

func (o BackupPolicyArrayOutput) ToBackupPolicyArrayOutputWithContext(ctx context.Context) BackupPolicyArrayOutput

type BackupPolicyInput added in v3.44.0

type BackupPolicyInput interface {
	pulumi.Input

	ToBackupPolicyOutput() BackupPolicyOutput
	ToBackupPolicyOutputWithContext(ctx context.Context) BackupPolicyOutput
}

type BackupPolicyMap added in v3.44.0

type BackupPolicyMap map[string]BackupPolicyInput

func (BackupPolicyMap) ElementType added in v3.44.0

func (BackupPolicyMap) ElementType() reflect.Type

func (BackupPolicyMap) ToBackupPolicyMapOutput added in v3.44.0

func (i BackupPolicyMap) ToBackupPolicyMapOutput() BackupPolicyMapOutput

func (BackupPolicyMap) ToBackupPolicyMapOutputWithContext added in v3.44.0

func (i BackupPolicyMap) ToBackupPolicyMapOutputWithContext(ctx context.Context) BackupPolicyMapOutput

type BackupPolicyMapInput added in v3.44.0

type BackupPolicyMapInput interface {
	pulumi.Input

	ToBackupPolicyMapOutput() BackupPolicyMapOutput
	ToBackupPolicyMapOutputWithContext(context.Context) BackupPolicyMapOutput
}

BackupPolicyMapInput is an input type that accepts BackupPolicyMap and BackupPolicyMapOutput values. You can construct a concrete instance of `BackupPolicyMapInput` via:

BackupPolicyMap{ "key": BackupPolicyArgs{...} }

type BackupPolicyMapOutput added in v3.44.0

type BackupPolicyMapOutput struct{ *pulumi.OutputState }

func (BackupPolicyMapOutput) ElementType added in v3.44.0

func (BackupPolicyMapOutput) ElementType() reflect.Type

func (BackupPolicyMapOutput) MapIndex added in v3.44.0

func (BackupPolicyMapOutput) ToBackupPolicyMapOutput added in v3.44.0

func (o BackupPolicyMapOutput) ToBackupPolicyMapOutput() BackupPolicyMapOutput

func (BackupPolicyMapOutput) ToBackupPolicyMapOutputWithContext added in v3.44.0

func (o BackupPolicyMapOutput) ToBackupPolicyMapOutputWithContext(ctx context.Context) BackupPolicyMapOutput

type BackupPolicyOutput added in v3.44.0

type BackupPolicyOutput struct{ *pulumi.OutputState }

func (BackupPolicyOutput) BackupRetentionPeriod added in v3.44.0

func (o BackupPolicyOutput) BackupRetentionPeriod() pulumi.IntOutput

Data backup retention days.

func (BackupPolicyOutput) DbInstanceId added in v3.44.0

func (o BackupPolicyOutput) DbInstanceId() pulumi.StringOutput

The instance ID. > **NOTE:** You can call the DescribeDBInstances operation to view the details of all AnalyticDB PostgreSQL instances in the target region, including the instance ID.

func (BackupPolicyOutput) ElementType added in v3.44.0

func (BackupPolicyOutput) ElementType() reflect.Type

func (BackupPolicyOutput) EnableRecoveryPoint added in v3.44.0

func (o BackupPolicyOutput) EnableRecoveryPoint() pulumi.BoolOutput

Whether to enable automatic recovery points. Value Description: - **true**: enabled. - **false**: Closed.

func (BackupPolicyOutput) PreferredBackupPeriod added in v3.44.0

func (o BackupPolicyOutput) PreferredBackupPeriod() pulumi.StringOutput

Data backup cycle. Separate multiple values with commas (,). Value Description: - **Monday**: Monday. - **Tuesday**: Tuesday. - **Wednesday**: Wednesday. - **Thursday**: Thursday. - **Friday**: Friday. - **Saturday**: Saturday. - **Sunday**: Sunday.

func (BackupPolicyOutput) PreferredBackupTime added in v3.44.0

func (o BackupPolicyOutput) PreferredBackupTime() pulumi.StringOutput

Data backup time. Format: HH:mmZ-HH:mmZ(UTC time).

func (BackupPolicyOutput) RecoveryPointPeriod added in v3.44.0

func (o BackupPolicyOutput) RecoveryPointPeriod() pulumi.StringOutput

Recovery point frequency. Value Description: - **1**: Hourly. - **2**: Every two hours. - **4**: Every four hours. - **8**: Every eight hours.

func (BackupPolicyOutput) ToBackupPolicyOutput added in v3.44.0

func (o BackupPolicyOutput) ToBackupPolicyOutput() BackupPolicyOutput

func (BackupPolicyOutput) ToBackupPolicyOutputWithContext added in v3.44.0

func (o BackupPolicyOutput) ToBackupPolicyOutputWithContext(ctx context.Context) BackupPolicyOutput

type BackupPolicyState added in v3.44.0

type BackupPolicyState struct {
	// Data backup retention days.
	BackupRetentionPeriod pulumi.IntPtrInput
	// The instance ID.
	// > **NOTE:**  You can call the DescribeDBInstances operation to view the details of all AnalyticDB PostgreSQL instances in the target region, including the instance ID.
	DbInstanceId pulumi.StringPtrInput
	// Whether to enable automatic recovery points. Value Description:
	// - **true**: enabled.
	// - **false**: Closed.
	EnableRecoveryPoint pulumi.BoolPtrInput
	// Data backup cycle. Separate multiple values with commas (,). Value Description:
	// - **Monday**: Monday.
	// - **Tuesday**: Tuesday.
	// - **Wednesday**: Wednesday.
	// - **Thursday**: Thursday.
	// - **Friday**: Friday.
	// - **Saturday**: Saturday.
	// - **Sunday**: Sunday.
	PreferredBackupPeriod pulumi.StringPtrInput
	// Data backup time. Format: HH:mmZ-HH:mmZ(UTC time).
	PreferredBackupTime pulumi.StringPtrInput
	// Recovery point frequency. Value Description:
	// - **1**: Hourly.
	// - **2**: Every two hours.
	// - **4**: Every four hours.
	// - **8**: Every eight hours.
	RecoveryPointPeriod pulumi.StringPtrInput
}

func (BackupPolicyState) ElementType added in v3.44.0

func (BackupPolicyState) 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 since v1.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.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := resourcemanager.GetResourceGroups(ctx, nil, nil)
		if err != nil {
			return err
		}
		defaultGetZones, err := gpdb.GetZones(ctx, nil, nil)
		if err != nil {
			return err
		}
		defaultGetNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
			NameRegex: pulumi.StringRef("^default-NODELETING$"),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
			VpcId:  pulumi.StringRef(defaultGetNetworks.Ids[0]),
			ZoneId: pulumi.StringRef(defaultGetZones.Ids[0]),
		}, nil)
		if err != nil {
			return err
		}
		defaultInstance, err := gpdb.NewInstance(ctx, "default", &gpdb.InstanceArgs{
			DbInstanceCategory:  pulumi.String("HighAvailability"),
			DbInstanceClass:     pulumi.String("gpdb.group.segsdx1"),
			DbInstanceMode:      pulumi.String("StorageElastic"),
			Description:         pulumi.String(name),
			Engine:              pulumi.String("gpdb"),
			EngineVersion:       pulumi.String("6.0"),
			ZoneId:              pulumi.String(defaultGetZones.Ids[0]),
			InstanceNetworkType: pulumi.String("VPC"),
			InstanceSpec:        pulumi.String("2C16G"),
			MasterNodeNum:       pulumi.Int(1),
			PaymentType:         pulumi.String("PayAsYouGo"),
			PrivateIpAddress:    pulumi.String("1.1.1.1"),
			SegStorageType:      pulumi.String("cloud_essd"),
			SegNodeNum:          pulumi.Int(4),
			StorageSize:         pulumi.Int(50),
			VpcId:               pulumi.String(defaultGetNetworks.Ids[0]),
			VswitchId:           pulumi.String(defaultGetSwitches.Ids[0]),
			IpWhitelists: gpdb.InstanceIpWhitelistArray{
				&gpdb.InstanceIpWhitelistArgs{
					SecurityIpList: pulumi.String("127.0.0.1"),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = gpdb.NewConnection(ctx, "default", &gpdb.ConnectionArgs{
			InstanceId:       defaultInstance.ID(),
			ConnectionPrefix: pulumi.String("exampelcon"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

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

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

func (o ConnectionOutput) ConnectionString() pulumi.StringOutput

Connection instance string.

func (ConnectionOutput) ElementType

func (ConnectionOutput) ElementType() reflect.Type

func (ConnectionOutput) InstanceId added in v3.27.0

func (o ConnectionOutput) InstanceId() pulumi.StringOutput

The Id of instance that can run database.

func (ConnectionOutput) IpAddress added in v3.27.0

func (o ConnectionOutput) IpAddress() pulumi.StringOutput

The ip address of connection string.

func (ConnectionOutput) Port added in v3.27.0

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

type DbInstancePlan struct {
	pulumi.CustomResourceState

	// The ID of the GPDB instance.
	DbInstanceId pulumi.StringOutput `pulumi:"dbInstanceId"`
	// The name of the Plan.
	DbInstancePlanName pulumi.StringOutput `pulumi:"dbInstancePlanName"`
	// The execution information of the plan. See `planConfig` below.
	PlanConfigs DbInstancePlanPlanConfigArrayOutput `pulumi:"planConfigs"`
	// The description of the Plan.
	PlanDesc pulumi.StringPtrOutput `pulumi:"planDesc"`
	// The end time of the Plan.
	PlanEndDate pulumi.StringPtrOutput `pulumi:"planEndDate"`
	// The ID of the plan.
	PlanId pulumi.StringOutput `pulumi:"planId"`
	// The execution mode of the plan. Valid values: `Postpone`, `Regular`.
	PlanScheduleType pulumi.StringOutput `pulumi:"planScheduleType"`
	// The start time of the Plan.
	PlanStartDate pulumi.StringOutput `pulumi:"planStartDate"`
	// The type of the Plan. Valid values: `PauseResume`, `Resize`.
	PlanType pulumi.StringOutput `pulumi:"planType"`
	// The Status of the Plan. Valid values: `active`, `cancel`.
	Status pulumi.StringOutput `pulumi:"status"`
}

Provides a AnalyticDB for PostgreSQL (GPDB) DB Instance Plan resource.

For information about AnalyticDB for PostgreSQL (GPDB) DB Instance Plan and how to use it, see [What is DB Instance Plan](https://www.alibabacloud.com/help/en/analyticdb-for-postgresql/developer-reference/api-gpdb-2016-05-03-createdbinstanceplan).

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

## Example Usage

Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_default, err := gpdb.GetZones(ctx, nil, nil)
		if err != nil {
			return err
		}
		defaultGetNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
			NameRegex: pulumi.StringRef("^default-NODELETING$"),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
			VpcId:  pulumi.StringRef(defaultGetNetworks.Ids[0]),
			ZoneId: pulumi.StringRef(_default.Ids[0]),
		}, nil)
		if err != nil {
			return err
		}
		defaultInstance, err := gpdb.NewInstance(ctx, "default", &gpdb.InstanceArgs{
			DbInstanceCategory:  pulumi.String("HighAvailability"),
			DbInstanceClass:     pulumi.String("gpdb.group.segsdx1"),
			DbInstanceMode:      pulumi.String("StorageElastic"),
			Description:         pulumi.String(name),
			Engine:              pulumi.String("gpdb"),
			EngineVersion:       pulumi.String("6.0"),
			ZoneId:              pulumi.String(_default.Ids[0]),
			InstanceNetworkType: pulumi.String("VPC"),
			InstanceSpec:        pulumi.String("2C16G"),
			MasterNodeNum:       pulumi.Int(1),
			PaymentType:         pulumi.String("PayAsYouGo"),
			PrivateIpAddress:    pulumi.String("1.1.1.1"),
			SegStorageType:      pulumi.String("cloud_essd"),
			SegNodeNum:          pulumi.Int(4),
			StorageSize:         pulumi.Int(50),
			VpcId:               pulumi.String(defaultGetNetworks.Ids[0]),
			VswitchId:           pulumi.String(defaultGetSwitches.Ids[0]),
			IpWhitelists: gpdb.InstanceIpWhitelistArray{
				&gpdb.InstanceIpWhitelistArgs{
					SecurityIpList: pulumi.String("127.0.0.1"),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = gpdb.NewDbInstancePlan(ctx, "default", &gpdb.DbInstancePlanArgs{
			DbInstancePlanName: pulumi.String(name),
			PlanDesc:           pulumi.String(name),
			PlanType:           pulumi.String("PauseResume"),
			PlanScheduleType:   pulumi.String("Regular"),
			PlanConfigs: gpdb.DbInstancePlanPlanConfigArray{
				&gpdb.DbInstancePlanPlanConfigArgs{
					Resume: &gpdb.DbInstancePlanPlanConfigResumeArgs{
						PlanCronTime: pulumi.String("0 0 0 1/1 * ? "),
					},
					Pause: &gpdb.DbInstancePlanPlanConfigPauseArgs{
						PlanCronTime: pulumi.String("0 0 10 1/1 * ? "),
					},
				},
			},
			DbInstanceId: defaultInstance.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

GPDB DB Instance Plan can be imported using the id, e.g.

```sh $ pulumi import alicloud:gpdb/dbInstancePlan:DbInstancePlan example <db_instance_id>:<plan_id> ```

func GetDbInstancePlan added in v3.29.0

func GetDbInstancePlan(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DbInstancePlanState, opts ...pulumi.ResourceOption) (*DbInstancePlan, error)

GetDbInstancePlan gets an existing DbInstancePlan 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 NewDbInstancePlan added in v3.29.0

func NewDbInstancePlan(ctx *pulumi.Context,
	name string, args *DbInstancePlanArgs, opts ...pulumi.ResourceOption) (*DbInstancePlan, error)

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

func (*DbInstancePlan) ElementType added in v3.29.0

func (*DbInstancePlan) ElementType() reflect.Type

func (*DbInstancePlan) ToDbInstancePlanOutput added in v3.29.0

func (i *DbInstancePlan) ToDbInstancePlanOutput() DbInstancePlanOutput

func (*DbInstancePlan) ToDbInstancePlanOutputWithContext added in v3.29.0

func (i *DbInstancePlan) ToDbInstancePlanOutputWithContext(ctx context.Context) DbInstancePlanOutput

type DbInstancePlanArgs added in v3.29.0

type DbInstancePlanArgs struct {
	// The ID of the GPDB instance.
	DbInstanceId pulumi.StringInput
	// The name of the Plan.
	DbInstancePlanName pulumi.StringInput
	// The execution information of the plan. See `planConfig` below.
	PlanConfigs DbInstancePlanPlanConfigArrayInput
	// The description of the Plan.
	PlanDesc pulumi.StringPtrInput
	// The end time of the Plan.
	PlanEndDate pulumi.StringPtrInput
	// The execution mode of the plan. Valid values: `Postpone`, `Regular`.
	PlanScheduleType pulumi.StringInput
	// The start time of the Plan.
	PlanStartDate pulumi.StringPtrInput
	// The type of the Plan. Valid values: `PauseResume`, `Resize`.
	PlanType pulumi.StringInput
	// The Status of the Plan. Valid values: `active`, `cancel`.
	Status pulumi.StringPtrInput
}

The set of arguments for constructing a DbInstancePlan resource.

func (DbInstancePlanArgs) ElementType added in v3.29.0

func (DbInstancePlanArgs) ElementType() reflect.Type

type DbInstancePlanArray added in v3.29.0

type DbInstancePlanArray []DbInstancePlanInput

func (DbInstancePlanArray) ElementType added in v3.29.0

func (DbInstancePlanArray) ElementType() reflect.Type

func (DbInstancePlanArray) ToDbInstancePlanArrayOutput added in v3.29.0

func (i DbInstancePlanArray) ToDbInstancePlanArrayOutput() DbInstancePlanArrayOutput

func (DbInstancePlanArray) ToDbInstancePlanArrayOutputWithContext added in v3.29.0

func (i DbInstancePlanArray) ToDbInstancePlanArrayOutputWithContext(ctx context.Context) DbInstancePlanArrayOutput

type DbInstancePlanArrayInput added in v3.29.0

type DbInstancePlanArrayInput interface {
	pulumi.Input

	ToDbInstancePlanArrayOutput() DbInstancePlanArrayOutput
	ToDbInstancePlanArrayOutputWithContext(context.Context) DbInstancePlanArrayOutput
}

DbInstancePlanArrayInput is an input type that accepts DbInstancePlanArray and DbInstancePlanArrayOutput values. You can construct a concrete instance of `DbInstancePlanArrayInput` via:

DbInstancePlanArray{ DbInstancePlanArgs{...} }

type DbInstancePlanArrayOutput added in v3.29.0

type DbInstancePlanArrayOutput struct{ *pulumi.OutputState }

func (DbInstancePlanArrayOutput) ElementType added in v3.29.0

func (DbInstancePlanArrayOutput) ElementType() reflect.Type

func (DbInstancePlanArrayOutput) Index added in v3.29.0

func (DbInstancePlanArrayOutput) ToDbInstancePlanArrayOutput added in v3.29.0

func (o DbInstancePlanArrayOutput) ToDbInstancePlanArrayOutput() DbInstancePlanArrayOutput

func (DbInstancePlanArrayOutput) ToDbInstancePlanArrayOutputWithContext added in v3.29.0

func (o DbInstancePlanArrayOutput) ToDbInstancePlanArrayOutputWithContext(ctx context.Context) DbInstancePlanArrayOutput

type DbInstancePlanInput added in v3.29.0

type DbInstancePlanInput interface {
	pulumi.Input

	ToDbInstancePlanOutput() DbInstancePlanOutput
	ToDbInstancePlanOutputWithContext(ctx context.Context) DbInstancePlanOutput
}

type DbInstancePlanMap added in v3.29.0

type DbInstancePlanMap map[string]DbInstancePlanInput

func (DbInstancePlanMap) ElementType added in v3.29.0

func (DbInstancePlanMap) ElementType() reflect.Type

func (DbInstancePlanMap) ToDbInstancePlanMapOutput added in v3.29.0

func (i DbInstancePlanMap) ToDbInstancePlanMapOutput() DbInstancePlanMapOutput

func (DbInstancePlanMap) ToDbInstancePlanMapOutputWithContext added in v3.29.0

func (i DbInstancePlanMap) ToDbInstancePlanMapOutputWithContext(ctx context.Context) DbInstancePlanMapOutput

type DbInstancePlanMapInput added in v3.29.0

type DbInstancePlanMapInput interface {
	pulumi.Input

	ToDbInstancePlanMapOutput() DbInstancePlanMapOutput
	ToDbInstancePlanMapOutputWithContext(context.Context) DbInstancePlanMapOutput
}

DbInstancePlanMapInput is an input type that accepts DbInstancePlanMap and DbInstancePlanMapOutput values. You can construct a concrete instance of `DbInstancePlanMapInput` via:

DbInstancePlanMap{ "key": DbInstancePlanArgs{...} }

type DbInstancePlanMapOutput added in v3.29.0

type DbInstancePlanMapOutput struct{ *pulumi.OutputState }

func (DbInstancePlanMapOutput) ElementType added in v3.29.0

func (DbInstancePlanMapOutput) ElementType() reflect.Type

func (DbInstancePlanMapOutput) MapIndex added in v3.29.0

func (DbInstancePlanMapOutput) ToDbInstancePlanMapOutput added in v3.29.0

func (o DbInstancePlanMapOutput) ToDbInstancePlanMapOutput() DbInstancePlanMapOutput

func (DbInstancePlanMapOutput) ToDbInstancePlanMapOutputWithContext added in v3.29.0

func (o DbInstancePlanMapOutput) ToDbInstancePlanMapOutputWithContext(ctx context.Context) DbInstancePlanMapOutput

type DbInstancePlanOutput added in v3.29.0

type DbInstancePlanOutput struct{ *pulumi.OutputState }

func (DbInstancePlanOutput) DbInstanceId added in v3.29.0

func (o DbInstancePlanOutput) DbInstanceId() pulumi.StringOutput

The ID of the GPDB instance.

func (DbInstancePlanOutput) DbInstancePlanName added in v3.29.0

func (o DbInstancePlanOutput) DbInstancePlanName() pulumi.StringOutput

The name of the Plan.

func (DbInstancePlanOutput) ElementType added in v3.29.0

func (DbInstancePlanOutput) ElementType() reflect.Type

func (DbInstancePlanOutput) PlanConfigs added in v3.29.0

The execution information of the plan. See `planConfig` below.

func (DbInstancePlanOutput) PlanDesc added in v3.29.0

The description of the Plan.

func (DbInstancePlanOutput) PlanEndDate added in v3.29.0

The end time of the Plan.

func (DbInstancePlanOutput) PlanId added in v3.29.0

The ID of the plan.

func (DbInstancePlanOutput) PlanScheduleType added in v3.29.0

func (o DbInstancePlanOutput) PlanScheduleType() pulumi.StringOutput

The execution mode of the plan. Valid values: `Postpone`, `Regular`.

func (DbInstancePlanOutput) PlanStartDate added in v3.29.0

func (o DbInstancePlanOutput) PlanStartDate() pulumi.StringOutput

The start time of the Plan.

func (DbInstancePlanOutput) PlanType added in v3.29.0

The type of the Plan. Valid values: `PauseResume`, `Resize`.

func (DbInstancePlanOutput) Status added in v3.29.0

The Status of the Plan. Valid values: `active`, `cancel`.

func (DbInstancePlanOutput) ToDbInstancePlanOutput added in v3.29.0

func (o DbInstancePlanOutput) ToDbInstancePlanOutput() DbInstancePlanOutput

func (DbInstancePlanOutput) ToDbInstancePlanOutputWithContext added in v3.29.0

func (o DbInstancePlanOutput) ToDbInstancePlanOutputWithContext(ctx context.Context) DbInstancePlanOutput

type DbInstancePlanPlanConfig added in v3.29.0

type DbInstancePlanPlanConfig struct {
	// Pause instance plan config. See `pause` below.
	Pause *DbInstancePlanPlanConfigPause `pulumi:"pause"`
	// Resume instance plan config. See `resume` below.
	Resume *DbInstancePlanPlanConfigResume `pulumi:"resume"`
	// Scale In instance plan config. See `scaleIn` below.
	ScaleIn *DbInstancePlanPlanConfigScaleIn `pulumi:"scaleIn"`
	// Scale out instance plan config. See `scaleOut` below.
	ScaleOut *DbInstancePlanPlanConfigScaleOut `pulumi:"scaleOut"`
}

type DbInstancePlanPlanConfigArgs added in v3.29.0

type DbInstancePlanPlanConfigArgs struct {
	// Pause instance plan config. See `pause` below.
	Pause DbInstancePlanPlanConfigPausePtrInput `pulumi:"pause"`
	// Resume instance plan config. See `resume` below.
	Resume DbInstancePlanPlanConfigResumePtrInput `pulumi:"resume"`
	// Scale In instance plan config. See `scaleIn` below.
	ScaleIn DbInstancePlanPlanConfigScaleInPtrInput `pulumi:"scaleIn"`
	// Scale out instance plan config. See `scaleOut` below.
	ScaleOut DbInstancePlanPlanConfigScaleOutPtrInput `pulumi:"scaleOut"`
}

func (DbInstancePlanPlanConfigArgs) ElementType added in v3.29.0

func (DbInstancePlanPlanConfigArgs) ToDbInstancePlanPlanConfigOutput added in v3.29.0

func (i DbInstancePlanPlanConfigArgs) ToDbInstancePlanPlanConfigOutput() DbInstancePlanPlanConfigOutput

func (DbInstancePlanPlanConfigArgs) ToDbInstancePlanPlanConfigOutputWithContext added in v3.29.0

func (i DbInstancePlanPlanConfigArgs) ToDbInstancePlanPlanConfigOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigOutput

type DbInstancePlanPlanConfigArray added in v3.29.0

type DbInstancePlanPlanConfigArray []DbInstancePlanPlanConfigInput

func (DbInstancePlanPlanConfigArray) ElementType added in v3.29.0

func (DbInstancePlanPlanConfigArray) ToDbInstancePlanPlanConfigArrayOutput added in v3.29.0

func (i DbInstancePlanPlanConfigArray) ToDbInstancePlanPlanConfigArrayOutput() DbInstancePlanPlanConfigArrayOutput

func (DbInstancePlanPlanConfigArray) ToDbInstancePlanPlanConfigArrayOutputWithContext added in v3.29.0

func (i DbInstancePlanPlanConfigArray) ToDbInstancePlanPlanConfigArrayOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigArrayOutput

type DbInstancePlanPlanConfigArrayInput added in v3.29.0

type DbInstancePlanPlanConfigArrayInput interface {
	pulumi.Input

	ToDbInstancePlanPlanConfigArrayOutput() DbInstancePlanPlanConfigArrayOutput
	ToDbInstancePlanPlanConfigArrayOutputWithContext(context.Context) DbInstancePlanPlanConfigArrayOutput
}

DbInstancePlanPlanConfigArrayInput is an input type that accepts DbInstancePlanPlanConfigArray and DbInstancePlanPlanConfigArrayOutput values. You can construct a concrete instance of `DbInstancePlanPlanConfigArrayInput` via:

DbInstancePlanPlanConfigArray{ DbInstancePlanPlanConfigArgs{...} }

type DbInstancePlanPlanConfigArrayOutput added in v3.29.0

type DbInstancePlanPlanConfigArrayOutput struct{ *pulumi.OutputState }

func (DbInstancePlanPlanConfigArrayOutput) ElementType added in v3.29.0

func (DbInstancePlanPlanConfigArrayOutput) Index added in v3.29.0

func (DbInstancePlanPlanConfigArrayOutput) ToDbInstancePlanPlanConfigArrayOutput added in v3.29.0

func (o DbInstancePlanPlanConfigArrayOutput) ToDbInstancePlanPlanConfigArrayOutput() DbInstancePlanPlanConfigArrayOutput

func (DbInstancePlanPlanConfigArrayOutput) ToDbInstancePlanPlanConfigArrayOutputWithContext added in v3.29.0

func (o DbInstancePlanPlanConfigArrayOutput) ToDbInstancePlanPlanConfigArrayOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigArrayOutput

type DbInstancePlanPlanConfigInput added in v3.29.0

type DbInstancePlanPlanConfigInput interface {
	pulumi.Input

	ToDbInstancePlanPlanConfigOutput() DbInstancePlanPlanConfigOutput
	ToDbInstancePlanPlanConfigOutputWithContext(context.Context) DbInstancePlanPlanConfigOutput
}

DbInstancePlanPlanConfigInput is an input type that accepts DbInstancePlanPlanConfigArgs and DbInstancePlanPlanConfigOutput values. You can construct a concrete instance of `DbInstancePlanPlanConfigInput` via:

DbInstancePlanPlanConfigArgs{...}

type DbInstancePlanPlanConfigOutput added in v3.29.0

type DbInstancePlanPlanConfigOutput struct{ *pulumi.OutputState }

func (DbInstancePlanPlanConfigOutput) ElementType added in v3.29.0

func (DbInstancePlanPlanConfigOutput) Pause added in v3.29.0

Pause instance plan config. See `pause` below.

func (DbInstancePlanPlanConfigOutput) Resume added in v3.29.0

Resume instance plan config. See `resume` below.

func (DbInstancePlanPlanConfigOutput) ScaleIn added in v3.29.0

Scale In instance plan config. See `scaleIn` below.

func (DbInstancePlanPlanConfigOutput) ScaleOut added in v3.29.0

Scale out instance plan config. See `scaleOut` below.

func (DbInstancePlanPlanConfigOutput) ToDbInstancePlanPlanConfigOutput added in v3.29.0

func (o DbInstancePlanPlanConfigOutput) ToDbInstancePlanPlanConfigOutput() DbInstancePlanPlanConfigOutput

func (DbInstancePlanPlanConfigOutput) ToDbInstancePlanPlanConfigOutputWithContext added in v3.29.0

func (o DbInstancePlanPlanConfigOutput) ToDbInstancePlanPlanConfigOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigOutput

type DbInstancePlanPlanConfigPause added in v3.29.0

type DbInstancePlanPlanConfigPause struct {
	ExecuteTime  *string `pulumi:"executeTime"`
	PlanCronTime *string `pulumi:"planCronTime"`
}

type DbInstancePlanPlanConfigPauseArgs added in v3.29.0

type DbInstancePlanPlanConfigPauseArgs struct {
	ExecuteTime  pulumi.StringPtrInput `pulumi:"executeTime"`
	PlanCronTime pulumi.StringPtrInput `pulumi:"planCronTime"`
}

func (DbInstancePlanPlanConfigPauseArgs) ElementType added in v3.29.0

func (DbInstancePlanPlanConfigPauseArgs) ToDbInstancePlanPlanConfigPauseOutput added in v3.29.0

func (i DbInstancePlanPlanConfigPauseArgs) ToDbInstancePlanPlanConfigPauseOutput() DbInstancePlanPlanConfigPauseOutput

func (DbInstancePlanPlanConfigPauseArgs) ToDbInstancePlanPlanConfigPauseOutputWithContext added in v3.29.0

func (i DbInstancePlanPlanConfigPauseArgs) ToDbInstancePlanPlanConfigPauseOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigPauseOutput

func (DbInstancePlanPlanConfigPauseArgs) ToDbInstancePlanPlanConfigPausePtrOutput added in v3.29.0

func (i DbInstancePlanPlanConfigPauseArgs) ToDbInstancePlanPlanConfigPausePtrOutput() DbInstancePlanPlanConfigPausePtrOutput

func (DbInstancePlanPlanConfigPauseArgs) ToDbInstancePlanPlanConfigPausePtrOutputWithContext added in v3.29.0

func (i DbInstancePlanPlanConfigPauseArgs) ToDbInstancePlanPlanConfigPausePtrOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigPausePtrOutput

type DbInstancePlanPlanConfigPauseInput added in v3.29.0

type DbInstancePlanPlanConfigPauseInput interface {
	pulumi.Input

	ToDbInstancePlanPlanConfigPauseOutput() DbInstancePlanPlanConfigPauseOutput
	ToDbInstancePlanPlanConfigPauseOutputWithContext(context.Context) DbInstancePlanPlanConfigPauseOutput
}

DbInstancePlanPlanConfigPauseInput is an input type that accepts DbInstancePlanPlanConfigPauseArgs and DbInstancePlanPlanConfigPauseOutput values. You can construct a concrete instance of `DbInstancePlanPlanConfigPauseInput` via:

DbInstancePlanPlanConfigPauseArgs{...}

type DbInstancePlanPlanConfigPauseOutput added in v3.29.0

type DbInstancePlanPlanConfigPauseOutput struct{ *pulumi.OutputState }

func (DbInstancePlanPlanConfigPauseOutput) ElementType added in v3.29.0

func (DbInstancePlanPlanConfigPauseOutput) ExecuteTime added in v3.29.0

func (DbInstancePlanPlanConfigPauseOutput) PlanCronTime added in v3.29.0

func (DbInstancePlanPlanConfigPauseOutput) ToDbInstancePlanPlanConfigPauseOutput added in v3.29.0

func (o DbInstancePlanPlanConfigPauseOutput) ToDbInstancePlanPlanConfigPauseOutput() DbInstancePlanPlanConfigPauseOutput

func (DbInstancePlanPlanConfigPauseOutput) ToDbInstancePlanPlanConfigPauseOutputWithContext added in v3.29.0

func (o DbInstancePlanPlanConfigPauseOutput) ToDbInstancePlanPlanConfigPauseOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigPauseOutput

func (DbInstancePlanPlanConfigPauseOutput) ToDbInstancePlanPlanConfigPausePtrOutput added in v3.29.0

func (o DbInstancePlanPlanConfigPauseOutput) ToDbInstancePlanPlanConfigPausePtrOutput() DbInstancePlanPlanConfigPausePtrOutput

func (DbInstancePlanPlanConfigPauseOutput) ToDbInstancePlanPlanConfigPausePtrOutputWithContext added in v3.29.0

func (o DbInstancePlanPlanConfigPauseOutput) ToDbInstancePlanPlanConfigPausePtrOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigPausePtrOutput

type DbInstancePlanPlanConfigPausePtrInput added in v3.29.0

type DbInstancePlanPlanConfigPausePtrInput interface {
	pulumi.Input

	ToDbInstancePlanPlanConfigPausePtrOutput() DbInstancePlanPlanConfigPausePtrOutput
	ToDbInstancePlanPlanConfigPausePtrOutputWithContext(context.Context) DbInstancePlanPlanConfigPausePtrOutput
}

DbInstancePlanPlanConfigPausePtrInput is an input type that accepts DbInstancePlanPlanConfigPauseArgs, DbInstancePlanPlanConfigPausePtr and DbInstancePlanPlanConfigPausePtrOutput values. You can construct a concrete instance of `DbInstancePlanPlanConfigPausePtrInput` via:

        DbInstancePlanPlanConfigPauseArgs{...}

or:

        nil

type DbInstancePlanPlanConfigPausePtrOutput added in v3.29.0

type DbInstancePlanPlanConfigPausePtrOutput struct{ *pulumi.OutputState }

func (DbInstancePlanPlanConfigPausePtrOutput) Elem added in v3.29.0

func (DbInstancePlanPlanConfigPausePtrOutput) ElementType added in v3.29.0

func (DbInstancePlanPlanConfigPausePtrOutput) ExecuteTime added in v3.29.0

func (DbInstancePlanPlanConfigPausePtrOutput) PlanCronTime added in v3.29.0

func (DbInstancePlanPlanConfigPausePtrOutput) ToDbInstancePlanPlanConfigPausePtrOutput added in v3.29.0

func (o DbInstancePlanPlanConfigPausePtrOutput) ToDbInstancePlanPlanConfigPausePtrOutput() DbInstancePlanPlanConfigPausePtrOutput

func (DbInstancePlanPlanConfigPausePtrOutput) ToDbInstancePlanPlanConfigPausePtrOutputWithContext added in v3.29.0

func (o DbInstancePlanPlanConfigPausePtrOutput) ToDbInstancePlanPlanConfigPausePtrOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigPausePtrOutput

type DbInstancePlanPlanConfigResume added in v3.29.0

type DbInstancePlanPlanConfigResume struct {
	ExecuteTime  *string `pulumi:"executeTime"`
	PlanCronTime *string `pulumi:"planCronTime"`
}

type DbInstancePlanPlanConfigResumeArgs added in v3.29.0

type DbInstancePlanPlanConfigResumeArgs struct {
	ExecuteTime  pulumi.StringPtrInput `pulumi:"executeTime"`
	PlanCronTime pulumi.StringPtrInput `pulumi:"planCronTime"`
}

func (DbInstancePlanPlanConfigResumeArgs) ElementType added in v3.29.0

func (DbInstancePlanPlanConfigResumeArgs) ToDbInstancePlanPlanConfigResumeOutput added in v3.29.0

func (i DbInstancePlanPlanConfigResumeArgs) ToDbInstancePlanPlanConfigResumeOutput() DbInstancePlanPlanConfigResumeOutput

func (DbInstancePlanPlanConfigResumeArgs) ToDbInstancePlanPlanConfigResumeOutputWithContext added in v3.29.0

func (i DbInstancePlanPlanConfigResumeArgs) ToDbInstancePlanPlanConfigResumeOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigResumeOutput

func (DbInstancePlanPlanConfigResumeArgs) ToDbInstancePlanPlanConfigResumePtrOutput added in v3.29.0

func (i DbInstancePlanPlanConfigResumeArgs) ToDbInstancePlanPlanConfigResumePtrOutput() DbInstancePlanPlanConfigResumePtrOutput

func (DbInstancePlanPlanConfigResumeArgs) ToDbInstancePlanPlanConfigResumePtrOutputWithContext added in v3.29.0

func (i DbInstancePlanPlanConfigResumeArgs) ToDbInstancePlanPlanConfigResumePtrOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigResumePtrOutput

type DbInstancePlanPlanConfigResumeInput added in v3.29.0

type DbInstancePlanPlanConfigResumeInput interface {
	pulumi.Input

	ToDbInstancePlanPlanConfigResumeOutput() DbInstancePlanPlanConfigResumeOutput
	ToDbInstancePlanPlanConfigResumeOutputWithContext(context.Context) DbInstancePlanPlanConfigResumeOutput
}

DbInstancePlanPlanConfigResumeInput is an input type that accepts DbInstancePlanPlanConfigResumeArgs and DbInstancePlanPlanConfigResumeOutput values. You can construct a concrete instance of `DbInstancePlanPlanConfigResumeInput` via:

DbInstancePlanPlanConfigResumeArgs{...}

type DbInstancePlanPlanConfigResumeOutput added in v3.29.0

type DbInstancePlanPlanConfigResumeOutput struct{ *pulumi.OutputState }

func (DbInstancePlanPlanConfigResumeOutput) ElementType added in v3.29.0

func (DbInstancePlanPlanConfigResumeOutput) ExecuteTime added in v3.29.0

func (DbInstancePlanPlanConfigResumeOutput) PlanCronTime added in v3.29.0

func (DbInstancePlanPlanConfigResumeOutput) ToDbInstancePlanPlanConfigResumeOutput added in v3.29.0

func (o DbInstancePlanPlanConfigResumeOutput) ToDbInstancePlanPlanConfigResumeOutput() DbInstancePlanPlanConfigResumeOutput

func (DbInstancePlanPlanConfigResumeOutput) ToDbInstancePlanPlanConfigResumeOutputWithContext added in v3.29.0

func (o DbInstancePlanPlanConfigResumeOutput) ToDbInstancePlanPlanConfigResumeOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigResumeOutput

func (DbInstancePlanPlanConfigResumeOutput) ToDbInstancePlanPlanConfigResumePtrOutput added in v3.29.0

func (o DbInstancePlanPlanConfigResumeOutput) ToDbInstancePlanPlanConfigResumePtrOutput() DbInstancePlanPlanConfigResumePtrOutput

func (DbInstancePlanPlanConfigResumeOutput) ToDbInstancePlanPlanConfigResumePtrOutputWithContext added in v3.29.0

func (o DbInstancePlanPlanConfigResumeOutput) ToDbInstancePlanPlanConfigResumePtrOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigResumePtrOutput

type DbInstancePlanPlanConfigResumePtrInput added in v3.29.0

type DbInstancePlanPlanConfigResumePtrInput interface {
	pulumi.Input

	ToDbInstancePlanPlanConfigResumePtrOutput() DbInstancePlanPlanConfigResumePtrOutput
	ToDbInstancePlanPlanConfigResumePtrOutputWithContext(context.Context) DbInstancePlanPlanConfigResumePtrOutput
}

DbInstancePlanPlanConfigResumePtrInput is an input type that accepts DbInstancePlanPlanConfigResumeArgs, DbInstancePlanPlanConfigResumePtr and DbInstancePlanPlanConfigResumePtrOutput values. You can construct a concrete instance of `DbInstancePlanPlanConfigResumePtrInput` via:

        DbInstancePlanPlanConfigResumeArgs{...}

or:

        nil

type DbInstancePlanPlanConfigResumePtrOutput added in v3.29.0

type DbInstancePlanPlanConfigResumePtrOutput struct{ *pulumi.OutputState }

func (DbInstancePlanPlanConfigResumePtrOutput) Elem added in v3.29.0

func (DbInstancePlanPlanConfigResumePtrOutput) ElementType added in v3.29.0

func (DbInstancePlanPlanConfigResumePtrOutput) ExecuteTime added in v3.29.0

func (DbInstancePlanPlanConfigResumePtrOutput) PlanCronTime added in v3.29.0

func (DbInstancePlanPlanConfigResumePtrOutput) ToDbInstancePlanPlanConfigResumePtrOutput added in v3.29.0

func (o DbInstancePlanPlanConfigResumePtrOutput) ToDbInstancePlanPlanConfigResumePtrOutput() DbInstancePlanPlanConfigResumePtrOutput

func (DbInstancePlanPlanConfigResumePtrOutput) ToDbInstancePlanPlanConfigResumePtrOutputWithContext added in v3.29.0

func (o DbInstancePlanPlanConfigResumePtrOutput) ToDbInstancePlanPlanConfigResumePtrOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigResumePtrOutput

type DbInstancePlanPlanConfigScaleIn added in v3.29.0

type DbInstancePlanPlanConfigScaleIn struct {
	ExecuteTime    *string `pulumi:"executeTime"`
	PlanCronTime   *string `pulumi:"planCronTime"`
	SegmentNodeNum *string `pulumi:"segmentNodeNum"`
}

type DbInstancePlanPlanConfigScaleInArgs added in v3.29.0

type DbInstancePlanPlanConfigScaleInArgs struct {
	ExecuteTime    pulumi.StringPtrInput `pulumi:"executeTime"`
	PlanCronTime   pulumi.StringPtrInput `pulumi:"planCronTime"`
	SegmentNodeNum pulumi.StringPtrInput `pulumi:"segmentNodeNum"`
}

func (DbInstancePlanPlanConfigScaleInArgs) ElementType added in v3.29.0

func (DbInstancePlanPlanConfigScaleInArgs) ToDbInstancePlanPlanConfigScaleInOutput added in v3.29.0

func (i DbInstancePlanPlanConfigScaleInArgs) ToDbInstancePlanPlanConfigScaleInOutput() DbInstancePlanPlanConfigScaleInOutput

func (DbInstancePlanPlanConfigScaleInArgs) ToDbInstancePlanPlanConfigScaleInOutputWithContext added in v3.29.0

func (i DbInstancePlanPlanConfigScaleInArgs) ToDbInstancePlanPlanConfigScaleInOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigScaleInOutput

func (DbInstancePlanPlanConfigScaleInArgs) ToDbInstancePlanPlanConfigScaleInPtrOutput added in v3.29.0

func (i DbInstancePlanPlanConfigScaleInArgs) ToDbInstancePlanPlanConfigScaleInPtrOutput() DbInstancePlanPlanConfigScaleInPtrOutput

func (DbInstancePlanPlanConfigScaleInArgs) ToDbInstancePlanPlanConfigScaleInPtrOutputWithContext added in v3.29.0

func (i DbInstancePlanPlanConfigScaleInArgs) ToDbInstancePlanPlanConfigScaleInPtrOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigScaleInPtrOutput

type DbInstancePlanPlanConfigScaleInInput added in v3.29.0

type DbInstancePlanPlanConfigScaleInInput interface {
	pulumi.Input

	ToDbInstancePlanPlanConfigScaleInOutput() DbInstancePlanPlanConfigScaleInOutput
	ToDbInstancePlanPlanConfigScaleInOutputWithContext(context.Context) DbInstancePlanPlanConfigScaleInOutput
}

DbInstancePlanPlanConfigScaleInInput is an input type that accepts DbInstancePlanPlanConfigScaleInArgs and DbInstancePlanPlanConfigScaleInOutput values. You can construct a concrete instance of `DbInstancePlanPlanConfigScaleInInput` via:

DbInstancePlanPlanConfigScaleInArgs{...}

type DbInstancePlanPlanConfigScaleInOutput added in v3.29.0

type DbInstancePlanPlanConfigScaleInOutput struct{ *pulumi.OutputState }

func (DbInstancePlanPlanConfigScaleInOutput) ElementType added in v3.29.0

func (DbInstancePlanPlanConfigScaleInOutput) ExecuteTime added in v3.29.0

func (DbInstancePlanPlanConfigScaleInOutput) PlanCronTime added in v3.29.0

func (DbInstancePlanPlanConfigScaleInOutput) SegmentNodeNum added in v3.29.0

func (DbInstancePlanPlanConfigScaleInOutput) ToDbInstancePlanPlanConfigScaleInOutput added in v3.29.0

func (o DbInstancePlanPlanConfigScaleInOutput) ToDbInstancePlanPlanConfigScaleInOutput() DbInstancePlanPlanConfigScaleInOutput

func (DbInstancePlanPlanConfigScaleInOutput) ToDbInstancePlanPlanConfigScaleInOutputWithContext added in v3.29.0

func (o DbInstancePlanPlanConfigScaleInOutput) ToDbInstancePlanPlanConfigScaleInOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigScaleInOutput

func (DbInstancePlanPlanConfigScaleInOutput) ToDbInstancePlanPlanConfigScaleInPtrOutput added in v3.29.0

func (o DbInstancePlanPlanConfigScaleInOutput) ToDbInstancePlanPlanConfigScaleInPtrOutput() DbInstancePlanPlanConfigScaleInPtrOutput

func (DbInstancePlanPlanConfigScaleInOutput) ToDbInstancePlanPlanConfigScaleInPtrOutputWithContext added in v3.29.0

func (o DbInstancePlanPlanConfigScaleInOutput) ToDbInstancePlanPlanConfigScaleInPtrOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigScaleInPtrOutput

type DbInstancePlanPlanConfigScaleInPtrInput added in v3.29.0

type DbInstancePlanPlanConfigScaleInPtrInput interface {
	pulumi.Input

	ToDbInstancePlanPlanConfigScaleInPtrOutput() DbInstancePlanPlanConfigScaleInPtrOutput
	ToDbInstancePlanPlanConfigScaleInPtrOutputWithContext(context.Context) DbInstancePlanPlanConfigScaleInPtrOutput
}

DbInstancePlanPlanConfigScaleInPtrInput is an input type that accepts DbInstancePlanPlanConfigScaleInArgs, DbInstancePlanPlanConfigScaleInPtr and DbInstancePlanPlanConfigScaleInPtrOutput values. You can construct a concrete instance of `DbInstancePlanPlanConfigScaleInPtrInput` via:

        DbInstancePlanPlanConfigScaleInArgs{...}

or:

        nil

type DbInstancePlanPlanConfigScaleInPtrOutput added in v3.29.0

type DbInstancePlanPlanConfigScaleInPtrOutput struct{ *pulumi.OutputState }

func (DbInstancePlanPlanConfigScaleInPtrOutput) Elem added in v3.29.0

func (DbInstancePlanPlanConfigScaleInPtrOutput) ElementType added in v3.29.0

func (DbInstancePlanPlanConfigScaleInPtrOutput) ExecuteTime added in v3.29.0

func (DbInstancePlanPlanConfigScaleInPtrOutput) PlanCronTime added in v3.29.0

func (DbInstancePlanPlanConfigScaleInPtrOutput) SegmentNodeNum added in v3.29.0

func (DbInstancePlanPlanConfigScaleInPtrOutput) ToDbInstancePlanPlanConfigScaleInPtrOutput added in v3.29.0

func (o DbInstancePlanPlanConfigScaleInPtrOutput) ToDbInstancePlanPlanConfigScaleInPtrOutput() DbInstancePlanPlanConfigScaleInPtrOutput

func (DbInstancePlanPlanConfigScaleInPtrOutput) ToDbInstancePlanPlanConfigScaleInPtrOutputWithContext added in v3.29.0

func (o DbInstancePlanPlanConfigScaleInPtrOutput) ToDbInstancePlanPlanConfigScaleInPtrOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigScaleInPtrOutput

type DbInstancePlanPlanConfigScaleOut added in v3.29.0

type DbInstancePlanPlanConfigScaleOut struct {
	ExecuteTime    *string `pulumi:"executeTime"`
	PlanCronTime   *string `pulumi:"planCronTime"`
	SegmentNodeNum *string `pulumi:"segmentNodeNum"`
}

type DbInstancePlanPlanConfigScaleOutArgs added in v3.29.0

type DbInstancePlanPlanConfigScaleOutArgs struct {
	ExecuteTime    pulumi.StringPtrInput `pulumi:"executeTime"`
	PlanCronTime   pulumi.StringPtrInput `pulumi:"planCronTime"`
	SegmentNodeNum pulumi.StringPtrInput `pulumi:"segmentNodeNum"`
}

func (DbInstancePlanPlanConfigScaleOutArgs) ElementType added in v3.29.0

func (DbInstancePlanPlanConfigScaleOutArgs) ToDbInstancePlanPlanConfigScaleOutOutput added in v3.29.0

func (i DbInstancePlanPlanConfigScaleOutArgs) ToDbInstancePlanPlanConfigScaleOutOutput() DbInstancePlanPlanConfigScaleOutOutput

func (DbInstancePlanPlanConfigScaleOutArgs) ToDbInstancePlanPlanConfigScaleOutOutputWithContext added in v3.29.0

func (i DbInstancePlanPlanConfigScaleOutArgs) ToDbInstancePlanPlanConfigScaleOutOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigScaleOutOutput

func (DbInstancePlanPlanConfigScaleOutArgs) ToDbInstancePlanPlanConfigScaleOutPtrOutput added in v3.29.0

func (i DbInstancePlanPlanConfigScaleOutArgs) ToDbInstancePlanPlanConfigScaleOutPtrOutput() DbInstancePlanPlanConfigScaleOutPtrOutput

func (DbInstancePlanPlanConfigScaleOutArgs) ToDbInstancePlanPlanConfigScaleOutPtrOutputWithContext added in v3.29.0

func (i DbInstancePlanPlanConfigScaleOutArgs) ToDbInstancePlanPlanConfigScaleOutPtrOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigScaleOutPtrOutput

type DbInstancePlanPlanConfigScaleOutInput added in v3.29.0

type DbInstancePlanPlanConfigScaleOutInput interface {
	pulumi.Input

	ToDbInstancePlanPlanConfigScaleOutOutput() DbInstancePlanPlanConfigScaleOutOutput
	ToDbInstancePlanPlanConfigScaleOutOutputWithContext(context.Context) DbInstancePlanPlanConfigScaleOutOutput
}

DbInstancePlanPlanConfigScaleOutInput is an input type that accepts DbInstancePlanPlanConfigScaleOutArgs and DbInstancePlanPlanConfigScaleOutOutput values. You can construct a concrete instance of `DbInstancePlanPlanConfigScaleOutInput` via:

DbInstancePlanPlanConfigScaleOutArgs{...}

type DbInstancePlanPlanConfigScaleOutOutput added in v3.29.0

type DbInstancePlanPlanConfigScaleOutOutput struct{ *pulumi.OutputState }

func (DbInstancePlanPlanConfigScaleOutOutput) ElementType added in v3.29.0

func (DbInstancePlanPlanConfigScaleOutOutput) ExecuteTime added in v3.29.0

func (DbInstancePlanPlanConfigScaleOutOutput) PlanCronTime added in v3.29.0

func (DbInstancePlanPlanConfigScaleOutOutput) SegmentNodeNum added in v3.29.0

func (DbInstancePlanPlanConfigScaleOutOutput) ToDbInstancePlanPlanConfigScaleOutOutput added in v3.29.0

func (o DbInstancePlanPlanConfigScaleOutOutput) ToDbInstancePlanPlanConfigScaleOutOutput() DbInstancePlanPlanConfigScaleOutOutput

func (DbInstancePlanPlanConfigScaleOutOutput) ToDbInstancePlanPlanConfigScaleOutOutputWithContext added in v3.29.0

func (o DbInstancePlanPlanConfigScaleOutOutput) ToDbInstancePlanPlanConfigScaleOutOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigScaleOutOutput

func (DbInstancePlanPlanConfigScaleOutOutput) ToDbInstancePlanPlanConfigScaleOutPtrOutput added in v3.29.0

func (o DbInstancePlanPlanConfigScaleOutOutput) ToDbInstancePlanPlanConfigScaleOutPtrOutput() DbInstancePlanPlanConfigScaleOutPtrOutput

func (DbInstancePlanPlanConfigScaleOutOutput) ToDbInstancePlanPlanConfigScaleOutPtrOutputWithContext added in v3.29.0

func (o DbInstancePlanPlanConfigScaleOutOutput) ToDbInstancePlanPlanConfigScaleOutPtrOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigScaleOutPtrOutput

type DbInstancePlanPlanConfigScaleOutPtrInput added in v3.29.0

type DbInstancePlanPlanConfigScaleOutPtrInput interface {
	pulumi.Input

	ToDbInstancePlanPlanConfigScaleOutPtrOutput() DbInstancePlanPlanConfigScaleOutPtrOutput
	ToDbInstancePlanPlanConfigScaleOutPtrOutputWithContext(context.Context) DbInstancePlanPlanConfigScaleOutPtrOutput
}

DbInstancePlanPlanConfigScaleOutPtrInput is an input type that accepts DbInstancePlanPlanConfigScaleOutArgs, DbInstancePlanPlanConfigScaleOutPtr and DbInstancePlanPlanConfigScaleOutPtrOutput values. You can construct a concrete instance of `DbInstancePlanPlanConfigScaleOutPtrInput` via:

        DbInstancePlanPlanConfigScaleOutArgs{...}

or:

        nil

type DbInstancePlanPlanConfigScaleOutPtrOutput added in v3.29.0

type DbInstancePlanPlanConfigScaleOutPtrOutput struct{ *pulumi.OutputState }

func (DbInstancePlanPlanConfigScaleOutPtrOutput) Elem added in v3.29.0

func (DbInstancePlanPlanConfigScaleOutPtrOutput) ElementType added in v3.29.0

func (DbInstancePlanPlanConfigScaleOutPtrOutput) ExecuteTime added in v3.29.0

func (DbInstancePlanPlanConfigScaleOutPtrOutput) PlanCronTime added in v3.29.0

func (DbInstancePlanPlanConfigScaleOutPtrOutput) SegmentNodeNum added in v3.29.0

func (DbInstancePlanPlanConfigScaleOutPtrOutput) ToDbInstancePlanPlanConfigScaleOutPtrOutput added in v3.29.0

func (o DbInstancePlanPlanConfigScaleOutPtrOutput) ToDbInstancePlanPlanConfigScaleOutPtrOutput() DbInstancePlanPlanConfigScaleOutPtrOutput

func (DbInstancePlanPlanConfigScaleOutPtrOutput) ToDbInstancePlanPlanConfigScaleOutPtrOutputWithContext added in v3.29.0

func (o DbInstancePlanPlanConfigScaleOutPtrOutput) ToDbInstancePlanPlanConfigScaleOutPtrOutputWithContext(ctx context.Context) DbInstancePlanPlanConfigScaleOutPtrOutput

type DbInstancePlanState added in v3.29.0

type DbInstancePlanState struct {
	// The ID of the GPDB instance.
	DbInstanceId pulumi.StringPtrInput
	// The name of the Plan.
	DbInstancePlanName pulumi.StringPtrInput
	// The execution information of the plan. See `planConfig` below.
	PlanConfigs DbInstancePlanPlanConfigArrayInput
	// The description of the Plan.
	PlanDesc pulumi.StringPtrInput
	// The end time of the Plan.
	PlanEndDate pulumi.StringPtrInput
	// The ID of the plan.
	PlanId pulumi.StringPtrInput
	// The execution mode of the plan. Valid values: `Postpone`, `Regular`.
	PlanScheduleType pulumi.StringPtrInput
	// The start time of the Plan.
	PlanStartDate pulumi.StringPtrInput
	// The type of the Plan. Valid values: `PauseResume`, `Resize`.
	PlanType pulumi.StringPtrInput
	// The Status of the Plan. Valid values: `active`, `cancel`.
	Status pulumi.StringPtrInput
}

func (DbInstancePlanState) ElementType added in v3.29.0

func (DbInstancePlanState) ElementType() reflect.Type

type ElasticInstance added in v3.5.0

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"`
	// (Available in 1.196.0+) The connection port of the instance.
	Port pulumi.StringOutput `pulumi:"port"`
	// 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).

> **DEPRECATED:** This resource has been deprecated from version `1.147.0`. Please use new resource alicloud_gpdb_instance.

> **NOTE:** Available in 1.127.0+

## Example Usage

### Create a AnalyticDB for PostgreSQL instance

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("Gpdb"),
		}, nil)
		if err != nil {
			return err
		}
		defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
			Name:      pulumi.String("vpc-123456"),
			CidrBlock: pulumi.String("172.16.0.0/16"),
		})
		if err != nil {
			return err
		}
		defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
			ZoneId:      pulumi.String(_default.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, "adb_pg_instance", &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 added in v3.5.0

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

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

func (*ElasticInstance) ElementType() reflect.Type

func (*ElasticInstance) ToElasticInstanceOutput added in v3.5.0

func (i *ElasticInstance) ToElasticInstanceOutput() ElasticInstanceOutput

func (*ElasticInstance) ToElasticInstanceOutputWithContext added in v3.5.0

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

type ElasticInstanceArgs added in v3.5.0

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

func (ElasticInstanceArgs) ElementType() reflect.Type

type ElasticInstanceArray added in v3.5.0

type ElasticInstanceArray []ElasticInstanceInput

func (ElasticInstanceArray) ElementType added in v3.5.0

func (ElasticInstanceArray) ElementType() reflect.Type

func (ElasticInstanceArray) ToElasticInstanceArrayOutput added in v3.5.0

func (i ElasticInstanceArray) ToElasticInstanceArrayOutput() ElasticInstanceArrayOutput

func (ElasticInstanceArray) ToElasticInstanceArrayOutputWithContext added in v3.5.0

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

type ElasticInstanceArrayInput added in v3.5.0

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

type ElasticInstanceArrayOutput struct{ *pulumi.OutputState }

func (ElasticInstanceArrayOutput) ElementType added in v3.5.0

func (ElasticInstanceArrayOutput) ElementType() reflect.Type

func (ElasticInstanceArrayOutput) Index added in v3.5.0

func (ElasticInstanceArrayOutput) ToElasticInstanceArrayOutput added in v3.5.0

func (o ElasticInstanceArrayOutput) ToElasticInstanceArrayOutput() ElasticInstanceArrayOutput

func (ElasticInstanceArrayOutput) ToElasticInstanceArrayOutputWithContext added in v3.5.0

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

type ElasticInstanceInput added in v3.5.0

type ElasticInstanceInput interface {
	pulumi.Input

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

type ElasticInstanceMap added in v3.5.0

type ElasticInstanceMap map[string]ElasticInstanceInput

func (ElasticInstanceMap) ElementType added in v3.5.0

func (ElasticInstanceMap) ElementType() reflect.Type

func (ElasticInstanceMap) ToElasticInstanceMapOutput added in v3.5.0

func (i ElasticInstanceMap) ToElasticInstanceMapOutput() ElasticInstanceMapOutput

func (ElasticInstanceMap) ToElasticInstanceMapOutputWithContext added in v3.5.0

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

type ElasticInstanceMapInput added in v3.5.0

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

type ElasticInstanceMapOutput struct{ *pulumi.OutputState }

func (ElasticInstanceMapOutput) ElementType added in v3.5.0

func (ElasticInstanceMapOutput) ElementType() reflect.Type

func (ElasticInstanceMapOutput) MapIndex added in v3.5.0

func (ElasticInstanceMapOutput) ToElasticInstanceMapOutput added in v3.5.0

func (o ElasticInstanceMapOutput) ToElasticInstanceMapOutput() ElasticInstanceMapOutput

func (ElasticInstanceMapOutput) ToElasticInstanceMapOutputWithContext added in v3.5.0

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

type ElasticInstanceOutput added in v3.5.0

type ElasticInstanceOutput struct{ *pulumi.OutputState }

func (ElasticInstanceOutput) ConnectionString added in v3.27.0

func (o ElasticInstanceOutput) ConnectionString() pulumi.StringOutput

ADB PG instance connection string.

func (ElasticInstanceOutput) DbInstanceCategory added in v3.27.0

func (o ElasticInstanceOutput) DbInstanceCategory() pulumi.StringOutput

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

func (ElasticInstanceOutput) DbInstanceDescription added in v3.27.0

func (o ElasticInstanceOutput) DbInstanceDescription() pulumi.StringPtrOutput

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

func (ElasticInstanceOutput) ElementType added in v3.5.0

func (ElasticInstanceOutput) ElementType() reflect.Type

func (ElasticInstanceOutput) EncryptionKey added in v3.27.0

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

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

Database engine: `gpdb`.

func (ElasticInstanceOutput) EngineVersion added in v3.27.0

func (o ElasticInstanceOutput) EngineVersion() pulumi.StringOutput

Database version. Valid value is `6.0`.

func (ElasticInstanceOutput) InstanceNetworkType added in v3.27.0

func (o ElasticInstanceOutput) InstanceNetworkType() pulumi.StringPtrOutput

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

func (ElasticInstanceOutput) InstanceSpec added in v3.27.0

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

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

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

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

func (ElasticInstanceOutput) Port added in v3.29.0

(Available in 1.196.0+) The connection port of the instance.

func (ElasticInstanceOutput) SecurityIpLists added in v3.27.0

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

func (o ElasticInstanceOutput) SegNodeNum() pulumi.IntOutput

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

func (ElasticInstanceOutput) SegStorageType added in v3.27.0

func (o ElasticInstanceOutput) SegStorageType() pulumi.StringOutput

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

func (ElasticInstanceOutput) Status added in v3.27.0

Instance status.

func (ElasticInstanceOutput) StorageSize added in v3.27.0

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

A mapping of tags to assign to the resource.

func (ElasticInstanceOutput) ToElasticInstanceOutput added in v3.5.0

func (o ElasticInstanceOutput) ToElasticInstanceOutput() ElasticInstanceOutput

func (ElasticInstanceOutput) ToElasticInstanceOutputWithContext added in v3.5.0

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

func (ElasticInstanceOutput) VswitchId added in v3.27.0

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

func (ElasticInstanceOutput) ZoneId added in v3.27.0

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

type ElasticInstanceState added in v3.5.0

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
	// (Available in 1.196.0+) The connection port of the instance.
	Port 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 added in v3.5.0

func (ElasticInstanceState) ElementType() reflect.Type

type GetAccountsAccount added in v3.10.0

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

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

func (GetAccountsAccountArgs) ElementType() reflect.Type

func (GetAccountsAccountArgs) ToGetAccountsAccountOutput added in v3.10.0

func (i GetAccountsAccountArgs) ToGetAccountsAccountOutput() GetAccountsAccountOutput

func (GetAccountsAccountArgs) ToGetAccountsAccountOutputWithContext added in v3.10.0

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

type GetAccountsAccountArray added in v3.10.0

type GetAccountsAccountArray []GetAccountsAccountInput

func (GetAccountsAccountArray) ElementType added in v3.10.0

func (GetAccountsAccountArray) ElementType() reflect.Type

func (GetAccountsAccountArray) ToGetAccountsAccountArrayOutput added in v3.10.0

func (i GetAccountsAccountArray) ToGetAccountsAccountArrayOutput() GetAccountsAccountArrayOutput

func (GetAccountsAccountArray) ToGetAccountsAccountArrayOutputWithContext added in v3.10.0

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

type GetAccountsAccountArrayInput added in v3.10.0

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

type GetAccountsAccountArrayOutput struct{ *pulumi.OutputState }

func (GetAccountsAccountArrayOutput) ElementType added in v3.10.0

func (GetAccountsAccountArrayOutput) Index added in v3.10.0

func (GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutput added in v3.10.0

func (o GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutput() GetAccountsAccountArrayOutput

func (GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutputWithContext added in v3.10.0

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

type GetAccountsAccountInput added in v3.10.0

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

type GetAccountsAccountOutput struct{ *pulumi.OutputState }

func (GetAccountsAccountOutput) AccountDescription added in v3.10.0

func (o GetAccountsAccountOutput) AccountDescription() pulumi.StringOutput

The description of the account.

func (GetAccountsAccountOutput) AccountName added in v3.10.0

The name of the account.

func (GetAccountsAccountOutput) DbInstanceId added in v3.10.0

func (o GetAccountsAccountOutput) DbInstanceId() pulumi.StringOutput

The ID of the instance.

func (GetAccountsAccountOutput) ElementType added in v3.10.0

func (GetAccountsAccountOutput) ElementType() reflect.Type

func (GetAccountsAccountOutput) Id added in v3.10.0

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

func (GetAccountsAccountOutput) Status added in v3.10.0

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

func (GetAccountsAccountOutput) ToGetAccountsAccountOutput added in v3.10.0

func (o GetAccountsAccountOutput) ToGetAccountsAccountOutput() GetAccountsAccountOutput

func (GetAccountsAccountOutput) ToGetAccountsAccountOutputWithContext added in v3.10.0

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

type GetAccountsArgs added in v3.10.0

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

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

func (GetAccountsOutputArgs) ElementType() reflect.Type

type GetAccountsResult added in v3.10.0

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

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

)

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

type GetAccountsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getAccounts.

func GetAccountsOutput added in v3.10.0

func GetAccountsOutput(ctx *pulumi.Context, args GetAccountsOutputArgs, opts ...pulumi.InvokeOption) GetAccountsResultOutput

func (GetAccountsResultOutput) Accounts added in v3.10.0

func (GetAccountsResultOutput) DbInstanceId added in v3.10.0

func (o GetAccountsResultOutput) DbInstanceId() pulumi.StringOutput

func (GetAccountsResultOutput) ElementType added in v3.10.0

func (GetAccountsResultOutput) ElementType() reflect.Type

func (GetAccountsResultOutput) Id added in v3.10.0

The provider-assigned unique ID for this managed resource.

func (GetAccountsResultOutput) Ids added in v3.10.0

func (GetAccountsResultOutput) NameRegex added in v3.10.0

func (GetAccountsResultOutput) Names added in v3.10.0

func (GetAccountsResultOutput) OutputFile added in v3.10.0

func (GetAccountsResultOutput) Status added in v3.10.0

func (GetAccountsResultOutput) ToGetAccountsResultOutput added in v3.10.0

func (o GetAccountsResultOutput) ToGetAccountsResultOutput() GetAccountsResultOutput

func (GetAccountsResultOutput) ToGetAccountsResultOutputWithContext added in v3.10.0

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

type GetDbInstancePlansArgs added in v3.29.0

type GetDbInstancePlansArgs struct {
	// The ID of the Database instance.
	DbInstanceId string `pulumi:"dbInstanceId"`
	// A list of DB Instance Plan IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by DB Instance Plan name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// Plan scheduling type. Valid values: `Postpone`, `Regular`.
	PlanScheduleType *string `pulumi:"planScheduleType"`
	// The type of the Plan. Valid values: `PauseResume`, `Resize`.
	PlanType *string `pulumi:"planType"`
	// The Status of the Plan.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getDbInstancePlans.

type GetDbInstancePlansOutputArgs added in v3.29.0

type GetDbInstancePlansOutputArgs struct {
	// The ID of the Database instance.
	DbInstanceId pulumi.StringInput `pulumi:"dbInstanceId"`
	// A list of DB Instance Plan IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by DB Instance Plan name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// Plan scheduling type. Valid values: `Postpone`, `Regular`.
	PlanScheduleType pulumi.StringPtrInput `pulumi:"planScheduleType"`
	// The type of the Plan. Valid values: `PauseResume`, `Resize`.
	PlanType pulumi.StringPtrInput `pulumi:"planType"`
	// The Status of the Plan.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getDbInstancePlans.

func (GetDbInstancePlansOutputArgs) ElementType added in v3.29.0

type GetDbInstancePlansPlan added in v3.29.0

type GetDbInstancePlansPlan struct {
	// The name of the Plan.
	DbInstancePlanName string `pulumi:"dbInstancePlanName"`
	// The ID of the resource. The value formats as `<db_instance_id>:<plan_id>`.
	Id string `pulumi:"id"`
	// Plan configuration information.
	PlanConfigs []GetDbInstancePlansPlanPlanConfig `pulumi:"planConfigs"`
	PlanDesc    string                             `pulumi:"planDesc"`
	// The end time of the Plan.
	PlanEndDate string `pulumi:"planEndDate"`
	// The ID of DB Instance Plan.
	PlanId string `pulumi:"planId"`
	// Plan scheduling type. Valid values: `Postpone`, `Regular`.
	PlanScheduleType string `pulumi:"planScheduleType"`
	// The start time of the Plan.
	PlanStartDate string `pulumi:"planStartDate"`
	// The type of the Plan. Valid values: `PauseResume`, `Resize`.
	PlanType string `pulumi:"planType"`
	// The Status of the Plan.
	Status string `pulumi:"status"`
}

type GetDbInstancePlansPlanArgs added in v3.29.0

type GetDbInstancePlansPlanArgs struct {
	// The name of the Plan.
	DbInstancePlanName pulumi.StringInput `pulumi:"dbInstancePlanName"`
	// The ID of the resource. The value formats as `<db_instance_id>:<plan_id>`.
	Id pulumi.StringInput `pulumi:"id"`
	// Plan configuration information.
	PlanConfigs GetDbInstancePlansPlanPlanConfigArrayInput `pulumi:"planConfigs"`
	PlanDesc    pulumi.StringInput                         `pulumi:"planDesc"`
	// The end time of the Plan.
	PlanEndDate pulumi.StringInput `pulumi:"planEndDate"`
	// The ID of DB Instance Plan.
	PlanId pulumi.StringInput `pulumi:"planId"`
	// Plan scheduling type. Valid values: `Postpone`, `Regular`.
	PlanScheduleType pulumi.StringInput `pulumi:"planScheduleType"`
	// The start time of the Plan.
	PlanStartDate pulumi.StringInput `pulumi:"planStartDate"`
	// The type of the Plan. Valid values: `PauseResume`, `Resize`.
	PlanType pulumi.StringInput `pulumi:"planType"`
	// The Status of the Plan.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetDbInstancePlansPlanArgs) ElementType added in v3.29.0

func (GetDbInstancePlansPlanArgs) ElementType() reflect.Type

func (GetDbInstancePlansPlanArgs) ToGetDbInstancePlansPlanOutput added in v3.29.0

func (i GetDbInstancePlansPlanArgs) ToGetDbInstancePlansPlanOutput() GetDbInstancePlansPlanOutput

func (GetDbInstancePlansPlanArgs) ToGetDbInstancePlansPlanOutputWithContext added in v3.29.0

func (i GetDbInstancePlansPlanArgs) ToGetDbInstancePlansPlanOutputWithContext(ctx context.Context) GetDbInstancePlansPlanOutput

type GetDbInstancePlansPlanArray added in v3.29.0

type GetDbInstancePlansPlanArray []GetDbInstancePlansPlanInput

func (GetDbInstancePlansPlanArray) ElementType added in v3.29.0

func (GetDbInstancePlansPlanArray) ToGetDbInstancePlansPlanArrayOutput added in v3.29.0

func (i GetDbInstancePlansPlanArray) ToGetDbInstancePlansPlanArrayOutput() GetDbInstancePlansPlanArrayOutput

func (GetDbInstancePlansPlanArray) ToGetDbInstancePlansPlanArrayOutputWithContext added in v3.29.0

func (i GetDbInstancePlansPlanArray) ToGetDbInstancePlansPlanArrayOutputWithContext(ctx context.Context) GetDbInstancePlansPlanArrayOutput

type GetDbInstancePlansPlanArrayInput added in v3.29.0

type GetDbInstancePlansPlanArrayInput interface {
	pulumi.Input

	ToGetDbInstancePlansPlanArrayOutput() GetDbInstancePlansPlanArrayOutput
	ToGetDbInstancePlansPlanArrayOutputWithContext(context.Context) GetDbInstancePlansPlanArrayOutput
}

GetDbInstancePlansPlanArrayInput is an input type that accepts GetDbInstancePlansPlanArray and GetDbInstancePlansPlanArrayOutput values. You can construct a concrete instance of `GetDbInstancePlansPlanArrayInput` via:

GetDbInstancePlansPlanArray{ GetDbInstancePlansPlanArgs{...} }

type GetDbInstancePlansPlanArrayOutput added in v3.29.0

type GetDbInstancePlansPlanArrayOutput struct{ *pulumi.OutputState }

func (GetDbInstancePlansPlanArrayOutput) ElementType added in v3.29.0

func (GetDbInstancePlansPlanArrayOutput) Index added in v3.29.0

func (GetDbInstancePlansPlanArrayOutput) ToGetDbInstancePlansPlanArrayOutput added in v3.29.0

func (o GetDbInstancePlansPlanArrayOutput) ToGetDbInstancePlansPlanArrayOutput() GetDbInstancePlansPlanArrayOutput

func (GetDbInstancePlansPlanArrayOutput) ToGetDbInstancePlansPlanArrayOutputWithContext added in v3.29.0

func (o GetDbInstancePlansPlanArrayOutput) ToGetDbInstancePlansPlanArrayOutputWithContext(ctx context.Context) GetDbInstancePlansPlanArrayOutput

type GetDbInstancePlansPlanInput added in v3.29.0

type GetDbInstancePlansPlanInput interface {
	pulumi.Input

	ToGetDbInstancePlansPlanOutput() GetDbInstancePlansPlanOutput
	ToGetDbInstancePlansPlanOutputWithContext(context.Context) GetDbInstancePlansPlanOutput
}

GetDbInstancePlansPlanInput is an input type that accepts GetDbInstancePlansPlanArgs and GetDbInstancePlansPlanOutput values. You can construct a concrete instance of `GetDbInstancePlansPlanInput` via:

GetDbInstancePlansPlanArgs{...}

type GetDbInstancePlansPlanOutput added in v3.29.0

type GetDbInstancePlansPlanOutput struct{ *pulumi.OutputState }

func (GetDbInstancePlansPlanOutput) DbInstancePlanName added in v3.29.0

func (o GetDbInstancePlansPlanOutput) DbInstancePlanName() pulumi.StringOutput

The name of the Plan.

func (GetDbInstancePlansPlanOutput) ElementType added in v3.29.0

func (GetDbInstancePlansPlanOutput) Id added in v3.29.0

The ID of the resource. The value formats as `<db_instance_id>:<plan_id>`.

func (GetDbInstancePlansPlanOutput) PlanConfigs added in v3.29.0

Plan configuration information.

func (GetDbInstancePlansPlanOutput) PlanDesc added in v3.29.0

func (GetDbInstancePlansPlanOutput) PlanEndDate added in v3.29.0

The end time of the Plan.

func (GetDbInstancePlansPlanOutput) PlanId added in v3.29.0

The ID of DB Instance Plan.

func (GetDbInstancePlansPlanOutput) PlanScheduleType added in v3.29.0

func (o GetDbInstancePlansPlanOutput) PlanScheduleType() pulumi.StringOutput

Plan scheduling type. Valid values: `Postpone`, `Regular`.

func (GetDbInstancePlansPlanOutput) PlanStartDate added in v3.29.0

The start time of the Plan.

func (GetDbInstancePlansPlanOutput) PlanType added in v3.29.0

The type of the Plan. Valid values: `PauseResume`, `Resize`.

func (GetDbInstancePlansPlanOutput) Status added in v3.29.0

The Status of the Plan.

func (GetDbInstancePlansPlanOutput) ToGetDbInstancePlansPlanOutput added in v3.29.0

func (o GetDbInstancePlansPlanOutput) ToGetDbInstancePlansPlanOutput() GetDbInstancePlansPlanOutput

func (GetDbInstancePlansPlanOutput) ToGetDbInstancePlansPlanOutputWithContext added in v3.29.0

func (o GetDbInstancePlansPlanOutput) ToGetDbInstancePlansPlanOutputWithContext(ctx context.Context) GetDbInstancePlansPlanOutput

type GetDbInstancePlansPlanPlanConfig added in v3.29.0

type GetDbInstancePlansPlanPlanConfig struct {
	// Pause instance plan config.
	Pauses []GetDbInstancePlansPlanPlanConfigPause `pulumi:"pauses"`
	// Resume instance plan config.
	Resumes []GetDbInstancePlansPlanPlanConfigResume `pulumi:"resumes"`
	// Scale In instance plan config.
	ScaleIns []GetDbInstancePlansPlanPlanConfigScaleIn `pulumi:"scaleIns"`
	// Scale out instance plan config.
	ScaleOuts []GetDbInstancePlansPlanPlanConfigScaleOut `pulumi:"scaleOuts"`
}

type GetDbInstancePlansPlanPlanConfigArgs added in v3.29.0

type GetDbInstancePlansPlanPlanConfigArgs struct {
	// Pause instance plan config.
	Pauses GetDbInstancePlansPlanPlanConfigPauseArrayInput `pulumi:"pauses"`
	// Resume instance plan config.
	Resumes GetDbInstancePlansPlanPlanConfigResumeArrayInput `pulumi:"resumes"`
	// Scale In instance plan config.
	ScaleIns GetDbInstancePlansPlanPlanConfigScaleInArrayInput `pulumi:"scaleIns"`
	// Scale out instance plan config.
	ScaleOuts GetDbInstancePlansPlanPlanConfigScaleOutArrayInput `pulumi:"scaleOuts"`
}

func (GetDbInstancePlansPlanPlanConfigArgs) ElementType added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigArgs) ToGetDbInstancePlansPlanPlanConfigOutput added in v3.29.0

func (i GetDbInstancePlansPlanPlanConfigArgs) ToGetDbInstancePlansPlanPlanConfigOutput() GetDbInstancePlansPlanPlanConfigOutput

func (GetDbInstancePlansPlanPlanConfigArgs) ToGetDbInstancePlansPlanPlanConfigOutputWithContext added in v3.29.0

func (i GetDbInstancePlansPlanPlanConfigArgs) ToGetDbInstancePlansPlanPlanConfigOutputWithContext(ctx context.Context) GetDbInstancePlansPlanPlanConfigOutput

type GetDbInstancePlansPlanPlanConfigArray added in v3.29.0

type GetDbInstancePlansPlanPlanConfigArray []GetDbInstancePlansPlanPlanConfigInput

func (GetDbInstancePlansPlanPlanConfigArray) ElementType added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigArray) ToGetDbInstancePlansPlanPlanConfigArrayOutput added in v3.29.0

func (i GetDbInstancePlansPlanPlanConfigArray) ToGetDbInstancePlansPlanPlanConfigArrayOutput() GetDbInstancePlansPlanPlanConfigArrayOutput

func (GetDbInstancePlansPlanPlanConfigArray) ToGetDbInstancePlansPlanPlanConfigArrayOutputWithContext added in v3.29.0

func (i GetDbInstancePlansPlanPlanConfigArray) ToGetDbInstancePlansPlanPlanConfigArrayOutputWithContext(ctx context.Context) GetDbInstancePlansPlanPlanConfigArrayOutput

type GetDbInstancePlansPlanPlanConfigArrayInput added in v3.29.0

type GetDbInstancePlansPlanPlanConfigArrayInput interface {
	pulumi.Input

	ToGetDbInstancePlansPlanPlanConfigArrayOutput() GetDbInstancePlansPlanPlanConfigArrayOutput
	ToGetDbInstancePlansPlanPlanConfigArrayOutputWithContext(context.Context) GetDbInstancePlansPlanPlanConfigArrayOutput
}

GetDbInstancePlansPlanPlanConfigArrayInput is an input type that accepts GetDbInstancePlansPlanPlanConfigArray and GetDbInstancePlansPlanPlanConfigArrayOutput values. You can construct a concrete instance of `GetDbInstancePlansPlanPlanConfigArrayInput` via:

GetDbInstancePlansPlanPlanConfigArray{ GetDbInstancePlansPlanPlanConfigArgs{...} }

type GetDbInstancePlansPlanPlanConfigArrayOutput added in v3.29.0

type GetDbInstancePlansPlanPlanConfigArrayOutput struct{ *pulumi.OutputState }

func (GetDbInstancePlansPlanPlanConfigArrayOutput) ElementType added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigArrayOutput) Index added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigArrayOutput) ToGetDbInstancePlansPlanPlanConfigArrayOutput added in v3.29.0

func (o GetDbInstancePlansPlanPlanConfigArrayOutput) ToGetDbInstancePlansPlanPlanConfigArrayOutput() GetDbInstancePlansPlanPlanConfigArrayOutput

func (GetDbInstancePlansPlanPlanConfigArrayOutput) ToGetDbInstancePlansPlanPlanConfigArrayOutputWithContext added in v3.29.0

func (o GetDbInstancePlansPlanPlanConfigArrayOutput) ToGetDbInstancePlansPlanPlanConfigArrayOutputWithContext(ctx context.Context) GetDbInstancePlansPlanPlanConfigArrayOutput

type GetDbInstancePlansPlanPlanConfigInput added in v3.29.0

type GetDbInstancePlansPlanPlanConfigInput interface {
	pulumi.Input

	ToGetDbInstancePlansPlanPlanConfigOutput() GetDbInstancePlansPlanPlanConfigOutput
	ToGetDbInstancePlansPlanPlanConfigOutputWithContext(context.Context) GetDbInstancePlansPlanPlanConfigOutput
}

GetDbInstancePlansPlanPlanConfigInput is an input type that accepts GetDbInstancePlansPlanPlanConfigArgs and GetDbInstancePlansPlanPlanConfigOutput values. You can construct a concrete instance of `GetDbInstancePlansPlanPlanConfigInput` via:

GetDbInstancePlansPlanPlanConfigArgs{...}

type GetDbInstancePlansPlanPlanConfigOutput added in v3.29.0

type GetDbInstancePlansPlanPlanConfigOutput struct{ *pulumi.OutputState }

func (GetDbInstancePlansPlanPlanConfigOutput) ElementType added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigOutput) Pauses added in v3.29.0

Pause instance plan config.

func (GetDbInstancePlansPlanPlanConfigOutput) Resumes added in v3.29.0

Resume instance plan config.

func (GetDbInstancePlansPlanPlanConfigOutput) ScaleIns added in v3.29.0

Scale In instance plan config.

func (GetDbInstancePlansPlanPlanConfigOutput) ScaleOuts added in v3.29.0

Scale out instance plan config.

func (GetDbInstancePlansPlanPlanConfigOutput) ToGetDbInstancePlansPlanPlanConfigOutput added in v3.29.0

func (o GetDbInstancePlansPlanPlanConfigOutput) ToGetDbInstancePlansPlanPlanConfigOutput() GetDbInstancePlansPlanPlanConfigOutput

func (GetDbInstancePlansPlanPlanConfigOutput) ToGetDbInstancePlansPlanPlanConfigOutputWithContext added in v3.29.0

func (o GetDbInstancePlansPlanPlanConfigOutput) ToGetDbInstancePlansPlanPlanConfigOutputWithContext(ctx context.Context) GetDbInstancePlansPlanPlanConfigOutput

type GetDbInstancePlansPlanPlanConfigPause added in v3.29.0

type GetDbInstancePlansPlanPlanConfigPause struct {
	// The executed time of the Plan.
	ExecuteTime string `pulumi:"executeTime"`
	// The Cron Time of the plan.
	PlanCronTime string `pulumi:"planCronTime"`
	// The Status of the plan Task.
	PlanTaskStatus string `pulumi:"planTaskStatus"`
}

type GetDbInstancePlansPlanPlanConfigPauseArgs added in v3.29.0

type GetDbInstancePlansPlanPlanConfigPauseArgs struct {
	// The executed time of the Plan.
	ExecuteTime pulumi.StringInput `pulumi:"executeTime"`
	// The Cron Time of the plan.
	PlanCronTime pulumi.StringInput `pulumi:"planCronTime"`
	// The Status of the plan Task.
	PlanTaskStatus pulumi.StringInput `pulumi:"planTaskStatus"`
}

func (GetDbInstancePlansPlanPlanConfigPauseArgs) ElementType added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigPauseArgs) ToGetDbInstancePlansPlanPlanConfigPauseOutput added in v3.29.0

func (i GetDbInstancePlansPlanPlanConfigPauseArgs) ToGetDbInstancePlansPlanPlanConfigPauseOutput() GetDbInstancePlansPlanPlanConfigPauseOutput

func (GetDbInstancePlansPlanPlanConfigPauseArgs) ToGetDbInstancePlansPlanPlanConfigPauseOutputWithContext added in v3.29.0

func (i GetDbInstancePlansPlanPlanConfigPauseArgs) ToGetDbInstancePlansPlanPlanConfigPauseOutputWithContext(ctx context.Context) GetDbInstancePlansPlanPlanConfigPauseOutput

type GetDbInstancePlansPlanPlanConfigPauseArray added in v3.29.0

type GetDbInstancePlansPlanPlanConfigPauseArray []GetDbInstancePlansPlanPlanConfigPauseInput

func (GetDbInstancePlansPlanPlanConfigPauseArray) ElementType added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigPauseArray) ToGetDbInstancePlansPlanPlanConfigPauseArrayOutput added in v3.29.0

func (i GetDbInstancePlansPlanPlanConfigPauseArray) ToGetDbInstancePlansPlanPlanConfigPauseArrayOutput() GetDbInstancePlansPlanPlanConfigPauseArrayOutput

func (GetDbInstancePlansPlanPlanConfigPauseArray) ToGetDbInstancePlansPlanPlanConfigPauseArrayOutputWithContext added in v3.29.0

func (i GetDbInstancePlansPlanPlanConfigPauseArray) ToGetDbInstancePlansPlanPlanConfigPauseArrayOutputWithContext(ctx context.Context) GetDbInstancePlansPlanPlanConfigPauseArrayOutput

type GetDbInstancePlansPlanPlanConfigPauseArrayInput added in v3.29.0

type GetDbInstancePlansPlanPlanConfigPauseArrayInput interface {
	pulumi.Input

	ToGetDbInstancePlansPlanPlanConfigPauseArrayOutput() GetDbInstancePlansPlanPlanConfigPauseArrayOutput
	ToGetDbInstancePlansPlanPlanConfigPauseArrayOutputWithContext(context.Context) GetDbInstancePlansPlanPlanConfigPauseArrayOutput
}

GetDbInstancePlansPlanPlanConfigPauseArrayInput is an input type that accepts GetDbInstancePlansPlanPlanConfigPauseArray and GetDbInstancePlansPlanPlanConfigPauseArrayOutput values. You can construct a concrete instance of `GetDbInstancePlansPlanPlanConfigPauseArrayInput` via:

GetDbInstancePlansPlanPlanConfigPauseArray{ GetDbInstancePlansPlanPlanConfigPauseArgs{...} }

type GetDbInstancePlansPlanPlanConfigPauseArrayOutput added in v3.29.0

type GetDbInstancePlansPlanPlanConfigPauseArrayOutput struct{ *pulumi.OutputState }

func (GetDbInstancePlansPlanPlanConfigPauseArrayOutput) ElementType added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigPauseArrayOutput) Index added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigPauseArrayOutput) ToGetDbInstancePlansPlanPlanConfigPauseArrayOutput added in v3.29.0

func (o GetDbInstancePlansPlanPlanConfigPauseArrayOutput) ToGetDbInstancePlansPlanPlanConfigPauseArrayOutput() GetDbInstancePlansPlanPlanConfigPauseArrayOutput

func (GetDbInstancePlansPlanPlanConfigPauseArrayOutput) ToGetDbInstancePlansPlanPlanConfigPauseArrayOutputWithContext added in v3.29.0

func (o GetDbInstancePlansPlanPlanConfigPauseArrayOutput) ToGetDbInstancePlansPlanPlanConfigPauseArrayOutputWithContext(ctx context.Context) GetDbInstancePlansPlanPlanConfigPauseArrayOutput

type GetDbInstancePlansPlanPlanConfigPauseInput added in v3.29.0

type GetDbInstancePlansPlanPlanConfigPauseInput interface {
	pulumi.Input

	ToGetDbInstancePlansPlanPlanConfigPauseOutput() GetDbInstancePlansPlanPlanConfigPauseOutput
	ToGetDbInstancePlansPlanPlanConfigPauseOutputWithContext(context.Context) GetDbInstancePlansPlanPlanConfigPauseOutput
}

GetDbInstancePlansPlanPlanConfigPauseInput is an input type that accepts GetDbInstancePlansPlanPlanConfigPauseArgs and GetDbInstancePlansPlanPlanConfigPauseOutput values. You can construct a concrete instance of `GetDbInstancePlansPlanPlanConfigPauseInput` via:

GetDbInstancePlansPlanPlanConfigPauseArgs{...}

type GetDbInstancePlansPlanPlanConfigPauseOutput added in v3.29.0

type GetDbInstancePlansPlanPlanConfigPauseOutput struct{ *pulumi.OutputState }

func (GetDbInstancePlansPlanPlanConfigPauseOutput) ElementType added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigPauseOutput) ExecuteTime added in v3.29.0

The executed time of the Plan.

func (GetDbInstancePlansPlanPlanConfigPauseOutput) PlanCronTime added in v3.29.0

The Cron Time of the plan.

func (GetDbInstancePlansPlanPlanConfigPauseOutput) PlanTaskStatus added in v3.29.0

The Status of the plan Task.

func (GetDbInstancePlansPlanPlanConfigPauseOutput) ToGetDbInstancePlansPlanPlanConfigPauseOutput added in v3.29.0

func (o GetDbInstancePlansPlanPlanConfigPauseOutput) ToGetDbInstancePlansPlanPlanConfigPauseOutput() GetDbInstancePlansPlanPlanConfigPauseOutput

func (GetDbInstancePlansPlanPlanConfigPauseOutput) ToGetDbInstancePlansPlanPlanConfigPauseOutputWithContext added in v3.29.0

func (o GetDbInstancePlansPlanPlanConfigPauseOutput) ToGetDbInstancePlansPlanPlanConfigPauseOutputWithContext(ctx context.Context) GetDbInstancePlansPlanPlanConfigPauseOutput

type GetDbInstancePlansPlanPlanConfigResume added in v3.29.0

type GetDbInstancePlansPlanPlanConfigResume struct {
	// The executed time of the Plan.
	ExecuteTime string `pulumi:"executeTime"`
	// The Cron Time of the plan.
	PlanCronTime string `pulumi:"planCronTime"`
	// The Status of the plan Task.
	PlanTaskStatus string `pulumi:"planTaskStatus"`
}

type GetDbInstancePlansPlanPlanConfigResumeArgs added in v3.29.0

type GetDbInstancePlansPlanPlanConfigResumeArgs struct {
	// The executed time of the Plan.
	ExecuteTime pulumi.StringInput `pulumi:"executeTime"`
	// The Cron Time of the plan.
	PlanCronTime pulumi.StringInput `pulumi:"planCronTime"`
	// The Status of the plan Task.
	PlanTaskStatus pulumi.StringInput `pulumi:"planTaskStatus"`
}

func (GetDbInstancePlansPlanPlanConfigResumeArgs) ElementType added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigResumeArgs) ToGetDbInstancePlansPlanPlanConfigResumeOutput added in v3.29.0

func (i GetDbInstancePlansPlanPlanConfigResumeArgs) ToGetDbInstancePlansPlanPlanConfigResumeOutput() GetDbInstancePlansPlanPlanConfigResumeOutput

func (GetDbInstancePlansPlanPlanConfigResumeArgs) ToGetDbInstancePlansPlanPlanConfigResumeOutputWithContext added in v3.29.0

func (i GetDbInstancePlansPlanPlanConfigResumeArgs) ToGetDbInstancePlansPlanPlanConfigResumeOutputWithContext(ctx context.Context) GetDbInstancePlansPlanPlanConfigResumeOutput

type GetDbInstancePlansPlanPlanConfigResumeArray added in v3.29.0

type GetDbInstancePlansPlanPlanConfigResumeArray []GetDbInstancePlansPlanPlanConfigResumeInput

func (GetDbInstancePlansPlanPlanConfigResumeArray) ElementType added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigResumeArray) ToGetDbInstancePlansPlanPlanConfigResumeArrayOutput added in v3.29.0

func (i GetDbInstancePlansPlanPlanConfigResumeArray) ToGetDbInstancePlansPlanPlanConfigResumeArrayOutput() GetDbInstancePlansPlanPlanConfigResumeArrayOutput

func (GetDbInstancePlansPlanPlanConfigResumeArray) ToGetDbInstancePlansPlanPlanConfigResumeArrayOutputWithContext added in v3.29.0

func (i GetDbInstancePlansPlanPlanConfigResumeArray) ToGetDbInstancePlansPlanPlanConfigResumeArrayOutputWithContext(ctx context.Context) GetDbInstancePlansPlanPlanConfigResumeArrayOutput

type GetDbInstancePlansPlanPlanConfigResumeArrayInput added in v3.29.0

type GetDbInstancePlansPlanPlanConfigResumeArrayInput interface {
	pulumi.Input

	ToGetDbInstancePlansPlanPlanConfigResumeArrayOutput() GetDbInstancePlansPlanPlanConfigResumeArrayOutput
	ToGetDbInstancePlansPlanPlanConfigResumeArrayOutputWithContext(context.Context) GetDbInstancePlansPlanPlanConfigResumeArrayOutput
}

GetDbInstancePlansPlanPlanConfigResumeArrayInput is an input type that accepts GetDbInstancePlansPlanPlanConfigResumeArray and GetDbInstancePlansPlanPlanConfigResumeArrayOutput values. You can construct a concrete instance of `GetDbInstancePlansPlanPlanConfigResumeArrayInput` via:

GetDbInstancePlansPlanPlanConfigResumeArray{ GetDbInstancePlansPlanPlanConfigResumeArgs{...} }

type GetDbInstancePlansPlanPlanConfigResumeArrayOutput added in v3.29.0

type GetDbInstancePlansPlanPlanConfigResumeArrayOutput struct{ *pulumi.OutputState }

func (GetDbInstancePlansPlanPlanConfigResumeArrayOutput) ElementType added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigResumeArrayOutput) Index added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigResumeArrayOutput) ToGetDbInstancePlansPlanPlanConfigResumeArrayOutput added in v3.29.0

func (o GetDbInstancePlansPlanPlanConfigResumeArrayOutput) ToGetDbInstancePlansPlanPlanConfigResumeArrayOutput() GetDbInstancePlansPlanPlanConfigResumeArrayOutput

func (GetDbInstancePlansPlanPlanConfigResumeArrayOutput) ToGetDbInstancePlansPlanPlanConfigResumeArrayOutputWithContext added in v3.29.0

func (o GetDbInstancePlansPlanPlanConfigResumeArrayOutput) ToGetDbInstancePlansPlanPlanConfigResumeArrayOutputWithContext(ctx context.Context) GetDbInstancePlansPlanPlanConfigResumeArrayOutput

type GetDbInstancePlansPlanPlanConfigResumeInput added in v3.29.0

type GetDbInstancePlansPlanPlanConfigResumeInput interface {
	pulumi.Input

	ToGetDbInstancePlansPlanPlanConfigResumeOutput() GetDbInstancePlansPlanPlanConfigResumeOutput
	ToGetDbInstancePlansPlanPlanConfigResumeOutputWithContext(context.Context) GetDbInstancePlansPlanPlanConfigResumeOutput
}

GetDbInstancePlansPlanPlanConfigResumeInput is an input type that accepts GetDbInstancePlansPlanPlanConfigResumeArgs and GetDbInstancePlansPlanPlanConfigResumeOutput values. You can construct a concrete instance of `GetDbInstancePlansPlanPlanConfigResumeInput` via:

GetDbInstancePlansPlanPlanConfigResumeArgs{...}

type GetDbInstancePlansPlanPlanConfigResumeOutput added in v3.29.0

type GetDbInstancePlansPlanPlanConfigResumeOutput struct{ *pulumi.OutputState }

func (GetDbInstancePlansPlanPlanConfigResumeOutput) ElementType added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigResumeOutput) ExecuteTime added in v3.29.0

The executed time of the Plan.

func (GetDbInstancePlansPlanPlanConfigResumeOutput) PlanCronTime added in v3.29.0

The Cron Time of the plan.

func (GetDbInstancePlansPlanPlanConfigResumeOutput) PlanTaskStatus added in v3.29.0

The Status of the plan Task.

func (GetDbInstancePlansPlanPlanConfigResumeOutput) ToGetDbInstancePlansPlanPlanConfigResumeOutput added in v3.29.0

func (o GetDbInstancePlansPlanPlanConfigResumeOutput) ToGetDbInstancePlansPlanPlanConfigResumeOutput() GetDbInstancePlansPlanPlanConfigResumeOutput

func (GetDbInstancePlansPlanPlanConfigResumeOutput) ToGetDbInstancePlansPlanPlanConfigResumeOutputWithContext added in v3.29.0

func (o GetDbInstancePlansPlanPlanConfigResumeOutput) ToGetDbInstancePlansPlanPlanConfigResumeOutputWithContext(ctx context.Context) GetDbInstancePlansPlanPlanConfigResumeOutput

type GetDbInstancePlansPlanPlanConfigScaleIn added in v3.29.0

type GetDbInstancePlansPlanPlanConfigScaleIn struct {
	// The executed time of the Plan.
	ExecuteTime string `pulumi:"executeTime"`
	// The Cron Time of the plan.
	PlanCronTime string `pulumi:"planCronTime"`
	// The Status of the plan Task.
	PlanTaskStatus string `pulumi:"planTaskStatus"`
	// The segment Node Num of the Plan.
	SegmentNodeNum string `pulumi:"segmentNodeNum"`
}

type GetDbInstancePlansPlanPlanConfigScaleInArgs added in v3.29.0

type GetDbInstancePlansPlanPlanConfigScaleInArgs struct {
	// The executed time of the Plan.
	ExecuteTime pulumi.StringInput `pulumi:"executeTime"`
	// The Cron Time of the plan.
	PlanCronTime pulumi.StringInput `pulumi:"planCronTime"`
	// The Status of the plan Task.
	PlanTaskStatus pulumi.StringInput `pulumi:"planTaskStatus"`
	// The segment Node Num of the Plan.
	SegmentNodeNum pulumi.StringInput `pulumi:"segmentNodeNum"`
}

func (GetDbInstancePlansPlanPlanConfigScaleInArgs) ElementType added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigScaleInArgs) ToGetDbInstancePlansPlanPlanConfigScaleInOutput added in v3.29.0

func (i GetDbInstancePlansPlanPlanConfigScaleInArgs) ToGetDbInstancePlansPlanPlanConfigScaleInOutput() GetDbInstancePlansPlanPlanConfigScaleInOutput

func (GetDbInstancePlansPlanPlanConfigScaleInArgs) ToGetDbInstancePlansPlanPlanConfigScaleInOutputWithContext added in v3.29.0

func (i GetDbInstancePlansPlanPlanConfigScaleInArgs) ToGetDbInstancePlansPlanPlanConfigScaleInOutputWithContext(ctx context.Context) GetDbInstancePlansPlanPlanConfigScaleInOutput

type GetDbInstancePlansPlanPlanConfigScaleInArray added in v3.29.0

type GetDbInstancePlansPlanPlanConfigScaleInArray []GetDbInstancePlansPlanPlanConfigScaleInInput

func (GetDbInstancePlansPlanPlanConfigScaleInArray) ElementType added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigScaleInArray) ToGetDbInstancePlansPlanPlanConfigScaleInArrayOutput added in v3.29.0

func (i GetDbInstancePlansPlanPlanConfigScaleInArray) ToGetDbInstancePlansPlanPlanConfigScaleInArrayOutput() GetDbInstancePlansPlanPlanConfigScaleInArrayOutput

func (GetDbInstancePlansPlanPlanConfigScaleInArray) ToGetDbInstancePlansPlanPlanConfigScaleInArrayOutputWithContext added in v3.29.0

func (i GetDbInstancePlansPlanPlanConfigScaleInArray) ToGetDbInstancePlansPlanPlanConfigScaleInArrayOutputWithContext(ctx context.Context) GetDbInstancePlansPlanPlanConfigScaleInArrayOutput

type GetDbInstancePlansPlanPlanConfigScaleInArrayInput added in v3.29.0

type GetDbInstancePlansPlanPlanConfigScaleInArrayInput interface {
	pulumi.Input

	ToGetDbInstancePlansPlanPlanConfigScaleInArrayOutput() GetDbInstancePlansPlanPlanConfigScaleInArrayOutput
	ToGetDbInstancePlansPlanPlanConfigScaleInArrayOutputWithContext(context.Context) GetDbInstancePlansPlanPlanConfigScaleInArrayOutput
}

GetDbInstancePlansPlanPlanConfigScaleInArrayInput is an input type that accepts GetDbInstancePlansPlanPlanConfigScaleInArray and GetDbInstancePlansPlanPlanConfigScaleInArrayOutput values. You can construct a concrete instance of `GetDbInstancePlansPlanPlanConfigScaleInArrayInput` via:

GetDbInstancePlansPlanPlanConfigScaleInArray{ GetDbInstancePlansPlanPlanConfigScaleInArgs{...} }

type GetDbInstancePlansPlanPlanConfigScaleInArrayOutput added in v3.29.0

type GetDbInstancePlansPlanPlanConfigScaleInArrayOutput struct{ *pulumi.OutputState }

func (GetDbInstancePlansPlanPlanConfigScaleInArrayOutput) ElementType added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigScaleInArrayOutput) Index added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigScaleInArrayOutput) ToGetDbInstancePlansPlanPlanConfigScaleInArrayOutput added in v3.29.0

func (o GetDbInstancePlansPlanPlanConfigScaleInArrayOutput) ToGetDbInstancePlansPlanPlanConfigScaleInArrayOutput() GetDbInstancePlansPlanPlanConfigScaleInArrayOutput

func (GetDbInstancePlansPlanPlanConfigScaleInArrayOutput) ToGetDbInstancePlansPlanPlanConfigScaleInArrayOutputWithContext added in v3.29.0

func (o GetDbInstancePlansPlanPlanConfigScaleInArrayOutput) ToGetDbInstancePlansPlanPlanConfigScaleInArrayOutputWithContext(ctx context.Context) GetDbInstancePlansPlanPlanConfigScaleInArrayOutput

type GetDbInstancePlansPlanPlanConfigScaleInInput added in v3.29.0

type GetDbInstancePlansPlanPlanConfigScaleInInput interface {
	pulumi.Input

	ToGetDbInstancePlansPlanPlanConfigScaleInOutput() GetDbInstancePlansPlanPlanConfigScaleInOutput
	ToGetDbInstancePlansPlanPlanConfigScaleInOutputWithContext(context.Context) GetDbInstancePlansPlanPlanConfigScaleInOutput
}

GetDbInstancePlansPlanPlanConfigScaleInInput is an input type that accepts GetDbInstancePlansPlanPlanConfigScaleInArgs and GetDbInstancePlansPlanPlanConfigScaleInOutput values. You can construct a concrete instance of `GetDbInstancePlansPlanPlanConfigScaleInInput` via:

GetDbInstancePlansPlanPlanConfigScaleInArgs{...}

type GetDbInstancePlansPlanPlanConfigScaleInOutput added in v3.29.0

type GetDbInstancePlansPlanPlanConfigScaleInOutput struct{ *pulumi.OutputState }

func (GetDbInstancePlansPlanPlanConfigScaleInOutput) ElementType added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigScaleInOutput) ExecuteTime added in v3.29.0

The executed time of the Plan.

func (GetDbInstancePlansPlanPlanConfigScaleInOutput) PlanCronTime added in v3.29.0

The Cron Time of the plan.

func (GetDbInstancePlansPlanPlanConfigScaleInOutput) PlanTaskStatus added in v3.29.0

The Status of the plan Task.

func (GetDbInstancePlansPlanPlanConfigScaleInOutput) SegmentNodeNum added in v3.29.0

The segment Node Num of the Plan.

func (GetDbInstancePlansPlanPlanConfigScaleInOutput) ToGetDbInstancePlansPlanPlanConfigScaleInOutput added in v3.29.0

func (o GetDbInstancePlansPlanPlanConfigScaleInOutput) ToGetDbInstancePlansPlanPlanConfigScaleInOutput() GetDbInstancePlansPlanPlanConfigScaleInOutput

func (GetDbInstancePlansPlanPlanConfigScaleInOutput) ToGetDbInstancePlansPlanPlanConfigScaleInOutputWithContext added in v3.29.0

func (o GetDbInstancePlansPlanPlanConfigScaleInOutput) ToGetDbInstancePlansPlanPlanConfigScaleInOutputWithContext(ctx context.Context) GetDbInstancePlansPlanPlanConfigScaleInOutput

type GetDbInstancePlansPlanPlanConfigScaleOut added in v3.29.0

type GetDbInstancePlansPlanPlanConfigScaleOut struct {
	// The executed time of the Plan.
	ExecuteTime string `pulumi:"executeTime"`
	// The Cron Time of the plan.
	PlanCronTime string `pulumi:"planCronTime"`
	// The Status of the plan Task.
	PlanTaskStatus string `pulumi:"planTaskStatus"`
	// The segment Node Num of the Plan.
	SegmentNodeNum string `pulumi:"segmentNodeNum"`
}

type GetDbInstancePlansPlanPlanConfigScaleOutArgs added in v3.29.0

type GetDbInstancePlansPlanPlanConfigScaleOutArgs struct {
	// The executed time of the Plan.
	ExecuteTime pulumi.StringInput `pulumi:"executeTime"`
	// The Cron Time of the plan.
	PlanCronTime pulumi.StringInput `pulumi:"planCronTime"`
	// The Status of the plan Task.
	PlanTaskStatus pulumi.StringInput `pulumi:"planTaskStatus"`
	// The segment Node Num of the Plan.
	SegmentNodeNum pulumi.StringInput `pulumi:"segmentNodeNum"`
}

func (GetDbInstancePlansPlanPlanConfigScaleOutArgs) ElementType added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigScaleOutArgs) ToGetDbInstancePlansPlanPlanConfigScaleOutOutput added in v3.29.0

func (i GetDbInstancePlansPlanPlanConfigScaleOutArgs) ToGetDbInstancePlansPlanPlanConfigScaleOutOutput() GetDbInstancePlansPlanPlanConfigScaleOutOutput

func (GetDbInstancePlansPlanPlanConfigScaleOutArgs) ToGetDbInstancePlansPlanPlanConfigScaleOutOutputWithContext added in v3.29.0

func (i GetDbInstancePlansPlanPlanConfigScaleOutArgs) ToGetDbInstancePlansPlanPlanConfigScaleOutOutputWithContext(ctx context.Context) GetDbInstancePlansPlanPlanConfigScaleOutOutput

type GetDbInstancePlansPlanPlanConfigScaleOutArray added in v3.29.0

type GetDbInstancePlansPlanPlanConfigScaleOutArray []GetDbInstancePlansPlanPlanConfigScaleOutInput

func (GetDbInstancePlansPlanPlanConfigScaleOutArray) ElementType added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigScaleOutArray) ToGetDbInstancePlansPlanPlanConfigScaleOutArrayOutput added in v3.29.0

func (i GetDbInstancePlansPlanPlanConfigScaleOutArray) ToGetDbInstancePlansPlanPlanConfigScaleOutArrayOutput() GetDbInstancePlansPlanPlanConfigScaleOutArrayOutput

func (GetDbInstancePlansPlanPlanConfigScaleOutArray) ToGetDbInstancePlansPlanPlanConfigScaleOutArrayOutputWithContext added in v3.29.0

func (i GetDbInstancePlansPlanPlanConfigScaleOutArray) ToGetDbInstancePlansPlanPlanConfigScaleOutArrayOutputWithContext(ctx context.Context) GetDbInstancePlansPlanPlanConfigScaleOutArrayOutput

type GetDbInstancePlansPlanPlanConfigScaleOutArrayInput added in v3.29.0

type GetDbInstancePlansPlanPlanConfigScaleOutArrayInput interface {
	pulumi.Input

	ToGetDbInstancePlansPlanPlanConfigScaleOutArrayOutput() GetDbInstancePlansPlanPlanConfigScaleOutArrayOutput
	ToGetDbInstancePlansPlanPlanConfigScaleOutArrayOutputWithContext(context.Context) GetDbInstancePlansPlanPlanConfigScaleOutArrayOutput
}

GetDbInstancePlansPlanPlanConfigScaleOutArrayInput is an input type that accepts GetDbInstancePlansPlanPlanConfigScaleOutArray and GetDbInstancePlansPlanPlanConfigScaleOutArrayOutput values. You can construct a concrete instance of `GetDbInstancePlansPlanPlanConfigScaleOutArrayInput` via:

GetDbInstancePlansPlanPlanConfigScaleOutArray{ GetDbInstancePlansPlanPlanConfigScaleOutArgs{...} }

type GetDbInstancePlansPlanPlanConfigScaleOutArrayOutput added in v3.29.0

type GetDbInstancePlansPlanPlanConfigScaleOutArrayOutput struct{ *pulumi.OutputState }

func (GetDbInstancePlansPlanPlanConfigScaleOutArrayOutput) ElementType added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigScaleOutArrayOutput) Index added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigScaleOutArrayOutput) ToGetDbInstancePlansPlanPlanConfigScaleOutArrayOutput added in v3.29.0

func (o GetDbInstancePlansPlanPlanConfigScaleOutArrayOutput) ToGetDbInstancePlansPlanPlanConfigScaleOutArrayOutput() GetDbInstancePlansPlanPlanConfigScaleOutArrayOutput

func (GetDbInstancePlansPlanPlanConfigScaleOutArrayOutput) ToGetDbInstancePlansPlanPlanConfigScaleOutArrayOutputWithContext added in v3.29.0

func (o GetDbInstancePlansPlanPlanConfigScaleOutArrayOutput) ToGetDbInstancePlansPlanPlanConfigScaleOutArrayOutputWithContext(ctx context.Context) GetDbInstancePlansPlanPlanConfigScaleOutArrayOutput

type GetDbInstancePlansPlanPlanConfigScaleOutInput added in v3.29.0

type GetDbInstancePlansPlanPlanConfigScaleOutInput interface {
	pulumi.Input

	ToGetDbInstancePlansPlanPlanConfigScaleOutOutput() GetDbInstancePlansPlanPlanConfigScaleOutOutput
	ToGetDbInstancePlansPlanPlanConfigScaleOutOutputWithContext(context.Context) GetDbInstancePlansPlanPlanConfigScaleOutOutput
}

GetDbInstancePlansPlanPlanConfigScaleOutInput is an input type that accepts GetDbInstancePlansPlanPlanConfigScaleOutArgs and GetDbInstancePlansPlanPlanConfigScaleOutOutput values. You can construct a concrete instance of `GetDbInstancePlansPlanPlanConfigScaleOutInput` via:

GetDbInstancePlansPlanPlanConfigScaleOutArgs{...}

type GetDbInstancePlansPlanPlanConfigScaleOutOutput added in v3.29.0

type GetDbInstancePlansPlanPlanConfigScaleOutOutput struct{ *pulumi.OutputState }

func (GetDbInstancePlansPlanPlanConfigScaleOutOutput) ElementType added in v3.29.0

func (GetDbInstancePlansPlanPlanConfigScaleOutOutput) ExecuteTime added in v3.29.0

The executed time of the Plan.

func (GetDbInstancePlansPlanPlanConfigScaleOutOutput) PlanCronTime added in v3.29.0

The Cron Time of the plan.

func (GetDbInstancePlansPlanPlanConfigScaleOutOutput) PlanTaskStatus added in v3.29.0

The Status of the plan Task.

func (GetDbInstancePlansPlanPlanConfigScaleOutOutput) SegmentNodeNum added in v3.29.0

The segment Node Num of the Plan.

func (GetDbInstancePlansPlanPlanConfigScaleOutOutput) ToGetDbInstancePlansPlanPlanConfigScaleOutOutput added in v3.29.0

func (o GetDbInstancePlansPlanPlanConfigScaleOutOutput) ToGetDbInstancePlansPlanPlanConfigScaleOutOutput() GetDbInstancePlansPlanPlanConfigScaleOutOutput

func (GetDbInstancePlansPlanPlanConfigScaleOutOutput) ToGetDbInstancePlansPlanPlanConfigScaleOutOutputWithContext added in v3.29.0

func (o GetDbInstancePlansPlanPlanConfigScaleOutOutput) ToGetDbInstancePlansPlanPlanConfigScaleOutOutputWithContext(ctx context.Context) GetDbInstancePlansPlanPlanConfigScaleOutOutput

type GetDbInstancePlansResult added in v3.29.0

type GetDbInstancePlansResult struct {
	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"`
	PlanScheduleType *string                  `pulumi:"planScheduleType"`
	PlanType         *string                  `pulumi:"planType"`
	Plans            []GetDbInstancePlansPlan `pulumi:"plans"`
	Status           *string                  `pulumi:"status"`
}

A collection of values returned by getDbInstancePlans.

func GetDbInstancePlans added in v3.29.0

func GetDbInstancePlans(ctx *pulumi.Context, args *GetDbInstancePlansArgs, opts ...pulumi.InvokeOption) (*GetDbInstancePlansResult, error)

This data source provides the Gpdb Db Instance Plans of the current Alibaba Cloud user.

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

## Example Usage

Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := gpdb.GetDbInstancePlans(ctx, &gpdb.GetDbInstancePlansArgs{
			DbInstanceId: "example_value",
			Ids: []string{
				"example_value",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("gpdbDbInstancePlanId1", ids.Plans[0].Id)
		nameRegex, err := gpdb.GetDbInstancePlans(ctx, &gpdb.GetDbInstancePlansArgs{
			DbInstanceId: "example_value",
			NameRegex:    pulumi.StringRef("^my-DBInstancePlan"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("gpdbDbInstancePlanId2", nameRegex.Plans[0].Id)
		return nil
	})
}

```

type GetDbInstancePlansResultOutput added in v3.29.0

type GetDbInstancePlansResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDbInstancePlans.

func GetDbInstancePlansOutput added in v3.29.0

func (GetDbInstancePlansResultOutput) DbInstanceId added in v3.29.0

func (GetDbInstancePlansResultOutput) ElementType added in v3.29.0

func (GetDbInstancePlansResultOutput) Id added in v3.29.0

The provider-assigned unique ID for this managed resource.

func (GetDbInstancePlansResultOutput) Ids added in v3.29.0

func (GetDbInstancePlansResultOutput) NameRegex added in v3.29.0

func (GetDbInstancePlansResultOutput) Names added in v3.29.0

func (GetDbInstancePlansResultOutput) OutputFile added in v3.29.0

func (GetDbInstancePlansResultOutput) PlanScheduleType added in v3.29.0

func (GetDbInstancePlansResultOutput) PlanType added in v3.29.0

func (GetDbInstancePlansResultOutput) Plans added in v3.29.0

func (GetDbInstancePlansResultOutput) Status added in v3.29.0

func (GetDbInstancePlansResultOutput) ToGetDbInstancePlansResultOutput added in v3.29.0

func (o GetDbInstancePlansResultOutput) ToGetDbInstancePlansResultOutput() GetDbInstancePlansResultOutput

func (GetDbInstancePlansResultOutput) ToGetDbInstancePlansResultOutputWithContext added in v3.29.0

func (o GetDbInstancePlansResultOutput) ToGetDbInstancePlansResultOutputWithContext(ctx context.Context) GetDbInstancePlansResultOutput

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"`
	// File name where to save data source results (after running `pulumi preview`).
	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 connection string 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"`
	DbInstanceCategory string `pulumi:"dbInstanceCategory"`
	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"`
	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 connection string 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"`
	DbInstanceCategory pulumi.StringInput `pulumi:"dbInstanceCategory"`
	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"`
	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 added in v3.29.0

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

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

func (GetInstancesInstanceIpWhitelistArgs) ToGetInstancesInstanceIpWhitelistOutput added in v3.29.0

func (i GetInstancesInstanceIpWhitelistArgs) ToGetInstancesInstanceIpWhitelistOutput() GetInstancesInstanceIpWhitelistOutput

func (GetInstancesInstanceIpWhitelistArgs) ToGetInstancesInstanceIpWhitelistOutputWithContext added in v3.29.0

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

type GetInstancesInstanceIpWhitelistArray added in v3.29.0

type GetInstancesInstanceIpWhitelistArray []GetInstancesInstanceIpWhitelistInput

func (GetInstancesInstanceIpWhitelistArray) ElementType added in v3.29.0

func (GetInstancesInstanceIpWhitelistArray) ToGetInstancesInstanceIpWhitelistArrayOutput added in v3.29.0

func (i GetInstancesInstanceIpWhitelistArray) ToGetInstancesInstanceIpWhitelistArrayOutput() GetInstancesInstanceIpWhitelistArrayOutput

func (GetInstancesInstanceIpWhitelistArray) ToGetInstancesInstanceIpWhitelistArrayOutputWithContext added in v3.29.0

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

type GetInstancesInstanceIpWhitelistArrayInput added in v3.29.0

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

type GetInstancesInstanceIpWhitelistArrayOutput struct{ *pulumi.OutputState }

func (GetInstancesInstanceIpWhitelistArrayOutput) ElementType added in v3.29.0

func (GetInstancesInstanceIpWhitelistArrayOutput) Index added in v3.29.0

func (GetInstancesInstanceIpWhitelistArrayOutput) ToGetInstancesInstanceIpWhitelistArrayOutput added in v3.29.0

func (o GetInstancesInstanceIpWhitelistArrayOutput) ToGetInstancesInstanceIpWhitelistArrayOutput() GetInstancesInstanceIpWhitelistArrayOutput

func (GetInstancesInstanceIpWhitelistArrayOutput) ToGetInstancesInstanceIpWhitelistArrayOutputWithContext added in v3.29.0

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

type GetInstancesInstanceIpWhitelistInput added in v3.29.0

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

type GetInstancesInstanceIpWhitelistOutput struct{ *pulumi.OutputState }

func (GetInstancesInstanceIpWhitelistOutput) ElementType added in v3.29.0

func (GetInstancesInstanceIpWhitelistOutput) IpGroupAttribute added in v3.29.0

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

IP whitelist group name

func (GetInstancesInstanceIpWhitelistOutput) SecurityIpList added in v3.29.0

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

func (o GetInstancesInstanceIpWhitelistOutput) ToGetInstancesInstanceIpWhitelistOutput() GetInstancesInstanceIpWhitelistOutput

func (GetInstancesInstanceIpWhitelistOutput) ToGetInstancesInstanceIpWhitelistOutputWithContext added in v3.29.0

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

func (o GetInstancesInstanceOutput) ConnectionString() pulumi.StringOutput

The connection string of the instance.

func (GetInstancesInstanceOutput) CpuCores added in v3.29.0

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

func (GetInstancesInstanceOutput) CreateTime added in v3.29.0

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

func (o GetInstancesInstanceOutput) DbInstanceCategory() pulumi.StringOutput

func (GetInstancesInstanceOutput) DbInstanceClass added in v3.29.0

func (o GetInstancesInstanceOutput) DbInstanceClass() pulumi.StringOutput

func (GetInstancesInstanceOutput) DbInstanceId added in v3.29.0

The db instance id.

func (GetInstancesInstanceOutput) DbInstanceMode added in v3.29.0

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

The ip whitelist.

func (GetInstancesInstanceOutput) MaintainEndTime added in v3.29.0

func (o GetInstancesInstanceOutput) MaintainEndTime() pulumi.StringOutput

The end time of the maintenance window for the instance.

func (GetInstancesInstanceOutput) MaintainStartTime added in v3.29.0

func (o GetInstancesInstanceOutput) MaintainStartTime() pulumi.StringOutput

The start time of the maintenance window for the instance.

func (GetInstancesInstanceOutput) MasterNodeNum added in v3.29.0

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

The memory size of the compute node.

func (GetInstancesInstanceOutput) PaymentType added in v3.29.0

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

func (GetInstancesInstanceOutput) RegionId

func (GetInstancesInstanceOutput) SegNodeNum added in v3.29.0

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

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

func (GetInstancesInstanceOutput) StorageType added in v3.29.0

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

func (GetInstancesInstanceOutput) Tags added in v3.29.0

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

The ID of the VPC。.

func (GetInstancesInstanceOutput) VswitchId added in v3.29.0

The vswitch id.

func (GetInstancesInstanceOutput) ZoneId added in v3.29.0

The zone ID of the instance.

type GetInstancesOutputArgs added in v3.9.0

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

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

)

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

type GetInstancesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInstances.

func GetInstancesOutput added in v3.9.0

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

func (GetInstancesResultOutput) AvailabilityZone added in v3.9.0

func (o GetInstancesResultOutput) AvailabilityZone() pulumi.StringPtrOutput

func (GetInstancesResultOutput) DbInstanceCategories added in v3.29.0

func (o GetInstancesResultOutput) DbInstanceCategories() pulumi.StringPtrOutput

func (GetInstancesResultOutput) DbInstanceModes added in v3.29.0

func (o GetInstancesResultOutput) DbInstanceModes() pulumi.StringPtrOutput

func (GetInstancesResultOutput) Description added in v3.29.0

func (GetInstancesResultOutput) ElementType added in v3.9.0

func (GetInstancesResultOutput) ElementType() reflect.Type

func (GetInstancesResultOutput) EnableDetails added in v3.29.0

func (o GetInstancesResultOutput) EnableDetails() pulumi.BoolPtrOutput

func (GetInstancesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetInstancesResultOutput) Ids added in v3.9.0

func (GetInstancesResultOutput) InstanceNetworkType added in v3.29.0

func (o GetInstancesResultOutput) InstanceNetworkType() pulumi.StringPtrOutput

func (GetInstancesResultOutput) Instances added in v3.9.0

func (GetInstancesResultOutput) NameRegex added in v3.9.0

func (GetInstancesResultOutput) Names added in v3.9.0

func (GetInstancesResultOutput) OutputFile added in v3.9.0

func (GetInstancesResultOutput) ResourceGroupId added in v3.29.0

func (o GetInstancesResultOutput) ResourceGroupId() pulumi.StringPtrOutput

func (GetInstancesResultOutput) Status added in v3.29.0

func (GetInstancesResultOutput) Tags added in v3.9.0

func (GetInstancesResultOutput) ToGetInstancesResultOutput added in v3.9.0

func (o GetInstancesResultOutput) ToGetInstancesResultOutput() GetInstancesResultOutput

func (GetInstancesResultOutput) ToGetInstancesResultOutputWithContext added in v3.9.0

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

func (GetInstancesResultOutput) VswitchId added in v3.9.0

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

A collection of arguments for invoking getZones.

type GetZonesOutputArgs added in v3.9.0

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

A collection of arguments for invoking getZones.

func (GetZonesOutputArgs) ElementType added in v3.9.0

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

type GetZonesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getZones.

func GetZonesOutput added in v3.9.0

func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput

func (GetZonesResultOutput) ElementType added in v3.9.0

func (GetZonesResultOutput) ElementType() reflect.Type

func (GetZonesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetZonesResultOutput) Ids added in v3.9.0

A list of zone IDs.

func (GetZonesResultOutput) Multi added in v3.9.0

func (GetZonesResultOutput) OutputFile added in v3.9.0

func (GetZonesResultOutput) ToGetZonesResultOutput added in v3.9.0

func (o GetZonesResultOutput) ToGetZonesResultOutput() GetZonesResultOutput

func (GetZonesResultOutput) ToGetZonesResultOutputWithContext added in v3.9.0

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

func (GetZonesResultOutput) Zones added in v3.9.0

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"`
	// (Available since v1.196.0) The connection string of the instance.
	ConnectionString pulumi.StringOutput `pulumi:"connectionString"`
	// 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: `Basic`, `HighAvailability`.
	// > **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/en/analyticdb-for-postgresql/latest/instance-types).
	// > **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 ID of the encryption key.
	// > **NOTE:** If `encryptionType` is set to `CloudDisk`, you must specify an encryption key that resides in the same region as the cloud disk that is specified by EncryptionType. Otherwise, leave this parameter empty.
	EncryptionKey pulumi.StringPtrOutput `pulumi:"encryptionKey"`
	// The encryption type. Valid values: `CloudDisk`.
	// > **NOTE:** Disk encryption cannot be disabled after it is enabled.
	EncryptionType pulumi.StringPtrOutput `pulumi:"encryptionType"`
	// The database engine used by the instance. Value options can refer to the latest docs [CreateDBInstance](https://www.alibabacloud.com/help/en/analyticdb-for-postgresql/latest/api-gpdb-2016-05-03-createdbinstance) `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 `instanceChargeType` has been deprecated from version 1.187.0. Use `paymentType` 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. Valid values: `VPC`.
	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. See `ipWhitelist` below.
	// Default to creating a whitelist group with the group name "default" and securityIpList "127.0.0.1".
	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 amount of coordinator node resources. Valid values: `2`, `4`, `8`, `16`, `32`.
	MasterCu pulumi.IntOutput `pulumi:"masterCu"`
	// The number of Master nodes. **NOTE:** Field `masterNodeNum` has been deprecated from provider version 1.213.0.
	//
	// Deprecated: Field `masterNodeNum` has been deprecated from provider version 1.213.0.
	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"`
	// (Available since v1.196.0) The connection port of the instance.
	Port pulumi.StringOutput `pulumi:"port"`
	// The private ip address. **NOTE:** Field `privateIpAddress` has been deprecated from provider version 1.213.0.
	//
	// Deprecated: Field `privateIpAddress` has been deprecated from provider version 1.213.0.
	PrivateIpAddress pulumi.StringPtrOutput `pulumi:"privateIpAddress"`
	// The ID of the enterprise resource group to which the instance belongs.
	ResourceGroupId pulumi.StringOutput `pulumi:"resourceGroupId"`
	// Field `securityIpList` has been deprecated from provider version 1.187.0. New field `ipWhitelist` instead.
	//
	// 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. Valid values: `2` to `512`. 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. Valid values: `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"`
	// Specifies whether to enable vector engine optimization. Default value: `disabled`. Valid values: `enabled` and `disabled`.
	VectorConfigurationStatus pulumi.StringOutput `pulumi:"vectorConfigurationStatus"`
	// 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/en/analyticdb-for-postgresql/latest/api-gpdb-2016-05-03-createdbinstance)

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

## Example Usage

Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := resourcemanager.GetResourceGroups(ctx, nil, nil)
		if err != nil {
			return err
		}
		defaultGetZones, err := gpdb.GetZones(ctx, nil, nil)
		if err != nil {
			return err
		}
		defaultGetNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
			NameRegex: pulumi.StringRef("^default-NODELETING$"),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
			VpcId:  pulumi.StringRef(defaultGetNetworks.Ids[0]),
			ZoneId: pulumi.StringRef(defaultGetZones.Ids[0]),
		}, nil)
		if err != nil {
			return err
		}
		_, err = gpdb.NewInstance(ctx, "default", &gpdb.InstanceArgs{
			DbInstanceCategory:  pulumi.String("HighAvailability"),
			DbInstanceClass:     pulumi.String("gpdb.group.segsdx1"),
			DbInstanceMode:      pulumi.String("StorageElastic"),
			Description:         pulumi.String(name),
			Engine:              pulumi.String("gpdb"),
			EngineVersion:       pulumi.String("6.0"),
			ZoneId:              pulumi.String(defaultGetZones.Ids[0]),
			InstanceNetworkType: pulumi.String("VPC"),
			InstanceSpec:        pulumi.String("2C16G"),
			PaymentType:         pulumi.String("PayAsYouGo"),
			SegStorageType:      pulumi.String("cloud_essd"),
			SegNodeNum:          pulumi.Int(4),
			StorageSize:         pulumi.Int(50),
			VpcId:               pulumi.String(defaultGetNetworks.Ids[0]),
			VswitchId:           pulumi.String(defaultGetSwitches.Ids[0]),
			IpWhitelists: gpdb.InstanceIpWhitelistArray{
				&gpdb.InstanceIpWhitelistArgs{
					SecurityIpList: pulumi.String("127.0.0.1"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## 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: `Basic`, `HighAvailability`.
	// > **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/en/analyticdb-for-postgresql/latest/instance-types).
	// > **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 ID of the encryption key.
	// > **NOTE:** If `encryptionType` is set to `CloudDisk`, you must specify an encryption key that resides in the same region as the cloud disk that is specified by EncryptionType. Otherwise, leave this parameter empty.
	EncryptionKey pulumi.StringPtrInput
	// The encryption type. Valid values: `CloudDisk`.
	// > **NOTE:** Disk encryption cannot be disabled after it is enabled.
	EncryptionType pulumi.StringPtrInput
	// The database engine used by the instance. Value options can refer to the latest docs [CreateDBInstance](https://www.alibabacloud.com/help/en/analyticdb-for-postgresql/latest/api-gpdb-2016-05-03-createdbinstance) `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 `instanceChargeType` has been deprecated from version 1.187.0. Use `paymentType` 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. Valid values: `VPC`.
	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. See `ipWhitelist` below.
	// Default to creating a whitelist group with the group name "default" and securityIpList "127.0.0.1".
	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 amount of coordinator node resources. Valid values: `2`, `4`, `8`, `16`, `32`.
	MasterCu pulumi.IntPtrInput
	// The number of Master nodes. **NOTE:** Field `masterNodeNum` has been deprecated from provider version 1.213.0.
	//
	// Deprecated: Field `masterNodeNum` has been deprecated from provider version 1.213.0.
	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. **NOTE:** Field `privateIpAddress` has been deprecated from provider version 1.213.0.
	//
	// Deprecated: Field `privateIpAddress` has been deprecated from provider version 1.213.0.
	PrivateIpAddress pulumi.StringPtrInput
	// The ID of the enterprise resource group to which the instance belongs.
	ResourceGroupId pulumi.StringPtrInput
	// Field `securityIpList` has been deprecated from provider version 1.187.0. New field `ipWhitelist` instead.
	//
	// 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. Valid values: `2` to `512`. 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. Valid values: `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
	// Specifies whether to enable vector engine optimization. Default value: `disabled`. Valid values: `enabled` and `disabled`.
	VectorConfigurationStatus 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 added in v3.29.0

type InstanceIpWhitelist struct {
	// The value of this parameter is empty by default. The attribute of the whitelist group.
	// If the value contains `hidden`, this white list item will not output.
	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 added in v3.29.0

type InstanceIpWhitelistArgs struct {
	// The value of this parameter is empty by default. The attribute of the whitelist group.
	// If the value contains `hidden`, this white list item will not output.
	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.StringPtrInput `pulumi:"securityIpList"`
}

func (InstanceIpWhitelistArgs) ElementType added in v3.29.0

func (InstanceIpWhitelistArgs) ElementType() reflect.Type

func (InstanceIpWhitelistArgs) ToInstanceIpWhitelistOutput added in v3.29.0

func (i InstanceIpWhitelistArgs) ToInstanceIpWhitelistOutput() InstanceIpWhitelistOutput

func (InstanceIpWhitelistArgs) ToInstanceIpWhitelistOutputWithContext added in v3.29.0

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

type InstanceIpWhitelistArray added in v3.29.0

type InstanceIpWhitelistArray []InstanceIpWhitelistInput

func (InstanceIpWhitelistArray) ElementType added in v3.29.0

func (InstanceIpWhitelistArray) ElementType() reflect.Type

func (InstanceIpWhitelistArray) ToInstanceIpWhitelistArrayOutput added in v3.29.0

func (i InstanceIpWhitelistArray) ToInstanceIpWhitelistArrayOutput() InstanceIpWhitelistArrayOutput

func (InstanceIpWhitelistArray) ToInstanceIpWhitelistArrayOutputWithContext added in v3.29.0

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

type InstanceIpWhitelistArrayInput added in v3.29.0

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

type InstanceIpWhitelistArrayOutput struct{ *pulumi.OutputState }

func (InstanceIpWhitelistArrayOutput) ElementType added in v3.29.0

func (InstanceIpWhitelistArrayOutput) Index added in v3.29.0

func (InstanceIpWhitelistArrayOutput) ToInstanceIpWhitelistArrayOutput added in v3.29.0

func (o InstanceIpWhitelistArrayOutput) ToInstanceIpWhitelistArrayOutput() InstanceIpWhitelistArrayOutput

func (InstanceIpWhitelistArrayOutput) ToInstanceIpWhitelistArrayOutputWithContext added in v3.29.0

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

type InstanceIpWhitelistInput added in v3.29.0

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

type InstanceIpWhitelistOutput struct{ *pulumi.OutputState }

func (InstanceIpWhitelistOutput) ElementType added in v3.29.0

func (InstanceIpWhitelistOutput) ElementType() reflect.Type

func (InstanceIpWhitelistOutput) IpGroupAttribute added in v3.29.0

func (o InstanceIpWhitelistOutput) IpGroupAttribute() pulumi.StringPtrOutput

The value of this parameter is empty by default. The attribute of the whitelist group. If the value contains `hidden`, this white list item will not output.

func (InstanceIpWhitelistOutput) IpGroupName added in v3.29.0

IP whitelist group name.

func (InstanceIpWhitelistOutput) SecurityIpList added in v3.29.0

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

func (o InstanceIpWhitelistOutput) ToInstanceIpWhitelistOutput() InstanceIpWhitelistOutput

func (InstanceIpWhitelistOutput) ToInstanceIpWhitelistOutputWithContext added in v3.29.0

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

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) ConnectionString added in v3.29.0

func (o InstanceOutput) ConnectionString() pulumi.StringOutput

(Available since v1.196.0) The connection string of the instance.

func (InstanceOutput) CreateSampleData added in v3.29.0

func (o InstanceOutput) CreateSampleData() pulumi.BoolOutput

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

func (InstanceOutput) DbInstanceCategory added in v3.29.0

func (o InstanceOutput) DbInstanceCategory() pulumi.StringOutput

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

func (InstanceOutput) DbInstanceClass added in v3.29.0

func (o InstanceOutput) DbInstanceClass() pulumi.StringPtrOutput

The db instance class. see [Instance specifications](https://www.alibabacloud.com/help/en/analyticdb-for-postgresql/latest/instance-types). > **NOTE:** This parameter must be passed in to create a storage reservation mode instance.

func (InstanceOutput) DbInstanceMode added in v3.29.0

func (o InstanceOutput) DbInstanceMode() pulumi.StringOutput

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

func (InstanceOutput) Description added in v3.27.0

func (o InstanceOutput) Description() pulumi.StringPtrOutput

The description of the instance.

func (InstanceOutput) ElementType

func (InstanceOutput) ElementType() reflect.Type

func (InstanceOutput) EncryptionKey added in v3.40.0

func (o InstanceOutput) EncryptionKey() pulumi.StringPtrOutput

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

func (InstanceOutput) EncryptionType added in v3.40.0

func (o InstanceOutput) EncryptionType() pulumi.StringPtrOutput

The encryption type. Valid values: `CloudDisk`. > **NOTE:** Disk encryption cannot be disabled after it is enabled.

func (InstanceOutput) Engine added in v3.27.0

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/en/analyticdb-for-postgresql/latest/api-gpdb-2016-05-03-createdbinstance) `EngineVersion`.

func (InstanceOutput) EngineVersion added in v3.27.0

func (o InstanceOutput) EngineVersion() pulumi.StringOutput

The version of the database engine used by the instance.

func (InstanceOutput) InstanceChargeType deprecated added in v3.27.0

func (o InstanceOutput) InstanceChargeType() pulumi.StringOutput

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

Deprecated: Field `instanceChargeType` has been deprecated from version 1.187.0. Use `paymentType` instead.

func (InstanceOutput) InstanceGroupCount added in v3.27.0

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

func (o InstanceOutput) InstanceNetworkType() pulumi.StringOutput

The network type of the instance. Valid values: `VPC`.

func (InstanceOutput) InstanceSpec added in v3.29.0

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

The ip whitelist. See `ipWhitelist` below. Default to creating a whitelist group with the group name "default" and securityIpList "127.0.0.1".

func (InstanceOutput) MaintainEndTime added in v3.29.0

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

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) MasterCu added in v3.45.0

func (o InstanceOutput) MasterCu() pulumi.IntOutput

The amount of coordinator node resources. Valid values: `2`, `4`, `8`, `16`, `32`.

func (InstanceOutput) MasterNodeNum deprecated added in v3.29.0

func (o InstanceOutput) MasterNodeNum() pulumi.IntPtrOutput

The number of Master nodes. **NOTE:** Field `masterNodeNum` has been deprecated from provider version 1.213.0.

Deprecated: Field `masterNodeNum` has been deprecated from provider version 1.213.0.

func (InstanceOutput) PaymentType added in v3.29.0

func (o InstanceOutput) PaymentType() pulumi.StringOutput

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

func (InstanceOutput) Period added in v3.29.0

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

func (InstanceOutput) Port added in v3.29.0

(Available since v1.196.0) The connection port of the instance.

func (InstanceOutput) PrivateIpAddress deprecated added in v3.29.0

func (o InstanceOutput) PrivateIpAddress() pulumi.StringPtrOutput

The private ip address. **NOTE:** Field `privateIpAddress` has been deprecated from provider version 1.213.0.

Deprecated: Field `privateIpAddress` has been deprecated from provider version 1.213.0.

func (InstanceOutput) ResourceGroupId added in v3.29.0

func (o InstanceOutput) ResourceGroupId() pulumi.StringOutput

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

func (InstanceOutput) SecurityIpLists deprecated added in v3.27.0

func (o InstanceOutput) SecurityIpLists() pulumi.StringArrayOutput

Field `securityIpList` has been deprecated from provider version 1.187.0. New field `ipWhitelist` instead.

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

func (InstanceOutput) SegNodeNum added in v3.29.0

func (o InstanceOutput) SegNodeNum() pulumi.IntOutput

Calculate the number of nodes. Valid values: `2` to `512`. 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 added in v3.29.0

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

func (o InstanceOutput) SslEnabled() pulumi.IntOutput

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

func (InstanceOutput) Status added in v3.29.0

func (o InstanceOutput) Status() pulumi.StringOutput

The status of the instance.

func (InstanceOutput) StorageSize added in v3.29.0

func (o InstanceOutput) StorageSize() pulumi.IntOutput

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

func (InstanceOutput) Tags added in v3.27.0

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

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) VectorConfigurationStatus added in v3.40.0

func (o InstanceOutput) VectorConfigurationStatus() pulumi.StringOutput

Specifies whether to enable vector engine optimization. Default value: `disabled`. Valid values: `enabled` and `disabled`.

func (InstanceOutput) VpcId added in v3.29.0

The vpc ID of the resource.

func (InstanceOutput) VswitchId added in v3.27.0

func (o InstanceOutput) VswitchId() pulumi.StringOutput

The vswitch id.

func (InstanceOutput) ZoneId added in v3.29.0

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
	// (Available since v1.196.0) The connection string of the instance.
	ConnectionString 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: `Basic`, `HighAvailability`.
	// > **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/en/analyticdb-for-postgresql/latest/instance-types).
	// > **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 ID of the encryption key.
	// > **NOTE:** If `encryptionType` is set to `CloudDisk`, you must specify an encryption key that resides in the same region as the cloud disk that is specified by EncryptionType. Otherwise, leave this parameter empty.
	EncryptionKey pulumi.StringPtrInput
	// The encryption type. Valid values: `CloudDisk`.
	// > **NOTE:** Disk encryption cannot be disabled after it is enabled.
	EncryptionType pulumi.StringPtrInput
	// The database engine used by the instance. Value options can refer to the latest docs [CreateDBInstance](https://www.alibabacloud.com/help/en/analyticdb-for-postgresql/latest/api-gpdb-2016-05-03-createdbinstance) `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 `instanceChargeType` has been deprecated from version 1.187.0. Use `paymentType` 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. Valid values: `VPC`.
	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. See `ipWhitelist` below.
	// Default to creating a whitelist group with the group name "default" and securityIpList "127.0.0.1".
	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 amount of coordinator node resources. Valid values: `2`, `4`, `8`, `16`, `32`.
	MasterCu pulumi.IntPtrInput
	// The number of Master nodes. **NOTE:** Field `masterNodeNum` has been deprecated from provider version 1.213.0.
	//
	// Deprecated: Field `masterNodeNum` has been deprecated from provider version 1.213.0.
	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
	// (Available since v1.196.0) The connection port of the instance.
	Port pulumi.StringPtrInput
	// The private ip address. **NOTE:** Field `privateIpAddress` has been deprecated from provider version 1.213.0.
	//
	// Deprecated: Field `privateIpAddress` has been deprecated from provider version 1.213.0.
	PrivateIpAddress pulumi.StringPtrInput
	// The ID of the enterprise resource group to which the instance belongs.
	ResourceGroupId pulumi.StringPtrInput
	// Field `securityIpList` has been deprecated from provider version 1.187.0. New field `ipWhitelist` instead.
	//
	// 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. Valid values: `2` to `512`. 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. Valid values: `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
	// Specifies whether to enable vector engine optimization. Default value: `disabled`. Valid values: `enabled` and `disabled`.
	VectorConfigurationStatus 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