adb

package
v2.39.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	pulumi.CustomResourceState

	// Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
	AccountDescription pulumi.StringPtrOutput `pulumi:"accountDescription"`
	// Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
	AccountName pulumi.StringOutput `pulumi:"accountName"`
	// Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of `accountPassword` and `kmsEncryptedPassword` fields.
	AccountPassword pulumi.StringPtrOutput `pulumi:"accountPassword"`
	// The Id of cluster in which account belongs.
	DbClusterId pulumi.StringOutput `pulumi:"dbClusterId"`
	// An KMS encrypts password used to a db account. If the `accountPassword` is filled in, this field will be ignored.
	KmsEncryptedPassword pulumi.StringPtrOutput `pulumi:"kmsEncryptedPassword"`
	// An KMS encryption context used to decrypt `kmsEncryptedPassword` before creating or updating a db account with `kmsEncryptedPassword`. See [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). It is valid when `kmsEncryptedPassword` is set.
	KmsEncryptionContext pulumi.MapOutput `pulumi:"kmsEncryptionContext"`
}

Provides a [ADB](https://www.alibabacloud.com/help/product/92664.htm) account resource and used to manage databases.

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

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/adb"
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		creation := "ADB"
		if param := cfg.Get("creation"); param != "" {
			creation = param
		}
		name := "adbaccountmysql"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		opt0 := creation
		defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableResourceCreation: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
			CidrBlock: pulumi.String("172.16.0.0/16"),
		})
		if err != nil {
			return err
		}
		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
			VpcId:            defaultNetwork.ID(),
			CidrBlock:        pulumi.String("172.16.0.0/24"),
			AvailabilityZone: pulumi.String(defaultZones.Zones[0].Id),
		})
		if err != nil {
			return err
		}
		cluster, err := adb.NewCluster(ctx, "cluster", &adb.ClusterArgs{
			DbClusterVersion:  pulumi.String("3.0"),
			DbClusterCategory: pulumi.String("Cluster"),
			DbNodeClass:       pulumi.String("C8"),
			DbNodeCount:       pulumi.Int(2),
			DbNodeStorage:     pulumi.Int(200),
			PayType:           pulumi.String("PostPaid"),
			VswitchId:         defaultSwitch.ID(),
			Description:       pulumi.String(name),
		})
		if err != nil {
			return err
		}
		_, err = adb.NewAccount(ctx, "account", &adb.AccountArgs{
			DbClusterId:        cluster.ID(),
			AccountName:        pulumi.String("tftestnormal"),
			AccountPassword:    pulumi.String("Test12345"),
			AccountDescription: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

ADB account can be imported using the id, e.g.

```sh

$ pulumi import alicloud:adb/account:Account example "am-12345:tf_account"

```

func GetAccount

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

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

func NewAccount

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

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

func (*Account) ElementType added in v2.25.1

func (*Account) ElementType() reflect.Type

func (*Account) ToAccountOutput added in v2.25.1

func (i *Account) ToAccountOutput() AccountOutput

func (*Account) ToAccountOutputWithContext added in v2.25.1

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

func (*Account) ToAccountPtrOutput added in v2.35.1

func (i *Account) ToAccountPtrOutput() AccountPtrOutput

func (*Account) ToAccountPtrOutputWithContext added in v2.35.1

func (i *Account) ToAccountPtrOutputWithContext(ctx context.Context) AccountPtrOutput

type AccountArgs

type AccountArgs struct {
	// Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
	AccountDescription pulumi.StringPtrInput
	// Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
	AccountName pulumi.StringInput
	// Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of `accountPassword` and `kmsEncryptedPassword` fields.
	AccountPassword pulumi.StringPtrInput
	// The Id of cluster in which account belongs.
	DbClusterId pulumi.StringInput
	// An KMS encrypts password used to a db account. If the `accountPassword` is filled in, this field will be ignored.
	KmsEncryptedPassword pulumi.StringPtrInput
	// An KMS encryption context used to decrypt `kmsEncryptedPassword` before creating or updating a db account with `kmsEncryptedPassword`. See [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). It is valid when `kmsEncryptedPassword` is set.
	KmsEncryptionContext pulumi.MapInput
}

The set of arguments for constructing a Account resource.

func (AccountArgs) ElementType

func (AccountArgs) ElementType() reflect.Type

type AccountArray added in v2.35.1

type AccountArray []AccountInput

func (AccountArray) ElementType added in v2.35.1

func (AccountArray) ElementType() reflect.Type

func (AccountArray) ToAccountArrayOutput added in v2.35.1

func (i AccountArray) ToAccountArrayOutput() AccountArrayOutput

func (AccountArray) ToAccountArrayOutputWithContext added in v2.35.1

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

type AccountArrayInput added in v2.35.1

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 v2.35.1

type AccountArrayOutput struct{ *pulumi.OutputState }

func (AccountArrayOutput) ElementType added in v2.35.1

func (AccountArrayOutput) ElementType() reflect.Type

func (AccountArrayOutput) Index added in v2.35.1

func (AccountArrayOutput) ToAccountArrayOutput added in v2.35.1

func (o AccountArrayOutput) ToAccountArrayOutput() AccountArrayOutput

func (AccountArrayOutput) ToAccountArrayOutputWithContext added in v2.35.1

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

type AccountInput added in v2.25.1

type AccountInput interface {
	pulumi.Input

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

type AccountMap added in v2.35.1

type AccountMap map[string]AccountInput

func (AccountMap) ElementType added in v2.35.1

func (AccountMap) ElementType() reflect.Type

func (AccountMap) ToAccountMapOutput added in v2.35.1

func (i AccountMap) ToAccountMapOutput() AccountMapOutput

func (AccountMap) ToAccountMapOutputWithContext added in v2.35.1

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

type AccountMapInput added in v2.35.1

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 v2.35.1

type AccountMapOutput struct{ *pulumi.OutputState }

func (AccountMapOutput) ElementType added in v2.35.1

func (AccountMapOutput) ElementType() reflect.Type

func (AccountMapOutput) MapIndex added in v2.35.1

func (AccountMapOutput) ToAccountMapOutput added in v2.35.1

func (o AccountMapOutput) ToAccountMapOutput() AccountMapOutput

func (AccountMapOutput) ToAccountMapOutputWithContext added in v2.35.1

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

type AccountOutput added in v2.25.1

type AccountOutput struct {
	*pulumi.OutputState
}

func (AccountOutput) ElementType added in v2.25.1

func (AccountOutput) ElementType() reflect.Type

func (AccountOutput) ToAccountOutput added in v2.25.1

func (o AccountOutput) ToAccountOutput() AccountOutput

func (AccountOutput) ToAccountOutputWithContext added in v2.25.1

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

func (AccountOutput) ToAccountPtrOutput added in v2.35.1

func (o AccountOutput) ToAccountPtrOutput() AccountPtrOutput

func (AccountOutput) ToAccountPtrOutputWithContext added in v2.35.1

func (o AccountOutput) ToAccountPtrOutputWithContext(ctx context.Context) AccountPtrOutput

type AccountPtrInput added in v2.35.1

type AccountPtrInput interface {
	pulumi.Input

	ToAccountPtrOutput() AccountPtrOutput
	ToAccountPtrOutputWithContext(ctx context.Context) AccountPtrOutput
}

type AccountPtrOutput added in v2.35.1

type AccountPtrOutput struct {
	*pulumi.OutputState
}

func (AccountPtrOutput) ElementType added in v2.35.1

func (AccountPtrOutput) ElementType() reflect.Type

func (AccountPtrOutput) ToAccountPtrOutput added in v2.35.1

func (o AccountPtrOutput) ToAccountPtrOutput() AccountPtrOutput

func (AccountPtrOutput) ToAccountPtrOutputWithContext added in v2.35.1

func (o AccountPtrOutput) ToAccountPtrOutputWithContext(ctx context.Context) AccountPtrOutput

type AccountState

type AccountState struct {
	// Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
	AccountDescription pulumi.StringPtrInput
	// Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
	AccountName pulumi.StringPtrInput
	// Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of `accountPassword` and `kmsEncryptedPassword` fields.
	AccountPassword pulumi.StringPtrInput
	// The Id of cluster in which account belongs.
	DbClusterId pulumi.StringPtrInput
	// An KMS encrypts password used to a db account. If the `accountPassword` is filled in, this field will be ignored.
	KmsEncryptedPassword pulumi.StringPtrInput
	// An KMS encryption context used to decrypt `kmsEncryptedPassword` before creating or updating a db account with `kmsEncryptedPassword`. See [Encryption Context](https://www.alibabacloud.com/help/doc-detail/42975.htm). It is valid when `kmsEncryptedPassword` is set.
	KmsEncryptionContext pulumi.MapInput
}

func (AccountState) ElementType

func (AccountState) ElementType() reflect.Type

type BackupPolicy

type BackupPolicy struct {
	pulumi.CustomResourceState

	// Cluster backup retention days, Fixed for 7 days, not modified.
	BackupRetentionPeriod pulumi.StringOutput `pulumi:"backupRetentionPeriod"`
	// The Id of cluster that can run database.
	DbClusterId pulumi.StringOutput `pulumi:"dbClusterId"`
	// ADB Cluster backup period. Valid values: [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday].
	PreferredBackupPeriods pulumi.StringArrayOutput `pulumi:"preferredBackupPeriods"`
	// ADB Cluster backup time, in the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. China time is 8 hours behind it.
	PreferredBackupTime pulumi.StringOutput `pulumi:"preferredBackupTime"`
}

## Import

ADB backup policy can be imported using the id or cluster id, e.g.

```sh

$ pulumi import alicloud:adb/backupPolicy:BackupPolicy example "am-12345678"

```

func GetBackupPolicy

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

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 v2.25.1

func (*BackupPolicy) ElementType() reflect.Type

func (*BackupPolicy) ToBackupPolicyOutput added in v2.25.1

func (i *BackupPolicy) ToBackupPolicyOutput() BackupPolicyOutput

func (*BackupPolicy) ToBackupPolicyOutputWithContext added in v2.25.1

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

func (*BackupPolicy) ToBackupPolicyPtrOutput added in v2.35.1

func (i *BackupPolicy) ToBackupPolicyPtrOutput() BackupPolicyPtrOutput

func (*BackupPolicy) ToBackupPolicyPtrOutputWithContext added in v2.35.1

func (i *BackupPolicy) ToBackupPolicyPtrOutputWithContext(ctx context.Context) BackupPolicyPtrOutput

type BackupPolicyArgs

type BackupPolicyArgs struct {
	// The Id of cluster that can run database.
	DbClusterId pulumi.StringInput
	// ADB Cluster backup period. Valid values: [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday].
	PreferredBackupPeriods pulumi.StringArrayInput
	// ADB Cluster backup time, in the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. China time is 8 hours behind it.
	PreferredBackupTime pulumi.StringInput
}

The set of arguments for constructing a BackupPolicy resource.

func (BackupPolicyArgs) ElementType

func (BackupPolicyArgs) ElementType() reflect.Type

type BackupPolicyArray added in v2.35.1

type BackupPolicyArray []BackupPolicyInput

func (BackupPolicyArray) ElementType added in v2.35.1

func (BackupPolicyArray) ElementType() reflect.Type

func (BackupPolicyArray) ToBackupPolicyArrayOutput added in v2.35.1

func (i BackupPolicyArray) ToBackupPolicyArrayOutput() BackupPolicyArrayOutput

func (BackupPolicyArray) ToBackupPolicyArrayOutputWithContext added in v2.35.1

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

type BackupPolicyArrayInput added in v2.35.1

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 v2.35.1

type BackupPolicyArrayOutput struct{ *pulumi.OutputState }

func (BackupPolicyArrayOutput) ElementType added in v2.35.1

func (BackupPolicyArrayOutput) ElementType() reflect.Type

func (BackupPolicyArrayOutput) Index added in v2.35.1

func (BackupPolicyArrayOutput) ToBackupPolicyArrayOutput added in v2.35.1

func (o BackupPolicyArrayOutput) ToBackupPolicyArrayOutput() BackupPolicyArrayOutput

func (BackupPolicyArrayOutput) ToBackupPolicyArrayOutputWithContext added in v2.35.1

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

type BackupPolicyInput added in v2.25.1

type BackupPolicyInput interface {
	pulumi.Input

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

type BackupPolicyMap added in v2.35.1

type BackupPolicyMap map[string]BackupPolicyInput

func (BackupPolicyMap) ElementType added in v2.35.1

func (BackupPolicyMap) ElementType() reflect.Type

func (BackupPolicyMap) ToBackupPolicyMapOutput added in v2.35.1

func (i BackupPolicyMap) ToBackupPolicyMapOutput() BackupPolicyMapOutput

func (BackupPolicyMap) ToBackupPolicyMapOutputWithContext added in v2.35.1

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

type BackupPolicyMapInput added in v2.35.1

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 v2.35.1

type BackupPolicyMapOutput struct{ *pulumi.OutputState }

func (BackupPolicyMapOutput) ElementType added in v2.35.1

func (BackupPolicyMapOutput) ElementType() reflect.Type

func (BackupPolicyMapOutput) MapIndex added in v2.35.1

func (BackupPolicyMapOutput) ToBackupPolicyMapOutput added in v2.35.1

func (o BackupPolicyMapOutput) ToBackupPolicyMapOutput() BackupPolicyMapOutput

func (BackupPolicyMapOutput) ToBackupPolicyMapOutputWithContext added in v2.35.1

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

type BackupPolicyOutput added in v2.25.1

type BackupPolicyOutput struct {
	*pulumi.OutputState
}

func (BackupPolicyOutput) ElementType added in v2.25.1

func (BackupPolicyOutput) ElementType() reflect.Type

func (BackupPolicyOutput) ToBackupPolicyOutput added in v2.25.1

func (o BackupPolicyOutput) ToBackupPolicyOutput() BackupPolicyOutput

func (BackupPolicyOutput) ToBackupPolicyOutputWithContext added in v2.25.1

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

func (BackupPolicyOutput) ToBackupPolicyPtrOutput added in v2.35.1

func (o BackupPolicyOutput) ToBackupPolicyPtrOutput() BackupPolicyPtrOutput

func (BackupPolicyOutput) ToBackupPolicyPtrOutputWithContext added in v2.35.1

func (o BackupPolicyOutput) ToBackupPolicyPtrOutputWithContext(ctx context.Context) BackupPolicyPtrOutput

type BackupPolicyPtrInput added in v2.35.1

type BackupPolicyPtrInput interface {
	pulumi.Input

	ToBackupPolicyPtrOutput() BackupPolicyPtrOutput
	ToBackupPolicyPtrOutputWithContext(ctx context.Context) BackupPolicyPtrOutput
}

type BackupPolicyPtrOutput added in v2.35.1

type BackupPolicyPtrOutput struct {
	*pulumi.OutputState
}

func (BackupPolicyPtrOutput) ElementType added in v2.35.1

func (BackupPolicyPtrOutput) ElementType() reflect.Type

func (BackupPolicyPtrOutput) ToBackupPolicyPtrOutput added in v2.35.1

func (o BackupPolicyPtrOutput) ToBackupPolicyPtrOutput() BackupPolicyPtrOutput

func (BackupPolicyPtrOutput) ToBackupPolicyPtrOutputWithContext added in v2.35.1

func (o BackupPolicyPtrOutput) ToBackupPolicyPtrOutputWithContext(ctx context.Context) BackupPolicyPtrOutput

type BackupPolicyState

type BackupPolicyState struct {
	// Cluster backup retention days, Fixed for 7 days, not modified.
	BackupRetentionPeriod pulumi.StringPtrInput
	// The Id of cluster that can run database.
	DbClusterId pulumi.StringPtrInput
	// ADB Cluster backup period. Valid values: [Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday].
	PreferredBackupPeriods pulumi.StringArrayInput
	// ADB Cluster backup time, in the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. China time is 8 hours behind it.
	PreferredBackupTime pulumi.StringPtrInput
}

func (BackupPolicyState) ElementType

func (BackupPolicyState) ElementType() reflect.Type

type Cluster

type Cluster struct {
	pulumi.CustomResourceState

	// Auto-renewal period of an cluster, in the unit of the month. It is valid when payType is `PrePaid`. Valid value:1, 2, 3, 6, 12, 24, 36, Default to 1.
	AutoRenewPeriod pulumi.IntPtrOutput    `pulumi:"autoRenewPeriod"`
	ComputeResource pulumi.StringPtrOutput `pulumi:"computeResource"`
	// (Available in 1.93.0+) The connection string of the ADB cluster.
	ConnectionString pulumi.StringOutput `pulumi:"connectionString"`
	// Cluster category. Value options: `Basic`, `Cluster`.
	DbClusterCategory pulumi.StringOutput    `pulumi:"dbClusterCategory"`
	DbClusterClass    pulumi.StringPtrOutput `pulumi:"dbClusterClass"`
	// Cluster version. Value options: `3.0`, Default to `3.0`.
	DbClusterVersion pulumi.StringPtrOutput `pulumi:"dbClusterVersion"`
	// The dbNodeClass of cluster node.
	DbNodeClass pulumi.StringOutput `pulumi:"dbNodeClass"`
	// The dbNodeCount of cluster node.
	DbNodeCount pulumi.IntPtrOutput `pulumi:"dbNodeCount"`
	// The dbNodeStorage of cluster node.
	DbNodeStorage pulumi.IntPtrOutput `pulumi:"dbNodeStorage"`
	// The description of cluster.
	Description       pulumi.StringOutput `pulumi:"description"`
	ElasticIoResource pulumi.IntPtrOutput `pulumi:"elasticIoResource"`
	// Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
	MaintainTime pulumi.StringOutput    `pulumi:"maintainTime"`
	Mode         pulumi.StringPtrOutput `pulumi:"mode"`
	ModifyType   pulumi.StringPtrOutput `pulumi:"modifyType"`
	// Valid values are `PrePaid`, `PostPaid`, Default to `PostPaid`. Currently, the resource can not supports change pay type.
	PayType     pulumi.StringOutput `pulumi:"payType"`
	PaymentType pulumi.StringOutput `pulumi:"paymentType"`
	// The duration that you will buy DB cluster (in month). It is valid when payType is `PrePaid`. Valid values: [1~9], 12, 24, 36. Default to 1.
	Period pulumi.IntPtrOutput `pulumi:"period"`
	// Valid values are `AutoRenewal`, `Normal`, `NotRenewal`, Default to `NotRenewal`.
	RenewalStatus   pulumi.StringPtrOutput `pulumi:"renewalStatus"`
	ResourceGroupId pulumi.StringOutput    `pulumi:"resourceGroupId"`
	// List of IP addresses allowed to access all databases of an cluster. 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]).
	SecurityIps pulumi.StringArrayOutput `pulumi:"securityIps"`
	Status      pulumi.StringOutput      `pulumi:"status"`
	// A mapping of tags to assign to the resource.
	// - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
	// - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
	Tags pulumi.MapOutput `pulumi:"tags"`
	// The virtual switch ID to launch DB instances in one VPC.
	VswitchId pulumi.StringPtrOutput `pulumi:"vswitchId"`
	// The Zone to launch the DB cluster.
	ZoneId pulumi.StringOutput `pulumi:"zoneId"`
}

## Import

ADB cluster can be imported using the id, e.g.

```sh

$ pulumi import alicloud:adb/cluster:Cluster example am-abc12345678

```

func GetCluster

func GetCluster(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ClusterState, opts ...pulumi.ResourceOption) (*Cluster, error)

GetCluster gets an existing Cluster 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 NewCluster

func NewCluster(ctx *pulumi.Context,
	name string, args *ClusterArgs, opts ...pulumi.ResourceOption) (*Cluster, error)

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

func (*Cluster) ElementType added in v2.25.1

func (*Cluster) ElementType() reflect.Type

func (*Cluster) ToClusterOutput added in v2.25.1

func (i *Cluster) ToClusterOutput() ClusterOutput

func (*Cluster) ToClusterOutputWithContext added in v2.25.1

func (i *Cluster) ToClusterOutputWithContext(ctx context.Context) ClusterOutput

func (*Cluster) ToClusterPtrOutput added in v2.35.1

func (i *Cluster) ToClusterPtrOutput() ClusterPtrOutput

func (*Cluster) ToClusterPtrOutputWithContext added in v2.35.1

func (i *Cluster) ToClusterPtrOutputWithContext(ctx context.Context) ClusterPtrOutput

type ClusterArgs

type ClusterArgs struct {
	// Auto-renewal period of an cluster, in the unit of the month. It is valid when payType is `PrePaid`. Valid value:1, 2, 3, 6, 12, 24, 36, Default to 1.
	AutoRenewPeriod pulumi.IntPtrInput
	ComputeResource pulumi.StringPtrInput
	// Cluster category. Value options: `Basic`, `Cluster`.
	DbClusterCategory pulumi.StringInput
	DbClusterClass    pulumi.StringPtrInput
	// Cluster version. Value options: `3.0`, Default to `3.0`.
	DbClusterVersion pulumi.StringPtrInput
	// The dbNodeClass of cluster node.
	DbNodeClass pulumi.StringPtrInput
	// The dbNodeCount of cluster node.
	DbNodeCount pulumi.IntPtrInput
	// The dbNodeStorage of cluster node.
	DbNodeStorage pulumi.IntPtrInput
	// The description of cluster.
	Description       pulumi.StringPtrInput
	ElasticIoResource pulumi.IntPtrInput
	// Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
	MaintainTime pulumi.StringPtrInput
	Mode         pulumi.StringPtrInput
	ModifyType   pulumi.StringPtrInput
	// Valid values are `PrePaid`, `PostPaid`, Default to `PostPaid`. Currently, the resource can not supports change pay type.
	PayType     pulumi.StringPtrInput
	PaymentType pulumi.StringPtrInput
	// The duration that you will buy DB cluster (in month). It is valid when payType is `PrePaid`. Valid values: [1~9], 12, 24, 36. Default to 1.
	Period pulumi.IntPtrInput
	// Valid values are `AutoRenewal`, `Normal`, `NotRenewal`, Default to `NotRenewal`.
	RenewalStatus   pulumi.StringPtrInput
	ResourceGroupId pulumi.StringPtrInput
	// List of IP addresses allowed to access all databases of an cluster. 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]).
	SecurityIps pulumi.StringArrayInput
	// A mapping of tags to assign to the resource.
	// - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
	// - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
	Tags pulumi.MapInput
	// The virtual switch ID to launch DB instances in one VPC.
	VswitchId pulumi.StringPtrInput
	// The Zone to launch the DB cluster.
	ZoneId pulumi.StringPtrInput
}

The set of arguments for constructing a Cluster resource.

func (ClusterArgs) ElementType

func (ClusterArgs) ElementType() reflect.Type

type ClusterArray added in v2.35.1

type ClusterArray []ClusterInput

func (ClusterArray) ElementType added in v2.35.1

func (ClusterArray) ElementType() reflect.Type

func (ClusterArray) ToClusterArrayOutput added in v2.35.1

func (i ClusterArray) ToClusterArrayOutput() ClusterArrayOutput

func (ClusterArray) ToClusterArrayOutputWithContext added in v2.35.1

func (i ClusterArray) ToClusterArrayOutputWithContext(ctx context.Context) ClusterArrayOutput

type ClusterArrayInput added in v2.35.1

type ClusterArrayInput interface {
	pulumi.Input

	ToClusterArrayOutput() ClusterArrayOutput
	ToClusterArrayOutputWithContext(context.Context) ClusterArrayOutput
}

ClusterArrayInput is an input type that accepts ClusterArray and ClusterArrayOutput values. You can construct a concrete instance of `ClusterArrayInput` via:

ClusterArray{ ClusterArgs{...} }

type ClusterArrayOutput added in v2.35.1

type ClusterArrayOutput struct{ *pulumi.OutputState }

func (ClusterArrayOutput) ElementType added in v2.35.1

func (ClusterArrayOutput) ElementType() reflect.Type

func (ClusterArrayOutput) Index added in v2.35.1

func (ClusterArrayOutput) ToClusterArrayOutput added in v2.35.1

func (o ClusterArrayOutput) ToClusterArrayOutput() ClusterArrayOutput

func (ClusterArrayOutput) ToClusterArrayOutputWithContext added in v2.35.1

func (o ClusterArrayOutput) ToClusterArrayOutputWithContext(ctx context.Context) ClusterArrayOutput

type ClusterInput added in v2.25.1

type ClusterInput interface {
	pulumi.Input

	ToClusterOutput() ClusterOutput
	ToClusterOutputWithContext(ctx context.Context) ClusterOutput
}

type ClusterMap added in v2.35.1

type ClusterMap map[string]ClusterInput

func (ClusterMap) ElementType added in v2.35.1

func (ClusterMap) ElementType() reflect.Type

func (ClusterMap) ToClusterMapOutput added in v2.35.1

func (i ClusterMap) ToClusterMapOutput() ClusterMapOutput

func (ClusterMap) ToClusterMapOutputWithContext added in v2.35.1

func (i ClusterMap) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput

type ClusterMapInput added in v2.35.1

type ClusterMapInput interface {
	pulumi.Input

	ToClusterMapOutput() ClusterMapOutput
	ToClusterMapOutputWithContext(context.Context) ClusterMapOutput
}

ClusterMapInput is an input type that accepts ClusterMap and ClusterMapOutput values. You can construct a concrete instance of `ClusterMapInput` via:

ClusterMap{ "key": ClusterArgs{...} }

type ClusterMapOutput added in v2.35.1

type ClusterMapOutput struct{ *pulumi.OutputState }

func (ClusterMapOutput) ElementType added in v2.35.1

func (ClusterMapOutput) ElementType() reflect.Type

func (ClusterMapOutput) MapIndex added in v2.35.1

func (ClusterMapOutput) ToClusterMapOutput added in v2.35.1

func (o ClusterMapOutput) ToClusterMapOutput() ClusterMapOutput

func (ClusterMapOutput) ToClusterMapOutputWithContext added in v2.35.1

func (o ClusterMapOutput) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput

type ClusterOutput added in v2.25.1

type ClusterOutput struct {
	*pulumi.OutputState
}

func (ClusterOutput) ElementType added in v2.25.1

func (ClusterOutput) ElementType() reflect.Type

func (ClusterOutput) ToClusterOutput added in v2.25.1

func (o ClusterOutput) ToClusterOutput() ClusterOutput

func (ClusterOutput) ToClusterOutputWithContext added in v2.25.1

func (o ClusterOutput) ToClusterOutputWithContext(ctx context.Context) ClusterOutput

func (ClusterOutput) ToClusterPtrOutput added in v2.35.1

func (o ClusterOutput) ToClusterPtrOutput() ClusterPtrOutput

func (ClusterOutput) ToClusterPtrOutputWithContext added in v2.35.1

func (o ClusterOutput) ToClusterPtrOutputWithContext(ctx context.Context) ClusterPtrOutput

type ClusterPtrInput added in v2.35.1

type ClusterPtrInput interface {
	pulumi.Input

	ToClusterPtrOutput() ClusterPtrOutput
	ToClusterPtrOutputWithContext(ctx context.Context) ClusterPtrOutput
}

type ClusterPtrOutput added in v2.35.1

type ClusterPtrOutput struct {
	*pulumi.OutputState
}

func (ClusterPtrOutput) ElementType added in v2.35.1

func (ClusterPtrOutput) ElementType() reflect.Type

func (ClusterPtrOutput) ToClusterPtrOutput added in v2.35.1

func (o ClusterPtrOutput) ToClusterPtrOutput() ClusterPtrOutput

func (ClusterPtrOutput) ToClusterPtrOutputWithContext added in v2.35.1

func (o ClusterPtrOutput) ToClusterPtrOutputWithContext(ctx context.Context) ClusterPtrOutput

type ClusterState

type ClusterState struct {
	// Auto-renewal period of an cluster, in the unit of the month. It is valid when payType is `PrePaid`. Valid value:1, 2, 3, 6, 12, 24, 36, Default to 1.
	AutoRenewPeriod pulumi.IntPtrInput
	ComputeResource pulumi.StringPtrInput
	// (Available in 1.93.0+) The connection string of the ADB cluster.
	ConnectionString pulumi.StringPtrInput
	// Cluster category. Value options: `Basic`, `Cluster`.
	DbClusterCategory pulumi.StringPtrInput
	DbClusterClass    pulumi.StringPtrInput
	// Cluster version. Value options: `3.0`, Default to `3.0`.
	DbClusterVersion pulumi.StringPtrInput
	// The dbNodeClass of cluster node.
	DbNodeClass pulumi.StringPtrInput
	// The dbNodeCount of cluster node.
	DbNodeCount pulumi.IntPtrInput
	// The dbNodeStorage of cluster node.
	DbNodeStorage pulumi.IntPtrInput
	// The description of cluster.
	Description       pulumi.StringPtrInput
	ElasticIoResource pulumi.IntPtrInput
	// Maintainable time period format of the instance: HH:MMZ-HH:MMZ (UTC time)
	MaintainTime pulumi.StringPtrInput
	Mode         pulumi.StringPtrInput
	ModifyType   pulumi.StringPtrInput
	// Valid values are `PrePaid`, `PostPaid`, Default to `PostPaid`. Currently, the resource can not supports change pay type.
	PayType     pulumi.StringPtrInput
	PaymentType pulumi.StringPtrInput
	// The duration that you will buy DB cluster (in month). It is valid when payType is `PrePaid`. Valid values: [1~9], 12, 24, 36. Default to 1.
	Period pulumi.IntPtrInput
	// Valid values are `AutoRenewal`, `Normal`, `NotRenewal`, Default to `NotRenewal`.
	RenewalStatus   pulumi.StringPtrInput
	ResourceGroupId pulumi.StringPtrInput
	// List of IP addresses allowed to access all databases of an cluster. 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]).
	SecurityIps pulumi.StringArrayInput
	Status      pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	// - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
	// - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
	Tags pulumi.MapInput
	// The virtual switch ID to launch DB instances in one VPC.
	VswitchId pulumi.StringPtrInput
	// The Zone to launch the DB cluster.
	ZoneId pulumi.StringPtrInput
}

func (ClusterState) ElementType

func (ClusterState) ElementType() reflect.Type

type Connection added in v2.3.3

type Connection struct {
	pulumi.CustomResourceState

	// Prefix of the cluster public endpoint. The prefix must be 6 to 30 characters in length, and can contain lowercase letters, digits, and hyphens (-), must start with a letter and end with a digit or letter. Default to `<db_cluster_id> + tf`.
	ConnectionPrefix pulumi.StringOutput `pulumi:"connectionPrefix"`
	// Connection cluster string.
	ConnectionString pulumi.StringOutput `pulumi:"connectionString"`
	// The Id of cluster that can run database.
	DbClusterId pulumi.StringOutput `pulumi:"dbClusterId"`
	// The ip address of connection string.
	IpAddress pulumi.StringOutput `pulumi:"ipAddress"`
	// Connection cluster port.
	Port pulumi.StringOutput `pulumi:"port"`
}

Provides an ADB connection resource to allocate an Internet connection string for ADB cluster.

> **NOTE:** Each ADB instance will allocate a intranet connnection string automatically and its prifix is ADB instance ID.

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

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

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/adb"
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		creation := "ADB"
		if param := cfg.Get("creation"); param != "" {
			creation = param
		}
		name := "adbaccountmysql"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		opt0 := creation
		defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableResourceCreation: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
			VpcName:   pulumi.String(name),
			CidrBlock: pulumi.String("172.16.0.0/16"),
		})
		if err != nil {
			return err
		}
		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
			VpcId:            defaultNetwork.ID(),
			CidrBlock:        pulumi.String("172.16.0.0/24"),
			AvailabilityZone: pulumi.String(defaultZones.Zones[0].Id),
			VswitchName:      pulumi.String(name),
		})
		if err != nil {
			return err
		}
		cluster, err := adb.NewCluster(ctx, "cluster", &adb.ClusterArgs{
			DbClusterVersion:  pulumi.String("3.0"),
			DbClusterCategory: pulumi.String("Cluster"),
			DbNodeClass:       pulumi.String("C8"),
			DbNodeCount:       pulumi.Int(2),
			DbNodeStorage:     pulumi.Int(200),
			PayType:           pulumi.String("PostPaid"),
			VswitchId:         defaultSwitch.ID(),
			Description:       pulumi.String(name),
		})
		if err != nil {
			return err
		}
		_, err = adb.NewConnection(ctx, "connection", &adb.ConnectionArgs{
			DbClusterId:      cluster.ID(),
			ConnectionPrefix: pulumi.String("testabc"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

ADB connection can be imported using the id, e.g.

```sh

$ pulumi import alicloud:adb/connection:Connection example am-12345678

```

func GetConnection added in v2.3.3

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 added in v2.3.3

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 added in v2.25.1

func (*Connection) ElementType() reflect.Type

func (*Connection) ToConnectionOutput added in v2.25.1

func (i *Connection) ToConnectionOutput() ConnectionOutput

func (*Connection) ToConnectionOutputWithContext added in v2.25.1

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

func (*Connection) ToConnectionPtrOutput added in v2.35.1

func (i *Connection) ToConnectionPtrOutput() ConnectionPtrOutput

func (*Connection) ToConnectionPtrOutputWithContext added in v2.35.1

func (i *Connection) ToConnectionPtrOutputWithContext(ctx context.Context) ConnectionPtrOutput

type ConnectionArgs added in v2.3.3

type ConnectionArgs struct {
	// Prefix of the cluster public endpoint. The prefix must be 6 to 30 characters in length, and can contain lowercase letters, digits, and hyphens (-), must start with a letter and end with a digit or letter. Default to `<db_cluster_id> + tf`.
	ConnectionPrefix pulumi.StringPtrInput
	// The Id of cluster that can run database.
	DbClusterId pulumi.StringInput
}

The set of arguments for constructing a Connection resource.

func (ConnectionArgs) ElementType added in v2.3.3

func (ConnectionArgs) ElementType() reflect.Type

type ConnectionArray added in v2.35.1

type ConnectionArray []ConnectionInput

func (ConnectionArray) ElementType added in v2.35.1

func (ConnectionArray) ElementType() reflect.Type

func (ConnectionArray) ToConnectionArrayOutput added in v2.35.1

func (i ConnectionArray) ToConnectionArrayOutput() ConnectionArrayOutput

func (ConnectionArray) ToConnectionArrayOutputWithContext added in v2.35.1

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

type ConnectionArrayInput added in v2.35.1

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 added in v2.35.1

type ConnectionArrayOutput struct{ *pulumi.OutputState }

func (ConnectionArrayOutput) ElementType added in v2.35.1

func (ConnectionArrayOutput) ElementType() reflect.Type

func (ConnectionArrayOutput) Index added in v2.35.1

func (ConnectionArrayOutput) ToConnectionArrayOutput added in v2.35.1

func (o ConnectionArrayOutput) ToConnectionArrayOutput() ConnectionArrayOutput

func (ConnectionArrayOutput) ToConnectionArrayOutputWithContext added in v2.35.1

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

type ConnectionInput added in v2.25.1

type ConnectionInput interface {
	pulumi.Input

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

type ConnectionMap added in v2.35.1

type ConnectionMap map[string]ConnectionInput

func (ConnectionMap) ElementType added in v2.35.1

func (ConnectionMap) ElementType() reflect.Type

func (ConnectionMap) ToConnectionMapOutput added in v2.35.1

func (i ConnectionMap) ToConnectionMapOutput() ConnectionMapOutput

func (ConnectionMap) ToConnectionMapOutputWithContext added in v2.35.1

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

type ConnectionMapInput added in v2.35.1

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 added in v2.35.1

type ConnectionMapOutput struct{ *pulumi.OutputState }

func (ConnectionMapOutput) ElementType added in v2.35.1

func (ConnectionMapOutput) ElementType() reflect.Type

func (ConnectionMapOutput) MapIndex added in v2.35.1

func (ConnectionMapOutput) ToConnectionMapOutput added in v2.35.1

func (o ConnectionMapOutput) ToConnectionMapOutput() ConnectionMapOutput

func (ConnectionMapOutput) ToConnectionMapOutputWithContext added in v2.35.1

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

type ConnectionOutput added in v2.25.1

type ConnectionOutput struct {
	*pulumi.OutputState
}

func (ConnectionOutput) ElementType added in v2.25.1

func (ConnectionOutput) ElementType() reflect.Type

func (ConnectionOutput) ToConnectionOutput added in v2.25.1

func (o ConnectionOutput) ToConnectionOutput() ConnectionOutput

func (ConnectionOutput) ToConnectionOutputWithContext added in v2.25.1

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

func (ConnectionOutput) ToConnectionPtrOutput added in v2.35.1

func (o ConnectionOutput) ToConnectionPtrOutput() ConnectionPtrOutput

func (ConnectionOutput) ToConnectionPtrOutputWithContext added in v2.35.1

func (o ConnectionOutput) ToConnectionPtrOutputWithContext(ctx context.Context) ConnectionPtrOutput

type ConnectionPtrInput added in v2.35.1

type ConnectionPtrInput interface {
	pulumi.Input

	ToConnectionPtrOutput() ConnectionPtrOutput
	ToConnectionPtrOutputWithContext(ctx context.Context) ConnectionPtrOutput
}

type ConnectionPtrOutput added in v2.35.1

type ConnectionPtrOutput struct {
	*pulumi.OutputState
}

func (ConnectionPtrOutput) ElementType added in v2.35.1

func (ConnectionPtrOutput) ElementType() reflect.Type

func (ConnectionPtrOutput) ToConnectionPtrOutput added in v2.35.1

func (o ConnectionPtrOutput) ToConnectionPtrOutput() ConnectionPtrOutput

func (ConnectionPtrOutput) ToConnectionPtrOutputWithContext added in v2.35.1

func (o ConnectionPtrOutput) ToConnectionPtrOutputWithContext(ctx context.Context) ConnectionPtrOutput

type ConnectionState added in v2.3.3

type ConnectionState struct {
	// Prefix of the cluster public endpoint. The prefix must be 6 to 30 characters in length, and can contain lowercase letters, digits, and hyphens (-), must start with a letter and end with a digit or letter. Default to `<db_cluster_id> + tf`.
	ConnectionPrefix pulumi.StringPtrInput
	// Connection cluster string.
	ConnectionString pulumi.StringPtrInput
	// The Id of cluster that can run database.
	DbClusterId pulumi.StringPtrInput
	// The ip address of connection string.
	IpAddress pulumi.StringPtrInput
	// Connection cluster port.
	Port pulumi.StringPtrInput
}

func (ConnectionState) ElementType added in v2.3.3

func (ConnectionState) ElementType() reflect.Type

type DBCluster added in v2.39.1

type DBCluster struct {
	pulumi.CustomResourceState

	// Auto-renewal period of an cluster, in the unit of the month. It is valid when `paymentType` is `Subscription`. Valid values: `1`, `2`, `3`, `6`, `12`, `24`, `36`. Default to `1`.
	AutoRenewPeriod pulumi.IntPtrOutput `pulumi:"autoRenewPeriod"`
	// The specifications of computing resources in elastic mode. The increase of resources can speed up queries. AnalyticDB for MySQL automatically scales computing resources. For more information, see [ComputeResource](https://www.alibabacloud.com/help/en/doc-detail/144851.htm)
	ComputeResource pulumi.StringPtrOutput `pulumi:"computeResource"`
	// The endpoint of the cluster.
	ConnectionString pulumi.StringOutput `pulumi:"connectionString"`
	// The db cluster category. Valid values: `Basic`, `Cluster`, `MixedStorage`.
	DbClusterCategory pulumi.StringOutput `pulumi:"dbClusterCategory"`
	// The db cluster class. For more information, see [DBClusterClass](https://help.aliyun.com/document_detail/190519.html)
	DbClusterClass pulumi.StringPtrOutput `pulumi:"dbClusterClass"`
	// The db cluster version. Value options: `3.0`, Default to `3.0`.
	DbClusterVersion pulumi.StringPtrOutput `pulumi:"dbClusterVersion"`
	// The db node class.
	DbNodeClass pulumi.StringOutput `pulumi:"dbNodeClass"`
	// The db node count.
	DbNodeCount pulumi.IntPtrOutput `pulumi:"dbNodeCount"`
	// The db node storage.
	DbNodeStorage pulumi.IntPtrOutput `pulumi:"dbNodeStorage"`
	// The description of DBCluster.
	Description pulumi.StringOutput `pulumi:"description"`
	// The elastic io resource.
	ElasticIoResource pulumi.IntPtrOutput `pulumi:"elasticIoResource"`
	// The maintenance window of the cluster. Format: hh:mmZ-hh:mmZ.
	MaintainTime pulumi.StringOutput `pulumi:"maintainTime"`
	// The mode of the cluster. Valid values: `reserver`, `flexible`.
	Mode pulumi.StringPtrOutput `pulumi:"mode"`
	// The modify type.
	ModifyType pulumi.StringPtrOutput `pulumi:"modifyType"`
	// Field `payType` has been deprecated. New field `paymentType` instead.
	PayType pulumi.StringOutput `pulumi:"payType"`
	// The payment type of the resource. Valid values are `PayAsYouGo` and `Subscription`. Default to `PayAsYouGo`.
	PaymentType pulumi.StringOutput `pulumi:"paymentType"`
	// The duration that you will buy DB cluster (in month). It is valid when `paymentType` is `Subscription`. Valid values: [1~9], 12, 24, 36. Default to 1.
	Period pulumi.IntPtrOutput `pulumi:"period"`
	// Valid values are `AutoRenewal`, `Normal`, `NotRenewal`, Default to `NotRenewal`.
	RenewalStatus pulumi.StringPtrOutput `pulumi:"renewalStatus"`
	// The ID of the resource group.
	ResourceGroupId pulumi.StringOutput `pulumi:"resourceGroupId"`
	// List of IP addresses allowed to access all databases of an cluster. 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]).
	SecurityIps pulumi.StringArrayOutput `pulumi:"securityIps"`
	// The status of the resource.
	Status pulumi.StringOutput `pulumi:"status"`
	// A mapping of tags to assign to the resource.
	// - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
	// - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
	Tags pulumi.MapOutput `pulumi:"tags"`
	// The vswitch id.
	VswitchId pulumi.StringPtrOutput `pulumi:"vswitchId"`
	// The zone ID of the resource.
	ZoneId pulumi.StringOutput `pulumi:"zoneId"`
}

Provides a AnalyticDB for MySQL (ADB) DBCluster resource.

For information about AnalyticDB for MySQL (ADB) DBCluster and how to use it, see [What is DBCluster](https://www.alibabacloud.com/help/en/doc-detail/190519.htm).

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

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/adb"
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "adbClusterconfig"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		creation := "ADB"
		if param := cfg.Get("creation"); param != "" {
			creation = param
		}
		opt0 := creation
		defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableResourceCreation: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
			VpcName:   pulumi.String(name),
			CidrBlock: pulumi.String("172.16.0.0/16"),
		})
		if err != nil {
			return err
		}
		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
			VpcId:            defaultNetwork.ID(),
			CidrBlock:        pulumi.String("172.16.0.0/24"),
			AvailabilityZone: pulumi.String(defaultZones.Zones[0].Id),
			VswitchName:      pulumi.String(name),
		})
		if err != nil {
			return err
		}
		_, err = adb.NewDBCluster(ctx, "this", &adb.DBClusterArgs{
			DbClusterCategory: pulumi.String("Cluster"),
			DbClusterClass:    pulumi.String("C8"),
			DbNodeCount:       pulumi.Int(4),
			DbNodeStorage:     pulumi.Int(400),
			Mode:              pulumi.String("reserver"),
			DbClusterVersion:  pulumi.String("3.0"),
			PaymentType:       pulumi.String("PayAsYouGo"),
			VswitchId:         defaultSwitch.ID(),
			Description:       pulumi.String("Test new adb again."),
			MaintainTime:      pulumi.String("23:00Z-00:00Z"),
			Tags: pulumi.StringMap{
				"Created": pulumi.String("TF-update"),
				"For":     pulumi.String("acceptance-test-update"),
			},
			ResourceGroupId: pulumi.String("rg-aek2s7ylxx6****"),
			SecurityIps: pulumi.StringArray{
				pulumi.String("10.168.1.12"),
				pulumi.String("10.168.1.11"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

AnalyticDB for MySQL (ADB) DBCluster can be imported using the id, e.g.

```sh

$ pulumi import alicloud:adb/dBCluster:DBCluster example <id>

```

func GetDBCluster added in v2.39.1

func GetDBCluster(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DBClusterState, opts ...pulumi.ResourceOption) (*DBCluster, error)

GetDBCluster gets an existing DBCluster 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 NewDBCluster added in v2.39.1

func NewDBCluster(ctx *pulumi.Context,
	name string, args *DBClusterArgs, opts ...pulumi.ResourceOption) (*DBCluster, error)

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

func (*DBCluster) ElementType added in v2.39.1

func (*DBCluster) ElementType() reflect.Type

func (*DBCluster) ToDBClusterOutput added in v2.39.1

func (i *DBCluster) ToDBClusterOutput() DBClusterOutput

func (*DBCluster) ToDBClusterOutputWithContext added in v2.39.1

func (i *DBCluster) ToDBClusterOutputWithContext(ctx context.Context) DBClusterOutput

func (*DBCluster) ToDBClusterPtrOutput added in v2.39.1

func (i *DBCluster) ToDBClusterPtrOutput() DBClusterPtrOutput

func (*DBCluster) ToDBClusterPtrOutputWithContext added in v2.39.1

func (i *DBCluster) ToDBClusterPtrOutputWithContext(ctx context.Context) DBClusterPtrOutput

type DBClusterArgs added in v2.39.1

type DBClusterArgs struct {
	// Auto-renewal period of an cluster, in the unit of the month. It is valid when `paymentType` is `Subscription`. Valid values: `1`, `2`, `3`, `6`, `12`, `24`, `36`. Default to `1`.
	AutoRenewPeriod pulumi.IntPtrInput
	// The specifications of computing resources in elastic mode. The increase of resources can speed up queries. AnalyticDB for MySQL automatically scales computing resources. For more information, see [ComputeResource](https://www.alibabacloud.com/help/en/doc-detail/144851.htm)
	ComputeResource pulumi.StringPtrInput
	// The db cluster category. Valid values: `Basic`, `Cluster`, `MixedStorage`.
	DbClusterCategory pulumi.StringInput
	// The db cluster class. For more information, see [DBClusterClass](https://help.aliyun.com/document_detail/190519.html)
	DbClusterClass pulumi.StringPtrInput
	// The db cluster version. Value options: `3.0`, Default to `3.0`.
	DbClusterVersion pulumi.StringPtrInput
	// The db node class.
	DbNodeClass pulumi.StringPtrInput
	// The db node count.
	DbNodeCount pulumi.IntPtrInput
	// The db node storage.
	DbNodeStorage pulumi.IntPtrInput
	// The description of DBCluster.
	Description pulumi.StringPtrInput
	// The elastic io resource.
	ElasticIoResource pulumi.IntPtrInput
	// The maintenance window of the cluster. Format: hh:mmZ-hh:mmZ.
	MaintainTime pulumi.StringPtrInput
	// The mode of the cluster. Valid values: `reserver`, `flexible`.
	Mode pulumi.StringPtrInput
	// The modify type.
	ModifyType pulumi.StringPtrInput
	// Field `payType` has been deprecated. New field `paymentType` instead.
	PayType pulumi.StringPtrInput
	// The payment type of the resource. Valid values are `PayAsYouGo` and `Subscription`. Default to `PayAsYouGo`.
	PaymentType pulumi.StringPtrInput
	// The duration that you will buy DB cluster (in month). It is valid when `paymentType` is `Subscription`. Valid values: [1~9], 12, 24, 36. Default to 1.
	Period pulumi.IntPtrInput
	// Valid values are `AutoRenewal`, `Normal`, `NotRenewal`, Default to `NotRenewal`.
	RenewalStatus pulumi.StringPtrInput
	// The ID of the resource group.
	ResourceGroupId pulumi.StringPtrInput
	// List of IP addresses allowed to access all databases of an cluster. 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]).
	SecurityIps pulumi.StringArrayInput
	// A mapping of tags to assign to the resource.
	// - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
	// - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
	Tags pulumi.MapInput
	// The vswitch id.
	VswitchId pulumi.StringPtrInput
	// The zone ID of the resource.
	ZoneId pulumi.StringPtrInput
}

The set of arguments for constructing a DBCluster resource.

func (DBClusterArgs) ElementType added in v2.39.1

func (DBClusterArgs) ElementType() reflect.Type

type DBClusterArray added in v2.39.1

type DBClusterArray []DBClusterInput

func (DBClusterArray) ElementType added in v2.39.1

func (DBClusterArray) ElementType() reflect.Type

func (DBClusterArray) ToDBClusterArrayOutput added in v2.39.1

func (i DBClusterArray) ToDBClusterArrayOutput() DBClusterArrayOutput

func (DBClusterArray) ToDBClusterArrayOutputWithContext added in v2.39.1

func (i DBClusterArray) ToDBClusterArrayOutputWithContext(ctx context.Context) DBClusterArrayOutput

type DBClusterArrayInput added in v2.39.1

type DBClusterArrayInput interface {
	pulumi.Input

	ToDBClusterArrayOutput() DBClusterArrayOutput
	ToDBClusterArrayOutputWithContext(context.Context) DBClusterArrayOutput
}

DBClusterArrayInput is an input type that accepts DBClusterArray and DBClusterArrayOutput values. You can construct a concrete instance of `DBClusterArrayInput` via:

DBClusterArray{ DBClusterArgs{...} }

type DBClusterArrayOutput added in v2.39.1

type DBClusterArrayOutput struct{ *pulumi.OutputState }

func (DBClusterArrayOutput) ElementType added in v2.39.1

func (DBClusterArrayOutput) ElementType() reflect.Type

func (DBClusterArrayOutput) Index added in v2.39.1

func (DBClusterArrayOutput) ToDBClusterArrayOutput added in v2.39.1

func (o DBClusterArrayOutput) ToDBClusterArrayOutput() DBClusterArrayOutput

func (DBClusterArrayOutput) ToDBClusterArrayOutputWithContext added in v2.39.1

func (o DBClusterArrayOutput) ToDBClusterArrayOutputWithContext(ctx context.Context) DBClusterArrayOutput

type DBClusterInput added in v2.39.1

type DBClusterInput interface {
	pulumi.Input

	ToDBClusterOutput() DBClusterOutput
	ToDBClusterOutputWithContext(ctx context.Context) DBClusterOutput
}

type DBClusterMap added in v2.39.1

type DBClusterMap map[string]DBClusterInput

func (DBClusterMap) ElementType added in v2.39.1

func (DBClusterMap) ElementType() reflect.Type

func (DBClusterMap) ToDBClusterMapOutput added in v2.39.1

func (i DBClusterMap) ToDBClusterMapOutput() DBClusterMapOutput

func (DBClusterMap) ToDBClusterMapOutputWithContext added in v2.39.1

func (i DBClusterMap) ToDBClusterMapOutputWithContext(ctx context.Context) DBClusterMapOutput

type DBClusterMapInput added in v2.39.1

type DBClusterMapInput interface {
	pulumi.Input

	ToDBClusterMapOutput() DBClusterMapOutput
	ToDBClusterMapOutputWithContext(context.Context) DBClusterMapOutput
}

DBClusterMapInput is an input type that accepts DBClusterMap and DBClusterMapOutput values. You can construct a concrete instance of `DBClusterMapInput` via:

DBClusterMap{ "key": DBClusterArgs{...} }

type DBClusterMapOutput added in v2.39.1

type DBClusterMapOutput struct{ *pulumi.OutputState }

func (DBClusterMapOutput) ElementType added in v2.39.1

func (DBClusterMapOutput) ElementType() reflect.Type

func (DBClusterMapOutput) MapIndex added in v2.39.1

func (DBClusterMapOutput) ToDBClusterMapOutput added in v2.39.1

func (o DBClusterMapOutput) ToDBClusterMapOutput() DBClusterMapOutput

func (DBClusterMapOutput) ToDBClusterMapOutputWithContext added in v2.39.1

func (o DBClusterMapOutput) ToDBClusterMapOutputWithContext(ctx context.Context) DBClusterMapOutput

type DBClusterOutput added in v2.39.1

type DBClusterOutput struct {
	*pulumi.OutputState
}

func (DBClusterOutput) ElementType added in v2.39.1

func (DBClusterOutput) ElementType() reflect.Type

func (DBClusterOutput) ToDBClusterOutput added in v2.39.1

func (o DBClusterOutput) ToDBClusterOutput() DBClusterOutput

func (DBClusterOutput) ToDBClusterOutputWithContext added in v2.39.1

func (o DBClusterOutput) ToDBClusterOutputWithContext(ctx context.Context) DBClusterOutput

func (DBClusterOutput) ToDBClusterPtrOutput added in v2.39.1

func (o DBClusterOutput) ToDBClusterPtrOutput() DBClusterPtrOutput

func (DBClusterOutput) ToDBClusterPtrOutputWithContext added in v2.39.1

func (o DBClusterOutput) ToDBClusterPtrOutputWithContext(ctx context.Context) DBClusterPtrOutput

type DBClusterPtrInput added in v2.39.1

type DBClusterPtrInput interface {
	pulumi.Input

	ToDBClusterPtrOutput() DBClusterPtrOutput
	ToDBClusterPtrOutputWithContext(ctx context.Context) DBClusterPtrOutput
}

type DBClusterPtrOutput added in v2.39.1

type DBClusterPtrOutput struct {
	*pulumi.OutputState
}

func (DBClusterPtrOutput) ElementType added in v2.39.1

func (DBClusterPtrOutput) ElementType() reflect.Type

func (DBClusterPtrOutput) ToDBClusterPtrOutput added in v2.39.1

func (o DBClusterPtrOutput) ToDBClusterPtrOutput() DBClusterPtrOutput

func (DBClusterPtrOutput) ToDBClusterPtrOutputWithContext added in v2.39.1

func (o DBClusterPtrOutput) ToDBClusterPtrOutputWithContext(ctx context.Context) DBClusterPtrOutput

type DBClusterState added in v2.39.1

type DBClusterState struct {
	// Auto-renewal period of an cluster, in the unit of the month. It is valid when `paymentType` is `Subscription`. Valid values: `1`, `2`, `3`, `6`, `12`, `24`, `36`. Default to `1`.
	AutoRenewPeriod pulumi.IntPtrInput
	// The specifications of computing resources in elastic mode. The increase of resources can speed up queries. AnalyticDB for MySQL automatically scales computing resources. For more information, see [ComputeResource](https://www.alibabacloud.com/help/en/doc-detail/144851.htm)
	ComputeResource pulumi.StringPtrInput
	// The endpoint of the cluster.
	ConnectionString pulumi.StringPtrInput
	// The db cluster category. Valid values: `Basic`, `Cluster`, `MixedStorage`.
	DbClusterCategory pulumi.StringPtrInput
	// The db cluster class. For more information, see [DBClusterClass](https://help.aliyun.com/document_detail/190519.html)
	DbClusterClass pulumi.StringPtrInput
	// The db cluster version. Value options: `3.0`, Default to `3.0`.
	DbClusterVersion pulumi.StringPtrInput
	// The db node class.
	DbNodeClass pulumi.StringPtrInput
	// The db node count.
	DbNodeCount pulumi.IntPtrInput
	// The db node storage.
	DbNodeStorage pulumi.IntPtrInput
	// The description of DBCluster.
	Description pulumi.StringPtrInput
	// The elastic io resource.
	ElasticIoResource pulumi.IntPtrInput
	// The maintenance window of the cluster. Format: hh:mmZ-hh:mmZ.
	MaintainTime pulumi.StringPtrInput
	// The mode of the cluster. Valid values: `reserver`, `flexible`.
	Mode pulumi.StringPtrInput
	// The modify type.
	ModifyType pulumi.StringPtrInput
	// Field `payType` has been deprecated. New field `paymentType` instead.
	PayType pulumi.StringPtrInput
	// The payment type of the resource. Valid values are `PayAsYouGo` and `Subscription`. Default to `PayAsYouGo`.
	PaymentType pulumi.StringPtrInput
	// The duration that you will buy DB cluster (in month). It is valid when `paymentType` is `Subscription`. Valid values: [1~9], 12, 24, 36. Default to 1.
	Period pulumi.IntPtrInput
	// Valid values are `AutoRenewal`, `Normal`, `NotRenewal`, Default to `NotRenewal`.
	RenewalStatus pulumi.StringPtrInput
	// The ID of the resource group.
	ResourceGroupId pulumi.StringPtrInput
	// List of IP addresses allowed to access all databases of an cluster. 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]).
	SecurityIps pulumi.StringArrayInput
	// The status of the resource.
	Status pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	// - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
	// - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
	Tags pulumi.MapInput
	// The vswitch id.
	VswitchId pulumi.StringPtrInput
	// The zone ID of the resource.
	ZoneId pulumi.StringPtrInput
}

func (DBClusterState) ElementType added in v2.39.1

func (DBClusterState) ElementType() reflect.Type

type GetClustersArgs

type GetClustersArgs struct {
	// The description of the ADB cluster.
	Description *string `pulumi:"description"`
	// A regex string to filter results by cluster description.
	DescriptionRegex *string `pulumi:"descriptionRegex"`
	EnableDetails    *bool   `pulumi:"enableDetails"`
	// A list of ADB cluster IDs.
	Ids             []string `pulumi:"ids"`
	OutputFile      *string  `pulumi:"outputFile"`
	ResourceGroupId *string  `pulumi:"resourceGroupId"`
	// The status of the cluster. Valid values: `Preparing`, `Creating`, `Restoring`, `Running`, `Deleting`, `ClassChanging`, `NetAddressCreating`, `NetAddressDeleting`. For more information, see [Cluster status](https://www.alibabacloud.com/help/doc-detail/143075.htm).
	Status *string `pulumi:"status"`
	// A mapping of tags to assign to the resource.
	// - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
	// - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
	Tags map[string]interface{} `pulumi:"tags"`
}

A collection of arguments for invoking getClusters.

type GetClustersCluster

type GetClustersCluster struct {
	AutoRenewPeriod int `pulumi:"autoRenewPeriod"`
	// Billing method. Value options: `PostPaid` for Pay-As-You-Go and `PrePaid` for subscription.
	ChargeType       string `pulumi:"chargeType"`
	CommodityCode    string `pulumi:"commodityCode"`
	ComputeResource  string `pulumi:"computeResource"`
	ConnectionString string `pulumi:"connectionString"`
	// The CreateTime of the ADB cluster.
	CreateTime           string `pulumi:"createTime"`
	DbClusterCategory    string `pulumi:"dbClusterCategory"`
	DbClusterId          string `pulumi:"dbClusterId"`
	DbClusterNetworkType string `pulumi:"dbClusterNetworkType"`
	DbClusterType        string `pulumi:"dbClusterType"`
	DbClusterVersion     string `pulumi:"dbClusterVersion"`
	// The DBNodeClass of the ADB cluster.
	DbNodeClass string `pulumi:"dbNodeClass"`
	// The DBNodeCount of the ADB cluster.
	DbNodeCount int `pulumi:"dbNodeCount"`
	// The DBNodeStorage of the ADB cluster.
	DbNodeStorage int `pulumi:"dbNodeStorage"`
	// The description of the ADB cluster.
	Description       string `pulumi:"description"`
	DiskType          string `pulumi:"diskType"`
	DtsJobId          string `pulumi:"dtsJobId"`
	ElasticIoResource int    `pulumi:"elasticIoResource"`
	Engine            string `pulumi:"engine"`
	EngineVersion     string `pulumi:"engineVersion"`
	ExecutorCount     string `pulumi:"executorCount"`
	// Expiration time. Pay-As-You-Go clusters never expire.
	ExpireTime string `pulumi:"expireTime"`
	// The expired of the ADB cluster.
	Expired string `pulumi:"expired"`
	// The ID of the ADB cluster.
	Id string `pulumi:"id"`
	// The LockMode of the ADB cluster.
	LockMode     string `pulumi:"lockMode"`
	LockReason   string `pulumi:"lockReason"`
	MaintainTime string `pulumi:"maintainTime"`
	// The DBClusterNetworkType of the ADB cluster.
	NetworkType   string `pulumi:"networkType"`
	PaymentType   string `pulumi:"paymentType"`
	Port          int    `pulumi:"port"`
	RdsInstanceId string `pulumi:"rdsInstanceId"`
	// Region ID the cluster belongs to.
	RegionId        string   `pulumi:"regionId"`
	RenewalStatus   string   `pulumi:"renewalStatus"`
	ResourceGroupId string   `pulumi:"resourceGroupId"`
	SecurityIps     []string `pulumi:"securityIps"`
	// The status of the cluster. Valid values: `Preparing`, `Creating`, `Restoring`, `Running`, `Deleting`, `ClassChanging`, `NetAddressCreating`, `NetAddressDeleting`. For more information, see [Cluster status](https://www.alibabacloud.com/help/doc-detail/143075.htm).
	Status          string `pulumi:"status"`
	StorageResource string `pulumi:"storageResource"`
	// A mapping of tags to assign to the resource.
	// - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
	// - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
	Tags               map[string]interface{} `pulumi:"tags"`
	VpcCloudInstanceId string                 `pulumi:"vpcCloudInstanceId"`
	// ID of the VPC the cluster belongs to.
	VpcId     string `pulumi:"vpcId"`
	VswitchId string `pulumi:"vswitchId"`
	// The ZoneId of the ADB cluster.
	ZoneId string `pulumi:"zoneId"`
}

type GetClustersClusterArgs

type GetClustersClusterArgs struct {
	AutoRenewPeriod pulumi.IntInput `pulumi:"autoRenewPeriod"`
	// Billing method. Value options: `PostPaid` for Pay-As-You-Go and `PrePaid` for subscription.
	ChargeType       pulumi.StringInput `pulumi:"chargeType"`
	CommodityCode    pulumi.StringInput `pulumi:"commodityCode"`
	ComputeResource  pulumi.StringInput `pulumi:"computeResource"`
	ConnectionString pulumi.StringInput `pulumi:"connectionString"`
	// The CreateTime of the ADB cluster.
	CreateTime           pulumi.StringInput `pulumi:"createTime"`
	DbClusterCategory    pulumi.StringInput `pulumi:"dbClusterCategory"`
	DbClusterId          pulumi.StringInput `pulumi:"dbClusterId"`
	DbClusterNetworkType pulumi.StringInput `pulumi:"dbClusterNetworkType"`
	DbClusterType        pulumi.StringInput `pulumi:"dbClusterType"`
	DbClusterVersion     pulumi.StringInput `pulumi:"dbClusterVersion"`
	// The DBNodeClass of the ADB cluster.
	DbNodeClass pulumi.StringInput `pulumi:"dbNodeClass"`
	// The DBNodeCount of the ADB cluster.
	DbNodeCount pulumi.IntInput `pulumi:"dbNodeCount"`
	// The DBNodeStorage of the ADB cluster.
	DbNodeStorage pulumi.IntInput `pulumi:"dbNodeStorage"`
	// The description of the ADB cluster.
	Description       pulumi.StringInput `pulumi:"description"`
	DiskType          pulumi.StringInput `pulumi:"diskType"`
	DtsJobId          pulumi.StringInput `pulumi:"dtsJobId"`
	ElasticIoResource pulumi.IntInput    `pulumi:"elasticIoResource"`
	Engine            pulumi.StringInput `pulumi:"engine"`
	EngineVersion     pulumi.StringInput `pulumi:"engineVersion"`
	ExecutorCount     pulumi.StringInput `pulumi:"executorCount"`
	// Expiration time. Pay-As-You-Go clusters never expire.
	ExpireTime pulumi.StringInput `pulumi:"expireTime"`
	// The expired of the ADB cluster.
	Expired pulumi.StringInput `pulumi:"expired"`
	// The ID of the ADB cluster.
	Id pulumi.StringInput `pulumi:"id"`
	// The LockMode of the ADB cluster.
	LockMode     pulumi.StringInput `pulumi:"lockMode"`
	LockReason   pulumi.StringInput `pulumi:"lockReason"`
	MaintainTime pulumi.StringInput `pulumi:"maintainTime"`
	// The DBClusterNetworkType of the ADB cluster.
	NetworkType   pulumi.StringInput `pulumi:"networkType"`
	PaymentType   pulumi.StringInput `pulumi:"paymentType"`
	Port          pulumi.IntInput    `pulumi:"port"`
	RdsInstanceId pulumi.StringInput `pulumi:"rdsInstanceId"`
	// Region ID the cluster belongs to.
	RegionId        pulumi.StringInput      `pulumi:"regionId"`
	RenewalStatus   pulumi.StringInput      `pulumi:"renewalStatus"`
	ResourceGroupId pulumi.StringInput      `pulumi:"resourceGroupId"`
	SecurityIps     pulumi.StringArrayInput `pulumi:"securityIps"`
	// The status of the cluster. Valid values: `Preparing`, `Creating`, `Restoring`, `Running`, `Deleting`, `ClassChanging`, `NetAddressCreating`, `NetAddressDeleting`. For more information, see [Cluster status](https://www.alibabacloud.com/help/doc-detail/143075.htm).
	Status          pulumi.StringInput `pulumi:"status"`
	StorageResource pulumi.StringInput `pulumi:"storageResource"`
	// A mapping of tags to assign to the resource.
	// - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
	// - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
	Tags               pulumi.MapInput    `pulumi:"tags"`
	VpcCloudInstanceId pulumi.StringInput `pulumi:"vpcCloudInstanceId"`
	// ID of the VPC the cluster belongs to.
	VpcId     pulumi.StringInput `pulumi:"vpcId"`
	VswitchId pulumi.StringInput `pulumi:"vswitchId"`
	// The ZoneId of the ADB cluster.
	ZoneId pulumi.StringInput `pulumi:"zoneId"`
}

func (GetClustersClusterArgs) ElementType

func (GetClustersClusterArgs) ElementType() reflect.Type

func (GetClustersClusterArgs) ToGetClustersClusterOutput

func (i GetClustersClusterArgs) ToGetClustersClusterOutput() GetClustersClusterOutput

func (GetClustersClusterArgs) ToGetClustersClusterOutputWithContext

func (i GetClustersClusterArgs) ToGetClustersClusterOutputWithContext(ctx context.Context) GetClustersClusterOutput

type GetClustersClusterArray

type GetClustersClusterArray []GetClustersClusterInput

func (GetClustersClusterArray) ElementType

func (GetClustersClusterArray) ElementType() reflect.Type

func (GetClustersClusterArray) ToGetClustersClusterArrayOutput

func (i GetClustersClusterArray) ToGetClustersClusterArrayOutput() GetClustersClusterArrayOutput

func (GetClustersClusterArray) ToGetClustersClusterArrayOutputWithContext

func (i GetClustersClusterArray) ToGetClustersClusterArrayOutputWithContext(ctx context.Context) GetClustersClusterArrayOutput

type GetClustersClusterArrayInput

type GetClustersClusterArrayInput interface {
	pulumi.Input

	ToGetClustersClusterArrayOutput() GetClustersClusterArrayOutput
	ToGetClustersClusterArrayOutputWithContext(context.Context) GetClustersClusterArrayOutput
}

GetClustersClusterArrayInput is an input type that accepts GetClustersClusterArray and GetClustersClusterArrayOutput values. You can construct a concrete instance of `GetClustersClusterArrayInput` via:

GetClustersClusterArray{ GetClustersClusterArgs{...} }

type GetClustersClusterArrayOutput

type GetClustersClusterArrayOutput struct{ *pulumi.OutputState }

func (GetClustersClusterArrayOutput) ElementType

func (GetClustersClusterArrayOutput) Index

func (GetClustersClusterArrayOutput) ToGetClustersClusterArrayOutput

func (o GetClustersClusterArrayOutput) ToGetClustersClusterArrayOutput() GetClustersClusterArrayOutput

func (GetClustersClusterArrayOutput) ToGetClustersClusterArrayOutputWithContext

func (o GetClustersClusterArrayOutput) ToGetClustersClusterArrayOutputWithContext(ctx context.Context) GetClustersClusterArrayOutput

type GetClustersClusterInput

type GetClustersClusterInput interface {
	pulumi.Input

	ToGetClustersClusterOutput() GetClustersClusterOutput
	ToGetClustersClusterOutputWithContext(context.Context) GetClustersClusterOutput
}

GetClustersClusterInput is an input type that accepts GetClustersClusterArgs and GetClustersClusterOutput values. You can construct a concrete instance of `GetClustersClusterInput` via:

GetClustersClusterArgs{...}

type GetClustersClusterOutput

type GetClustersClusterOutput struct{ *pulumi.OutputState }

func (GetClustersClusterOutput) AutoRenewPeriod added in v2.39.1

func (o GetClustersClusterOutput) AutoRenewPeriod() pulumi.IntOutput

func (GetClustersClusterOutput) ChargeType

Billing method. Value options: `PostPaid` for Pay-As-You-Go and `PrePaid` for subscription.

func (GetClustersClusterOutput) CommodityCode added in v2.39.1

func (o GetClustersClusterOutput) CommodityCode() pulumi.StringOutput

func (GetClustersClusterOutput) ComputeResource added in v2.39.1

func (o GetClustersClusterOutput) ComputeResource() pulumi.StringOutput

func (GetClustersClusterOutput) ConnectionString added in v2.39.1

func (o GetClustersClusterOutput) ConnectionString() pulumi.StringOutput

func (GetClustersClusterOutput) CreateTime

The CreateTime of the ADB cluster.

func (GetClustersClusterOutput) DbClusterCategory added in v2.39.1

func (o GetClustersClusterOutput) DbClusterCategory() pulumi.StringOutput

func (GetClustersClusterOutput) DbClusterId added in v2.39.1

func (GetClustersClusterOutput) DbClusterNetworkType added in v2.39.1

func (o GetClustersClusterOutput) DbClusterNetworkType() pulumi.StringOutput

func (GetClustersClusterOutput) DbClusterType added in v2.39.1

func (o GetClustersClusterOutput) DbClusterType() pulumi.StringOutput

func (GetClustersClusterOutput) DbClusterVersion added in v2.39.1

func (o GetClustersClusterOutput) DbClusterVersion() pulumi.StringOutput

func (GetClustersClusterOutput) DbNodeClass

The DBNodeClass of the ADB cluster.

func (GetClustersClusterOutput) DbNodeCount

func (o GetClustersClusterOutput) DbNodeCount() pulumi.IntOutput

The DBNodeCount of the ADB cluster.

func (GetClustersClusterOutput) DbNodeStorage

func (o GetClustersClusterOutput) DbNodeStorage() pulumi.IntOutput

The DBNodeStorage of the ADB cluster.

func (GetClustersClusterOutput) Description

The description of the ADB cluster.

func (GetClustersClusterOutput) DiskType added in v2.39.1

func (GetClustersClusterOutput) DtsJobId added in v2.39.1

func (GetClustersClusterOutput) ElasticIoResource added in v2.39.1

func (o GetClustersClusterOutput) ElasticIoResource() pulumi.IntOutput

func (GetClustersClusterOutput) ElementType

func (GetClustersClusterOutput) ElementType() reflect.Type

func (GetClustersClusterOutput) Engine added in v2.39.1

func (GetClustersClusterOutput) EngineVersion added in v2.39.1

func (o GetClustersClusterOutput) EngineVersion() pulumi.StringOutput

func (GetClustersClusterOutput) ExecutorCount added in v2.39.1

func (o GetClustersClusterOutput) ExecutorCount() pulumi.StringOutput

func (GetClustersClusterOutput) ExpireTime

Expiration time. Pay-As-You-Go clusters never expire.

func (GetClustersClusterOutput) Expired

The expired of the ADB cluster.

func (GetClustersClusterOutput) Id

The ID of the ADB cluster.

func (GetClustersClusterOutput) LockMode

The LockMode of the ADB cluster.

func (GetClustersClusterOutput) LockReason added in v2.39.1

func (GetClustersClusterOutput) MaintainTime added in v2.39.1

func (o GetClustersClusterOutput) MaintainTime() pulumi.StringOutput

func (GetClustersClusterOutput) NetworkType

The DBClusterNetworkType of the ADB cluster.

func (GetClustersClusterOutput) PaymentType added in v2.39.1

func (GetClustersClusterOutput) Port added in v2.39.1

func (GetClustersClusterOutput) RdsInstanceId added in v2.39.1

func (o GetClustersClusterOutput) RdsInstanceId() pulumi.StringOutput

func (GetClustersClusterOutput) RegionId

Region ID the cluster belongs to.

func (GetClustersClusterOutput) RenewalStatus added in v2.39.1

func (o GetClustersClusterOutput) RenewalStatus() pulumi.StringOutput

func (GetClustersClusterOutput) ResourceGroupId added in v2.39.1

func (o GetClustersClusterOutput) ResourceGroupId() pulumi.StringOutput

func (GetClustersClusterOutput) SecurityIps added in v2.39.1

func (GetClustersClusterOutput) Status

The status of the cluster. Valid values: `Preparing`, `Creating`, `Restoring`, `Running`, `Deleting`, `ClassChanging`, `NetAddressCreating`, `NetAddressDeleting`. For more information, see [Cluster status](https://www.alibabacloud.com/help/doc-detail/143075.htm).

func (GetClustersClusterOutput) StorageResource added in v2.39.1

func (o GetClustersClusterOutput) StorageResource() pulumi.StringOutput

func (GetClustersClusterOutput) Tags added in v2.39.1

A mapping of tags to assign to the resource. - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.

func (GetClustersClusterOutput) ToGetClustersClusterOutput

func (o GetClustersClusterOutput) ToGetClustersClusterOutput() GetClustersClusterOutput

func (GetClustersClusterOutput) ToGetClustersClusterOutputWithContext

func (o GetClustersClusterOutput) ToGetClustersClusterOutputWithContext(ctx context.Context) GetClustersClusterOutput

func (GetClustersClusterOutput) VpcCloudInstanceId added in v2.39.1

func (o GetClustersClusterOutput) VpcCloudInstanceId() pulumi.StringOutput

func (GetClustersClusterOutput) VpcId

ID of the VPC the cluster belongs to.

func (GetClustersClusterOutput) VswitchId added in v2.39.1

func (GetClustersClusterOutput) ZoneId

The ZoneId of the ADB cluster.

type GetClustersResult

type GetClustersResult struct {
	// A list of ADB clusters. Each element contains the following attributes:
	Clusters []GetClustersCluster `pulumi:"clusters"`
	// The description of the ADB cluster.
	Description      *string `pulumi:"description"`
	DescriptionRegex *string `pulumi:"descriptionRegex"`
	// A list of ADB cluster descriptions.
	Descriptions  []string `pulumi:"descriptions"`
	EnableDetails *bool    `pulumi:"enableDetails"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of ADB cluster IDs.
	Ids             []string `pulumi:"ids"`
	OutputFile      *string  `pulumi:"outputFile"`
	ResourceGroupId *string  `pulumi:"resourceGroupId"`
	// Status of the cluster.
	Status *string                `pulumi:"status"`
	Tags   map[string]interface{} `pulumi:"tags"`
}

A collection of values returned by getClusters.

func GetClusters

func GetClusters(ctx *pulumi.Context, args *GetClustersArgs, opts ...pulumi.InvokeOption) (*GetClustersResult, error)

type GetDBClustersArgs added in v2.39.1

type GetDBClustersArgs struct {
	// The description of DBCluster.
	Description *string `pulumi:"description"`
	// A regex string to filter results by DBCluster description.
	DescriptionRegex *string `pulumi:"descriptionRegex"`
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of DBCluster IDs.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// The ID of the resource group.
	ResourceGroupId *string `pulumi:"resourceGroupId"`
	// The status of the resource.
	Status *string `pulumi:"status"`
	// The tag of the resource.
	Tags map[string]interface{} `pulumi:"tags"`
}

A collection of arguments for invoking getDBClusters.

type GetDBClustersCluster added in v2.39.1

type GetDBClustersCluster struct {
	// Auto-renewal period of an cluster, in the unit of the month.
	AutoRenewPeriod int `pulumi:"autoRenewPeriod"`
	// The payment type of the resource.
	ChargeType string `pulumi:"chargeType"`
	// The name of the service.
	CommodityCode string `pulumi:"commodityCode"`
	// The specifications of computing resources in elastic mode. The increase of resources can speed up queries. AnalyticDB for MySQL automatically scales computing resources. For more information, see [Specifications](https://www.alibabacloud.com/help/en/doc-detail/144851.htm).
	ComputeResource string `pulumi:"computeResource"`
	// The endpoint of the cluster.
	ConnectionString string `pulumi:"connectionString"`
	// The CreateTime of the ADB cluster.
	CreateTime string `pulumi:"createTime"`
	// The db cluster category.
	DbClusterCategory string `pulumi:"dbClusterCategory"`
	// The db cluster id.
	DbClusterId string `pulumi:"dbClusterId"`
	// The db cluster network type.
	DbClusterNetworkType string `pulumi:"dbClusterNetworkType"`
	// The db cluster type.
	DbClusterType string `pulumi:"dbClusterType"`
	// The db cluster version.
	DbClusterVersion string `pulumi:"dbClusterVersion"`
	// The db node class.
	DbNodeClass string `pulumi:"dbNodeClass"`
	// The db node count.
	DbNodeCount int `pulumi:"dbNodeCount"`
	// The db node storage.
	DbNodeStorage int `pulumi:"dbNodeStorage"`
	// The description of DBCluster.
	Description string `pulumi:"description"`
	// The type of the disk.
	DiskType string `pulumi:"diskType"`
	// The ID of the data synchronization task in Data Transmission Service (DTS). This parameter is valid only for analytic instances.
	DtsJobId string `pulumi:"dtsJobId"`
	// The elastic io resource.
	ElasticIoResource int `pulumi:"elasticIoResource"`
	// The engine of the database.
	Engine string `pulumi:"engine"`
	// The engine version of the database..
	EngineVersion string `pulumi:"engineVersion"`
	// The number of nodes. The node resources are used for data computing in elastic mode.
	ExecutorCount string `pulumi:"executorCount"`
	// The time when the cluster expires.
	ExpireTime string `pulumi:"expireTime"`
	// Indicates whether the cluster has expired.
	Expired string `pulumi:"expired"`
	// The ID of the DBCluster.
	Id string `pulumi:"id"`
	// The lock mode of the cluster.
	LockMode string `pulumi:"lockMode"`
	// The reason why the cluster is locked.
	LockReason string `pulumi:"lockReason"`
	// The maintenance window of the cluster.
	MaintainTime string `pulumi:"maintainTime"`
	NetworkType  string `pulumi:"networkType"`
	// The payment type of the resource.
	PaymentType string `pulumi:"paymentType"`
	// The port that is used to access the cluster.
	Port int `pulumi:"port"`
	// The ID of the ApsaraDB RDS instance from which data is synchronized to the cluster. This parameter is valid only for analytic instances.
	RdsInstanceId string `pulumi:"rdsInstanceId"`
	RegionId      string `pulumi:"regionId"`
	// The status of renewal.
	RenewalStatus string `pulumi:"renewalStatus"`
	// The ID of the resource group.
	ResourceGroupId string `pulumi:"resourceGroupId"`
	// List of IP addresses allowed to access all databases of an cluster.
	SecurityIps []string `pulumi:"securityIps"`
	// The status of the resource.
	Status string `pulumi:"status"`
	// The specifications of storage resources in elastic mode. The resources are used for data read and write operations. The increase of resources can improve the read and write performance of your cluster. For more information, see [Specifications](https://www.alibabacloud.com/help/en/doc-detail/144851.htm).
	StorageResource string `pulumi:"storageResource"`
	// The tag of the resource.
	Tags map[string]interface{} `pulumi:"tags"`
	// The vpc cloud instance id.
	VpcCloudInstanceId string `pulumi:"vpcCloudInstanceId"`
	// The vpc id.
	VpcId string `pulumi:"vpcId"`
	// The vswitch id.
	VswitchId string `pulumi:"vswitchId"`
	// The zone ID  of the resource.
	ZoneId string `pulumi:"zoneId"`
}

type GetDBClustersClusterArgs added in v2.39.1

type GetDBClustersClusterArgs struct {
	// Auto-renewal period of an cluster, in the unit of the month.
	AutoRenewPeriod pulumi.IntInput `pulumi:"autoRenewPeriod"`
	// The payment type of the resource.
	ChargeType pulumi.StringInput `pulumi:"chargeType"`
	// The name of the service.
	CommodityCode pulumi.StringInput `pulumi:"commodityCode"`
	// The specifications of computing resources in elastic mode. The increase of resources can speed up queries. AnalyticDB for MySQL automatically scales computing resources. For more information, see [Specifications](https://www.alibabacloud.com/help/en/doc-detail/144851.htm).
	ComputeResource pulumi.StringInput `pulumi:"computeResource"`
	// The endpoint of the cluster.
	ConnectionString pulumi.StringInput `pulumi:"connectionString"`
	// The CreateTime of the ADB cluster.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The db cluster category.
	DbClusterCategory pulumi.StringInput `pulumi:"dbClusterCategory"`
	// The db cluster id.
	DbClusterId pulumi.StringInput `pulumi:"dbClusterId"`
	// The db cluster network type.
	DbClusterNetworkType pulumi.StringInput `pulumi:"dbClusterNetworkType"`
	// The db cluster type.
	DbClusterType pulumi.StringInput `pulumi:"dbClusterType"`
	// The db cluster version.
	DbClusterVersion pulumi.StringInput `pulumi:"dbClusterVersion"`
	// The db node class.
	DbNodeClass pulumi.StringInput `pulumi:"dbNodeClass"`
	// The db node count.
	DbNodeCount pulumi.IntInput `pulumi:"dbNodeCount"`
	// The db node storage.
	DbNodeStorage pulumi.IntInput `pulumi:"dbNodeStorage"`
	// The description of DBCluster.
	Description pulumi.StringInput `pulumi:"description"`
	// The type of the disk.
	DiskType pulumi.StringInput `pulumi:"diskType"`
	// The ID of the data synchronization task in Data Transmission Service (DTS). This parameter is valid only for analytic instances.
	DtsJobId pulumi.StringInput `pulumi:"dtsJobId"`
	// The elastic io resource.
	ElasticIoResource pulumi.IntInput `pulumi:"elasticIoResource"`
	// The engine of the database.
	Engine pulumi.StringInput `pulumi:"engine"`
	// The engine version of the database..
	EngineVersion pulumi.StringInput `pulumi:"engineVersion"`
	// The number of nodes. The node resources are used for data computing in elastic mode.
	ExecutorCount pulumi.StringInput `pulumi:"executorCount"`
	// The time when the cluster expires.
	ExpireTime pulumi.StringInput `pulumi:"expireTime"`
	// Indicates whether the cluster has expired.
	Expired pulumi.StringInput `pulumi:"expired"`
	// The ID of the DBCluster.
	Id pulumi.StringInput `pulumi:"id"`
	// The lock mode of the cluster.
	LockMode pulumi.StringInput `pulumi:"lockMode"`
	// The reason why the cluster is locked.
	LockReason pulumi.StringInput `pulumi:"lockReason"`
	// The maintenance window of the cluster.
	MaintainTime pulumi.StringInput `pulumi:"maintainTime"`
	NetworkType  pulumi.StringInput `pulumi:"networkType"`
	// The payment type of the resource.
	PaymentType pulumi.StringInput `pulumi:"paymentType"`
	// The port that is used to access the cluster.
	Port pulumi.IntInput `pulumi:"port"`
	// The ID of the ApsaraDB RDS instance from which data is synchronized to the cluster. This parameter is valid only for analytic instances.
	RdsInstanceId pulumi.StringInput `pulumi:"rdsInstanceId"`
	RegionId      pulumi.StringInput `pulumi:"regionId"`
	// The status of renewal.
	RenewalStatus pulumi.StringInput `pulumi:"renewalStatus"`
	// The ID of the resource group.
	ResourceGroupId pulumi.StringInput `pulumi:"resourceGroupId"`
	// List of IP addresses allowed to access all databases of an cluster.
	SecurityIps pulumi.StringArrayInput `pulumi:"securityIps"`
	// The status of the resource.
	Status pulumi.StringInput `pulumi:"status"`
	// The specifications of storage resources in elastic mode. The resources are used for data read and write operations. The increase of resources can improve the read and write performance of your cluster. For more information, see [Specifications](https://www.alibabacloud.com/help/en/doc-detail/144851.htm).
	StorageResource pulumi.StringInput `pulumi:"storageResource"`
	// The tag of the resource.
	Tags pulumi.MapInput `pulumi:"tags"`
	// The vpc cloud instance id.
	VpcCloudInstanceId pulumi.StringInput `pulumi:"vpcCloudInstanceId"`
	// The vpc id.
	VpcId pulumi.StringInput `pulumi:"vpcId"`
	// The vswitch id.
	VswitchId pulumi.StringInput `pulumi:"vswitchId"`
	// The zone ID  of the resource.
	ZoneId pulumi.StringInput `pulumi:"zoneId"`
}

func (GetDBClustersClusterArgs) ElementType added in v2.39.1

func (GetDBClustersClusterArgs) ElementType() reflect.Type

func (GetDBClustersClusterArgs) ToGetDBClustersClusterOutput added in v2.39.1

func (i GetDBClustersClusterArgs) ToGetDBClustersClusterOutput() GetDBClustersClusterOutput

func (GetDBClustersClusterArgs) ToGetDBClustersClusterOutputWithContext added in v2.39.1

func (i GetDBClustersClusterArgs) ToGetDBClustersClusterOutputWithContext(ctx context.Context) GetDBClustersClusterOutput

type GetDBClustersClusterArray added in v2.39.1

type GetDBClustersClusterArray []GetDBClustersClusterInput

func (GetDBClustersClusterArray) ElementType added in v2.39.1

func (GetDBClustersClusterArray) ElementType() reflect.Type

func (GetDBClustersClusterArray) ToGetDBClustersClusterArrayOutput added in v2.39.1

func (i GetDBClustersClusterArray) ToGetDBClustersClusterArrayOutput() GetDBClustersClusterArrayOutput

func (GetDBClustersClusterArray) ToGetDBClustersClusterArrayOutputWithContext added in v2.39.1

func (i GetDBClustersClusterArray) ToGetDBClustersClusterArrayOutputWithContext(ctx context.Context) GetDBClustersClusterArrayOutput

type GetDBClustersClusterArrayInput added in v2.39.1

type GetDBClustersClusterArrayInput interface {
	pulumi.Input

	ToGetDBClustersClusterArrayOutput() GetDBClustersClusterArrayOutput
	ToGetDBClustersClusterArrayOutputWithContext(context.Context) GetDBClustersClusterArrayOutput
}

GetDBClustersClusterArrayInput is an input type that accepts GetDBClustersClusterArray and GetDBClustersClusterArrayOutput values. You can construct a concrete instance of `GetDBClustersClusterArrayInput` via:

GetDBClustersClusterArray{ GetDBClustersClusterArgs{...} }

type GetDBClustersClusterArrayOutput added in v2.39.1

type GetDBClustersClusterArrayOutput struct{ *pulumi.OutputState }

func (GetDBClustersClusterArrayOutput) ElementType added in v2.39.1

func (GetDBClustersClusterArrayOutput) Index added in v2.39.1

func (GetDBClustersClusterArrayOutput) ToGetDBClustersClusterArrayOutput added in v2.39.1

func (o GetDBClustersClusterArrayOutput) ToGetDBClustersClusterArrayOutput() GetDBClustersClusterArrayOutput

func (GetDBClustersClusterArrayOutput) ToGetDBClustersClusterArrayOutputWithContext added in v2.39.1

func (o GetDBClustersClusterArrayOutput) ToGetDBClustersClusterArrayOutputWithContext(ctx context.Context) GetDBClustersClusterArrayOutput

type GetDBClustersClusterInput added in v2.39.1

type GetDBClustersClusterInput interface {
	pulumi.Input

	ToGetDBClustersClusterOutput() GetDBClustersClusterOutput
	ToGetDBClustersClusterOutputWithContext(context.Context) GetDBClustersClusterOutput
}

GetDBClustersClusterInput is an input type that accepts GetDBClustersClusterArgs and GetDBClustersClusterOutput values. You can construct a concrete instance of `GetDBClustersClusterInput` via:

GetDBClustersClusterArgs{...}

type GetDBClustersClusterOutput added in v2.39.1

type GetDBClustersClusterOutput struct{ *pulumi.OutputState }

func (GetDBClustersClusterOutput) AutoRenewPeriod added in v2.39.1

func (o GetDBClustersClusterOutput) AutoRenewPeriod() pulumi.IntOutput

Auto-renewal period of an cluster, in the unit of the month.

func (GetDBClustersClusterOutput) ChargeType added in v2.39.1

The payment type of the resource.

func (GetDBClustersClusterOutput) CommodityCode added in v2.39.1

The name of the service.

func (GetDBClustersClusterOutput) ComputeResource added in v2.39.1

func (o GetDBClustersClusterOutput) ComputeResource() pulumi.StringOutput

The specifications of computing resources in elastic mode. The increase of resources can speed up queries. AnalyticDB for MySQL automatically scales computing resources. For more information, see [Specifications](https://www.alibabacloud.com/help/en/doc-detail/144851.htm).

func (GetDBClustersClusterOutput) ConnectionString added in v2.39.1

func (o GetDBClustersClusterOutput) ConnectionString() pulumi.StringOutput

The endpoint of the cluster.

func (GetDBClustersClusterOutput) CreateTime added in v2.39.1

The CreateTime of the ADB cluster.

func (GetDBClustersClusterOutput) DbClusterCategory added in v2.39.1

func (o GetDBClustersClusterOutput) DbClusterCategory() pulumi.StringOutput

The db cluster category.

func (GetDBClustersClusterOutput) DbClusterId added in v2.39.1

The db cluster id.

func (GetDBClustersClusterOutput) DbClusterNetworkType added in v2.39.1

func (o GetDBClustersClusterOutput) DbClusterNetworkType() pulumi.StringOutput

The db cluster network type.

func (GetDBClustersClusterOutput) DbClusterType added in v2.39.1

The db cluster type.

func (GetDBClustersClusterOutput) DbClusterVersion added in v2.39.1

func (o GetDBClustersClusterOutput) DbClusterVersion() pulumi.StringOutput

The db cluster version.

func (GetDBClustersClusterOutput) DbNodeClass added in v2.39.1

The db node class.

func (GetDBClustersClusterOutput) DbNodeCount added in v2.39.1

The db node count.

func (GetDBClustersClusterOutput) DbNodeStorage added in v2.39.1

func (o GetDBClustersClusterOutput) DbNodeStorage() pulumi.IntOutput

The db node storage.

func (GetDBClustersClusterOutput) Description added in v2.39.1

The description of DBCluster.

func (GetDBClustersClusterOutput) DiskType added in v2.39.1

The type of the disk.

func (GetDBClustersClusterOutput) DtsJobId added in v2.39.1

The ID of the data synchronization task in Data Transmission Service (DTS). This parameter is valid only for analytic instances.

func (GetDBClustersClusterOutput) ElasticIoResource added in v2.39.1

func (o GetDBClustersClusterOutput) ElasticIoResource() pulumi.IntOutput

The elastic io resource.

func (GetDBClustersClusterOutput) ElementType added in v2.39.1

func (GetDBClustersClusterOutput) ElementType() reflect.Type

func (GetDBClustersClusterOutput) Engine added in v2.39.1

The engine of the database.

func (GetDBClustersClusterOutput) EngineVersion added in v2.39.1

The engine version of the database..

func (GetDBClustersClusterOutput) ExecutorCount added in v2.39.1

The number of nodes. The node resources are used for data computing in elastic mode.

func (GetDBClustersClusterOutput) ExpireTime added in v2.39.1

The time when the cluster expires.

func (GetDBClustersClusterOutput) Expired added in v2.39.1

Indicates whether the cluster has expired.

func (GetDBClustersClusterOutput) Id added in v2.39.1

The ID of the DBCluster.

func (GetDBClustersClusterOutput) LockMode added in v2.39.1

The lock mode of the cluster.

func (GetDBClustersClusterOutput) LockReason added in v2.39.1

The reason why the cluster is locked.

func (GetDBClustersClusterOutput) MaintainTime added in v2.39.1

The maintenance window of the cluster.

func (GetDBClustersClusterOutput) NetworkType added in v2.39.1

func (GetDBClustersClusterOutput) PaymentType added in v2.39.1

The payment type of the resource.

func (GetDBClustersClusterOutput) Port added in v2.39.1

The port that is used to access the cluster.

func (GetDBClustersClusterOutput) RdsInstanceId added in v2.39.1

The ID of the ApsaraDB RDS instance from which data is synchronized to the cluster. This parameter is valid only for analytic instances.

func (GetDBClustersClusterOutput) RegionId added in v2.39.1

func (GetDBClustersClusterOutput) RenewalStatus added in v2.39.1

The status of renewal.

func (GetDBClustersClusterOutput) ResourceGroupId added in v2.39.1

func (o GetDBClustersClusterOutput) ResourceGroupId() pulumi.StringOutput

The ID of the resource group.

func (GetDBClustersClusterOutput) SecurityIps added in v2.39.1

List of IP addresses allowed to access all databases of an cluster.

func (GetDBClustersClusterOutput) Status added in v2.39.1

The status of the resource.

func (GetDBClustersClusterOutput) StorageResource added in v2.39.1

func (o GetDBClustersClusterOutput) StorageResource() pulumi.StringOutput

The specifications of storage resources in elastic mode. The resources are used for data read and write operations. The increase of resources can improve the read and write performance of your cluster. For more information, see [Specifications](https://www.alibabacloud.com/help/en/doc-detail/144851.htm).

func (GetDBClustersClusterOutput) Tags added in v2.39.1

The tag of the resource.

func (GetDBClustersClusterOutput) ToGetDBClustersClusterOutput added in v2.39.1

func (o GetDBClustersClusterOutput) ToGetDBClustersClusterOutput() GetDBClustersClusterOutput

func (GetDBClustersClusterOutput) ToGetDBClustersClusterOutputWithContext added in v2.39.1

func (o GetDBClustersClusterOutput) ToGetDBClustersClusterOutputWithContext(ctx context.Context) GetDBClustersClusterOutput

func (GetDBClustersClusterOutput) VpcCloudInstanceId added in v2.39.1

func (o GetDBClustersClusterOutput) VpcCloudInstanceId() pulumi.StringOutput

The vpc cloud instance id.

func (GetDBClustersClusterOutput) VpcId added in v2.39.1

The vpc id.

func (GetDBClustersClusterOutput) VswitchId added in v2.39.1

The vswitch id.

func (GetDBClustersClusterOutput) ZoneId added in v2.39.1

The zone ID of the resource.

type GetDBClustersResult added in v2.39.1

type GetDBClustersResult struct {
	Clusters         []GetDBClustersCluster `pulumi:"clusters"`
	Description      *string                `pulumi:"description"`
	DescriptionRegex *string                `pulumi:"descriptionRegex"`
	Descriptions     []string               `pulumi:"descriptions"`
	EnableDetails    *bool                  `pulumi:"enableDetails"`
	// The provider-assigned unique ID for this managed resource.
	Id              string                 `pulumi:"id"`
	Ids             []string               `pulumi:"ids"`
	OutputFile      *string                `pulumi:"outputFile"`
	ResourceGroupId *string                `pulumi:"resourceGroupId"`
	Status          *string                `pulumi:"status"`
	Tags            map[string]interface{} `pulumi:"tags"`
}

A collection of values returned by getDBClusters.

func GetDBClusters added in v2.39.1

func GetDBClusters(ctx *pulumi.Context, args *GetDBClustersArgs, opts ...pulumi.InvokeOption) (*GetDBClustersResult, error)

This data source provides the Adb DBClusters of the current Alibaba Cloud user.

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

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/adb"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "example"
		example, err := adb.GetDBClusters(ctx, &adb.GetDBClustersArgs{
			DescriptionRegex: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstAdbDbClusterId", example.Clusters[0].Id)
		return nil
	})
}

```

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 ADB instances.
	Multi      *bool   `pulumi:"multi"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getZones.

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 ADB that can be accessed by an Alibaba Cloud account within the region configured in the provider.

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

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/adb"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := adb.GetZones(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

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

Jump to

Keyboard shortcuts

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