Documentation
¶
Index ¶
- type Cluster
- func (*Cluster) ElementType() reflect.Type
- func (i *Cluster) ToClusterOutput() ClusterOutput
- func (i *Cluster) ToClusterOutputWithContext(ctx context.Context) ClusterOutput
- func (i *Cluster) ToClusterPtrOutput() ClusterPtrOutput
- func (i *Cluster) ToClusterPtrOutputWithContext(ctx context.Context) ClusterPtrOutput
- type ClusterArgs
- type ClusterArray
- type ClusterArrayInput
- type ClusterArrayOutput
- type ClusterInput
- type ClusterMap
- type ClusterMapInput
- type ClusterMapOutput
- type ClusterOutput
- func (ClusterOutput) ElementType() reflect.Type
- func (o ClusterOutput) ToClusterOutput() ClusterOutput
- func (o ClusterOutput) ToClusterOutputWithContext(ctx context.Context) ClusterOutput
- func (o ClusterOutput) ToClusterPtrOutput() ClusterPtrOutput
- func (o ClusterOutput) ToClusterPtrOutputWithContext(ctx context.Context) ClusterPtrOutput
- type ClusterPtrInput
- type ClusterPtrOutput
- type ClusterState
- type DataCenter
- func (*DataCenter) ElementType() reflect.Type
- func (i *DataCenter) ToDataCenterOutput() DataCenterOutput
- func (i *DataCenter) ToDataCenterOutputWithContext(ctx context.Context) DataCenterOutput
- func (i *DataCenter) ToDataCenterPtrOutput() DataCenterPtrOutput
- func (i *DataCenter) ToDataCenterPtrOutputWithContext(ctx context.Context) DataCenterPtrOutput
- type DataCenterArgs
- type DataCenterArray
- type DataCenterArrayInput
- type DataCenterArrayOutput
- func (DataCenterArrayOutput) ElementType() reflect.Type
- func (o DataCenterArrayOutput) Index(i pulumi.IntInput) DataCenterOutput
- func (o DataCenterArrayOutput) ToDataCenterArrayOutput() DataCenterArrayOutput
- func (o DataCenterArrayOutput) ToDataCenterArrayOutputWithContext(ctx context.Context) DataCenterArrayOutput
- type DataCenterInput
- type DataCenterMap
- type DataCenterMapInput
- type DataCenterMapOutput
- func (DataCenterMapOutput) ElementType() reflect.Type
- func (o DataCenterMapOutput) MapIndex(k pulumi.StringInput) DataCenterOutput
- func (o DataCenterMapOutput) ToDataCenterMapOutput() DataCenterMapOutput
- func (o DataCenterMapOutput) ToDataCenterMapOutputWithContext(ctx context.Context) DataCenterMapOutput
- type DataCenterOutput
- func (DataCenterOutput) ElementType() reflect.Type
- func (o DataCenterOutput) ToDataCenterOutput() DataCenterOutput
- func (o DataCenterOutput) ToDataCenterOutputWithContext(ctx context.Context) DataCenterOutput
- func (o DataCenterOutput) ToDataCenterPtrOutput() DataCenterPtrOutput
- func (o DataCenterOutput) ToDataCenterPtrOutputWithContext(ctx context.Context) DataCenterPtrOutput
- type DataCenterPtrInput
- type DataCenterPtrOutput
- type DataCenterState
- type GetClustersArgs
- type GetClustersCluster
- type GetClustersClusterArgs
- type GetClustersClusterArray
- type GetClustersClusterArrayInput
- type GetClustersClusterArrayOutput
- func (GetClustersClusterArrayOutput) ElementType() reflect.Type
- func (o GetClustersClusterArrayOutput) Index(i pulumi.IntInput) GetClustersClusterOutput
- func (o GetClustersClusterArrayOutput) ToGetClustersClusterArrayOutput() GetClustersClusterArrayOutput
- func (o GetClustersClusterArrayOutput) ToGetClustersClusterArrayOutputWithContext(ctx context.Context) GetClustersClusterArrayOutput
- type GetClustersClusterInput
- type GetClustersClusterOutput
- func (o GetClustersClusterOutput) ClusterId() pulumi.StringOutput
- func (o GetClustersClusterOutput) ClusterName() pulumi.StringOutput
- func (o GetClustersClusterOutput) CreatedTime() pulumi.StringOutput
- func (o GetClustersClusterOutput) DataCenterCount() pulumi.IntOutput
- func (GetClustersClusterOutput) ElementType() reflect.Type
- func (o GetClustersClusterOutput) ExpireTime() pulumi.StringOutput
- func (o GetClustersClusterOutput) Id() pulumi.StringOutput
- func (o GetClustersClusterOutput) LockMode() pulumi.StringOutput
- func (o GetClustersClusterOutput) MajorVersion() pulumi.StringOutput
- func (o GetClustersClusterOutput) MinorVersion() pulumi.StringOutput
- func (o GetClustersClusterOutput) PayType() pulumi.StringOutput
- func (o GetClustersClusterOutput) Status() pulumi.StringOutput
- func (o GetClustersClusterOutput) Tags() pulumi.MapOutput
- func (o GetClustersClusterOutput) ToGetClustersClusterOutput() GetClustersClusterOutput
- func (o GetClustersClusterOutput) ToGetClustersClusterOutputWithContext(ctx context.Context) GetClustersClusterOutput
- type GetClustersResult
- type GetDataCentersArgs
- type GetDataCentersCenter
- type GetDataCentersCenterArgs
- type GetDataCentersCenterArray
- type GetDataCentersCenterArrayInput
- type GetDataCentersCenterArrayOutput
- func (GetDataCentersCenterArrayOutput) ElementType() reflect.Type
- func (o GetDataCentersCenterArrayOutput) Index(i pulumi.IntInput) GetDataCentersCenterOutput
- func (o GetDataCentersCenterArrayOutput) ToGetDataCentersCenterArrayOutput() GetDataCentersCenterArrayOutput
- func (o GetDataCentersCenterArrayOutput) ToGetDataCentersCenterArrayOutputWithContext(ctx context.Context) GetDataCentersCenterArrayOutput
- type GetDataCentersCenterInput
- type GetDataCentersCenterOutput
- func (o GetDataCentersCenterOutput) ClusterId() pulumi.StringOutput
- func (o GetDataCentersCenterOutput) CommodityInstance() pulumi.StringOutput
- func (o GetDataCentersCenterOutput) CreatedTime() pulumi.StringOutput
- func (o GetDataCentersCenterOutput) DataCenterId() pulumi.StringOutput
- func (o GetDataCentersCenterOutput) DataCenterName() pulumi.StringOutput
- func (o GetDataCentersCenterOutput) DiskSize() pulumi.IntOutput
- func (o GetDataCentersCenterOutput) DiskType() pulumi.StringOutput
- func (GetDataCentersCenterOutput) ElementType() reflect.Type
- func (o GetDataCentersCenterOutput) ExpireTime() pulumi.StringOutput
- func (o GetDataCentersCenterOutput) InstanceType() pulumi.StringOutput
- func (o GetDataCentersCenterOutput) LockMode() pulumi.StringOutput
- func (o GetDataCentersCenterOutput) NodeCount() pulumi.IntOutput
- func (o GetDataCentersCenterOutput) PayType() pulumi.StringOutput
- func (o GetDataCentersCenterOutput) Status() pulumi.StringOutput
- func (o GetDataCentersCenterOutput) ToGetDataCentersCenterOutput() GetDataCentersCenterOutput
- func (o GetDataCentersCenterOutput) ToGetDataCentersCenterOutputWithContext(ctx context.Context) GetDataCentersCenterOutput
- func (o GetDataCentersCenterOutput) VpcId() pulumi.StringOutput
- func (o GetDataCentersCenterOutput) VswitchId() pulumi.StringOutput
- func (o GetDataCentersCenterOutput) ZoneId() pulumi.StringOutput
- type GetDataCentersResult
- type GetZonesArgs
- type GetZonesResult
- type GetZonesZone
- type GetZonesZoneArgs
- type GetZonesZoneArray
- type GetZonesZoneArrayInput
- type GetZonesZoneArrayOutput
- func (GetZonesZoneArrayOutput) ElementType() reflect.Type
- func (o GetZonesZoneArrayOutput) Index(i pulumi.IntInput) GetZonesZoneOutput
- func (o GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutput() GetZonesZoneArrayOutput
- func (o GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutputWithContext(ctx context.Context) GetZonesZoneArrayOutput
- type GetZonesZoneInput
- type GetZonesZoneOutput
- func (GetZonesZoneOutput) ElementType() reflect.Type
- func (o GetZonesZoneOutput) Id() pulumi.StringOutput
- func (o GetZonesZoneOutput) MultiZoneIds() pulumi.StringArrayOutput
- func (o GetZonesZoneOutput) ToGetZonesZoneOutput() GetZonesZoneOutput
- func (o GetZonesZoneOutput) ToGetZonesZoneOutputWithContext(ctx context.Context) GetZonesZoneOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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-alicloud/sdk/v2/go/alicloud/cassandra" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
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 ¶ added in v2.25.1
func (*Cluster) ToClusterOutput ¶ added in v2.25.1
func (i *Cluster) ToClusterOutput() ClusterOutput
func (*Cluster) ToClusterOutputWithContext ¶ added in v2.25.1
func (i *Cluster) ToClusterOutputWithContext(ctx context.Context) ClusterOutput
func (*Cluster) ToClusterPtrOutput ¶ added in v2.35.1
func (i *Cluster) ToClusterPtrOutput() ClusterPtrOutput
func (*Cluster) ToClusterPtrOutputWithContext ¶ added in v2.35.1
func (i *Cluster) ToClusterPtrOutputWithContext(ctx context.Context) ClusterPtrOutput
type ClusterArgs ¶
type ClusterArgs struct { // Auto 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 ¶ added in v2.35.1
type ClusterArray []ClusterInput
func (ClusterArray) ElementType ¶ added in v2.35.1
func (ClusterArray) ElementType() reflect.Type
func (ClusterArray) ToClusterArrayOutput ¶ added in v2.35.1
func (i ClusterArray) ToClusterArrayOutput() ClusterArrayOutput
func (ClusterArray) ToClusterArrayOutputWithContext ¶ added in v2.35.1
func (i ClusterArray) ToClusterArrayOutputWithContext(ctx context.Context) ClusterArrayOutput
type ClusterArrayInput ¶ added in v2.35.1
type ClusterArrayInput interface { pulumi.Input ToClusterArrayOutput() ClusterArrayOutput ToClusterArrayOutputWithContext(context.Context) ClusterArrayOutput }
ClusterArrayInput is an input type that accepts ClusterArray and ClusterArrayOutput values. You can construct a concrete instance of `ClusterArrayInput` via:
ClusterArray{ ClusterArgs{...} }
type ClusterArrayOutput ¶ added in v2.35.1
type ClusterArrayOutput struct{ *pulumi.OutputState }
func (ClusterArrayOutput) ElementType ¶ added in v2.35.1
func (ClusterArrayOutput) ElementType() reflect.Type
func (ClusterArrayOutput) Index ¶ added in v2.35.1
func (o ClusterArrayOutput) Index(i pulumi.IntInput) ClusterOutput
func (ClusterArrayOutput) ToClusterArrayOutput ¶ added in v2.35.1
func (o ClusterArrayOutput) ToClusterArrayOutput() ClusterArrayOutput
func (ClusterArrayOutput) ToClusterArrayOutputWithContext ¶ added in v2.35.1
func (o ClusterArrayOutput) ToClusterArrayOutputWithContext(ctx context.Context) ClusterArrayOutput
type ClusterInput ¶ added in v2.25.1
type ClusterInput interface { pulumi.Input ToClusterOutput() ClusterOutput ToClusterOutputWithContext(ctx context.Context) ClusterOutput }
type ClusterMap ¶ added in v2.35.1
type ClusterMap map[string]ClusterInput
func (ClusterMap) ElementType ¶ added in v2.35.1
func (ClusterMap) ElementType() reflect.Type
func (ClusterMap) ToClusterMapOutput ¶ added in v2.35.1
func (i ClusterMap) ToClusterMapOutput() ClusterMapOutput
func (ClusterMap) ToClusterMapOutputWithContext ¶ added in v2.35.1
func (i ClusterMap) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput
type ClusterMapInput ¶ added in v2.35.1
type ClusterMapInput interface { pulumi.Input ToClusterMapOutput() ClusterMapOutput ToClusterMapOutputWithContext(context.Context) ClusterMapOutput }
ClusterMapInput is an input type that accepts ClusterMap and ClusterMapOutput values. You can construct a concrete instance of `ClusterMapInput` via:
ClusterMap{ "key": ClusterArgs{...} }
type ClusterMapOutput ¶ added in v2.35.1
type ClusterMapOutput struct{ *pulumi.OutputState }
func (ClusterMapOutput) ElementType ¶ added in v2.35.1
func (ClusterMapOutput) ElementType() reflect.Type
func (ClusterMapOutput) MapIndex ¶ added in v2.35.1
func (o ClusterMapOutput) MapIndex(k pulumi.StringInput) ClusterOutput
func (ClusterMapOutput) ToClusterMapOutput ¶ added in v2.35.1
func (o ClusterMapOutput) ToClusterMapOutput() ClusterMapOutput
func (ClusterMapOutput) ToClusterMapOutputWithContext ¶ added in v2.35.1
func (o ClusterMapOutput) ToClusterMapOutputWithContext(ctx context.Context) ClusterMapOutput
type ClusterOutput ¶ added in v2.25.1
type ClusterOutput struct {
*pulumi.OutputState
}
func (ClusterOutput) ElementType ¶ added in v2.25.1
func (ClusterOutput) ElementType() reflect.Type
func (ClusterOutput) ToClusterOutput ¶ added in v2.25.1
func (o ClusterOutput) ToClusterOutput() ClusterOutput
func (ClusterOutput) ToClusterOutputWithContext ¶ added in v2.25.1
func (o ClusterOutput) ToClusterOutputWithContext(ctx context.Context) ClusterOutput
func (ClusterOutput) ToClusterPtrOutput ¶ added in v2.35.1
func (o ClusterOutput) ToClusterPtrOutput() ClusterPtrOutput
func (ClusterOutput) ToClusterPtrOutputWithContext ¶ added in v2.35.1
func (o ClusterOutput) ToClusterPtrOutputWithContext(ctx context.Context) ClusterPtrOutput
type ClusterPtrInput ¶ added in v2.35.1
type ClusterPtrInput interface { pulumi.Input ToClusterPtrOutput() ClusterPtrOutput ToClusterPtrOutputWithContext(ctx context.Context) ClusterPtrOutput }
type ClusterPtrOutput ¶ added in v2.35.1
type ClusterPtrOutput struct {
*pulumi.OutputState
}
func (ClusterPtrOutput) ElementType ¶ added in v2.35.1
func (ClusterPtrOutput) ElementType() reflect.Type
func (ClusterPtrOutput) ToClusterPtrOutput ¶ added in v2.35.1
func (o ClusterPtrOutput) ToClusterPtrOutput() ClusterPtrOutput
func (ClusterPtrOutput) ToClusterPtrOutputWithContext ¶ added in v2.35.1
func (o ClusterPtrOutput) ToClusterPtrOutputWithContext(ctx context.Context) ClusterPtrOutput
type ClusterState ¶
type ClusterState struct { // Auto 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-alicloud/sdk/v2/go/alicloud/cassandra" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
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 ¶ added in v2.25.1
func (*DataCenter) ElementType() reflect.Type
func (*DataCenter) ToDataCenterOutput ¶ added in v2.25.1
func (i *DataCenter) ToDataCenterOutput() DataCenterOutput
func (*DataCenter) ToDataCenterOutputWithContext ¶ added in v2.25.1
func (i *DataCenter) ToDataCenterOutputWithContext(ctx context.Context) DataCenterOutput
func (*DataCenter) ToDataCenterPtrOutput ¶ added in v2.35.1
func (i *DataCenter) ToDataCenterPtrOutput() DataCenterPtrOutput
func (*DataCenter) ToDataCenterPtrOutputWithContext ¶ added in v2.35.1
func (i *DataCenter) ToDataCenterPtrOutputWithContext(ctx context.Context) DataCenterPtrOutput
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 ¶ added in v2.35.1
type DataCenterArray []DataCenterInput
func (DataCenterArray) ElementType ¶ added in v2.35.1
func (DataCenterArray) ElementType() reflect.Type
func (DataCenterArray) ToDataCenterArrayOutput ¶ added in v2.35.1
func (i DataCenterArray) ToDataCenterArrayOutput() DataCenterArrayOutput
func (DataCenterArray) ToDataCenterArrayOutputWithContext ¶ added in v2.35.1
func (i DataCenterArray) ToDataCenterArrayOutputWithContext(ctx context.Context) DataCenterArrayOutput
type DataCenterArrayInput ¶ added in v2.35.1
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 ¶ added in v2.35.1
type DataCenterArrayOutput struct{ *pulumi.OutputState }
func (DataCenterArrayOutput) ElementType ¶ added in v2.35.1
func (DataCenterArrayOutput) ElementType() reflect.Type
func (DataCenterArrayOutput) Index ¶ added in v2.35.1
func (o DataCenterArrayOutput) Index(i pulumi.IntInput) DataCenterOutput
func (DataCenterArrayOutput) ToDataCenterArrayOutput ¶ added in v2.35.1
func (o DataCenterArrayOutput) ToDataCenterArrayOutput() DataCenterArrayOutput
func (DataCenterArrayOutput) ToDataCenterArrayOutputWithContext ¶ added in v2.35.1
func (o DataCenterArrayOutput) ToDataCenterArrayOutputWithContext(ctx context.Context) DataCenterArrayOutput
type DataCenterInput ¶ added in v2.25.1
type DataCenterInput interface { pulumi.Input ToDataCenterOutput() DataCenterOutput ToDataCenterOutputWithContext(ctx context.Context) DataCenterOutput }
type DataCenterMap ¶ added in v2.35.1
type DataCenterMap map[string]DataCenterInput
func (DataCenterMap) ElementType ¶ added in v2.35.1
func (DataCenterMap) ElementType() reflect.Type
func (DataCenterMap) ToDataCenterMapOutput ¶ added in v2.35.1
func (i DataCenterMap) ToDataCenterMapOutput() DataCenterMapOutput
func (DataCenterMap) ToDataCenterMapOutputWithContext ¶ added in v2.35.1
func (i DataCenterMap) ToDataCenterMapOutputWithContext(ctx context.Context) DataCenterMapOutput
type DataCenterMapInput ¶ added in v2.35.1
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 ¶ added in v2.35.1
type DataCenterMapOutput struct{ *pulumi.OutputState }
func (DataCenterMapOutput) ElementType ¶ added in v2.35.1
func (DataCenterMapOutput) ElementType() reflect.Type
func (DataCenterMapOutput) MapIndex ¶ added in v2.35.1
func (o DataCenterMapOutput) MapIndex(k pulumi.StringInput) DataCenterOutput
func (DataCenterMapOutput) ToDataCenterMapOutput ¶ added in v2.35.1
func (o DataCenterMapOutput) ToDataCenterMapOutput() DataCenterMapOutput
func (DataCenterMapOutput) ToDataCenterMapOutputWithContext ¶ added in v2.35.1
func (o DataCenterMapOutput) ToDataCenterMapOutputWithContext(ctx context.Context) DataCenterMapOutput
type DataCenterOutput ¶ added in v2.25.1
type DataCenterOutput struct {
*pulumi.OutputState
}
func (DataCenterOutput) ElementType ¶ added in v2.25.1
func (DataCenterOutput) ElementType() reflect.Type
func (DataCenterOutput) ToDataCenterOutput ¶ added in v2.25.1
func (o DataCenterOutput) ToDataCenterOutput() DataCenterOutput
func (DataCenterOutput) ToDataCenterOutputWithContext ¶ added in v2.25.1
func (o DataCenterOutput) ToDataCenterOutputWithContext(ctx context.Context) DataCenterOutput
func (DataCenterOutput) ToDataCenterPtrOutput ¶ added in v2.35.1
func (o DataCenterOutput) ToDataCenterPtrOutput() DataCenterPtrOutput
func (DataCenterOutput) ToDataCenterPtrOutputWithContext ¶ added in v2.35.1
func (o DataCenterOutput) ToDataCenterPtrOutputWithContext(ctx context.Context) DataCenterPtrOutput
type DataCenterPtrInput ¶ added in v2.35.1
type DataCenterPtrInput interface { pulumi.Input ToDataCenterPtrOutput() DataCenterPtrOutput ToDataCenterPtrOutputWithContext(ctx context.Context) DataCenterPtrOutput }
type DataCenterPtrOutput ¶ added in v2.35.1
type DataCenterPtrOutput struct {
*pulumi.OutputState
}
func (DataCenterPtrOutput) ElementType ¶ added in v2.35.1
func (DataCenterPtrOutput) ElementType() reflect.Type
func (DataCenterPtrOutput) ToDataCenterPtrOutput ¶ added in v2.35.1
func (o DataCenterPtrOutput) ToDataCenterPtrOutput() DataCenterPtrOutput
func (DataCenterPtrOutput) ToDataCenterPtrOutputWithContext ¶ added in v2.35.1
func (o DataCenterPtrOutput) ToDataCenterPtrOutputWithContext(ctx context.Context) DataCenterPtrOutput
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 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) ElementType() reflect.Type
func (GetClustersClusterArrayOutput) Index ¶
func (o GetClustersClusterArrayOutput) Index(i pulumi.IntInput) GetClustersClusterOutput
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 ¶
func (o GetClustersClusterOutput) ClusterId() pulumi.StringOutput
The ID of the Cassandra cluster.
func (GetClustersClusterOutput) ClusterName ¶
func (o GetClustersClusterOutput) ClusterName() pulumi.StringOutput
The name of the Cassandra cluster.
func (GetClustersClusterOutput) CreatedTime ¶
func (o GetClustersClusterOutput) CreatedTime() pulumi.StringOutput
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 ¶
func (o GetClustersClusterOutput) ExpireTime() pulumi.StringOutput
The expire time of the cluster.
func (GetClustersClusterOutput) Id ¶
func (o GetClustersClusterOutput) Id() pulumi.StringOutput
The ID of the Cassandra cluster.
func (GetClustersClusterOutput) LockMode ¶
func (o GetClustersClusterOutput) LockMode() pulumi.StringOutput
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 ¶
func (o GetClustersClusterOutput) PayType() pulumi.StringOutput
Billing method. Value options are `Subscription` for Pay-As-You-Go and `PayAsYouGo` for yearly or monthly subscription.
func (GetClustersClusterOutput) Status ¶
func (o GetClustersClusterOutput) Status() pulumi.StringOutput
Status of the cluster.
func (GetClustersClusterOutput) Tags ¶
func (o GetClustersClusterOutput) Tags() pulumi.MapOutput
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 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/v2/go/alicloud/cassandra" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := "tf_testAccCassandra" _, err := cassandra.GetClusters(ctx, &cassandra.GetClustersArgs{ NameRegex: &opt0, }, nil) if err != nil { return err } return nil }) }
```
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) ElementType() reflect.Type
func (GetDataCentersCenterArrayOutput) Index ¶
func (o GetDataCentersCenterArrayOutput) Index(i pulumi.IntInput) GetDataCentersCenterOutput
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 ¶
func (o GetDataCentersCenterOutput) ClusterId() pulumi.StringOutput
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 (o GetDataCentersCenterOutput) CreatedTime() pulumi.StringOutput
func (GetDataCentersCenterOutput) DataCenterId ¶
func (o GetDataCentersCenterOutput) DataCenterId() pulumi.StringOutput
The id of the Cassandra dataCenter.
func (GetDataCentersCenterOutput) DataCenterName ¶
func (o GetDataCentersCenterOutput) DataCenterName() pulumi.StringOutput
The name of the Cassandra dataCenter.
func (GetDataCentersCenterOutput) DiskSize ¶
func (o GetDataCentersCenterOutput) DiskSize() pulumi.IntOutput
One node disk size, unit:GB.
func (GetDataCentersCenterOutput) DiskType ¶
func (o GetDataCentersCenterOutput) DiskType() pulumi.StringOutput
Cloud_ssd or cloud_efficiency.
func (GetDataCentersCenterOutput) ElementType ¶
func (GetDataCentersCenterOutput) ElementType() reflect.Type
func (GetDataCentersCenterOutput) ExpireTime ¶
func (o GetDataCentersCenterOutput) ExpireTime() pulumi.StringOutput
The expire time of the dataCenter.
func (GetDataCentersCenterOutput) InstanceType ¶
func (o GetDataCentersCenterOutput) InstanceType() pulumi.StringOutput
The instance type of the Cassandra dataCenter, eg: cassandra.c.large.
func (GetDataCentersCenterOutput) LockMode ¶
func (o GetDataCentersCenterOutput) LockMode() pulumi.StringOutput
The lock mode of the dataCenter.
func (GetDataCentersCenterOutput) NodeCount ¶
func (o GetDataCentersCenterOutput) NodeCount() pulumi.IntOutput
The node count of dataCenter.
func (GetDataCentersCenterOutput) PayType ¶
func (o GetDataCentersCenterOutput) PayType() pulumi.StringOutput
Billing method. Value options are `Subscription` for Pay-As-You-Go and `PayAsYouGo` for yearly or monthly subscription.
func (GetDataCentersCenterOutput) Status ¶
func (o GetDataCentersCenterOutput) Status() pulumi.StringOutput
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 ¶
func (o GetDataCentersCenterOutput) VpcId() pulumi.StringOutput
VPC ID the dataCenter belongs to.
func (GetDataCentersCenterOutput) VswitchId ¶
func (o GetDataCentersCenterOutput) VswitchId() pulumi.StringOutput
VSwitch ID the dataCenter belongs to.
func (GetDataCentersCenterOutput) ZoneId ¶
func (o GetDataCentersCenterOutput) ZoneId() pulumi.StringOutput
Zone ID the dataCenter belongs to.
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/v2/go/alicloud/cassandra" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := "tf_testAccCassandra_dc" _, err := cassandra.GetDataCenters(ctx, &cassandra.GetDataCentersArgs{ ClusterId: "cds-xxxxx", NameRegex: &opt0, }, nil) if err != nil { return err } 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 Cassandra clusters. 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 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/v2/go/alicloud/cassandra" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
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 GetZonesZone ¶
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 (o GetZonesZoneArrayOutput) Index(i pulumi.IntInput) GetZonesZoneOutput
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) 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