adb

package
v3.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 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/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/adb"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		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"),
			ZoneId:    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

func (*Account) ElementType() reflect.Type

func (*Account) ToAccountOutput

func (i *Account) ToAccountOutput() AccountOutput

func (*Account) ToAccountOutputWithContext

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

func (*Account) ToAccountPtrOutput

func (i *Account) ToAccountPtrOutput() AccountPtrOutput

func (*Account) ToAccountPtrOutputWithContext

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

type AccountArray []AccountInput

func (AccountArray) ElementType

func (AccountArray) ElementType() reflect.Type

func (AccountArray) ToAccountArrayOutput

func (i AccountArray) ToAccountArrayOutput() AccountArrayOutput

func (AccountArray) ToAccountArrayOutputWithContext

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

type AccountArrayInput

type AccountArrayInput interface {
	pulumi.Input

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

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

AccountArray{ AccountArgs{...} }

type AccountArrayOutput

type AccountArrayOutput struct{ *pulumi.OutputState }

func (AccountArrayOutput) ElementType

func (AccountArrayOutput) ElementType() reflect.Type

func (AccountArrayOutput) Index

func (AccountArrayOutput) ToAccountArrayOutput

func (o AccountArrayOutput) ToAccountArrayOutput() AccountArrayOutput

func (AccountArrayOutput) ToAccountArrayOutputWithContext

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

type AccountInput

type AccountInput interface {
	pulumi.Input

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

type AccountMap

type AccountMap map[string]AccountInput

func (AccountMap) ElementType

func (AccountMap) ElementType() reflect.Type

func (AccountMap) ToAccountMapOutput

func (i AccountMap) ToAccountMapOutput() AccountMapOutput

func (AccountMap) ToAccountMapOutputWithContext

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

type AccountMapInput

type AccountMapInput interface {
	pulumi.Input

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

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

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

type AccountMapOutput

type AccountMapOutput struct{ *pulumi.OutputState }

func (AccountMapOutput) ElementType

func (AccountMapOutput) ElementType() reflect.Type

func (AccountMapOutput) MapIndex

func (AccountMapOutput) ToAccountMapOutput

func (o AccountMapOutput) ToAccountMapOutput() AccountMapOutput

func (AccountMapOutput) ToAccountMapOutputWithContext

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

type AccountOutput

type AccountOutput struct {
	*pulumi.OutputState
}

func (AccountOutput) ElementType

func (AccountOutput) ElementType() reflect.Type

func (AccountOutput) ToAccountOutput

func (o AccountOutput) ToAccountOutput() AccountOutput

func (AccountOutput) ToAccountOutputWithContext

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

func (AccountOutput) ToAccountPtrOutput

func (o AccountOutput) ToAccountPtrOutput() AccountPtrOutput

func (AccountOutput) ToAccountPtrOutputWithContext

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

type AccountPtrInput

type AccountPtrInput interface {
	pulumi.Input

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

type AccountPtrOutput

type AccountPtrOutput struct {
	*pulumi.OutputState
}

func (AccountPtrOutput) ElementType

func (AccountPtrOutput) ElementType() reflect.Type

func (AccountPtrOutput) ToAccountPtrOutput

func (o AccountPtrOutput) ToAccountPtrOutput() AccountPtrOutput

func (AccountPtrOutput) ToAccountPtrOutputWithContext

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

func (*BackupPolicy) ElementType() reflect.Type

func (*BackupPolicy) ToBackupPolicyOutput

func (i *BackupPolicy) ToBackupPolicyOutput() BackupPolicyOutput

func (*BackupPolicy) ToBackupPolicyOutputWithContext

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

func (*BackupPolicy) ToBackupPolicyPtrOutput

func (i *BackupPolicy) ToBackupPolicyPtrOutput() BackupPolicyPtrOutput

func (*BackupPolicy) ToBackupPolicyPtrOutputWithContext

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

type BackupPolicyArray []BackupPolicyInput

func (BackupPolicyArray) ElementType

func (BackupPolicyArray) ElementType() reflect.Type

func (BackupPolicyArray) ToBackupPolicyArrayOutput

func (i BackupPolicyArray) ToBackupPolicyArrayOutput() BackupPolicyArrayOutput

func (BackupPolicyArray) ToBackupPolicyArrayOutputWithContext

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

type BackupPolicyArrayInput

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

type BackupPolicyArrayOutput struct{ *pulumi.OutputState }

func (BackupPolicyArrayOutput) ElementType

func (BackupPolicyArrayOutput) ElementType() reflect.Type

func (BackupPolicyArrayOutput) Index

func (BackupPolicyArrayOutput) ToBackupPolicyArrayOutput

func (o BackupPolicyArrayOutput) ToBackupPolicyArrayOutput() BackupPolicyArrayOutput

func (BackupPolicyArrayOutput) ToBackupPolicyArrayOutputWithContext

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

type BackupPolicyInput

type BackupPolicyInput interface {
	pulumi.Input

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

type BackupPolicyMap

type BackupPolicyMap map[string]BackupPolicyInput

func (BackupPolicyMap) ElementType

func (BackupPolicyMap) ElementType() reflect.Type

func (BackupPolicyMap) ToBackupPolicyMapOutput

func (i BackupPolicyMap) ToBackupPolicyMapOutput() BackupPolicyMapOutput

func (BackupPolicyMap) ToBackupPolicyMapOutputWithContext

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

type BackupPolicyMapInput

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

type BackupPolicyMapOutput struct{ *pulumi.OutputState }

func (BackupPolicyMapOutput) ElementType

func (BackupPolicyMapOutput) ElementType() reflect.Type

func (BackupPolicyMapOutput) MapIndex

func (BackupPolicyMapOutput) ToBackupPolicyMapOutput

func (o BackupPolicyMapOutput) ToBackupPolicyMapOutput() BackupPolicyMapOutput

func (BackupPolicyMapOutput) ToBackupPolicyMapOutputWithContext

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

type BackupPolicyOutput

type BackupPolicyOutput struct {
	*pulumi.OutputState
}

func (BackupPolicyOutput) ElementType

func (BackupPolicyOutput) ElementType() reflect.Type

func (BackupPolicyOutput) ToBackupPolicyOutput

func (o BackupPolicyOutput) ToBackupPolicyOutput() BackupPolicyOutput

func (BackupPolicyOutput) ToBackupPolicyOutputWithContext

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

func (BackupPolicyOutput) ToBackupPolicyPtrOutput

func (o BackupPolicyOutput) ToBackupPolicyPtrOutput() BackupPolicyPtrOutput

func (BackupPolicyOutput) ToBackupPolicyPtrOutputWithContext

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

type BackupPolicyPtrInput

type BackupPolicyPtrInput interface {
	pulumi.Input

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

type BackupPolicyPtrOutput

type BackupPolicyPtrOutput struct {
	*pulumi.OutputState
}

func (BackupPolicyPtrOutput) ElementType

func (BackupPolicyPtrOutput) ElementType() reflect.Type

func (BackupPolicyPtrOutput) ToBackupPolicyPtrOutput

func (o BackupPolicyPtrOutput) ToBackupPolicyPtrOutput() BackupPolicyPtrOutput

func (BackupPolicyPtrOutput) ToBackupPolicyPtrOutputWithContext

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"`
	// Deprecated: It duplicates with attribute db_node_class and is deprecated from 1.121.2.
	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.IntOutput `pulumi:"dbNodeCount"`
	// The dbNodeStorage of cluster node.
	DbNodeStorage pulumi.IntOutput `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.StringOutput    `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

func (*Cluster) ElementType() reflect.Type

func (*Cluster) ToClusterOutput

func (i *Cluster) ToClusterOutput() ClusterOutput

func (*Cluster) ToClusterOutputWithContext

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

func (*Cluster) ToClusterPtrOutput

func (i *Cluster) ToClusterPtrOutput() ClusterPtrOutput

func (*Cluster) ToClusterPtrOutputWithContext

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
	// Deprecated: It duplicates with attribute db_node_class and is deprecated from 1.121.2.
	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.StringInput
	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

type ClusterArray []ClusterInput

func (ClusterArray) ElementType

func (ClusterArray) ElementType() reflect.Type

func (ClusterArray) ToClusterArrayOutput

func (i ClusterArray) ToClusterArrayOutput() ClusterArrayOutput

func (ClusterArray) ToClusterArrayOutputWithContext

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

type ClusterArrayInput

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

type ClusterArrayOutput struct{ *pulumi.OutputState }

func (ClusterArrayOutput) ElementType

func (ClusterArrayOutput) ElementType() reflect.Type

func (ClusterArrayOutput) Index

func (ClusterArrayOutput) ToClusterArrayOutput

func (o ClusterArrayOutput) ToClusterArrayOutput() ClusterArrayOutput

func (ClusterArrayOutput) ToClusterArrayOutputWithContext

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

type ClusterInput

type ClusterInput interface {
	pulumi.Input

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

type ClusterMap

type ClusterMap map[string]ClusterInput

func (ClusterMap) ElementType

func (ClusterMap) ElementType() reflect.Type

func (ClusterMap) ToClusterMapOutput

func (i ClusterMap) ToClusterMapOutput() ClusterMapOutput

func (ClusterMap) ToClusterMapOutputWithContext

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

type ClusterMapInput

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

type ClusterMapOutput struct{ *pulumi.OutputState }

func (ClusterMapOutput) ElementType

func (ClusterMapOutput) ElementType() reflect.Type

func (ClusterMapOutput) MapIndex

func (ClusterMapOutput) ToClusterMapOutput

func (o ClusterMapOutput) ToClusterMapOutput() ClusterMapOutput

func (ClusterMapOutput) ToClusterMapOutputWithContext

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

type ClusterOutput

type ClusterOutput struct {
	*pulumi.OutputState
}

func (ClusterOutput) ElementType

func (ClusterOutput) ElementType() reflect.Type

func (ClusterOutput) ToClusterOutput

func (o ClusterOutput) ToClusterOutput() ClusterOutput

func (ClusterOutput) ToClusterOutputWithContext

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

func (ClusterOutput) ToClusterPtrOutput

func (o ClusterOutput) ToClusterPtrOutput() ClusterPtrOutput

func (ClusterOutput) ToClusterPtrOutputWithContext

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

type ClusterPtrInput

type ClusterPtrInput interface {
	pulumi.Input

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

type ClusterPtrOutput

type ClusterPtrOutput struct {
	*pulumi.OutputState
}

func (ClusterPtrOutput) ElementType

func (ClusterPtrOutput) ElementType() reflect.Type

func (ClusterPtrOutput) ToClusterPtrOutput

func (o ClusterPtrOutput) ToClusterPtrOutput() ClusterPtrOutput

func (ClusterPtrOutput) ToClusterPtrOutputWithContext

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
	// Deprecated: It duplicates with attribute db_node_class and is deprecated from 1.121.2.
	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

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		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"),
			ZoneId:      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

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

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

func NewConnection

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

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

func (*Connection) ElementType

func (*Connection) ElementType() reflect.Type

func (*Connection) ToConnectionOutput

func (i *Connection) ToConnectionOutput() ConnectionOutput

func (*Connection) ToConnectionOutputWithContext

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

func (*Connection) ToConnectionPtrOutput

func (i *Connection) ToConnectionPtrOutput() ConnectionPtrOutput

func (*Connection) ToConnectionPtrOutputWithContext

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

type ConnectionArgs

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

func (ConnectionArgs) ElementType() reflect.Type

type ConnectionArray

type ConnectionArray []ConnectionInput

func (ConnectionArray) ElementType

func (ConnectionArray) ElementType() reflect.Type

func (ConnectionArray) ToConnectionArrayOutput

func (i ConnectionArray) ToConnectionArrayOutput() ConnectionArrayOutput

func (ConnectionArray) ToConnectionArrayOutputWithContext

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

type ConnectionArrayInput

type ConnectionArrayInput interface {
	pulumi.Input

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

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

ConnectionArray{ ConnectionArgs{...} }

type ConnectionArrayOutput

type ConnectionArrayOutput struct{ *pulumi.OutputState }

func (ConnectionArrayOutput) ElementType

func (ConnectionArrayOutput) ElementType() reflect.Type

func (ConnectionArrayOutput) Index

func (ConnectionArrayOutput) ToConnectionArrayOutput

func (o ConnectionArrayOutput) ToConnectionArrayOutput() ConnectionArrayOutput

func (ConnectionArrayOutput) ToConnectionArrayOutputWithContext

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

type ConnectionInput

type ConnectionInput interface {
	pulumi.Input

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

type ConnectionMap

type ConnectionMap map[string]ConnectionInput

func (ConnectionMap) ElementType

func (ConnectionMap) ElementType() reflect.Type

func (ConnectionMap) ToConnectionMapOutput

func (i ConnectionMap) ToConnectionMapOutput() ConnectionMapOutput

func (ConnectionMap) ToConnectionMapOutputWithContext

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

type ConnectionMapInput

type ConnectionMapInput interface {
	pulumi.Input

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

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

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

type ConnectionMapOutput

type ConnectionMapOutput struct{ *pulumi.OutputState }

func (ConnectionMapOutput) ElementType

func (ConnectionMapOutput) ElementType() reflect.Type

func (ConnectionMapOutput) MapIndex

func (ConnectionMapOutput) ToConnectionMapOutput

func (o ConnectionMapOutput) ToConnectionMapOutput() ConnectionMapOutput

func (ConnectionMapOutput) ToConnectionMapOutputWithContext

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

type ConnectionOutput

type ConnectionOutput struct {
	*pulumi.OutputState
}

func (ConnectionOutput) ElementType

func (ConnectionOutput) ElementType() reflect.Type

func (ConnectionOutput) ToConnectionOutput

func (o ConnectionOutput) ToConnectionOutput() ConnectionOutput

func (ConnectionOutput) ToConnectionOutputWithContext

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

func (ConnectionOutput) ToConnectionPtrOutput

func (o ConnectionOutput) ToConnectionPtrOutput() ConnectionPtrOutput

func (ConnectionOutput) ToConnectionPtrOutputWithContext

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

type ConnectionPtrInput

type ConnectionPtrInput interface {
	pulumi.Input

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

type ConnectionPtrOutput

type ConnectionPtrOutput struct {
	*pulumi.OutputState
}

func (ConnectionPtrOutput) ElementType

func (ConnectionPtrOutput) ElementType() reflect.Type

func (ConnectionPtrOutput) ToConnectionPtrOutput

func (o ConnectionPtrOutput) ToConnectionPtrOutput() ConnectionPtrOutput

func (ConnectionPtrOutput) ToConnectionPtrOutputWithContext

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

type ConnectionState

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

func (ConnectionState) ElementType() reflect.Type

type DBCluster

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"`
	// It duplicates with attribute dbNodeClass and is deprecated from 1.121.2.
	//
	// Deprecated: It duplicates with attribute db_node_class and is deprecated from 1.121.2.
	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. For more information, see [DBClusterClass](https://help.aliyun.com/document_detail/190519.html)
	DbNodeClass pulumi.StringOutput `pulumi:"dbNodeClass"`
	// The db node count.
	DbNodeCount pulumi.IntOutput `pulumi:"dbNodeCount"`
	// The db node storage.
	DbNodeStorage pulumi.IntOutput `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.StringOutput `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"`
	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/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/adb"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "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"),
			ZoneId:      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

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

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

func (*DBCluster) ElementType() reflect.Type

func (*DBCluster) ToDBClusterOutput

func (i *DBCluster) ToDBClusterOutput() DBClusterOutput

func (*DBCluster) ToDBClusterOutputWithContext

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

func (*DBCluster) ToDBClusterPtrOutput

func (i *DBCluster) ToDBClusterPtrOutput() DBClusterPtrOutput

func (*DBCluster) ToDBClusterPtrOutputWithContext

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

type DBClusterArgs

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
	// It duplicates with attribute dbNodeClass and is deprecated from 1.121.2.
	//
	// Deprecated: It duplicates with attribute db_node_class and is deprecated from 1.121.2.
	DbClusterClass pulumi.StringPtrInput
	// The db cluster version. Value options: `3.0`, Default to `3.0`.
	DbClusterVersion pulumi.StringPtrInput
	// The db node class. For more information, see [DBClusterClass](https://help.aliyun.com/document_detail/190519.html)
	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.StringInput
	// 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
	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

func (DBClusterArgs) ElementType() reflect.Type

type DBClusterArray

type DBClusterArray []DBClusterInput

func (DBClusterArray) ElementType

func (DBClusterArray) ElementType() reflect.Type

func (DBClusterArray) ToDBClusterArrayOutput

func (i DBClusterArray) ToDBClusterArrayOutput() DBClusterArrayOutput

func (DBClusterArray) ToDBClusterArrayOutputWithContext

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

type DBClusterArrayInput

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

type DBClusterArrayOutput struct{ *pulumi.OutputState }

func (DBClusterArrayOutput) ElementType

func (DBClusterArrayOutput) ElementType() reflect.Type

func (DBClusterArrayOutput) Index

func (DBClusterArrayOutput) ToDBClusterArrayOutput

func (o DBClusterArrayOutput) ToDBClusterArrayOutput() DBClusterArrayOutput

func (DBClusterArrayOutput) ToDBClusterArrayOutputWithContext

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

type DBClusterInput

type DBClusterInput interface {
	pulumi.Input

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

type DBClusterMap

type DBClusterMap map[string]DBClusterInput

func (DBClusterMap) ElementType

func (DBClusterMap) ElementType() reflect.Type

func (DBClusterMap) ToDBClusterMapOutput

func (i DBClusterMap) ToDBClusterMapOutput() DBClusterMapOutput

func (DBClusterMap) ToDBClusterMapOutputWithContext

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

type DBClusterMapInput

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

type DBClusterMapOutput struct{ *pulumi.OutputState }

func (DBClusterMapOutput) ElementType

func (DBClusterMapOutput) ElementType() reflect.Type

func (DBClusterMapOutput) MapIndex

func (DBClusterMapOutput) ToDBClusterMapOutput

func (o DBClusterMapOutput) ToDBClusterMapOutput() DBClusterMapOutput

func (DBClusterMapOutput) ToDBClusterMapOutputWithContext

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

type DBClusterOutput

type DBClusterOutput struct {
	*pulumi.OutputState
}

func (DBClusterOutput) ElementType

func (DBClusterOutput) ElementType() reflect.Type

func (DBClusterOutput) ToDBClusterOutput

func (o DBClusterOutput) ToDBClusterOutput() DBClusterOutput

func (DBClusterOutput) ToDBClusterOutputWithContext

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

func (DBClusterOutput) ToDBClusterPtrOutput

func (o DBClusterOutput) ToDBClusterPtrOutput() DBClusterPtrOutput

func (DBClusterOutput) ToDBClusterPtrOutputWithContext

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

type DBClusterPtrInput

type DBClusterPtrInput interface {
	pulumi.Input

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

type DBClusterPtrOutput

type DBClusterPtrOutput struct {
	*pulumi.OutputState
}

func (DBClusterPtrOutput) ElementType

func (DBClusterPtrOutput) ElementType() reflect.Type

func (DBClusterPtrOutput) ToDBClusterPtrOutput

func (o DBClusterPtrOutput) ToDBClusterPtrOutput() DBClusterPtrOutput

func (DBClusterPtrOutput) ToDBClusterPtrOutputWithContext

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

type DBClusterState

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
	// It duplicates with attribute dbNodeClass and is deprecated from 1.121.2.
	//
	// Deprecated: It duplicates with attribute db_node_class and is deprecated from 1.121.2.
	DbClusterClass pulumi.StringPtrInput
	// The db cluster version. Value options: `3.0`, Default to `3.0`.
	DbClusterVersion pulumi.StringPtrInput
	// The db node class. For more information, see [DBClusterClass](https://help.aliyun.com/document_detail/190519.html)
	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
	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

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

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

func (o GetClustersClusterOutput) CommodityCode() pulumi.StringOutput

func (GetClustersClusterOutput) ComputeResource

func (o GetClustersClusterOutput) ComputeResource() pulumi.StringOutput

func (GetClustersClusterOutput) ConnectionString

func (o GetClustersClusterOutput) ConnectionString() pulumi.StringOutput

func (GetClustersClusterOutput) CreateTime

The CreateTime of the ADB cluster.

func (GetClustersClusterOutput) DbClusterCategory

func (o GetClustersClusterOutput) DbClusterCategory() pulumi.StringOutput

func (GetClustersClusterOutput) DbClusterId

func (GetClustersClusterOutput) DbClusterNetworkType

func (o GetClustersClusterOutput) DbClusterNetworkType() pulumi.StringOutput

func (GetClustersClusterOutput) DbClusterType

func (o GetClustersClusterOutput) DbClusterType() pulumi.StringOutput

func (GetClustersClusterOutput) DbClusterVersion

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

func (GetClustersClusterOutput) DtsJobId

func (GetClustersClusterOutput) ElasticIoResource

func (o GetClustersClusterOutput) ElasticIoResource() pulumi.IntOutput

func (GetClustersClusterOutput) ElementType

func (GetClustersClusterOutput) ElementType() reflect.Type

func (GetClustersClusterOutput) Engine

func (GetClustersClusterOutput) EngineVersion

func (o GetClustersClusterOutput) EngineVersion() pulumi.StringOutput

func (GetClustersClusterOutput) ExecutorCount

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

func (GetClustersClusterOutput) MaintainTime

func (o GetClustersClusterOutput) MaintainTime() pulumi.StringOutput

func (GetClustersClusterOutput) NetworkType

The DBClusterNetworkType of the ADB cluster.

func (GetClustersClusterOutput) PaymentType

func (GetClustersClusterOutput) Port

func (GetClustersClusterOutput) RdsInstanceId

func (o GetClustersClusterOutput) RdsInstanceId() pulumi.StringOutput

func (GetClustersClusterOutput) RegionId

Region ID the cluster belongs to.

func (GetClustersClusterOutput) RenewalStatus

func (o GetClustersClusterOutput) RenewalStatus() pulumi.StringOutput

func (GetClustersClusterOutput) ResourceGroupId

func (o GetClustersClusterOutput) ResourceGroupId() pulumi.StringOutput

func (GetClustersClusterOutput) SecurityIps

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

func (o GetClustersClusterOutput) StorageResource() pulumi.StringOutput

func (GetClustersClusterOutput) Tags

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

func (o GetClustersClusterOutput) VpcCloudInstanceId() pulumi.StringOutput

func (GetClustersClusterOutput) VpcId

ID of the VPC the cluster belongs to.

func (GetClustersClusterOutput) VswitchId

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

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

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

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

func (GetDBClustersClusterArgs) ElementType() reflect.Type

func (GetDBClustersClusterArgs) ToGetDBClustersClusterOutput

func (i GetDBClustersClusterArgs) ToGetDBClustersClusterOutput() GetDBClustersClusterOutput

func (GetDBClustersClusterArgs) ToGetDBClustersClusterOutputWithContext

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

type GetDBClustersClusterArray

type GetDBClustersClusterArray []GetDBClustersClusterInput

func (GetDBClustersClusterArray) ElementType

func (GetDBClustersClusterArray) ElementType() reflect.Type

func (GetDBClustersClusterArray) ToGetDBClustersClusterArrayOutput

func (i GetDBClustersClusterArray) ToGetDBClustersClusterArrayOutput() GetDBClustersClusterArrayOutput

func (GetDBClustersClusterArray) ToGetDBClustersClusterArrayOutputWithContext

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

type GetDBClustersClusterArrayInput

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

type GetDBClustersClusterArrayOutput struct{ *pulumi.OutputState }

func (GetDBClustersClusterArrayOutput) ElementType

func (GetDBClustersClusterArrayOutput) Index

func (GetDBClustersClusterArrayOutput) ToGetDBClustersClusterArrayOutput

func (o GetDBClustersClusterArrayOutput) ToGetDBClustersClusterArrayOutput() GetDBClustersClusterArrayOutput

func (GetDBClustersClusterArrayOutput) ToGetDBClustersClusterArrayOutputWithContext

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

type GetDBClustersClusterInput

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

type GetDBClustersClusterOutput struct{ *pulumi.OutputState }

func (GetDBClustersClusterOutput) AutoRenewPeriod

func (o GetDBClustersClusterOutput) AutoRenewPeriod() pulumi.IntOutput

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

func (GetDBClustersClusterOutput) ChargeType

The payment type of the resource.

func (GetDBClustersClusterOutput) CommodityCode

The name of the service.

func (GetDBClustersClusterOutput) ComputeResource

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

func (o GetDBClustersClusterOutput) ConnectionString() pulumi.StringOutput

The endpoint of the cluster.

func (GetDBClustersClusterOutput) CreateTime

The CreateTime of the ADB cluster.

func (GetDBClustersClusterOutput) DbClusterCategory

func (o GetDBClustersClusterOutput) DbClusterCategory() pulumi.StringOutput

The db cluster category.

func (GetDBClustersClusterOutput) DbClusterId

The db cluster id.

func (GetDBClustersClusterOutput) DbClusterNetworkType

func (o GetDBClustersClusterOutput) DbClusterNetworkType() pulumi.StringOutput

The db cluster network type.

func (GetDBClustersClusterOutput) DbClusterType

The db cluster type.

func (GetDBClustersClusterOutput) DbClusterVersion

func (o GetDBClustersClusterOutput) DbClusterVersion() pulumi.StringOutput

The db cluster version.

func (GetDBClustersClusterOutput) DbNodeClass

The db node class.

func (GetDBClustersClusterOutput) DbNodeCount

The db node count.

func (GetDBClustersClusterOutput) DbNodeStorage

func (o GetDBClustersClusterOutput) DbNodeStorage() pulumi.IntOutput

The db node storage.

func (GetDBClustersClusterOutput) Description

The description of DBCluster.

func (GetDBClustersClusterOutput) DiskType

The type of the disk.

func (GetDBClustersClusterOutput) DtsJobId

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

func (GetDBClustersClusterOutput) ElasticIoResource

func (o GetDBClustersClusterOutput) ElasticIoResource() pulumi.IntOutput

The elastic io resource.

func (GetDBClustersClusterOutput) ElementType

func (GetDBClustersClusterOutput) ElementType() reflect.Type

func (GetDBClustersClusterOutput) Engine

The engine of the database.

func (GetDBClustersClusterOutput) EngineVersion

The engine version of the database..

func (GetDBClustersClusterOutput) ExecutorCount

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

func (GetDBClustersClusterOutput) ExpireTime

The time when the cluster expires.

func (GetDBClustersClusterOutput) Expired

Indicates whether the cluster has expired.

func (GetDBClustersClusterOutput) Id

The ID of the DBCluster.

func (GetDBClustersClusterOutput) LockMode

The lock mode of the cluster.

func (GetDBClustersClusterOutput) LockReason

The reason why the cluster is locked.

func (GetDBClustersClusterOutput) MaintainTime

The maintenance window of the cluster.

func (GetDBClustersClusterOutput) NetworkType

func (GetDBClustersClusterOutput) PaymentType

The payment type of the resource.

func (GetDBClustersClusterOutput) Port

The port that is used to access the cluster.

func (GetDBClustersClusterOutput) RdsInstanceId

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

func (GetDBClustersClusterOutput) RenewalStatus

The status of renewal.

func (GetDBClustersClusterOutput) ResourceGroupId

func (o GetDBClustersClusterOutput) ResourceGroupId() pulumi.StringOutput

The ID of the resource group.

func (GetDBClustersClusterOutput) SecurityIps

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

func (GetDBClustersClusterOutput) Status

The status of the resource.

func (GetDBClustersClusterOutput) StorageResource

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

The tag of the resource.

func (GetDBClustersClusterOutput) ToGetDBClustersClusterOutput

func (o GetDBClustersClusterOutput) ToGetDBClustersClusterOutput() GetDBClustersClusterOutput

func (GetDBClustersClusterOutput) ToGetDBClustersClusterOutputWithContext

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

func (GetDBClustersClusterOutput) VpcCloudInstanceId

func (o GetDBClustersClusterOutput) VpcCloudInstanceId() pulumi.StringOutput

The vpc cloud instance id.

func (GetDBClustersClusterOutput) VpcId

The vpc id.

func (GetDBClustersClusterOutput) VswitchId

The vswitch id.

func (GetDBClustersClusterOutput) ZoneId

The zone ID of the resource.

type GetDBClustersResult

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

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