Documentation ¶
Index ¶
- func PkgVersion() (semver.Version, error)
- type Cluster
- type ClusterArgs
- type ClusterArray
- type ClusterArrayInput
- type ClusterArrayOutput
- type ClusterInput
- type ClusterMap
- type ClusterMapInput
- type ClusterMapOutput
- type ClusterOutput
- func (o ClusterOutput) AvailabilityZone() pulumi.StringOutput
- func (o ClusterOutput) CreatedAt() pulumi.StringOutput
- func (ClusterOutput) ElementType() reflect.Type
- func (o ClusterOutput) HbasePublicEndpoint() pulumi.StringOutput
- func (o ClusterOutput) HbaseVersion() pulumi.StringOutput
- func (o ClusterOutput) IamAuthEnabled() pulumi.BoolOutput
- func (o ClusterOutput) Name() pulumi.StringOutput
- func (o ClusterOutput) NetworkId() pulumi.StringOutput
- func (o ClusterOutput) OpenTsdbLink() pulumi.StringOutput
- func (o ClusterOutput) OpentsdbNum() pulumi.IntOutput
- func (o ClusterOutput) OpentsdbPublicEndpoint() pulumi.StringOutput
- func (o ClusterOutput) Region() pulumi.StringOutput
- func (o ClusterOutput) RsNum() pulumi.IntPtrOutput
- func (o ClusterOutput) SecurityGroupId() pulumi.StringOutput
- func (o ClusterOutput) Status() pulumi.StringOutput
- func (o ClusterOutput) StorageSize() pulumi.IntOutput
- func (o ClusterOutput) StorageSizeUsed() pulumi.IntOutput
- func (o ClusterOutput) StorageType() pulumi.StringOutput
- func (o ClusterOutput) ToClusterOutput() ClusterOutput
- func (o ClusterOutput) ToClusterOutputWithContext(ctx context.Context) ClusterOutput
- func (o ClusterOutput) VpcId() pulumi.StringOutput
- func (o ClusterOutput) ZookeeperLink() pulumi.StringOutput
- type ClusterState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PkgVersion ¶ added in v0.0.2
PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.
Types ¶
type Cluster ¶
type Cluster struct { pulumi.CustomResourceState // Specifies the availability zone in which to create the cluster. // Please following [reference](https://developer.huaweicloud.com/en-us/endpoint/?CloudTable) for the values. // Changing this parameter will create a new resource. AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"` // The time (UTC) when the cluster was created. CreatedAt pulumi.StringOutput `pulumi:"createdAt"` // The HBase public network endpoint address. HbasePublicEndpoint pulumi.StringOutput `pulumi:"hbasePublicEndpoint"` // Specifies the version of HBase datastore. HbaseVersion pulumi.StringOutput `pulumi:"hbaseVersion"` // Specifies whether IAM authorization is enabled. // Changing this parameter will create a new resource. IamAuthEnabled pulumi.BoolOutput `pulumi:"iamAuthEnabled"` // Specifies the cluster name. The name consists of 4 to 64 characters, including // lowercase letters, numbers and hyphens (-). Changing this parameter will create a new resource. Name pulumi.StringOutput `pulumi:"name"` // Specifies the ID of the network to which the cluster belongs. // Changing this parameter will create a new resource. NetworkId pulumi.StringOutput `pulumi:"networkId"` // The intranet OpenTSDB connection access address. OpenTsdbLink pulumi.StringOutput `pulumi:"openTsdbLink"` // Specifies the TSD nodes number of the cluster. // Changing this parameter will create a new resource. OpentsdbNum pulumi.IntOutput `pulumi:"opentsdbNum"` // The OpenTSDB public network endpoint address. OpentsdbPublicEndpoint pulumi.StringOutput `pulumi:"opentsdbPublicEndpoint"` // Specifies the region in which to create the cluster. // If omitted, the provider-level region will be used. Changing this parameter will create a new resource. Region pulumi.StringOutput `pulumi:"region"` // Specifies the compute nodes number of the cluster. // The valid values must be greater than `2`. Defaults to `2`. Changing this parameter will create a new resource. RsNum pulumi.IntPtrOutput `pulumi:"rsNum"` // Specifies the security group ID of the cluster. // Changing this parameter will create a new resource. SecurityGroupId pulumi.StringOutput `pulumi:"securityGroupId"` // The cluster status. Status pulumi.StringOutput `pulumi:"status"` // The storage size, in GB. StorageSize pulumi.IntOutput `pulumi:"storageSize"` // The currently used storage, in GB. StorageSizeUsed pulumi.IntOutput `pulumi:"storageSizeUsed"` // Specifies the storage type. // The valid values are **COMMON** and **ULTRAHIGH**. Changing this parameter will create a new resource. StorageType pulumi.StringOutput `pulumi:"storageType"` // Specifies the VPC ID to which the cluster belongs. // Changing this parameter will create a new resource. VpcId pulumi.StringOutput `pulumi:"vpcId"` // The intranet zookeeper connection access address. ZookeeperLink pulumi.StringOutput `pulumi:"zookeeperLink"` }
Manages a CloudTable cluster resource within HuaweiCloud.
## Import
Clusters can be imported by their `id`. e.g.
```sh
$ pulumi import huaweicloud:CloudTable/cluster:Cluster test 4c2d38b6-6fb0-480c-8813-5f536b5ba6a4
```
Note that the imported state may not be identical to your resource definition, due to some attributes missing from the API response, security or some other reason. The missing attributes include`availability_zone`, `network_id`. It is generally recommended running `terraform plan` after importing a cluster. You can then decide if changes should be applied to the cluster, or the resource definition should be updated to align with the cluster. Also you can ignore changes as below. resource "huaweicloud_cloudtable_cluster" "test" { ... lifecycle { ignore_changes = [ availability_zone, network_id, ] } }
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 { // Specifies the availability zone in which to create the cluster. // Please following [reference](https://developer.huaweicloud.com/en-us/endpoint/?CloudTable) for the values. // Changing this parameter will create a new resource. AvailabilityZone pulumi.StringInput // Specifies the version of HBase datastore. HbaseVersion pulumi.StringInput // Specifies whether IAM authorization is enabled. // Changing this parameter will create a new resource. IamAuthEnabled pulumi.BoolPtrInput // Specifies the cluster name. The name consists of 4 to 64 characters, including // lowercase letters, numbers and hyphens (-). Changing this parameter will create a new resource. Name pulumi.StringPtrInput // Specifies the ID of the network to which the cluster belongs. // Changing this parameter will create a new resource. NetworkId pulumi.StringInput // Specifies the TSD nodes number of the cluster. // Changing this parameter will create a new resource. OpentsdbNum pulumi.IntPtrInput // Specifies the region in which to create the cluster. // If omitted, the provider-level region will be used. Changing this parameter will create a new resource. Region pulumi.StringPtrInput // Specifies the compute nodes number of the cluster. // The valid values must be greater than `2`. Defaults to `2`. Changing this parameter will create a new resource. RsNum pulumi.IntPtrInput // Specifies the security group ID of the cluster. // Changing this parameter will create a new resource. SecurityGroupId pulumi.StringInput // Specifies the storage type. // The valid values are **COMMON** and **ULTRAHIGH**. Changing this parameter will create a new resource. StorageType pulumi.StringInput // Specifies the VPC ID to which the cluster belongs. // Changing this parameter will create a new resource. VpcId pulumi.StringInput }
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) AvailabilityZone ¶
func (o ClusterOutput) AvailabilityZone() pulumi.StringOutput
Specifies the availability zone in which to create the cluster. Please following [reference](https://developer.huaweicloud.com/en-us/endpoint/?CloudTable) for the values. Changing this parameter will create a new resource.
func (ClusterOutput) CreatedAt ¶
func (o ClusterOutput) CreatedAt() pulumi.StringOutput
The time (UTC) when the cluster was created.
func (ClusterOutput) ElementType ¶
func (ClusterOutput) ElementType() reflect.Type
func (ClusterOutput) HbasePublicEndpoint ¶
func (o ClusterOutput) HbasePublicEndpoint() pulumi.StringOutput
The HBase public network endpoint address.
func (ClusterOutput) HbaseVersion ¶
func (o ClusterOutput) HbaseVersion() pulumi.StringOutput
Specifies the version of HBase datastore.
func (ClusterOutput) IamAuthEnabled ¶
func (o ClusterOutput) IamAuthEnabled() pulumi.BoolOutput
Specifies whether IAM authorization is enabled. Changing this parameter will create a new resource.
func (ClusterOutput) Name ¶
func (o ClusterOutput) Name() pulumi.StringOutput
Specifies the cluster name. The name consists of 4 to 64 characters, including lowercase letters, numbers and hyphens (-). Changing this parameter will create a new resource.
func (ClusterOutput) NetworkId ¶
func (o ClusterOutput) NetworkId() pulumi.StringOutput
Specifies the ID of the network to which the cluster belongs. Changing this parameter will create a new resource.
func (ClusterOutput) OpenTsdbLink ¶
func (o ClusterOutput) OpenTsdbLink() pulumi.StringOutput
The intranet OpenTSDB connection access address.
func (ClusterOutput) OpentsdbNum ¶
func (o ClusterOutput) OpentsdbNum() pulumi.IntOutput
Specifies the TSD nodes number of the cluster. Changing this parameter will create a new resource.
func (ClusterOutput) OpentsdbPublicEndpoint ¶
func (o ClusterOutput) OpentsdbPublicEndpoint() pulumi.StringOutput
The OpenTSDB public network endpoint address.
func (ClusterOutput) Region ¶
func (o ClusterOutput) Region() pulumi.StringOutput
Specifies the region in which to create the cluster. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
func (ClusterOutput) RsNum ¶
func (o ClusterOutput) RsNum() pulumi.IntPtrOutput
Specifies the compute nodes number of the cluster. The valid values must be greater than `2`. Defaults to `2`. Changing this parameter will create a new resource.
func (ClusterOutput) SecurityGroupId ¶
func (o ClusterOutput) SecurityGroupId() pulumi.StringOutput
Specifies the security group ID of the cluster. Changing this parameter will create a new resource.
func (ClusterOutput) Status ¶
func (o ClusterOutput) Status() pulumi.StringOutput
The cluster status.
func (ClusterOutput) StorageSize ¶
func (o ClusterOutput) StorageSize() pulumi.IntOutput
The storage size, in GB.
func (ClusterOutput) StorageSizeUsed ¶
func (o ClusterOutput) StorageSizeUsed() pulumi.IntOutput
The currently used storage, in GB.
func (ClusterOutput) StorageType ¶
func (o ClusterOutput) StorageType() pulumi.StringOutput
Specifies the storage type. The valid values are **COMMON** and **ULTRAHIGH**. Changing this parameter will create a new resource.
func (ClusterOutput) ToClusterOutput ¶
func (o ClusterOutput) ToClusterOutput() ClusterOutput
func (ClusterOutput) ToClusterOutputWithContext ¶
func (o ClusterOutput) ToClusterOutputWithContext(ctx context.Context) ClusterOutput
func (ClusterOutput) VpcId ¶
func (o ClusterOutput) VpcId() pulumi.StringOutput
Specifies the VPC ID to which the cluster belongs. Changing this parameter will create a new resource.
func (ClusterOutput) ZookeeperLink ¶
func (o ClusterOutput) ZookeeperLink() pulumi.StringOutput
The intranet zookeeper connection access address.
type ClusterState ¶
type ClusterState struct { // Specifies the availability zone in which to create the cluster. // Please following [reference](https://developer.huaweicloud.com/en-us/endpoint/?CloudTable) for the values. // Changing this parameter will create a new resource. AvailabilityZone pulumi.StringPtrInput // The time (UTC) when the cluster was created. CreatedAt pulumi.StringPtrInput // The HBase public network endpoint address. HbasePublicEndpoint pulumi.StringPtrInput // Specifies the version of HBase datastore. HbaseVersion pulumi.StringPtrInput // Specifies whether IAM authorization is enabled. // Changing this parameter will create a new resource. IamAuthEnabled pulumi.BoolPtrInput // Specifies the cluster name. The name consists of 4 to 64 characters, including // lowercase letters, numbers and hyphens (-). Changing this parameter will create a new resource. Name pulumi.StringPtrInput // Specifies the ID of the network to which the cluster belongs. // Changing this parameter will create a new resource. NetworkId pulumi.StringPtrInput // The intranet OpenTSDB connection access address. OpenTsdbLink pulumi.StringPtrInput // Specifies the TSD nodes number of the cluster. // Changing this parameter will create a new resource. OpentsdbNum pulumi.IntPtrInput // The OpenTSDB public network endpoint address. OpentsdbPublicEndpoint pulumi.StringPtrInput // Specifies the region in which to create the cluster. // If omitted, the provider-level region will be used. Changing this parameter will create a new resource. Region pulumi.StringPtrInput // Specifies the compute nodes number of the cluster. // The valid values must be greater than `2`. Defaults to `2`. Changing this parameter will create a new resource. RsNum pulumi.IntPtrInput // Specifies the security group ID of the cluster. // Changing this parameter will create a new resource. SecurityGroupId pulumi.StringPtrInput // The cluster status. Status pulumi.StringPtrInput // The storage size, in GB. StorageSize pulumi.IntPtrInput // The currently used storage, in GB. StorageSizeUsed pulumi.IntPtrInput // Specifies the storage type. // The valid values are **COMMON** and **ULTRAHIGH**. Changing this parameter will create a new resource. StorageType pulumi.StringPtrInput // Specifies the VPC ID to which the cluster belongs. // Changing this parameter will create a new resource. VpcId pulumi.StringPtrInput // The intranet zookeeper connection access address. ZookeeperLink pulumi.StringPtrInput }
func (ClusterState) ElementType ¶
func (ClusterState) ElementType() reflect.Type