cassandra

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.1

func PkgVersion() (semver.Version, error)

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

Types

type BackupPlan

type BackupPlan struct {
	pulumi.CustomResourceState

	// Specifies whether to activate the backup plan. Valid values: `True`, `False`. Default value: `True`.
	Active pulumi.BoolOutput `pulumi:"active"`
	// The backup cycle. Valid values: `Friday`, `Monday`, `Saturday`, `Sunday`, `Thursday`, `Tuesday`, `Wednesday`.
	BackupPeriod pulumi.StringOutput `pulumi:"backupPeriod"`
	// The start time of the backup task each day. The time is displayed in UTC and denoted by Z.
	BackupTime pulumi.StringOutput `pulumi:"backupTime"`
	// The ID of the cluster for the backup.
	ClusterId pulumi.StringOutput `pulumi:"clusterId"`
	// The ID of the data center for the backup in the cluster.
	DataCenterId pulumi.StringOutput `pulumi:"dataCenterId"`
	// The duration for which you want to retain the backup. Valid values: 1 to 30. Unit: days. Default value: `30`.
	RetentionPeriod pulumi.IntOutput `pulumi:"retentionPeriod"`
}

Provides a Cassandra Backup Plan resource.

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

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

## Import

Cassandra Backup Plan can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cassandra/backupPlan:BackupPlan example <cluster_id>:<data_center_id>

```

func GetBackupPlan

func GetBackupPlan(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *BackupPlanState, opts ...pulumi.ResourceOption) (*BackupPlan, error)

GetBackupPlan gets an existing BackupPlan 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 NewBackupPlan

func NewBackupPlan(ctx *pulumi.Context,
	name string, args *BackupPlanArgs, opts ...pulumi.ResourceOption) (*BackupPlan, error)

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

func (*BackupPlan) ElementType

func (*BackupPlan) ElementType() reflect.Type

func (*BackupPlan) ToBackupPlanOutput

func (i *BackupPlan) ToBackupPlanOutput() BackupPlanOutput

func (*BackupPlan) ToBackupPlanOutputWithContext

func (i *BackupPlan) ToBackupPlanOutputWithContext(ctx context.Context) BackupPlanOutput

type BackupPlanArgs

type BackupPlanArgs struct {
	// Specifies whether to activate the backup plan. Valid values: `True`, `False`. Default value: `True`.
	Active pulumi.BoolPtrInput
	// The backup cycle. Valid values: `Friday`, `Monday`, `Saturday`, `Sunday`, `Thursday`, `Tuesday`, `Wednesday`.
	BackupPeriod pulumi.StringPtrInput
	// The start time of the backup task each day. The time is displayed in UTC and denoted by Z.
	BackupTime pulumi.StringInput
	// The ID of the cluster for the backup.
	ClusterId pulumi.StringInput
	// The ID of the data center for the backup in the cluster.
	DataCenterId pulumi.StringInput
	// The duration for which you want to retain the backup. Valid values: 1 to 30. Unit: days. Default value: `30`.
	RetentionPeriod pulumi.IntPtrInput
}

The set of arguments for constructing a BackupPlan resource.

func (BackupPlanArgs) ElementType

func (BackupPlanArgs) ElementType() reflect.Type

type BackupPlanArray

type BackupPlanArray []BackupPlanInput

func (BackupPlanArray) ElementType

func (BackupPlanArray) ElementType() reflect.Type

func (BackupPlanArray) ToBackupPlanArrayOutput

func (i BackupPlanArray) ToBackupPlanArrayOutput() BackupPlanArrayOutput

func (BackupPlanArray) ToBackupPlanArrayOutputWithContext

func (i BackupPlanArray) ToBackupPlanArrayOutputWithContext(ctx context.Context) BackupPlanArrayOutput

type BackupPlanArrayInput

type BackupPlanArrayInput interface {
	pulumi.Input

	ToBackupPlanArrayOutput() BackupPlanArrayOutput
	ToBackupPlanArrayOutputWithContext(context.Context) BackupPlanArrayOutput
}

BackupPlanArrayInput is an input type that accepts BackupPlanArray and BackupPlanArrayOutput values. You can construct a concrete instance of `BackupPlanArrayInput` via:

BackupPlanArray{ BackupPlanArgs{...} }

type BackupPlanArrayOutput

type BackupPlanArrayOutput struct{ *pulumi.OutputState }

func (BackupPlanArrayOutput) ElementType

func (BackupPlanArrayOutput) ElementType() reflect.Type

func (BackupPlanArrayOutput) Index

func (BackupPlanArrayOutput) ToBackupPlanArrayOutput

func (o BackupPlanArrayOutput) ToBackupPlanArrayOutput() BackupPlanArrayOutput

func (BackupPlanArrayOutput) ToBackupPlanArrayOutputWithContext

func (o BackupPlanArrayOutput) ToBackupPlanArrayOutputWithContext(ctx context.Context) BackupPlanArrayOutput

type BackupPlanInput

type BackupPlanInput interface {
	pulumi.Input

	ToBackupPlanOutput() BackupPlanOutput
	ToBackupPlanOutputWithContext(ctx context.Context) BackupPlanOutput
}

type BackupPlanMap

type BackupPlanMap map[string]BackupPlanInput

func (BackupPlanMap) ElementType

func (BackupPlanMap) ElementType() reflect.Type

func (BackupPlanMap) ToBackupPlanMapOutput

func (i BackupPlanMap) ToBackupPlanMapOutput() BackupPlanMapOutput

func (BackupPlanMap) ToBackupPlanMapOutputWithContext

func (i BackupPlanMap) ToBackupPlanMapOutputWithContext(ctx context.Context) BackupPlanMapOutput

type BackupPlanMapInput

type BackupPlanMapInput interface {
	pulumi.Input

	ToBackupPlanMapOutput() BackupPlanMapOutput
	ToBackupPlanMapOutputWithContext(context.Context) BackupPlanMapOutput
}

BackupPlanMapInput is an input type that accepts BackupPlanMap and BackupPlanMapOutput values. You can construct a concrete instance of `BackupPlanMapInput` via:

BackupPlanMap{ "key": BackupPlanArgs{...} }

type BackupPlanMapOutput

type BackupPlanMapOutput struct{ *pulumi.OutputState }

func (BackupPlanMapOutput) ElementType

func (BackupPlanMapOutput) ElementType() reflect.Type

func (BackupPlanMapOutput) MapIndex

func (BackupPlanMapOutput) ToBackupPlanMapOutput

func (o BackupPlanMapOutput) ToBackupPlanMapOutput() BackupPlanMapOutput

func (BackupPlanMapOutput) ToBackupPlanMapOutputWithContext

func (o BackupPlanMapOutput) ToBackupPlanMapOutputWithContext(ctx context.Context) BackupPlanMapOutput

type BackupPlanOutput

type BackupPlanOutput struct{ *pulumi.OutputState }

func (BackupPlanOutput) Active

func (o BackupPlanOutput) Active() pulumi.BoolOutput

Specifies whether to activate the backup plan. Valid values: `True`, `False`. Default value: `True`.

func (BackupPlanOutput) BackupPeriod

func (o BackupPlanOutput) BackupPeriod() pulumi.StringOutput

The backup cycle. Valid values: `Friday`, `Monday`, `Saturday`, `Sunday`, `Thursday`, `Tuesday`, `Wednesday`.

func (BackupPlanOutput) BackupTime

func (o BackupPlanOutput) BackupTime() pulumi.StringOutput

The start time of the backup task each day. The time is displayed in UTC and denoted by Z.

func (BackupPlanOutput) ClusterId

func (o BackupPlanOutput) ClusterId() pulumi.StringOutput

The ID of the cluster for the backup.

func (BackupPlanOutput) DataCenterId

func (o BackupPlanOutput) DataCenterId() pulumi.StringOutput

The ID of the data center for the backup in the cluster.

func (BackupPlanOutput) ElementType

func (BackupPlanOutput) ElementType() reflect.Type

func (BackupPlanOutput) RetentionPeriod

func (o BackupPlanOutput) RetentionPeriod() pulumi.IntOutput

The duration for which you want to retain the backup. Valid values: 1 to 30. Unit: days. Default value: `30`.

func (BackupPlanOutput) ToBackupPlanOutput

func (o BackupPlanOutput) ToBackupPlanOutput() BackupPlanOutput

func (BackupPlanOutput) ToBackupPlanOutputWithContext

func (o BackupPlanOutput) ToBackupPlanOutputWithContext(ctx context.Context) BackupPlanOutput

type BackupPlanState

type BackupPlanState struct {
	// Specifies whether to activate the backup plan. Valid values: `True`, `False`. Default value: `True`.
	Active pulumi.BoolPtrInput
	// The backup cycle. Valid values: `Friday`, `Monday`, `Saturday`, `Sunday`, `Thursday`, `Tuesday`, `Wednesday`.
	BackupPeriod pulumi.StringPtrInput
	// The start time of the backup task each day. The time is displayed in UTC and denoted by Z.
	BackupTime pulumi.StringPtrInput
	// The ID of the cluster for the backup.
	ClusterId pulumi.StringPtrInput
	// The ID of the data center for the backup in the cluster.
	DataCenterId pulumi.StringPtrInput
	// The duration for which you want to retain the backup. Valid values: 1 to 30. Unit: days. Default value: `30`.
	RetentionPeriod pulumi.IntPtrInput
}

func (BackupPlanState) ElementType

func (BackupPlanState) ElementType() reflect.Type

type Cluster

type Cluster struct {
	pulumi.CustomResourceState

	// Auto renew of dataCenter-1,`true` or `false`. System default to `false`, valid when payType = PrePaid.
	AutoRenew pulumi.BoolPtrOutput `pulumi:"autoRenew"`
	// Period of dataCenter-1 auto renew, if auto renew is `true`, one of `1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60`, valid when payType = Subscription. Unit: month.
	AutoRenewPeriod pulumi.IntPtrOutput `pulumi:"autoRenewPeriod"`
	// Cassandra cluster name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period `.`, underline `_`, or dash `-` are permitted.
	ClusterName pulumi.StringPtrOutput `pulumi:"clusterName"`
	// Cassandra dataCenter-1 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period `.`, underline `_`, or dash `-` are permitted.
	DataCenterName pulumi.StringPtrOutput `pulumi:"dataCenterName"`
	// User-defined Cassandra dataCenter-1 one node's storage space.Unit: GB. Value range:
	// - Custom storage space; value range: [160, 2000].
	// - 80-GB increments.
	DiskSize pulumi.IntPtrOutput `pulumi:"diskSize"`
	// The disk type of Cassandra dataCenter-1. Valid values are `cloudSsd`, `cloudEfficiency`, `localHddPro`, `localSsdPro`, localDisk size is fixed.
	DiskType     pulumi.StringPtrOutput `pulumi:"diskType"`
	EnablePublic pulumi.BoolPtrOutput   `pulumi:"enablePublic"`
	// Instance specification. See [Instance specifications](https://help.aliyun.com/document_detail/157445.html). Or you can call describeInstanceType api.
	InstanceType pulumi.StringOutput `pulumi:"instanceType"`
	// Set the instance's IP whitelist in VPC network.
	IpWhite pulumi.StringOutput `pulumi:"ipWhite"`
	// The end time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
	MaintainEndTime pulumi.StringPtrOutput `pulumi:"maintainEndTime"`
	// The start time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
	MaintainStartTime pulumi.StringPtrOutput `pulumi:"maintainStartTime"`
	// Cassandra major version. Now only support version `3.11`.
	MajorVersion pulumi.StringOutput `pulumi:"majorVersion"`
	// The node count of Cassandra dataCenter-1 default to 2.
	NodeCount pulumi.IntOutput       `pulumi:"nodeCount"`
	Password  pulumi.StringPtrOutput `pulumi:"password"`
	// The pay type of Cassandra dataCenter-1. Valid values are `Subscription`, `PayAsYouGo`,System default to `PayAsYouGo`.
	PayType      pulumi.StringOutput      `pulumi:"payType"`
	Period       pulumi.IntPtrOutput      `pulumi:"period"`
	PeriodUnit   pulumi.StringPtrOutput   `pulumi:"periodUnit"`
	PublicPoints pulumi.StringArrayOutput `pulumi:"publicPoints"`
	// A list of security group ids to associate with.
	SecurityGroups pulumi.StringArrayOutput `pulumi:"securityGroups"`
	Status         pulumi.StringOutput      `pulumi:"status"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapOutput `pulumi:"tags"`
	// The vswitchId of dataCenter-1, can not empty.
	VswitchId pulumi.StringOutput `pulumi:"vswitchId"`
	// The Zone to launch the Cassandra cluster. If vswitchId is not empty, this zoneId can be "" or consistent.
	ZoneId pulumi.StringOutput `pulumi:"zoneId"`
}

Provides a Cassandra cluster resource supports replica set clusters only. The Cassandra provides stable, reliable, and automatic scalable database services. It offers a full range of database solutions, such as disaster recovery, backup, recovery, monitoring, and alarms. You can see detail product introduction [here](https://www.alibabacloud.com/help/product/49055.htm).

> **NOTE:** Available in 1.88.0+.

> **NOTE:** The following regions support create Vpc network Cassandra cluster. The official website mark more regions. Or you can call [DescribeRegions](https://help.aliyun.com/document_detail/157540.html).

> **NOTE:** Create Cassandra cluster or change cluster type and storage would cost 30 minutes. Please make full preparation.

## Example Usage ### Create a cassandra cluster

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cassandra.NewCluster(ctx, "default", &cassandra.ClusterArgs{
			AutoRenew:         pulumi.Bool(false),
			ClusterName:       pulumi.String("cassandra-cluster-name-tf"),
			DataCenterName:    pulumi.String("dc-1"),
			DiskSize:          pulumi.Int(160),
			DiskType:          pulumi.String("cloud_ssd"),
			InstanceType:      pulumi.String("cassandra.c.large"),
			IpWhite:           pulumi.String("127.0.0.1"),
			MaintainEndTime:   pulumi.String("20:00Z"),
			MaintainStartTime: pulumi.String("18:00Z"),
			MajorVersion:      pulumi.String("3.11"),
			NodeCount:         pulumi.Int(2),
			PayType:           pulumi.String("PayAsYouGo"),
			VswitchId:         pulumi.String("vsw-xxxx"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

This is a example for class netType cluster. You can find more detail with the examples/cassandra_cluster dir.

## Import

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

```sh

$ pulumi import alicloud:cassandra/cluster:Cluster example cds-wz9sr400dd7xxxxx

```

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

type ClusterArgs

type ClusterArgs struct {
	// Auto renew of dataCenter-1,`true` or `false`. System default to `false`, valid when payType = PrePaid.
	AutoRenew pulumi.BoolPtrInput
	// Period of dataCenter-1 auto renew, if auto renew is `true`, one of `1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60`, valid when payType = Subscription. Unit: month.
	AutoRenewPeriod pulumi.IntPtrInput
	// Cassandra cluster name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period `.`, underline `_`, or dash `-` are permitted.
	ClusterName pulumi.StringPtrInput
	// Cassandra dataCenter-1 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period `.`, underline `_`, or dash `-` are permitted.
	DataCenterName pulumi.StringPtrInput
	// User-defined Cassandra dataCenter-1 one node's storage space.Unit: GB. Value range:
	// - Custom storage space; value range: [160, 2000].
	// - 80-GB increments.
	DiskSize pulumi.IntPtrInput
	// The disk type of Cassandra dataCenter-1. Valid values are `cloudSsd`, `cloudEfficiency`, `localHddPro`, `localSsdPro`, localDisk size is fixed.
	DiskType     pulumi.StringPtrInput
	EnablePublic pulumi.BoolPtrInput
	// Instance specification. See [Instance specifications](https://help.aliyun.com/document_detail/157445.html). Or you can call describeInstanceType api.
	InstanceType pulumi.StringInput
	// Set the instance's IP whitelist in VPC network.
	IpWhite pulumi.StringPtrInput
	// The end time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
	MaintainEndTime pulumi.StringPtrInput
	// The start time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
	MaintainStartTime pulumi.StringPtrInput
	// Cassandra major version. Now only support version `3.11`.
	MajorVersion pulumi.StringInput
	// The node count of Cassandra dataCenter-1 default to 2.
	NodeCount pulumi.IntInput
	Password  pulumi.StringPtrInput
	// The pay type of Cassandra dataCenter-1. Valid values are `Subscription`, `PayAsYouGo`,System default to `PayAsYouGo`.
	PayType    pulumi.StringInput
	Period     pulumi.IntPtrInput
	PeriodUnit pulumi.StringPtrInput
	// A list of security group ids to associate with.
	SecurityGroups pulumi.StringArrayInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
	// The vswitchId of dataCenter-1, can not empty.
	VswitchId pulumi.StringInput
	// The Zone to launch the Cassandra cluster. If vswitchId is not empty, this zoneId can be "" or consistent.
	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) AutoRenew

func (o ClusterOutput) AutoRenew() pulumi.BoolPtrOutput

Auto renew of dataCenter-1,`true` or `false`. System default to `false`, valid when payType = PrePaid.

func (ClusterOutput) AutoRenewPeriod

func (o ClusterOutput) AutoRenewPeriod() pulumi.IntPtrOutput

Period of dataCenter-1 auto renew, if auto renew is `true`, one of `1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60`, valid when payType = Subscription. Unit: month.

func (ClusterOutput) ClusterName

func (o ClusterOutput) ClusterName() pulumi.StringPtrOutput

Cassandra cluster name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period `.`, underline `_`, or dash `-` are permitted.

func (ClusterOutput) DataCenterName

func (o ClusterOutput) DataCenterName() pulumi.StringPtrOutput

Cassandra dataCenter-1 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period `.`, underline `_`, or dash `-` are permitted.

func (ClusterOutput) DiskSize

func (o ClusterOutput) DiskSize() pulumi.IntPtrOutput

User-defined Cassandra dataCenter-1 one node's storage space.Unit: GB. Value range: - Custom storage space; value range: [160, 2000]. - 80-GB increments.

func (ClusterOutput) DiskType

func (o ClusterOutput) DiskType() pulumi.StringPtrOutput

The disk type of Cassandra dataCenter-1. Valid values are `cloudSsd`, `cloudEfficiency`, `localHddPro`, `localSsdPro`, localDisk size is fixed.

func (ClusterOutput) ElementType

func (ClusterOutput) ElementType() reflect.Type

func (ClusterOutput) EnablePublic

func (o ClusterOutput) EnablePublic() pulumi.BoolPtrOutput

func (ClusterOutput) InstanceType

func (o ClusterOutput) InstanceType() pulumi.StringOutput

Instance specification. See [Instance specifications](https://help.aliyun.com/document_detail/157445.html). Or you can call describeInstanceType api.

func (ClusterOutput) IpWhite

func (o ClusterOutput) IpWhite() pulumi.StringOutput

Set the instance's IP whitelist in VPC network.

func (ClusterOutput) MaintainEndTime

func (o ClusterOutput) MaintainEndTime() pulumi.StringPtrOutput

The end time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).

func (ClusterOutput) MaintainStartTime

func (o ClusterOutput) MaintainStartTime() pulumi.StringPtrOutput

The start time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).

func (ClusterOutput) MajorVersion

func (o ClusterOutput) MajorVersion() pulumi.StringOutput

Cassandra major version. Now only support version `3.11`.

func (ClusterOutput) NodeCount

func (o ClusterOutput) NodeCount() pulumi.IntOutput

The node count of Cassandra dataCenter-1 default to 2.

func (ClusterOutput) Password

func (o ClusterOutput) Password() pulumi.StringPtrOutput

func (ClusterOutput) PayType

func (o ClusterOutput) PayType() pulumi.StringOutput

The pay type of Cassandra dataCenter-1. Valid values are `Subscription`, `PayAsYouGo`,System default to `PayAsYouGo`.

func (ClusterOutput) Period

func (o ClusterOutput) Period() pulumi.IntPtrOutput

func (ClusterOutput) PeriodUnit

func (o ClusterOutput) PeriodUnit() pulumi.StringPtrOutput

func (ClusterOutput) PublicPoints

func (o ClusterOutput) PublicPoints() pulumi.StringArrayOutput

func (ClusterOutput) SecurityGroups

func (o ClusterOutput) SecurityGroups() pulumi.StringArrayOutput

A list of security group ids to associate with.

func (ClusterOutput) Status

func (o ClusterOutput) Status() pulumi.StringOutput

func (ClusterOutput) Tags

func (o ClusterOutput) Tags() pulumi.MapOutput

A mapping of tags to assign to the resource.

func (ClusterOutput) ToClusterOutput

func (o ClusterOutput) ToClusterOutput() ClusterOutput

func (ClusterOutput) ToClusterOutputWithContext

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

func (ClusterOutput) VswitchId

func (o ClusterOutput) VswitchId() pulumi.StringOutput

The vswitchId of dataCenter-1, can not empty.

func (ClusterOutput) ZoneId

func (o ClusterOutput) ZoneId() pulumi.StringOutput

The Zone to launch the Cassandra cluster. If vswitchId is not empty, this zoneId can be "" or consistent.

type ClusterState

type ClusterState struct {
	// Auto renew of dataCenter-1,`true` or `false`. System default to `false`, valid when payType = PrePaid.
	AutoRenew pulumi.BoolPtrInput
	// Period of dataCenter-1 auto renew, if auto renew is `true`, one of `1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60`, valid when payType = Subscription. Unit: month.
	AutoRenewPeriod pulumi.IntPtrInput
	// Cassandra cluster name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period `.`, underline `_`, or dash `-` are permitted.
	ClusterName pulumi.StringPtrInput
	// Cassandra dataCenter-1 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period `.`, underline `_`, or dash `-` are permitted.
	DataCenterName pulumi.StringPtrInput
	// User-defined Cassandra dataCenter-1 one node's storage space.Unit: GB. Value range:
	// - Custom storage space; value range: [160, 2000].
	// - 80-GB increments.
	DiskSize pulumi.IntPtrInput
	// The disk type of Cassandra dataCenter-1. Valid values are `cloudSsd`, `cloudEfficiency`, `localHddPro`, `localSsdPro`, localDisk size is fixed.
	DiskType     pulumi.StringPtrInput
	EnablePublic pulumi.BoolPtrInput
	// Instance specification. See [Instance specifications](https://help.aliyun.com/document_detail/157445.html). Or you can call describeInstanceType api.
	InstanceType pulumi.StringPtrInput
	// Set the instance's IP whitelist in VPC network.
	IpWhite pulumi.StringPtrInput
	// The end time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
	MaintainEndTime pulumi.StringPtrInput
	// The start time of the operation and maintenance time period of the cluster, in the format of HH:mmZ (UTC time).
	MaintainStartTime pulumi.StringPtrInput
	// Cassandra major version. Now only support version `3.11`.
	MajorVersion pulumi.StringPtrInput
	// The node count of Cassandra dataCenter-1 default to 2.
	NodeCount pulumi.IntPtrInput
	Password  pulumi.StringPtrInput
	// The pay type of Cassandra dataCenter-1. Valid values are `Subscription`, `PayAsYouGo`,System default to `PayAsYouGo`.
	PayType      pulumi.StringPtrInput
	Period       pulumi.IntPtrInput
	PeriodUnit   pulumi.StringPtrInput
	PublicPoints pulumi.StringArrayInput
	// A list of security group ids to associate with.
	SecurityGroups pulumi.StringArrayInput
	Status         pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
	// The vswitchId of dataCenter-1, can not empty.
	VswitchId pulumi.StringPtrInput
	// The Zone to launch the Cassandra cluster. If vswitchId is not empty, this zoneId can be "" or consistent.
	ZoneId pulumi.StringPtrInput
}

func (ClusterState) ElementType

func (ClusterState) ElementType() reflect.Type

type DataCenter

type DataCenter struct {
	pulumi.CustomResourceState

	// Auto renew of dataCenter-2,`true` or `false`. System default to `false`, valid when payType = Subscription.
	AutoRenew pulumi.BoolPtrOutput `pulumi:"autoRenew"`
	// Period of dataCenter-2 auto renew, if auto renew is `true`, one of `1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60`, valid when payType = Subscription. Unit: month.
	AutoRenewPeriod pulumi.IntPtrOutput `pulumi:"autoRenewPeriod"`
	// Cassandra cluster id of dataCenter-2 belongs to.
	ClusterId    pulumi.StringOutput `pulumi:"clusterId"`
	DataCenterId pulumi.StringOutput `pulumi:"dataCenterId"`
	// Cassandra dataCenter-2 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period `.`, underline `_`, or dash `-` are permitted.
	DataCenterName pulumi.StringPtrOutput `pulumi:"dataCenterName"`
	// User-defined Cassandra dataCenter one core node's storage space.Unit: GB. Value range:
	// - Custom storage space; value range: [160, 2000].
	// - 80-GB increments.
	DiskSize pulumi.IntPtrOutput `pulumi:"diskSize"`
	// The disk type of Cassandra dataCenter-2. Valid values are `cloudSsd`, `cloudEfficiency`, `localHddPro`, `localSsdPro`, localDisk size is fixed.
	DiskType     pulumi.StringPtrOutput `pulumi:"diskType"`
	EnablePublic pulumi.BoolPtrOutput   `pulumi:"enablePublic"`
	// Instance specification. See [Instance specifications](https://help.aliyun.com/document_detail/157445.html). Or you can call describeInstanceType api.
	InstanceType pulumi.StringOutput `pulumi:"instanceType"`
	// The node count of Cassandra dataCenter-2, default to 2.
	NodeCount pulumi.IntOutput `pulumi:"nodeCount"`
	// The pay type of Cassandra dataCenter-2. Valid values are `Subscription`, `PayAsYouGo`. System default to `PayAsYouGo`.
	PayType      pulumi.StringOutput      `pulumi:"payType"`
	Period       pulumi.IntPtrOutput      `pulumi:"period"`
	PeriodUnit   pulumi.StringPtrOutput   `pulumi:"periodUnit"`
	PublicPoints pulumi.StringArrayOutput `pulumi:"publicPoints"`
	Status       pulumi.StringOutput      `pulumi:"status"`
	// The vswitchId of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.
	VswitchId pulumi.StringOutput `pulumi:"vswitchId"`
	// The Zone to launch the Cassandra dataCenter-2. If vswitchId is not empty, this zoneId can be "" or consistent.
	ZoneId pulumi.StringOutput `pulumi:"zoneId"`
}

Provides a Cassandra dataCenter resource supports replica set dataCenters only. The Cassandra provides stable, reliable, and automatic scalable database services. It offers a full range of database solutions, such as disaster recovery, backup, recovery, monitoring, and alarms. You can see detail product introduction [here](https://www.alibabacloud.com/help/product/49055.htm).

> **NOTE:** Available in 1.88.0+.

> **NOTE:** Create a cassandra dataCenter need a clusterId,so need create a cassandra cluster first.

> **NOTE:** The following regions support create Vpc network Cassandra cluster. The official website mark more regions. Or you can call [DescribeRegions](https://help.aliyun.com/document_detail/157540.html).

> **NOTE:** Create Cassandra dataCenter or change dataCenter type and storage would cost 30 minutes. Please make full preparation.

## Example Usage ### Create a cassandra dataCenter

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultCluster, err := cassandra.NewCluster(ctx, "defaultCluster", &cassandra.ClusterArgs{
			ClusterName:       pulumi.String("cassandra-cluster-name-tf"),
			DataCenterName:    pulumi.String("dc-1"),
			AutoRenew:         pulumi.Bool(false),
			InstanceType:      pulumi.String("cassandra.c.large"),
			MajorVersion:      pulumi.String("3.11"),
			NodeCount:         pulumi.Int(2),
			PayType:           pulumi.String("PayAsYouGo"),
			VswitchId:         pulumi.String("vsw-xxxx1"),
			DiskSize:          pulumi.Int(160),
			DiskType:          pulumi.String("cloud_ssd"),
			MaintainStartTime: pulumi.String("18:00Z"),
			MaintainEndTime:   pulumi.String("20:00Z"),
			IpWhite:           pulumi.String("127.0.0.1"),
		})
		if err != nil {
			return err
		}
		_, err = cassandra.NewDataCenter(ctx, "defaultDataCenter", &cassandra.DataCenterArgs{
			ClusterId:      defaultCluster.ID(),
			DataCenterName: pulumi.String("dc-2"),
			AutoRenew:      pulumi.Bool(false),
			InstanceType:   pulumi.String("cassandra.c.large"),
			NodeCount:      pulumi.Int(2),
			PayType:        pulumi.String("PayAsYouGo"),
			VswitchId:      pulumi.String("vsw-xxxx2"),
			DiskSize:       pulumi.Int(160),
			DiskType:       pulumi.String("cloud_ssd"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

This is a example for class netType dataCenter. You can find more detail with the examples/cassandra_data_center dir.

## Import

If you need full function, please import Cassandra cluster first. Cassandra dataCenter can be imported using the dcId:clusterId, e.g.

```sh

$ pulumi import alicloud:cassandra/dataCenter:DataCenter dc_2 cn-shenxxxx-x:cds-wz933ryoaurxxxxx

```

func GetDataCenter

func GetDataCenter(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DataCenterState, opts ...pulumi.ResourceOption) (*DataCenter, error)

GetDataCenter gets an existing DataCenter 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 NewDataCenter

func NewDataCenter(ctx *pulumi.Context,
	name string, args *DataCenterArgs, opts ...pulumi.ResourceOption) (*DataCenter, error)

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

func (*DataCenter) ElementType

func (*DataCenter) ElementType() reflect.Type

func (*DataCenter) ToDataCenterOutput

func (i *DataCenter) ToDataCenterOutput() DataCenterOutput

func (*DataCenter) ToDataCenterOutputWithContext

func (i *DataCenter) ToDataCenterOutputWithContext(ctx context.Context) DataCenterOutput

type DataCenterArgs

type DataCenterArgs struct {
	// Auto renew of dataCenter-2,`true` or `false`. System default to `false`, valid when payType = Subscription.
	AutoRenew pulumi.BoolPtrInput
	// Period of dataCenter-2 auto renew, if auto renew is `true`, one of `1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60`, valid when payType = Subscription. Unit: month.
	AutoRenewPeriod pulumi.IntPtrInput
	// Cassandra cluster id of dataCenter-2 belongs to.
	ClusterId pulumi.StringInput
	// Cassandra dataCenter-2 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period `.`, underline `_`, or dash `-` are permitted.
	DataCenterName pulumi.StringPtrInput
	// User-defined Cassandra dataCenter one core node's storage space.Unit: GB. Value range:
	// - Custom storage space; value range: [160, 2000].
	// - 80-GB increments.
	DiskSize pulumi.IntPtrInput
	// The disk type of Cassandra dataCenter-2. Valid values are `cloudSsd`, `cloudEfficiency`, `localHddPro`, `localSsdPro`, localDisk size is fixed.
	DiskType     pulumi.StringPtrInput
	EnablePublic pulumi.BoolPtrInput
	// Instance specification. See [Instance specifications](https://help.aliyun.com/document_detail/157445.html). Or you can call describeInstanceType api.
	InstanceType pulumi.StringInput
	// The node count of Cassandra dataCenter-2, default to 2.
	NodeCount pulumi.IntInput
	// The pay type of Cassandra dataCenter-2. Valid values are `Subscription`, `PayAsYouGo`. System default to `PayAsYouGo`.
	PayType    pulumi.StringInput
	Period     pulumi.IntPtrInput
	PeriodUnit pulumi.StringPtrInput
	// The vswitchId of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.
	VswitchId pulumi.StringInput
	// The Zone to launch the Cassandra dataCenter-2. If vswitchId is not empty, this zoneId can be "" or consistent.
	ZoneId pulumi.StringPtrInput
}

The set of arguments for constructing a DataCenter resource.

func (DataCenterArgs) ElementType

func (DataCenterArgs) ElementType() reflect.Type

type DataCenterArray

type DataCenterArray []DataCenterInput

func (DataCenterArray) ElementType

func (DataCenterArray) ElementType() reflect.Type

func (DataCenterArray) ToDataCenterArrayOutput

func (i DataCenterArray) ToDataCenterArrayOutput() DataCenterArrayOutput

func (DataCenterArray) ToDataCenterArrayOutputWithContext

func (i DataCenterArray) ToDataCenterArrayOutputWithContext(ctx context.Context) DataCenterArrayOutput

type DataCenterArrayInput

type DataCenterArrayInput interface {
	pulumi.Input

	ToDataCenterArrayOutput() DataCenterArrayOutput
	ToDataCenterArrayOutputWithContext(context.Context) DataCenterArrayOutput
}

DataCenterArrayInput is an input type that accepts DataCenterArray and DataCenterArrayOutput values. You can construct a concrete instance of `DataCenterArrayInput` via:

DataCenterArray{ DataCenterArgs{...} }

type DataCenterArrayOutput

type DataCenterArrayOutput struct{ *pulumi.OutputState }

func (DataCenterArrayOutput) ElementType

func (DataCenterArrayOutput) ElementType() reflect.Type

func (DataCenterArrayOutput) Index

func (DataCenterArrayOutput) ToDataCenterArrayOutput

func (o DataCenterArrayOutput) ToDataCenterArrayOutput() DataCenterArrayOutput

func (DataCenterArrayOutput) ToDataCenterArrayOutputWithContext

func (o DataCenterArrayOutput) ToDataCenterArrayOutputWithContext(ctx context.Context) DataCenterArrayOutput

type DataCenterInput

type DataCenterInput interface {
	pulumi.Input

	ToDataCenterOutput() DataCenterOutput
	ToDataCenterOutputWithContext(ctx context.Context) DataCenterOutput
}

type DataCenterMap

type DataCenterMap map[string]DataCenterInput

func (DataCenterMap) ElementType

func (DataCenterMap) ElementType() reflect.Type

func (DataCenterMap) ToDataCenterMapOutput

func (i DataCenterMap) ToDataCenterMapOutput() DataCenterMapOutput

func (DataCenterMap) ToDataCenterMapOutputWithContext

func (i DataCenterMap) ToDataCenterMapOutputWithContext(ctx context.Context) DataCenterMapOutput

type DataCenterMapInput

type DataCenterMapInput interface {
	pulumi.Input

	ToDataCenterMapOutput() DataCenterMapOutput
	ToDataCenterMapOutputWithContext(context.Context) DataCenterMapOutput
}

DataCenterMapInput is an input type that accepts DataCenterMap and DataCenterMapOutput values. You can construct a concrete instance of `DataCenterMapInput` via:

DataCenterMap{ "key": DataCenterArgs{...} }

type DataCenterMapOutput

type DataCenterMapOutput struct{ *pulumi.OutputState }

func (DataCenterMapOutput) ElementType

func (DataCenterMapOutput) ElementType() reflect.Type

func (DataCenterMapOutput) MapIndex

func (DataCenterMapOutput) ToDataCenterMapOutput

func (o DataCenterMapOutput) ToDataCenterMapOutput() DataCenterMapOutput

func (DataCenterMapOutput) ToDataCenterMapOutputWithContext

func (o DataCenterMapOutput) ToDataCenterMapOutputWithContext(ctx context.Context) DataCenterMapOutput

type DataCenterOutput

type DataCenterOutput struct{ *pulumi.OutputState }

func (DataCenterOutput) AutoRenew

func (o DataCenterOutput) AutoRenew() pulumi.BoolPtrOutput

Auto renew of dataCenter-2,`true` or `false`. System default to `false`, valid when payType = Subscription.

func (DataCenterOutput) AutoRenewPeriod

func (o DataCenterOutput) AutoRenewPeriod() pulumi.IntPtrOutput

Period of dataCenter-2 auto renew, if auto renew is `true`, one of `1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60`, valid when payType = Subscription. Unit: month.

func (DataCenterOutput) ClusterId

func (o DataCenterOutput) ClusterId() pulumi.StringOutput

Cassandra cluster id of dataCenter-2 belongs to.

func (DataCenterOutput) DataCenterId

func (o DataCenterOutput) DataCenterId() pulumi.StringOutput

func (DataCenterOutput) DataCenterName

func (o DataCenterOutput) DataCenterName() pulumi.StringPtrOutput

Cassandra dataCenter-2 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period `.`, underline `_`, or dash `-` are permitted.

func (DataCenterOutput) DiskSize

func (o DataCenterOutput) DiskSize() pulumi.IntPtrOutput

User-defined Cassandra dataCenter one core node's storage space.Unit: GB. Value range: - Custom storage space; value range: [160, 2000]. - 80-GB increments.

func (DataCenterOutput) DiskType

The disk type of Cassandra dataCenter-2. Valid values are `cloudSsd`, `cloudEfficiency`, `localHddPro`, `localSsdPro`, localDisk size is fixed.

func (DataCenterOutput) ElementType

func (DataCenterOutput) ElementType() reflect.Type

func (DataCenterOutput) EnablePublic

func (o DataCenterOutput) EnablePublic() pulumi.BoolPtrOutput

func (DataCenterOutput) InstanceType

func (o DataCenterOutput) InstanceType() pulumi.StringOutput

Instance specification. See [Instance specifications](https://help.aliyun.com/document_detail/157445.html). Or you can call describeInstanceType api.

func (DataCenterOutput) NodeCount

func (o DataCenterOutput) NodeCount() pulumi.IntOutput

The node count of Cassandra dataCenter-2, default to 2.

func (DataCenterOutput) PayType

func (o DataCenterOutput) PayType() pulumi.StringOutput

The pay type of Cassandra dataCenter-2. Valid values are `Subscription`, `PayAsYouGo`. System default to `PayAsYouGo`.

func (DataCenterOutput) Period

func (DataCenterOutput) PeriodUnit

func (o DataCenterOutput) PeriodUnit() pulumi.StringPtrOutput

func (DataCenterOutput) PublicPoints

func (o DataCenterOutput) PublicPoints() pulumi.StringArrayOutput

func (DataCenterOutput) Status

func (DataCenterOutput) ToDataCenterOutput

func (o DataCenterOutput) ToDataCenterOutput() DataCenterOutput

func (DataCenterOutput) ToDataCenterOutputWithContext

func (o DataCenterOutput) ToDataCenterOutputWithContext(ctx context.Context) DataCenterOutput

func (DataCenterOutput) VswitchId

func (o DataCenterOutput) VswitchId() pulumi.StringOutput

The vswitchId of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.

func (DataCenterOutput) ZoneId

The Zone to launch the Cassandra dataCenter-2. If vswitchId is not empty, this zoneId can be "" or consistent.

type DataCenterState

type DataCenterState struct {
	// Auto renew of dataCenter-2,`true` or `false`. System default to `false`, valid when payType = Subscription.
	AutoRenew pulumi.BoolPtrInput
	// Period of dataCenter-2 auto renew, if auto renew is `true`, one of `1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 60`, valid when payType = Subscription. Unit: month.
	AutoRenewPeriod pulumi.IntPtrInput
	// Cassandra cluster id of dataCenter-2 belongs to.
	ClusterId    pulumi.StringPtrInput
	DataCenterId pulumi.StringPtrInput
	// Cassandra dataCenter-2 name. Length must be 2~128 characters long. Only Chinese characters, English letters, numbers, period `.`, underline `_`, or dash `-` are permitted.
	DataCenterName pulumi.StringPtrInput
	// User-defined Cassandra dataCenter one core node's storage space.Unit: GB. Value range:
	// - Custom storage space; value range: [160, 2000].
	// - 80-GB increments.
	DiskSize pulumi.IntPtrInput
	// The disk type of Cassandra dataCenter-2. Valid values are `cloudSsd`, `cloudEfficiency`, `localHddPro`, `localSsdPro`, localDisk size is fixed.
	DiskType     pulumi.StringPtrInput
	EnablePublic pulumi.BoolPtrInput
	// Instance specification. See [Instance specifications](https://help.aliyun.com/document_detail/157445.html). Or you can call describeInstanceType api.
	InstanceType pulumi.StringPtrInput
	// The node count of Cassandra dataCenter-2, default to 2.
	NodeCount pulumi.IntPtrInput
	// The pay type of Cassandra dataCenter-2. Valid values are `Subscription`, `PayAsYouGo`. System default to `PayAsYouGo`.
	PayType      pulumi.StringPtrInput
	Period       pulumi.IntPtrInput
	PeriodUnit   pulumi.StringPtrInput
	PublicPoints pulumi.StringArrayInput
	Status       pulumi.StringPtrInput
	// The vswitchId of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.
	VswitchId pulumi.StringPtrInput
	// The Zone to launch the Cassandra dataCenter-2. If vswitchId is not empty, this zoneId can be "" or consistent.
	ZoneId pulumi.StringPtrInput
}

func (DataCenterState) ElementType

func (DataCenterState) ElementType() reflect.Type

type GetBackupPlansArgs

type GetBackupPlansArgs struct {
	// The ID of the cluster for the backup.
	ClusterId  string  `pulumi:"clusterId"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getBackupPlans.

type GetBackupPlansOutputArgs

type GetBackupPlansOutputArgs struct {
	// The ID of the cluster for the backup.
	ClusterId  pulumi.StringInput    `pulumi:"clusterId"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getBackupPlans.

func (GetBackupPlansOutputArgs) ElementType

func (GetBackupPlansOutputArgs) ElementType() reflect.Type

type GetBackupPlansPlan

type GetBackupPlansPlan struct {
	// Specifies whether to activate the backup plan.
	Active bool `pulumi:"active"`
	// The backup cycle. Valid values: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.
	BackupPeriod string `pulumi:"backupPeriod"`
	// The start time of the backup task each day. The time is displayed in UTC and denoted by Z.
	BackupTime string `pulumi:"backupTime"`
	// The ID of the cluster for the backup.
	ClusterId string `pulumi:"clusterId"`
	// The time when the backup plan was created.
	CreateTime string `pulumi:"createTime"`
	// The ID of the data center for the backup in the cluster.
	DataCenterId string `pulumi:"dataCenterId"`
	// The ID of the Backup Plan.
	Id string `pulumi:"id"`
	// The duration for which you want to retain the backup. Valid values: 1 to 30. Unit: days.
	RetentionPeriod int `pulumi:"retentionPeriod"`
}

type GetBackupPlansPlanArgs

type GetBackupPlansPlanArgs struct {
	// Specifies whether to activate the backup plan.
	Active pulumi.BoolInput `pulumi:"active"`
	// The backup cycle. Valid values: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.
	BackupPeriod pulumi.StringInput `pulumi:"backupPeriod"`
	// The start time of the backup task each day. The time is displayed in UTC and denoted by Z.
	BackupTime pulumi.StringInput `pulumi:"backupTime"`
	// The ID of the cluster for the backup.
	ClusterId pulumi.StringInput `pulumi:"clusterId"`
	// The time when the backup plan was created.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The ID of the data center for the backup in the cluster.
	DataCenterId pulumi.StringInput `pulumi:"dataCenterId"`
	// The ID of the Backup Plan.
	Id pulumi.StringInput `pulumi:"id"`
	// The duration for which you want to retain the backup. Valid values: 1 to 30. Unit: days.
	RetentionPeriod pulumi.IntInput `pulumi:"retentionPeriod"`
}

func (GetBackupPlansPlanArgs) ElementType

func (GetBackupPlansPlanArgs) ElementType() reflect.Type

func (GetBackupPlansPlanArgs) ToGetBackupPlansPlanOutput

func (i GetBackupPlansPlanArgs) ToGetBackupPlansPlanOutput() GetBackupPlansPlanOutput

func (GetBackupPlansPlanArgs) ToGetBackupPlansPlanOutputWithContext

func (i GetBackupPlansPlanArgs) ToGetBackupPlansPlanOutputWithContext(ctx context.Context) GetBackupPlansPlanOutput

type GetBackupPlansPlanArray

type GetBackupPlansPlanArray []GetBackupPlansPlanInput

func (GetBackupPlansPlanArray) ElementType

func (GetBackupPlansPlanArray) ElementType() reflect.Type

func (GetBackupPlansPlanArray) ToGetBackupPlansPlanArrayOutput

func (i GetBackupPlansPlanArray) ToGetBackupPlansPlanArrayOutput() GetBackupPlansPlanArrayOutput

func (GetBackupPlansPlanArray) ToGetBackupPlansPlanArrayOutputWithContext

func (i GetBackupPlansPlanArray) ToGetBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetBackupPlansPlanArrayOutput

type GetBackupPlansPlanArrayInput

type GetBackupPlansPlanArrayInput interface {
	pulumi.Input

	ToGetBackupPlansPlanArrayOutput() GetBackupPlansPlanArrayOutput
	ToGetBackupPlansPlanArrayOutputWithContext(context.Context) GetBackupPlansPlanArrayOutput
}

GetBackupPlansPlanArrayInput is an input type that accepts GetBackupPlansPlanArray and GetBackupPlansPlanArrayOutput values. You can construct a concrete instance of `GetBackupPlansPlanArrayInput` via:

GetBackupPlansPlanArray{ GetBackupPlansPlanArgs{...} }

type GetBackupPlansPlanArrayOutput

type GetBackupPlansPlanArrayOutput struct{ *pulumi.OutputState }

func (GetBackupPlansPlanArrayOutput) ElementType

func (GetBackupPlansPlanArrayOutput) Index

func (GetBackupPlansPlanArrayOutput) ToGetBackupPlansPlanArrayOutput

func (o GetBackupPlansPlanArrayOutput) ToGetBackupPlansPlanArrayOutput() GetBackupPlansPlanArrayOutput

func (GetBackupPlansPlanArrayOutput) ToGetBackupPlansPlanArrayOutputWithContext

func (o GetBackupPlansPlanArrayOutput) ToGetBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetBackupPlansPlanArrayOutput

type GetBackupPlansPlanInput

type GetBackupPlansPlanInput interface {
	pulumi.Input

	ToGetBackupPlansPlanOutput() GetBackupPlansPlanOutput
	ToGetBackupPlansPlanOutputWithContext(context.Context) GetBackupPlansPlanOutput
}

GetBackupPlansPlanInput is an input type that accepts GetBackupPlansPlanArgs and GetBackupPlansPlanOutput values. You can construct a concrete instance of `GetBackupPlansPlanInput` via:

GetBackupPlansPlanArgs{...}

type GetBackupPlansPlanOutput

type GetBackupPlansPlanOutput struct{ *pulumi.OutputState }

func (GetBackupPlansPlanOutput) Active

Specifies whether to activate the backup plan.

func (GetBackupPlansPlanOutput) BackupPeriod

func (o GetBackupPlansPlanOutput) BackupPeriod() pulumi.StringOutput

The backup cycle. Valid values: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.

func (GetBackupPlansPlanOutput) BackupTime

The start time of the backup task each day. The time is displayed in UTC and denoted by Z.

func (GetBackupPlansPlanOutput) ClusterId

The ID of the cluster for the backup.

func (GetBackupPlansPlanOutput) CreateTime

The time when the backup plan was created.

func (GetBackupPlansPlanOutput) DataCenterId

func (o GetBackupPlansPlanOutput) DataCenterId() pulumi.StringOutput

The ID of the data center for the backup in the cluster.

func (GetBackupPlansPlanOutput) ElementType

func (GetBackupPlansPlanOutput) ElementType() reflect.Type

func (GetBackupPlansPlanOutput) Id

The ID of the Backup Plan.

func (GetBackupPlansPlanOutput) RetentionPeriod

func (o GetBackupPlansPlanOutput) RetentionPeriod() pulumi.IntOutput

The duration for which you want to retain the backup. Valid values: 1 to 30. Unit: days.

func (GetBackupPlansPlanOutput) ToGetBackupPlansPlanOutput

func (o GetBackupPlansPlanOutput) ToGetBackupPlansPlanOutput() GetBackupPlansPlanOutput

func (GetBackupPlansPlanOutput) ToGetBackupPlansPlanOutputWithContext

func (o GetBackupPlansPlanOutput) ToGetBackupPlansPlanOutputWithContext(ctx context.Context) GetBackupPlansPlanOutput

type GetBackupPlansResult

type GetBackupPlansResult struct {
	ClusterId string `pulumi:"clusterId"`
	// The provider-assigned unique ID for this managed resource.
	Id         string               `pulumi:"id"`
	Ids        []string             `pulumi:"ids"`
	OutputFile *string              `pulumi:"outputFile"`
	Plans      []GetBackupPlansPlan `pulumi:"plans"`
}

A collection of values returned by getBackupPlans.

func GetBackupPlans

func GetBackupPlans(ctx *pulumi.Context, args *GetBackupPlansArgs, opts ...pulumi.InvokeOption) (*GetBackupPlansResult, error)

This data source provides the Cassandra Backup Plans of the current Alibaba Cloud user.

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

## Example Usage

Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := cassandra.GetBackupPlans(ctx, &cassandra.GetBackupPlansArgs{
			ClusterId: "example_value",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstCassandraBackupPlanId", example.Plans[0].Id)
		return nil
	})
}

```

type GetBackupPlansResultOutput

type GetBackupPlansResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getBackupPlans.

func (GetBackupPlansResultOutput) ClusterId

func (GetBackupPlansResultOutput) ElementType

func (GetBackupPlansResultOutput) ElementType() reflect.Type

func (GetBackupPlansResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetBackupPlansResultOutput) Ids

func (GetBackupPlansResultOutput) OutputFile

func (GetBackupPlansResultOutput) Plans

func (GetBackupPlansResultOutput) ToGetBackupPlansResultOutput

func (o GetBackupPlansResultOutput) ToGetBackupPlansResultOutput() GetBackupPlansResultOutput

func (GetBackupPlansResultOutput) ToGetBackupPlansResultOutputWithContext

func (o GetBackupPlansResultOutput) ToGetBackupPlansResultOutputWithContext(ctx context.Context) GetBackupPlansResultOutput

type GetClustersArgs

type GetClustersArgs struct {
	// The list of Cassandra cluster ids.
	Ids []string `pulumi:"ids"`
	// A regex string to apply to the cluster name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// A mapping of tags to assign to the resource.
	Tags map[string]interface{} `pulumi:"tags"`
}

A collection of arguments for invoking getClusters.

type GetClustersCluster

type GetClustersCluster struct {
	// The ID of the Cassandra cluster.
	ClusterId string `pulumi:"clusterId"`
	// The name of the Cassandra cluster.
	ClusterName string `pulumi:"clusterName"`
	CreatedTime string `pulumi:"createdTime"`
	// The count of data centers
	DataCenterCount int `pulumi:"dataCenterCount"`
	// The expire time of the cluster.
	ExpireTime string `pulumi:"expireTime"`
	// The ID of the Cassandra cluster.
	Id string `pulumi:"id"`
	// The lock mode of the cluster.
	LockMode string `pulumi:"lockMode"`
	// The major version of the cluster.
	MajorVersion string `pulumi:"majorVersion"`
	// The minor version of the cluster.
	MinorVersion string `pulumi:"minorVersion"`
	// Billing method. Value options are `Subscription` for Pay-As-You-Go and `PayAsYouGo` for yearly or monthly subscription.
	PayType string `pulumi:"payType"`
	// Status of the cluster.
	Status string `pulumi:"status"`
	// A mapping of tags to assign to the resource.
	Tags map[string]interface{} `pulumi:"tags"`
}

type GetClustersClusterArgs

type GetClustersClusterArgs struct {
	// The ID of the Cassandra cluster.
	ClusterId pulumi.StringInput `pulumi:"clusterId"`
	// The name of the Cassandra cluster.
	ClusterName pulumi.StringInput `pulumi:"clusterName"`
	CreatedTime pulumi.StringInput `pulumi:"createdTime"`
	// The count of data centers
	DataCenterCount pulumi.IntInput `pulumi:"dataCenterCount"`
	// The expire time of the cluster.
	ExpireTime pulumi.StringInput `pulumi:"expireTime"`
	// The ID of the Cassandra cluster.
	Id pulumi.StringInput `pulumi:"id"`
	// The lock mode of the cluster.
	LockMode pulumi.StringInput `pulumi:"lockMode"`
	// The major version of the cluster.
	MajorVersion pulumi.StringInput `pulumi:"majorVersion"`
	// The minor version of the cluster.
	MinorVersion pulumi.StringInput `pulumi:"minorVersion"`
	// Billing method. Value options are `Subscription` for Pay-As-You-Go and `PayAsYouGo` for yearly or monthly subscription.
	PayType pulumi.StringInput `pulumi:"payType"`
	// Status of the cluster.
	Status pulumi.StringInput `pulumi:"status"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput `pulumi:"tags"`
}

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

The ID of the Cassandra cluster.

func (GetClustersClusterOutput) ClusterName

The name of the Cassandra cluster.

func (GetClustersClusterOutput) CreatedTime

func (GetClustersClusterOutput) DataCenterCount

func (o GetClustersClusterOutput) DataCenterCount() pulumi.IntOutput

The count of data centers

func (GetClustersClusterOutput) ElementType

func (GetClustersClusterOutput) ElementType() reflect.Type

func (GetClustersClusterOutput) ExpireTime

The expire time of the cluster.

func (GetClustersClusterOutput) Id

The ID of the Cassandra cluster.

func (GetClustersClusterOutput) LockMode

The lock mode of the cluster.

func (GetClustersClusterOutput) MajorVersion

func (o GetClustersClusterOutput) MajorVersion() pulumi.StringOutput

The major version of the cluster.

func (GetClustersClusterOutput) MinorVersion

func (o GetClustersClusterOutput) MinorVersion() pulumi.StringOutput

The minor version of the cluster.

func (GetClustersClusterOutput) PayType

Billing method. Value options are `Subscription` for Pay-As-You-Go and `PayAsYouGo` for yearly or monthly subscription.

func (GetClustersClusterOutput) Status

Status of the cluster.

func (GetClustersClusterOutput) Tags

A mapping of tags to assign to the resource.

func (GetClustersClusterOutput) ToGetClustersClusterOutput

func (o GetClustersClusterOutput) ToGetClustersClusterOutput() GetClustersClusterOutput

func (GetClustersClusterOutput) ToGetClustersClusterOutputWithContext

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

type GetClustersOutputArgs

type GetClustersOutputArgs struct {
	// The list of Cassandra cluster ids.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to apply to the cluster name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput `pulumi:"tags"`
}

A collection of arguments for invoking getClusters.

func (GetClustersOutputArgs) ElementType

func (GetClustersOutputArgs) ElementType() reflect.Type

type GetClustersResult

type GetClustersResult struct {
	// A list of Cassandra clusters. Its every element contains the following attributes:
	Clusters []GetClustersCluster `pulumi:"clusters"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The list of Cassandra cluster ids.
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// The name list of Cassandra clusters.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	// A mapping of tags to assign to the resource.
	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)

The `cassandra.getClusters` data source provides a collection of Cassandra clusters available in Alicloud account. Filters support regular expression for the cluster name, ids or tags.

> **NOTE:** Available in 1.88.0+.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cassandra.GetClusters(ctx, &cassandra.GetClustersArgs{
			NameRegex: pulumi.StringRef("tf_testAccCassandra"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetClustersResultOutput

type GetClustersResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getClusters.

func (GetClustersResultOutput) Clusters

A list of Cassandra clusters. Its every element contains the following attributes:

func (GetClustersResultOutput) ElementType

func (GetClustersResultOutput) ElementType() reflect.Type

func (GetClustersResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetClustersResultOutput) Ids

The list of Cassandra cluster ids.

func (GetClustersResultOutput) NameRegex

func (GetClustersResultOutput) Names

The name list of Cassandra clusters.

func (GetClustersResultOutput) OutputFile

func (GetClustersResultOutput) Tags

A mapping of tags to assign to the resource.

func (GetClustersResultOutput) ToGetClustersResultOutput

func (o GetClustersResultOutput) ToGetClustersResultOutput() GetClustersResultOutput

func (GetClustersResultOutput) ToGetClustersResultOutputWithContext

func (o GetClustersResultOutput) ToGetClustersResultOutputWithContext(ctx context.Context) GetClustersResultOutput

type GetDataCentersArgs

type GetDataCentersArgs struct {
	// The cluster id of dataCenters belongs to.
	ClusterId string `pulumi:"clusterId"`
	// The list of Cassandra data center ids.
	Ids []string `pulumi:"ids"`
	// A regex string to apply to the cluster name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getDataCenters.

type GetDataCentersCenter

type GetDataCentersCenter struct {
	// The cluster id of dataCenters belongs to.
	ClusterId string `pulumi:"clusterId"`
	// The commodity ID of the Cassandra dataCenter.
	CommodityInstance string `pulumi:"commodityInstance"`
	CreatedTime       string `pulumi:"createdTime"`
	// The id of the Cassandra dataCenter.
	DataCenterId string `pulumi:"dataCenterId"`
	// The name of the Cassandra dataCenter.
	DataCenterName string `pulumi:"dataCenterName"`
	// One node disk size, unit:GB.
	DiskSize int `pulumi:"diskSize"`
	// Cloud_ssd or cloud_efficiency.
	DiskType string `pulumi:"diskType"`
	// The expire time of the dataCenter.
	ExpireTime string `pulumi:"expireTime"`
	// The instance type of the Cassandra dataCenter, eg: cassandra.c.large.
	InstanceType string `pulumi:"instanceType"`
	// The lock mode of the dataCenter.
	LockMode string `pulumi:"lockMode"`
	// The node count of dataCenter.
	NodeCount int `pulumi:"nodeCount"`
	// Billing method. Value options are `Subscription` for Pay-As-You-Go and `PayAsYouGo` for yearly or monthly subscription.
	PayType string `pulumi:"payType"`
	// Status of the dataCenter.
	Status string `pulumi:"status"`
	// VPC ID the dataCenter belongs to.
	VpcId string `pulumi:"vpcId"`
	// VSwitch ID the dataCenter belongs to.
	VswitchId string `pulumi:"vswitchId"`
	// Zone ID the dataCenter belongs to.
	ZoneId string `pulumi:"zoneId"`
}

type GetDataCentersCenterArgs

type GetDataCentersCenterArgs struct {
	// The cluster id of dataCenters belongs to.
	ClusterId pulumi.StringInput `pulumi:"clusterId"`
	// The commodity ID of the Cassandra dataCenter.
	CommodityInstance pulumi.StringInput `pulumi:"commodityInstance"`
	CreatedTime       pulumi.StringInput `pulumi:"createdTime"`
	// The id of the Cassandra dataCenter.
	DataCenterId pulumi.StringInput `pulumi:"dataCenterId"`
	// The name of the Cassandra dataCenter.
	DataCenterName pulumi.StringInput `pulumi:"dataCenterName"`
	// One node disk size, unit:GB.
	DiskSize pulumi.IntInput `pulumi:"diskSize"`
	// Cloud_ssd or cloud_efficiency.
	DiskType pulumi.StringInput `pulumi:"diskType"`
	// The expire time of the dataCenter.
	ExpireTime pulumi.StringInput `pulumi:"expireTime"`
	// The instance type of the Cassandra dataCenter, eg: cassandra.c.large.
	InstanceType pulumi.StringInput `pulumi:"instanceType"`
	// The lock mode of the dataCenter.
	LockMode pulumi.StringInput `pulumi:"lockMode"`
	// The node count of dataCenter.
	NodeCount pulumi.IntInput `pulumi:"nodeCount"`
	// Billing method. Value options are `Subscription` for Pay-As-You-Go and `PayAsYouGo` for yearly or monthly subscription.
	PayType pulumi.StringInput `pulumi:"payType"`
	// Status of the dataCenter.
	Status pulumi.StringInput `pulumi:"status"`
	// VPC ID the dataCenter belongs to.
	VpcId pulumi.StringInput `pulumi:"vpcId"`
	// VSwitch ID the dataCenter belongs to.
	VswitchId pulumi.StringInput `pulumi:"vswitchId"`
	// Zone ID the dataCenter belongs to.
	ZoneId pulumi.StringInput `pulumi:"zoneId"`
}

func (GetDataCentersCenterArgs) ElementType

func (GetDataCentersCenterArgs) ElementType() reflect.Type

func (GetDataCentersCenterArgs) ToGetDataCentersCenterOutput

func (i GetDataCentersCenterArgs) ToGetDataCentersCenterOutput() GetDataCentersCenterOutput

func (GetDataCentersCenterArgs) ToGetDataCentersCenterOutputWithContext

func (i GetDataCentersCenterArgs) ToGetDataCentersCenterOutputWithContext(ctx context.Context) GetDataCentersCenterOutput

type GetDataCentersCenterArray

type GetDataCentersCenterArray []GetDataCentersCenterInput

func (GetDataCentersCenterArray) ElementType

func (GetDataCentersCenterArray) ElementType() reflect.Type

func (GetDataCentersCenterArray) ToGetDataCentersCenterArrayOutput

func (i GetDataCentersCenterArray) ToGetDataCentersCenterArrayOutput() GetDataCentersCenterArrayOutput

func (GetDataCentersCenterArray) ToGetDataCentersCenterArrayOutputWithContext

func (i GetDataCentersCenterArray) ToGetDataCentersCenterArrayOutputWithContext(ctx context.Context) GetDataCentersCenterArrayOutput

type GetDataCentersCenterArrayInput

type GetDataCentersCenterArrayInput interface {
	pulumi.Input

	ToGetDataCentersCenterArrayOutput() GetDataCentersCenterArrayOutput
	ToGetDataCentersCenterArrayOutputWithContext(context.Context) GetDataCentersCenterArrayOutput
}

GetDataCentersCenterArrayInput is an input type that accepts GetDataCentersCenterArray and GetDataCentersCenterArrayOutput values. You can construct a concrete instance of `GetDataCentersCenterArrayInput` via:

GetDataCentersCenterArray{ GetDataCentersCenterArgs{...} }

type GetDataCentersCenterArrayOutput

type GetDataCentersCenterArrayOutput struct{ *pulumi.OutputState }

func (GetDataCentersCenterArrayOutput) ElementType

func (GetDataCentersCenterArrayOutput) Index

func (GetDataCentersCenterArrayOutput) ToGetDataCentersCenterArrayOutput

func (o GetDataCentersCenterArrayOutput) ToGetDataCentersCenterArrayOutput() GetDataCentersCenterArrayOutput

func (GetDataCentersCenterArrayOutput) ToGetDataCentersCenterArrayOutputWithContext

func (o GetDataCentersCenterArrayOutput) ToGetDataCentersCenterArrayOutputWithContext(ctx context.Context) GetDataCentersCenterArrayOutput

type GetDataCentersCenterInput

type GetDataCentersCenterInput interface {
	pulumi.Input

	ToGetDataCentersCenterOutput() GetDataCentersCenterOutput
	ToGetDataCentersCenterOutputWithContext(context.Context) GetDataCentersCenterOutput
}

GetDataCentersCenterInput is an input type that accepts GetDataCentersCenterArgs and GetDataCentersCenterOutput values. You can construct a concrete instance of `GetDataCentersCenterInput` via:

GetDataCentersCenterArgs{...}

type GetDataCentersCenterOutput

type GetDataCentersCenterOutput struct{ *pulumi.OutputState }

func (GetDataCentersCenterOutput) ClusterId

The cluster id of dataCenters belongs to.

func (GetDataCentersCenterOutput) CommodityInstance

func (o GetDataCentersCenterOutput) CommodityInstance() pulumi.StringOutput

The commodity ID of the Cassandra dataCenter.

func (GetDataCentersCenterOutput) CreatedTime

func (GetDataCentersCenterOutput) DataCenterId

The id of the Cassandra dataCenter.

func (GetDataCentersCenterOutput) DataCenterName

func (o GetDataCentersCenterOutput) DataCenterName() pulumi.StringOutput

The name of the Cassandra dataCenter.

func (GetDataCentersCenterOutput) DiskSize

One node disk size, unit:GB.

func (GetDataCentersCenterOutput) DiskType

Cloud_ssd or cloud_efficiency.

func (GetDataCentersCenterOutput) ElementType

func (GetDataCentersCenterOutput) ElementType() reflect.Type

func (GetDataCentersCenterOutput) ExpireTime

The expire time of the dataCenter.

func (GetDataCentersCenterOutput) InstanceType

The instance type of the Cassandra dataCenter, eg: cassandra.c.large.

func (GetDataCentersCenterOutput) LockMode

The lock mode of the dataCenter.

func (GetDataCentersCenterOutput) NodeCount

The node count of dataCenter.

func (GetDataCentersCenterOutput) PayType

Billing method. Value options are `Subscription` for Pay-As-You-Go and `PayAsYouGo` for yearly or monthly subscription.

func (GetDataCentersCenterOutput) Status

Status of the dataCenter.

func (GetDataCentersCenterOutput) ToGetDataCentersCenterOutput

func (o GetDataCentersCenterOutput) ToGetDataCentersCenterOutput() GetDataCentersCenterOutput

func (GetDataCentersCenterOutput) ToGetDataCentersCenterOutputWithContext

func (o GetDataCentersCenterOutput) ToGetDataCentersCenterOutputWithContext(ctx context.Context) GetDataCentersCenterOutput

func (GetDataCentersCenterOutput) VpcId

VPC ID the dataCenter belongs to.

func (GetDataCentersCenterOutput) VswitchId

VSwitch ID the dataCenter belongs to.

func (GetDataCentersCenterOutput) ZoneId

Zone ID the dataCenter belongs to.

type GetDataCentersOutputArgs

type GetDataCentersOutputArgs struct {
	// The cluster id of dataCenters belongs to.
	ClusterId pulumi.StringInput `pulumi:"clusterId"`
	// The list of Cassandra data center ids.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to apply to the cluster name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getDataCenters.

func (GetDataCentersOutputArgs) ElementType

func (GetDataCentersOutputArgs) ElementType() reflect.Type

type GetDataCentersResult

type GetDataCentersResult struct {
	// A list of Cassandra data centers. Its every element contains the following attributes:
	Centers []GetDataCentersCenter `pulumi:"centers"`
	// The ID of the Cassandra cluster.
	ClusterId string `pulumi:"clusterId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The list of Cassandra data center ids.
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// The name list of Cassandra data centers.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
}

A collection of values returned by getDataCenters.

func GetDataCenters

func GetDataCenters(ctx *pulumi.Context, args *GetDataCentersArgs, opts ...pulumi.InvokeOption) (*GetDataCentersResult, error)

The `cassandra.getDataCenters` data source provides a collection of Cassandra Data Centers available in Alicloud account. Filters support regular expression for the cluster name or ids.

> **NOTE:** Available in 1.88.0+.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cassandra.GetDataCenters(ctx, &cassandra.GetDataCentersArgs{
			ClusterId: "cds-xxxxx",
			NameRegex: pulumi.StringRef("tf_testAccCassandra_dc"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetDataCentersResultOutput

type GetDataCentersResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDataCenters.

func (GetDataCentersResultOutput) Centers

A list of Cassandra data centers. Its every element contains the following attributes:

func (GetDataCentersResultOutput) ClusterId

The ID of the Cassandra cluster.

func (GetDataCentersResultOutput) ElementType

func (GetDataCentersResultOutput) ElementType() reflect.Type

func (GetDataCentersResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetDataCentersResultOutput) Ids

The list of Cassandra data center ids.

func (GetDataCentersResultOutput) NameRegex

func (GetDataCentersResultOutput) Names

The name list of Cassandra data centers.

func (GetDataCentersResultOutput) OutputFile

func (GetDataCentersResultOutput) ToGetDataCentersResultOutput

func (o GetDataCentersResultOutput) ToGetDataCentersResultOutput() GetDataCentersResultOutput

func (GetDataCentersResultOutput) ToGetDataCentersResultOutputWithContext

func (o GetDataCentersResultOutput) ToGetDataCentersResultOutputWithContext(ctx context.Context) GetDataCentersResultOutput

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

A collection of arguments for invoking getZones.

type GetZonesOutputArgs

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

A collection of arguments for invoking getZones.

func (GetZonesOutputArgs) ElementType

func (GetZonesOutputArgs) ElementType() reflect.Type

type GetZonesResult

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

A collection of values returned by getZones.

func GetZones

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

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

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

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		zonesIds, err := cassandra.GetZones(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = cassandra.NewCluster(ctx, "cassandra", &cassandra.ClusterArgs{
			ZoneId: pulumi.String(zonesIds.Zones[0].Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetZonesResultOutput

type GetZonesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getZones.

func (GetZonesResultOutput) ElementType

func (GetZonesResultOutput) ElementType() reflect.Type

func (GetZonesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetZonesResultOutput) Ids

A list of zone IDs.

func (GetZonesResultOutput) Multi

func (GetZonesResultOutput) OutputFile

func (GetZonesResultOutput) ToGetZonesResultOutput

func (o GetZonesResultOutput) ToGetZonesResultOutput() GetZonesResultOutput

func (GetZonesResultOutput) ToGetZonesResultOutputWithContext

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

func (GetZonesResultOutput) Zones

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

type GetZonesZone

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

type GetZonesZoneArgs

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

func (GetZonesZoneArgs) ElementType

func (GetZonesZoneArgs) ElementType() reflect.Type

func (GetZonesZoneArgs) ToGetZonesZoneOutput

func (i GetZonesZoneArgs) ToGetZonesZoneOutput() GetZonesZoneOutput

func (GetZonesZoneArgs) ToGetZonesZoneOutputWithContext

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

type GetZonesZoneArray

type GetZonesZoneArray []GetZonesZoneInput

func (GetZonesZoneArray) ElementType

func (GetZonesZoneArray) ElementType() reflect.Type

func (GetZonesZoneArray) ToGetZonesZoneArrayOutput

func (i GetZonesZoneArray) ToGetZonesZoneArrayOutput() GetZonesZoneArrayOutput

func (GetZonesZoneArray) ToGetZonesZoneArrayOutputWithContext

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

type GetZonesZoneArrayInput

type GetZonesZoneArrayInput interface {
	pulumi.Input

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

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

GetZonesZoneArray{ GetZonesZoneArgs{...} }

type GetZonesZoneArrayOutput

type GetZonesZoneArrayOutput struct{ *pulumi.OutputState }

func (GetZonesZoneArrayOutput) ElementType

func (GetZonesZoneArrayOutput) ElementType() reflect.Type

func (GetZonesZoneArrayOutput) Index

func (GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutput

func (o GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutput() GetZonesZoneArrayOutput

func (GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutputWithContext

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

type GetZonesZoneInput

type GetZonesZoneInput interface {
	pulumi.Input

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

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

GetZonesZoneArgs{...}

type GetZonesZoneOutput

type GetZonesZoneOutput struct{ *pulumi.OutputState }

func (GetZonesZoneOutput) ElementType

func (GetZonesZoneOutput) ElementType() reflect.Type

func (GetZonesZoneOutput) Id

ID of the zone.

func (GetZonesZoneOutput) MultiZoneIds

func (o GetZonesZoneOutput) MultiZoneIds() pulumi.StringArrayOutput

A list of zone ids in which the multi zone.

func (GetZonesZoneOutput) ToGetZonesZoneOutput

func (o GetZonesZoneOutput) ToGetZonesZoneOutput() GetZonesZoneOutput

func (GetZonesZoneOutput) ToGetZonesZoneOutputWithContext

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

Jump to

Keyboard shortcuts

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