Documentation
¶
Index ¶
- type BackupPlan
- type BackupPlanArgs
- type BackupPlanArray
- type BackupPlanArrayInput
- type BackupPlanArrayOutput
- func (BackupPlanArrayOutput) ElementType() reflect.Type
- func (o BackupPlanArrayOutput) Index(i pulumi.IntInput) BackupPlanOutput
- func (o BackupPlanArrayOutput) ToBackupPlanArrayOutput() BackupPlanArrayOutput
- func (o BackupPlanArrayOutput) ToBackupPlanArrayOutputWithContext(ctx context.Context) BackupPlanArrayOutput
- type BackupPlanInput
- type BackupPlanMap
- type BackupPlanMapInput
- type BackupPlanMapOutput
- func (BackupPlanMapOutput) ElementType() reflect.Type
- func (o BackupPlanMapOutput) MapIndex(k pulumi.StringInput) BackupPlanOutput
- func (o BackupPlanMapOutput) ToBackupPlanMapOutput() BackupPlanMapOutput
- func (o BackupPlanMapOutput) ToBackupPlanMapOutputWithContext(ctx context.Context) BackupPlanMapOutput
- type BackupPlanOutput
- func (o BackupPlanOutput) Active() pulumi.BoolOutput
- func (o BackupPlanOutput) BackupPeriod() pulumi.StringOutput
- func (o BackupPlanOutput) BackupTime() pulumi.StringOutput
- func (o BackupPlanOutput) ClusterId() pulumi.StringOutput
- func (o BackupPlanOutput) DataCenterId() pulumi.StringOutput
- func (BackupPlanOutput) ElementType() reflect.Type
- func (o BackupPlanOutput) RetentionPeriod() pulumi.IntOutput
- func (o BackupPlanOutput) ToBackupPlanOutput() BackupPlanOutput
- func (o BackupPlanOutput) ToBackupPlanOutputWithContext(ctx context.Context) BackupPlanOutput
- type BackupPlanState
- type Cluster
- type ClusterArgs
- type ClusterArray
- type ClusterArrayInput
- type ClusterArrayOutput
- type ClusterInput
- type ClusterMap
- type ClusterMapInput
- type ClusterMapOutput
- type ClusterOutput
- func (o ClusterOutput) AutoRenew() pulumi.BoolPtrOutput
- func (o ClusterOutput) AutoRenewPeriod() pulumi.IntPtrOutput
- func (o ClusterOutput) ClusterName() pulumi.StringPtrOutput
- func (o ClusterOutput) DataCenterName() pulumi.StringPtrOutput
- func (o ClusterOutput) DiskSize() pulumi.IntPtrOutput
- func (o ClusterOutput) DiskType() pulumi.StringPtrOutput
- func (ClusterOutput) ElementType() reflect.Type
- func (o ClusterOutput) EnablePublic() pulumi.BoolPtrOutput
- func (o ClusterOutput) InstanceType() pulumi.StringOutput
- func (o ClusterOutput) IpWhite() pulumi.StringOutput
- func (o ClusterOutput) MaintainEndTime() pulumi.StringPtrOutput
- func (o ClusterOutput) MaintainStartTime() pulumi.StringPtrOutput
- func (o ClusterOutput) MajorVersion() pulumi.StringOutput
- func (o ClusterOutput) NodeCount() pulumi.IntOutput
- func (o ClusterOutput) Password() pulumi.StringPtrOutput
- func (o ClusterOutput) PayType() pulumi.StringOutput
- func (o ClusterOutput) Period() pulumi.IntPtrOutput
- func (o ClusterOutput) PeriodUnit() pulumi.StringPtrOutput
- func (o ClusterOutput) PublicPoints() pulumi.StringArrayOutput
- func (o ClusterOutput) SecurityGroups() pulumi.StringArrayOutput
- func (o ClusterOutput) Status() pulumi.StringOutput
- func (o ClusterOutput) Tags() pulumi.MapOutput
- func (o ClusterOutput) ToClusterOutput() ClusterOutput
- func (o ClusterOutput) ToClusterOutputWithContext(ctx context.Context) ClusterOutput
- func (o ClusterOutput) VswitchId() pulumi.StringOutput
- func (o ClusterOutput) ZoneId() pulumi.StringOutput
- type ClusterState
- type DataCenter
- 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 (o DataCenterOutput) AutoRenew() pulumi.BoolPtrOutput
- func (o DataCenterOutput) AutoRenewPeriod() pulumi.IntPtrOutput
- func (o DataCenterOutput) ClusterId() pulumi.StringOutput
- func (o DataCenterOutput) DataCenterId() pulumi.StringOutput
- func (o DataCenterOutput) DataCenterName() pulumi.StringPtrOutput
- func (o DataCenterOutput) DiskSize() pulumi.IntPtrOutput
- func (o DataCenterOutput) DiskType() pulumi.StringPtrOutput
- func (DataCenterOutput) ElementType() reflect.Type
- func (o DataCenterOutput) EnablePublic() pulumi.BoolPtrOutput
- func (o DataCenterOutput) InstanceType() pulumi.StringOutput
- func (o DataCenterOutput) NodeCount() pulumi.IntOutput
- func (o DataCenterOutput) PayType() pulumi.StringOutput
- func (o DataCenterOutput) Period() pulumi.IntPtrOutput
- func (o DataCenterOutput) PeriodUnit() pulumi.StringPtrOutput
- func (o DataCenterOutput) PublicPoints() pulumi.StringArrayOutput
- func (o DataCenterOutput) Status() pulumi.StringOutput
- func (o DataCenterOutput) ToDataCenterOutput() DataCenterOutput
- func (o DataCenterOutput) ToDataCenterOutputWithContext(ctx context.Context) DataCenterOutput
- func (o DataCenterOutput) VswitchId() pulumi.StringOutput
- func (o DataCenterOutput) ZoneId() pulumi.StringOutput
- type DataCenterState
- type GetBackupPlansArgs
- type GetBackupPlansOutputArgs
- type GetBackupPlansPlan
- type GetBackupPlansPlanArgs
- type GetBackupPlansPlanArray
- type GetBackupPlansPlanArrayInput
- type GetBackupPlansPlanArrayOutput
- func (GetBackupPlansPlanArrayOutput) ElementType() reflect.Type
- func (o GetBackupPlansPlanArrayOutput) Index(i pulumi.IntInput) GetBackupPlansPlanOutput
- func (o GetBackupPlansPlanArrayOutput) ToGetBackupPlansPlanArrayOutput() GetBackupPlansPlanArrayOutput
- func (o GetBackupPlansPlanArrayOutput) ToGetBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetBackupPlansPlanArrayOutput
- type GetBackupPlansPlanInput
- type GetBackupPlansPlanOutput
- func (o GetBackupPlansPlanOutput) Active() pulumi.BoolOutput
- func (o GetBackupPlansPlanOutput) BackupPeriod() pulumi.StringOutput
- func (o GetBackupPlansPlanOutput) BackupTime() pulumi.StringOutput
- func (o GetBackupPlansPlanOutput) ClusterId() pulumi.StringOutput
- func (o GetBackupPlansPlanOutput) CreateTime() pulumi.StringOutput
- func (o GetBackupPlansPlanOutput) DataCenterId() pulumi.StringOutput
- func (GetBackupPlansPlanOutput) ElementType() reflect.Type
- func (o GetBackupPlansPlanOutput) Id() pulumi.StringOutput
- func (o GetBackupPlansPlanOutput) RetentionPeriod() pulumi.IntOutput
- func (o GetBackupPlansPlanOutput) ToGetBackupPlansPlanOutput() GetBackupPlansPlanOutput
- func (o GetBackupPlansPlanOutput) ToGetBackupPlansPlanOutputWithContext(ctx context.Context) GetBackupPlansPlanOutput
- type GetBackupPlansResult
- type GetBackupPlansResultOutput
- func (o GetBackupPlansResultOutput) ClusterId() pulumi.StringOutput
- func (GetBackupPlansResultOutput) ElementType() reflect.Type
- func (o GetBackupPlansResultOutput) Id() pulumi.StringOutput
- func (o GetBackupPlansResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetBackupPlansResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetBackupPlansResultOutput) Plans() GetBackupPlansPlanArrayOutput
- func (o GetBackupPlansResultOutput) ToGetBackupPlansResultOutput() GetBackupPlansResultOutput
- func (o GetBackupPlansResultOutput) ToGetBackupPlansResultOutputWithContext(ctx context.Context) GetBackupPlansResultOutput
- 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 GetClustersOutputArgs
- type GetClustersResult
- type GetClustersResultOutput
- func (o GetClustersResultOutput) Clusters() GetClustersClusterArrayOutput
- func (GetClustersResultOutput) ElementType() reflect.Type
- func (o GetClustersResultOutput) Id() pulumi.StringOutput
- func (o GetClustersResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetClustersResultOutput) NameRegex() pulumi.StringPtrOutput
- func (o GetClustersResultOutput) Names() pulumi.StringArrayOutput
- func (o GetClustersResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetClustersResultOutput) Tags() pulumi.MapOutput
- func (o GetClustersResultOutput) ToGetClustersResultOutput() GetClustersResultOutput
- func (o GetClustersResultOutput) ToGetClustersResultOutputWithContext(ctx context.Context) GetClustersResultOutput
- 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 GetDataCentersOutputArgs
- type GetDataCentersResult
- type GetDataCentersResultOutput
- func (o GetDataCentersResultOutput) Centers() GetDataCentersCenterArrayOutput
- func (o GetDataCentersResultOutput) ClusterId() pulumi.StringOutput
- func (GetDataCentersResultOutput) ElementType() reflect.Type
- func (o GetDataCentersResultOutput) Id() pulumi.StringOutput
- func (o GetDataCentersResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetDataCentersResultOutput) NameRegex() pulumi.StringPtrOutput
- func (o GetDataCentersResultOutput) Names() pulumi.StringArrayOutput
- func (o GetDataCentersResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetDataCentersResultOutput) ToGetDataCentersResultOutput() GetDataCentersResultOutput
- func (o GetDataCentersResultOutput) ToGetDataCentersResultOutputWithContext(ctx context.Context) GetDataCentersResultOutput
- type GetZonesArgs
- type GetZonesOutputArgs
- type GetZonesResult
- type GetZonesResultOutput
- func (GetZonesResultOutput) ElementType() reflect.Type
- func (o GetZonesResultOutput) Id() pulumi.StringOutput
- func (o GetZonesResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetZonesResultOutput) Multi() pulumi.BoolPtrOutput
- func (o GetZonesResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetZonesResultOutput) ToGetZonesResultOutput() GetZonesResultOutput
- func (o GetZonesResultOutput) ToGetZonesResultOutputWithContext(ctx context.Context) GetZonesResultOutput
- func (o GetZonesResultOutput) Zones() GetZonesZoneArrayOutput
- 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 BackupPlan ¶ added in v3.5.0
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 ¶ added in v3.5.0
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 ¶ added in v3.5.0
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 ¶ added in v3.5.0
func (*BackupPlan) ElementType() reflect.Type
func (*BackupPlan) ToBackupPlanOutput ¶ added in v3.5.0
func (i *BackupPlan) ToBackupPlanOutput() BackupPlanOutput
func (*BackupPlan) ToBackupPlanOutputWithContext ¶ added in v3.5.0
func (i *BackupPlan) ToBackupPlanOutputWithContext(ctx context.Context) BackupPlanOutput
type BackupPlanArgs ¶ added in v3.5.0
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 ¶ added in v3.5.0
func (BackupPlanArgs) ElementType() reflect.Type
type BackupPlanArray ¶ added in v3.5.0
type BackupPlanArray []BackupPlanInput
func (BackupPlanArray) ElementType ¶ added in v3.5.0
func (BackupPlanArray) ElementType() reflect.Type
func (BackupPlanArray) ToBackupPlanArrayOutput ¶ added in v3.5.0
func (i BackupPlanArray) ToBackupPlanArrayOutput() BackupPlanArrayOutput
func (BackupPlanArray) ToBackupPlanArrayOutputWithContext ¶ added in v3.5.0
func (i BackupPlanArray) ToBackupPlanArrayOutputWithContext(ctx context.Context) BackupPlanArrayOutput
type BackupPlanArrayInput ¶ added in v3.5.0
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 ¶ added in v3.5.0
type BackupPlanArrayOutput struct{ *pulumi.OutputState }
func (BackupPlanArrayOutput) ElementType ¶ added in v3.5.0
func (BackupPlanArrayOutput) ElementType() reflect.Type
func (BackupPlanArrayOutput) Index ¶ added in v3.5.0
func (o BackupPlanArrayOutput) Index(i pulumi.IntInput) BackupPlanOutput
func (BackupPlanArrayOutput) ToBackupPlanArrayOutput ¶ added in v3.5.0
func (o BackupPlanArrayOutput) ToBackupPlanArrayOutput() BackupPlanArrayOutput
func (BackupPlanArrayOutput) ToBackupPlanArrayOutputWithContext ¶ added in v3.5.0
func (o BackupPlanArrayOutput) ToBackupPlanArrayOutputWithContext(ctx context.Context) BackupPlanArrayOutput
type BackupPlanInput ¶ added in v3.5.0
type BackupPlanInput interface { pulumi.Input ToBackupPlanOutput() BackupPlanOutput ToBackupPlanOutputWithContext(ctx context.Context) BackupPlanOutput }
type BackupPlanMap ¶ added in v3.5.0
type BackupPlanMap map[string]BackupPlanInput
func (BackupPlanMap) ElementType ¶ added in v3.5.0
func (BackupPlanMap) ElementType() reflect.Type
func (BackupPlanMap) ToBackupPlanMapOutput ¶ added in v3.5.0
func (i BackupPlanMap) ToBackupPlanMapOutput() BackupPlanMapOutput
func (BackupPlanMap) ToBackupPlanMapOutputWithContext ¶ added in v3.5.0
func (i BackupPlanMap) ToBackupPlanMapOutputWithContext(ctx context.Context) BackupPlanMapOutput
type BackupPlanMapInput ¶ added in v3.5.0
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 ¶ added in v3.5.0
type BackupPlanMapOutput struct{ *pulumi.OutputState }
func (BackupPlanMapOutput) ElementType ¶ added in v3.5.0
func (BackupPlanMapOutput) ElementType() reflect.Type
func (BackupPlanMapOutput) MapIndex ¶ added in v3.5.0
func (o BackupPlanMapOutput) MapIndex(k pulumi.StringInput) BackupPlanOutput
func (BackupPlanMapOutput) ToBackupPlanMapOutput ¶ added in v3.5.0
func (o BackupPlanMapOutput) ToBackupPlanMapOutput() BackupPlanMapOutput
func (BackupPlanMapOutput) ToBackupPlanMapOutputWithContext ¶ added in v3.5.0
func (o BackupPlanMapOutput) ToBackupPlanMapOutputWithContext(ctx context.Context) BackupPlanMapOutput
type BackupPlanOutput ¶ added in v3.5.0
type BackupPlanOutput struct{ *pulumi.OutputState }
func (BackupPlanOutput) Active ¶ added in v3.27.0
func (o BackupPlanOutput) Active() pulumi.BoolOutput
Specifies whether to activate the backup plan. Valid values: `True`, `False`. Default value: `True`.
func (BackupPlanOutput) BackupPeriod ¶ added in v3.27.0
func (o BackupPlanOutput) BackupPeriod() pulumi.StringOutput
The backup cycle. Valid values: `Friday`, `Monday`, `Saturday`, `Sunday`, `Thursday`, `Tuesday`, `Wednesday`.
func (BackupPlanOutput) BackupTime ¶ added in v3.27.0
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 ¶ added in v3.27.0
func (o BackupPlanOutput) ClusterId() pulumi.StringOutput
The ID of the cluster for the backup.
func (BackupPlanOutput) DataCenterId ¶ added in v3.27.0
func (o BackupPlanOutput) DataCenterId() pulumi.StringOutput
The ID of the data center for the backup in the cluster.
func (BackupPlanOutput) ElementType ¶ added in v3.5.0
func (BackupPlanOutput) ElementType() reflect.Type
func (BackupPlanOutput) RetentionPeriod ¶ added in v3.27.0
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 ¶ added in v3.5.0
func (o BackupPlanOutput) ToBackupPlanOutput() BackupPlanOutput
func (BackupPlanOutput) ToBackupPlanOutputWithContext ¶ added in v3.5.0
func (o BackupPlanOutput) ToBackupPlanOutputWithContext(ctx context.Context) BackupPlanOutput
type BackupPlanState ¶ added in v3.5.0
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 ¶ added in v3.5.0
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. // // > **NOTE:** Now cluster_name,data_center_name,instance_type,node_count,disk_type,disk_size,maintain_start_time,maintain_end_time,tags,ip_white,security_groups can be change. The others(auto_renew, autoRenewPeriod and so on) will be supported in the furture. 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/v3/go/alicloud/cassandra" "github.com/pulumi/pulumi/sdk/v3/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 ¶
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. // // > **NOTE:** Now cluster_name,data_center_name,instance_type,node_count,disk_type,disk_size,maintain_start_time,maintain_end_time,tags,ip_white,security_groups can be change. The others(auto_renew, autoRenewPeriod and so on) will be supported in the furture. 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 (o ClusterArrayOutput) Index(i pulumi.IntInput) ClusterOutput
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 (o ClusterMapOutput) MapIndex(k pulumi.StringInput) ClusterOutput
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 ¶ added in v3.27.0
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 ¶ added in v3.27.0
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 ¶ added in v3.27.0
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 ¶ added in v3.27.0
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 ¶ added in v3.27.0
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 ¶ added in v3.27.0
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 ¶ added in v3.27.0
func (o ClusterOutput) EnablePublic() pulumi.BoolPtrOutput
func (ClusterOutput) InstanceType ¶ added in v3.27.0
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 ¶ added in v3.27.0
func (o ClusterOutput) IpWhite() pulumi.StringOutput
Set the instance's IP whitelist in VPC network.
func (ClusterOutput) MaintainEndTime ¶ added in v3.27.0
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 ¶ added in v3.27.0
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 ¶ added in v3.27.0
func (o ClusterOutput) MajorVersion() pulumi.StringOutput
Cassandra major version. Now only support version `3.11`.
func (ClusterOutput) NodeCount ¶ added in v3.27.0
func (o ClusterOutput) NodeCount() pulumi.IntOutput
The node count of Cassandra dataCenter-1 default to 2.
func (ClusterOutput) Password ¶ added in v3.27.0
func (o ClusterOutput) Password() pulumi.StringPtrOutput
func (ClusterOutput) PayType ¶ added in v3.27.0
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 ¶ added in v3.27.0
func (o ClusterOutput) Period() pulumi.IntPtrOutput
func (ClusterOutput) PeriodUnit ¶ added in v3.27.0
func (o ClusterOutput) PeriodUnit() pulumi.StringPtrOutput
func (ClusterOutput) PublicPoints ¶ added in v3.27.0
func (o ClusterOutput) PublicPoints() pulumi.StringArrayOutput
func (ClusterOutput) SecurityGroups ¶ added in v3.27.0
func (o ClusterOutput) SecurityGroups() pulumi.StringArrayOutput
A list of security group ids to associate with.
> **NOTE:** Now cluster_name,data_center_name,instance_type,node_count,disk_type,disk_size,maintain_start_time,maintain_end_time,tags,ip_white,security_groups can be change. The others(auto_renew, autoRenewPeriod and so on) will be supported in the furture.
func (ClusterOutput) Status ¶ added in v3.27.0
func (o ClusterOutput) Status() pulumi.StringOutput
func (ClusterOutput) Tags ¶ added in v3.27.0
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 ¶ added in v3.27.0
func (o ClusterOutput) VswitchId() pulumi.StringOutput
The vswitchId of dataCenter-1, can not empty.
func (ClusterOutput) ZoneId ¶ added in v3.27.0
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. // // > **NOTE:** Now cluster_name,data_center_name,instance_type,node_count,disk_type,disk_size,maintain_start_time,maintain_end_time,tags,ip_white,security_groups can be change. The others(auto_renew, autoRenewPeriod and so on) will be supported in the furture. 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. // // > **NOTE:** Now data_center_name,instance_type,node_count,disk_type,disk_size can be change. The others(auto_renew, autoRenewPeriod and so on) will be supported in the furture. 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/v3/go/alicloud/cassandra" "github.com/pulumi/pulumi/sdk/v3/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 ¶
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. // // > **NOTE:** Now data_center_name,instance_type,node_count,disk_type,disk_size can be change. The others(auto_renew, autoRenewPeriod and so on) will be supported in the furture. 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 (o DataCenterArrayOutput) Index(i pulumi.IntInput) DataCenterOutput
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 (o DataCenterMapOutput) MapIndex(k pulumi.StringInput) DataCenterOutput
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 ¶ added in v3.27.0
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 ¶ added in v3.27.0
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 ¶ added in v3.27.0
func (o DataCenterOutput) ClusterId() pulumi.StringOutput
Cassandra cluster id of dataCenter-2 belongs to.
func (DataCenterOutput) DataCenterId ¶ added in v3.27.0
func (o DataCenterOutput) DataCenterId() pulumi.StringOutput
func (DataCenterOutput) DataCenterName ¶ added in v3.27.0
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 ¶ added in v3.27.0
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 ¶ added in v3.27.0
func (o DataCenterOutput) DiskType() pulumi.StringPtrOutput
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 ¶ added in v3.27.0
func (o DataCenterOutput) EnablePublic() pulumi.BoolPtrOutput
func (DataCenterOutput) InstanceType ¶ added in v3.27.0
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 ¶ added in v3.27.0
func (o DataCenterOutput) NodeCount() pulumi.IntOutput
The node count of Cassandra dataCenter-2, default to 2.
func (DataCenterOutput) PayType ¶ added in v3.27.0
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 ¶ added in v3.27.0
func (o DataCenterOutput) Period() pulumi.IntPtrOutput
func (DataCenterOutput) PeriodUnit ¶ added in v3.27.0
func (o DataCenterOutput) PeriodUnit() pulumi.StringPtrOutput
func (DataCenterOutput) PublicPoints ¶ added in v3.27.0
func (o DataCenterOutput) PublicPoints() pulumi.StringArrayOutput
func (DataCenterOutput) Status ¶ added in v3.27.0
func (o DataCenterOutput) Status() pulumi.StringOutput
func (DataCenterOutput) ToDataCenterOutput ¶
func (o DataCenterOutput) ToDataCenterOutput() DataCenterOutput
func (DataCenterOutput) ToDataCenterOutputWithContext ¶
func (o DataCenterOutput) ToDataCenterOutputWithContext(ctx context.Context) DataCenterOutput
func (DataCenterOutput) VswitchId ¶ added in v3.27.0
func (o DataCenterOutput) VswitchId() pulumi.StringOutput
The vswitchId of dataCenter-2, mast different of vswitch_id(dc-1), can not empty.
> **NOTE:** Now data_center_name,instance_type,node_count,disk_type,disk_size can be change. The others(auto_renew, autoRenewPeriod and so on) will be supported in the furture.
func (DataCenterOutput) ZoneId ¶ added in v3.27.0
func (o DataCenterOutput) ZoneId() pulumi.StringOutput
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. // // > **NOTE:** Now data_center_name,instance_type,node_count,disk_type,disk_size can be change. The others(auto_renew, autoRenewPeriod and so on) will be supported in the furture. 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 ¶ added in v3.5.0
type GetBackupPlansArgs struct { // The ID of the cluster for the backup. ClusterId string `pulumi:"clusterId"` // File name where to save data source results (after running `pulumi preview`). OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getBackupPlans.
type GetBackupPlansOutputArgs ¶ added in v3.9.0
type GetBackupPlansOutputArgs struct { // The ID of the cluster for the backup. ClusterId pulumi.StringInput `pulumi:"clusterId"` // File name where to save data source results (after running `pulumi preview`). OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` }
A collection of arguments for invoking getBackupPlans.
func (GetBackupPlansOutputArgs) ElementType ¶ added in v3.9.0
func (GetBackupPlansOutputArgs) ElementType() reflect.Type
type GetBackupPlansPlan ¶ added in v3.5.0
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 ¶ added in v3.5.0
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 ¶ added in v3.5.0
func (GetBackupPlansPlanArgs) ElementType() reflect.Type
func (GetBackupPlansPlanArgs) ToGetBackupPlansPlanOutput ¶ added in v3.5.0
func (i GetBackupPlansPlanArgs) ToGetBackupPlansPlanOutput() GetBackupPlansPlanOutput
func (GetBackupPlansPlanArgs) ToGetBackupPlansPlanOutputWithContext ¶ added in v3.5.0
func (i GetBackupPlansPlanArgs) ToGetBackupPlansPlanOutputWithContext(ctx context.Context) GetBackupPlansPlanOutput
type GetBackupPlansPlanArray ¶ added in v3.5.0
type GetBackupPlansPlanArray []GetBackupPlansPlanInput
func (GetBackupPlansPlanArray) ElementType ¶ added in v3.5.0
func (GetBackupPlansPlanArray) ElementType() reflect.Type
func (GetBackupPlansPlanArray) ToGetBackupPlansPlanArrayOutput ¶ added in v3.5.0
func (i GetBackupPlansPlanArray) ToGetBackupPlansPlanArrayOutput() GetBackupPlansPlanArrayOutput
func (GetBackupPlansPlanArray) ToGetBackupPlansPlanArrayOutputWithContext ¶ added in v3.5.0
func (i GetBackupPlansPlanArray) ToGetBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetBackupPlansPlanArrayOutput
type GetBackupPlansPlanArrayInput ¶ added in v3.5.0
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 ¶ added in v3.5.0
type GetBackupPlansPlanArrayOutput struct{ *pulumi.OutputState }
func (GetBackupPlansPlanArrayOutput) ElementType ¶ added in v3.5.0
func (GetBackupPlansPlanArrayOutput) ElementType() reflect.Type
func (GetBackupPlansPlanArrayOutput) Index ¶ added in v3.5.0
func (o GetBackupPlansPlanArrayOutput) Index(i pulumi.IntInput) GetBackupPlansPlanOutput
func (GetBackupPlansPlanArrayOutput) ToGetBackupPlansPlanArrayOutput ¶ added in v3.5.0
func (o GetBackupPlansPlanArrayOutput) ToGetBackupPlansPlanArrayOutput() GetBackupPlansPlanArrayOutput
func (GetBackupPlansPlanArrayOutput) ToGetBackupPlansPlanArrayOutputWithContext ¶ added in v3.5.0
func (o GetBackupPlansPlanArrayOutput) ToGetBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetBackupPlansPlanArrayOutput
type GetBackupPlansPlanInput ¶ added in v3.5.0
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 ¶ added in v3.5.0
type GetBackupPlansPlanOutput struct{ *pulumi.OutputState }
func (GetBackupPlansPlanOutput) Active ¶ added in v3.5.0
func (o GetBackupPlansPlanOutput) Active() pulumi.BoolOutput
Specifies whether to activate the backup plan.
func (GetBackupPlansPlanOutput) BackupPeriod ¶ added in v3.5.0
func (o GetBackupPlansPlanOutput) BackupPeriod() pulumi.StringOutput
The backup cycle. Valid values: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.
func (GetBackupPlansPlanOutput) BackupTime ¶ added in v3.5.0
func (o GetBackupPlansPlanOutput) BackupTime() pulumi.StringOutput
The start time of the backup task each day. The time is displayed in UTC and denoted by Z.
func (GetBackupPlansPlanOutput) ClusterId ¶ added in v3.5.0
func (o GetBackupPlansPlanOutput) ClusterId() pulumi.StringOutput
The ID of the cluster for the backup.
func (GetBackupPlansPlanOutput) CreateTime ¶ added in v3.5.0
func (o GetBackupPlansPlanOutput) CreateTime() pulumi.StringOutput
The time when the backup plan was created.
func (GetBackupPlansPlanOutput) DataCenterId ¶ added in v3.5.0
func (o GetBackupPlansPlanOutput) DataCenterId() pulumi.StringOutput
The ID of the data center for the backup in the cluster.
func (GetBackupPlansPlanOutput) ElementType ¶ added in v3.5.0
func (GetBackupPlansPlanOutput) ElementType() reflect.Type
func (GetBackupPlansPlanOutput) Id ¶ added in v3.5.0
func (o GetBackupPlansPlanOutput) Id() pulumi.StringOutput
The ID of the Backup Plan.
func (GetBackupPlansPlanOutput) RetentionPeriod ¶ added in v3.5.0
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 ¶ added in v3.5.0
func (o GetBackupPlansPlanOutput) ToGetBackupPlansPlanOutput() GetBackupPlansPlanOutput
func (GetBackupPlansPlanOutput) ToGetBackupPlansPlanOutputWithContext ¶ added in v3.5.0
func (o GetBackupPlansPlanOutput) ToGetBackupPlansPlanOutputWithContext(ctx context.Context) GetBackupPlansPlanOutput
type GetBackupPlansResult ¶ added in v3.5.0
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 ¶ added in v3.5.0
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/v3/go/alicloud/cassandra" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
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 ¶ added in v3.9.0
type GetBackupPlansResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getBackupPlans.
func GetBackupPlansOutput ¶ added in v3.9.0
func GetBackupPlansOutput(ctx *pulumi.Context, args GetBackupPlansOutputArgs, opts ...pulumi.InvokeOption) GetBackupPlansResultOutput
func (GetBackupPlansResultOutput) ClusterId ¶ added in v3.9.0
func (o GetBackupPlansResultOutput) ClusterId() pulumi.StringOutput
func (GetBackupPlansResultOutput) ElementType ¶ added in v3.9.0
func (GetBackupPlansResultOutput) ElementType() reflect.Type
func (GetBackupPlansResultOutput) Id ¶ added in v3.9.0
func (o GetBackupPlansResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetBackupPlansResultOutput) Ids ¶ added in v3.9.0
func (o GetBackupPlansResultOutput) Ids() pulumi.StringArrayOutput
func (GetBackupPlansResultOutput) OutputFile ¶ added in v3.9.0
func (o GetBackupPlansResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetBackupPlansResultOutput) Plans ¶ added in v3.9.0
func (o GetBackupPlansResultOutput) Plans() GetBackupPlansPlanArrayOutput
func (GetBackupPlansResultOutput) ToGetBackupPlansResultOutput ¶ added in v3.9.0
func (o GetBackupPlansResultOutput) ToGetBackupPlansResultOutput() GetBackupPlansResultOutput
func (GetBackupPlansResultOutput) ToGetBackupPlansResultOutputWithContext ¶ added in v3.9.0
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"` // The name of file that can save the collection of clusters after running `pulumi preview`. 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 GetClustersOutputArgs ¶ added in v3.9.0
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"` // The name of file that can save the collection of clusters after running `pulumi preview`. 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 ¶ added in v3.9.0
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/v3/go/alicloud/cassandra" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
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 ¶ added in v3.9.0
type GetClustersResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getClusters.
func GetClustersOutput ¶ added in v3.9.0
func GetClustersOutput(ctx *pulumi.Context, args GetClustersOutputArgs, opts ...pulumi.InvokeOption) GetClustersResultOutput
func (GetClustersResultOutput) Clusters ¶ added in v3.9.0
func (o GetClustersResultOutput) Clusters() GetClustersClusterArrayOutput
A list of Cassandra clusters. Its every element contains the following attributes:
func (GetClustersResultOutput) ElementType ¶ added in v3.9.0
func (GetClustersResultOutput) ElementType() reflect.Type
func (GetClustersResultOutput) Id ¶ added in v3.9.0
func (o GetClustersResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetClustersResultOutput) Ids ¶ added in v3.9.0
func (o GetClustersResultOutput) Ids() pulumi.StringArrayOutput
The list of Cassandra cluster ids.
func (GetClustersResultOutput) NameRegex ¶ added in v3.9.0
func (o GetClustersResultOutput) NameRegex() pulumi.StringPtrOutput
func (GetClustersResultOutput) Names ¶ added in v3.9.0
func (o GetClustersResultOutput) Names() pulumi.StringArrayOutput
The name list of Cassandra clusters.
func (GetClustersResultOutput) OutputFile ¶ added in v3.9.0
func (o GetClustersResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetClustersResultOutput) Tags ¶ added in v3.9.0
func (o GetClustersResultOutput) Tags() pulumi.MapOutput
A mapping of tags to assign to the resource.
func (GetClustersResultOutput) ToGetClustersResultOutput ¶ added in v3.9.0
func (o GetClustersResultOutput) ToGetClustersResultOutput() GetClustersResultOutput
func (GetClustersResultOutput) ToGetClustersResultOutputWithContext ¶ added in v3.9.0
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"` // The name of file that can save the collection of data centers after running `pulumi preview`. 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 GetDataCentersOutputArgs ¶ added in v3.9.0
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"` // The name of file that can save the collection of data centers after running `pulumi preview`. OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` }
A collection of arguments for invoking getDataCenters.
func (GetDataCentersOutputArgs) ElementType ¶ added in v3.9.0
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/v3/go/alicloud/cassandra" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
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 ¶ added in v3.9.0
type GetDataCentersResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getDataCenters.
func GetDataCentersOutput ¶ added in v3.9.0
func GetDataCentersOutput(ctx *pulumi.Context, args GetDataCentersOutputArgs, opts ...pulumi.InvokeOption) GetDataCentersResultOutput
func (GetDataCentersResultOutput) Centers ¶ added in v3.9.0
func (o GetDataCentersResultOutput) Centers() GetDataCentersCenterArrayOutput
A list of Cassandra data centers. Its every element contains the following attributes:
func (GetDataCentersResultOutput) ClusterId ¶ added in v3.9.0
func (o GetDataCentersResultOutput) ClusterId() pulumi.StringOutput
The ID of the Cassandra cluster.
func (GetDataCentersResultOutput) ElementType ¶ added in v3.9.0
func (GetDataCentersResultOutput) ElementType() reflect.Type
func (GetDataCentersResultOutput) Id ¶ added in v3.9.0
func (o GetDataCentersResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetDataCentersResultOutput) Ids ¶ added in v3.9.0
func (o GetDataCentersResultOutput) Ids() pulumi.StringArrayOutput
The list of Cassandra data center ids.
func (GetDataCentersResultOutput) NameRegex ¶ added in v3.9.0
func (o GetDataCentersResultOutput) NameRegex() pulumi.StringPtrOutput
func (GetDataCentersResultOutput) Names ¶ added in v3.9.0
func (o GetDataCentersResultOutput) Names() pulumi.StringArrayOutput
The name list of Cassandra data centers.
func (GetDataCentersResultOutput) OutputFile ¶ added in v3.9.0
func (o GetDataCentersResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetDataCentersResultOutput) ToGetDataCentersResultOutput ¶ added in v3.9.0
func (o GetDataCentersResultOutput) ToGetDataCentersResultOutput() GetDataCentersResultOutput
func (GetDataCentersResultOutput) ToGetDataCentersResultOutputWithContext ¶ added in v3.9.0
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"` // File name where to save data source results (after running `pulumi preview`). OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getZones.
type GetZonesOutputArgs ¶ added in v3.9.0
type GetZonesOutputArgs struct { // Indicate whether the zones can be used in a multi AZ configuration. Default to `false`. Multi AZ is usually used to launch Cassandra clusters. Multi pulumi.BoolPtrInput `pulumi:"multi"` // File name where to save data source results (after running `pulumi preview`). OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` }
A collection of arguments for invoking getZones.
func (GetZonesOutputArgs) ElementType ¶ added in v3.9.0
func (GetZonesOutputArgs) ElementType() reflect.Type
type GetZonesResult ¶
type GetZonesResult struct { // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // A list of zone IDs. Ids []string `pulumi:"ids"` Multi *bool `pulumi:"multi"` OutputFile *string `pulumi:"outputFile"` // A list of availability zones. Each element contains the following attributes: Zones []GetZonesZone `pulumi:"zones"` }
A collection of values returned by getZones.
func GetZones ¶
func GetZones(ctx *pulumi.Context, args *GetZonesArgs, opts ...pulumi.InvokeOption) (*GetZonesResult, error)
This data source provides availability zones for 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/v3/go/alicloud/cassandra" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { zonesIds, err := cassandra.GetZones(ctx, nil, nil) if err != nil { return err } // Create an Cassandra cluster with the first matched zone _, err = cassandra.NewCluster(ctx, "cassandra", &cassandra.ClusterArgs{ ZoneId: *pulumi.String(zonesIds.Zones[0].Id), }) if err != nil { return err } return nil }) }
```
type GetZonesResultOutput ¶ added in v3.9.0
type GetZonesResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getZones.
func GetZonesOutput ¶ added in v3.9.0
func GetZonesOutput(ctx *pulumi.Context, args GetZonesOutputArgs, opts ...pulumi.InvokeOption) GetZonesResultOutput
func (GetZonesResultOutput) ElementType ¶ added in v3.9.0
func (GetZonesResultOutput) ElementType() reflect.Type
func (GetZonesResultOutput) Id ¶ added in v3.9.0
func (o GetZonesResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetZonesResultOutput) Ids ¶ added in v3.9.0
func (o GetZonesResultOutput) Ids() pulumi.StringArrayOutput
A list of zone IDs.
func (GetZonesResultOutput) Multi ¶ added in v3.9.0
func (o GetZonesResultOutput) Multi() pulumi.BoolPtrOutput
func (GetZonesResultOutput) OutputFile ¶ added in v3.9.0
func (o GetZonesResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetZonesResultOutput) ToGetZonesResultOutput ¶ added in v3.9.0
func (o GetZonesResultOutput) ToGetZonesResultOutput() GetZonesResultOutput
func (GetZonesResultOutput) ToGetZonesResultOutputWithContext ¶ added in v3.9.0
func (o GetZonesResultOutput) ToGetZonesResultOutputWithContext(ctx context.Context) GetZonesResultOutput
func (GetZonesResultOutput) Zones ¶ added in v3.9.0
func (o GetZonesResultOutput) Zones() GetZonesZoneArrayOutput
A list of availability zones. Each element contains the following attributes:
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