Documentation
¶
Index ¶
- func PkgVersion() (semver.Version, error)
- type Account
- type AccountArgs
- type AccountArray
- type AccountArrayInput
- type AccountArrayOutput
- type AccountInput
- type AccountMap
- type AccountMapInput
- type AccountMapOutput
- type AccountOutput
- func (o AccountOutput) AccountDescription() pulumi.StringPtrOutput
- func (o AccountOutput) AccountName() pulumi.StringOutput
- func (o AccountOutput) AccountPassword() pulumi.StringOutput
- func (o AccountOutput) AllowDatabases() pulumi.StringOutput
- func (o AccountOutput) AllowDictionaries() pulumi.StringOutput
- func (o AccountOutput) DbClusterId() pulumi.StringOutput
- func (o AccountOutput) DdlAuthority() pulumi.BoolOutput
- func (o AccountOutput) DmlAuthority() pulumi.StringOutput
- func (AccountOutput) ElementType() reflect.Type
- func (o AccountOutput) Status() pulumi.StringOutput
- func (o AccountOutput) ToAccountOutput() AccountOutput
- func (o AccountOutput) ToAccountOutputWithContext(ctx context.Context) AccountOutput
- func (o AccountOutput) TotalDatabases() pulumi.StringOutput
- func (o AccountOutput) TotalDictionaries() pulumi.StringOutput
- func (o AccountOutput) Type() pulumi.StringOutput
- type AccountState
- type BackupPolicy
- type BackupPolicyArgs
- type BackupPolicyArray
- type BackupPolicyArrayInput
- type BackupPolicyArrayOutput
- func (BackupPolicyArrayOutput) ElementType() reflect.Type
- func (o BackupPolicyArrayOutput) Index(i pulumi.IntInput) BackupPolicyOutput
- func (o BackupPolicyArrayOutput) ToBackupPolicyArrayOutput() BackupPolicyArrayOutput
- func (o BackupPolicyArrayOutput) ToBackupPolicyArrayOutputWithContext(ctx context.Context) BackupPolicyArrayOutput
- type BackupPolicyInput
- type BackupPolicyMap
- type BackupPolicyMapInput
- type BackupPolicyMapOutput
- func (BackupPolicyMapOutput) ElementType() reflect.Type
- func (o BackupPolicyMapOutput) MapIndex(k pulumi.StringInput) BackupPolicyOutput
- func (o BackupPolicyMapOutput) ToBackupPolicyMapOutput() BackupPolicyMapOutput
- func (o BackupPolicyMapOutput) ToBackupPolicyMapOutputWithContext(ctx context.Context) BackupPolicyMapOutput
- type BackupPolicyOutput
- func (o BackupPolicyOutput) BackupRetentionPeriod() pulumi.IntPtrOutput
- func (o BackupPolicyOutput) DbClusterId() pulumi.StringOutput
- func (BackupPolicyOutput) ElementType() reflect.Type
- func (o BackupPolicyOutput) PreferredBackupPeriods() pulumi.StringArrayOutput
- func (o BackupPolicyOutput) PreferredBackupTime() pulumi.StringOutput
- func (o BackupPolicyOutput) Status() pulumi.StringOutput
- func (o BackupPolicyOutput) ToBackupPolicyOutput() BackupPolicyOutput
- func (o BackupPolicyOutput) ToBackupPolicyOutputWithContext(ctx context.Context) BackupPolicyOutput
- type BackupPolicyState
- type DbCluster
- type DbClusterArgs
- type DbClusterArray
- type DbClusterArrayInput
- type DbClusterArrayOutput
- func (DbClusterArrayOutput) ElementType() reflect.Type
- func (o DbClusterArrayOutput) Index(i pulumi.IntInput) DbClusterOutput
- func (o DbClusterArrayOutput) ToDbClusterArrayOutput() DbClusterArrayOutput
- func (o DbClusterArrayOutput) ToDbClusterArrayOutputWithContext(ctx context.Context) DbClusterArrayOutput
- type DbClusterDbClusterAccessWhiteList
- type DbClusterDbClusterAccessWhiteListArgs
- func (DbClusterDbClusterAccessWhiteListArgs) ElementType() reflect.Type
- func (i DbClusterDbClusterAccessWhiteListArgs) ToDbClusterDbClusterAccessWhiteListOutput() DbClusterDbClusterAccessWhiteListOutput
- func (i DbClusterDbClusterAccessWhiteListArgs) ToDbClusterDbClusterAccessWhiteListOutputWithContext(ctx context.Context) DbClusterDbClusterAccessWhiteListOutput
- type DbClusterDbClusterAccessWhiteListArray
- func (DbClusterDbClusterAccessWhiteListArray) ElementType() reflect.Type
- func (i DbClusterDbClusterAccessWhiteListArray) ToDbClusterDbClusterAccessWhiteListArrayOutput() DbClusterDbClusterAccessWhiteListArrayOutput
- func (i DbClusterDbClusterAccessWhiteListArray) ToDbClusterDbClusterAccessWhiteListArrayOutputWithContext(ctx context.Context) DbClusterDbClusterAccessWhiteListArrayOutput
- type DbClusterDbClusterAccessWhiteListArrayInput
- type DbClusterDbClusterAccessWhiteListArrayOutput
- func (DbClusterDbClusterAccessWhiteListArrayOutput) ElementType() reflect.Type
- func (o DbClusterDbClusterAccessWhiteListArrayOutput) Index(i pulumi.IntInput) DbClusterDbClusterAccessWhiteListOutput
- func (o DbClusterDbClusterAccessWhiteListArrayOutput) ToDbClusterDbClusterAccessWhiteListArrayOutput() DbClusterDbClusterAccessWhiteListArrayOutput
- func (o DbClusterDbClusterAccessWhiteListArrayOutput) ToDbClusterDbClusterAccessWhiteListArrayOutputWithContext(ctx context.Context) DbClusterDbClusterAccessWhiteListArrayOutput
- type DbClusterDbClusterAccessWhiteListInput
- type DbClusterDbClusterAccessWhiteListOutput
- func (o DbClusterDbClusterAccessWhiteListOutput) DbClusterIpArrayAttribute() pulumi.StringPtrOutput
- func (o DbClusterDbClusterAccessWhiteListOutput) DbClusterIpArrayName() pulumi.StringPtrOutput
- func (DbClusterDbClusterAccessWhiteListOutput) ElementType() reflect.Type
- func (o DbClusterDbClusterAccessWhiteListOutput) SecurityIpList() pulumi.StringPtrOutput
- func (o DbClusterDbClusterAccessWhiteListOutput) ToDbClusterDbClusterAccessWhiteListOutput() DbClusterDbClusterAccessWhiteListOutput
- func (o DbClusterDbClusterAccessWhiteListOutput) ToDbClusterDbClusterAccessWhiteListOutputWithContext(ctx context.Context) DbClusterDbClusterAccessWhiteListOutput
- type DbClusterInput
- type DbClusterMap
- type DbClusterMapInput
- type DbClusterMapOutput
- type DbClusterOutput
- func (o DbClusterOutput) Category() pulumi.StringOutput
- func (o DbClusterOutput) DbClusterAccessWhiteLists() DbClusterDbClusterAccessWhiteListArrayOutput
- func (o DbClusterOutput) DbClusterClass() pulumi.StringOutput
- func (o DbClusterOutput) DbClusterDescription() pulumi.StringOutput
- func (o DbClusterOutput) DbClusterNetworkType() pulumi.StringOutput
- func (o DbClusterOutput) DbClusterVersion() pulumi.StringOutput
- func (o DbClusterOutput) DbNodeGroupCount() pulumi.IntOutput
- func (o DbClusterOutput) DbNodeStorage() pulumi.StringOutput
- func (DbClusterOutput) ElementType() reflect.Type
- func (o DbClusterOutput) EncryptionKey() pulumi.StringPtrOutput
- func (o DbClusterOutput) EncryptionType() pulumi.StringPtrOutput
- func (o DbClusterOutput) MaintainTime() pulumi.StringOutput
- func (o DbClusterOutput) PaymentType() pulumi.StringOutput
- func (o DbClusterOutput) Period() pulumi.StringPtrOutput
- func (o DbClusterOutput) Status() pulumi.StringOutput
- func (o DbClusterOutput) StorageType() pulumi.StringOutput
- func (o DbClusterOutput) ToDbClusterOutput() DbClusterOutput
- func (o DbClusterOutput) ToDbClusterOutputWithContext(ctx context.Context) DbClusterOutput
- func (o DbClusterOutput) UsedTime() pulumi.StringPtrOutput
- func (o DbClusterOutput) VpcId() pulumi.StringOutput
- func (o DbClusterOutput) VswitchId() pulumi.StringPtrOutput
- func (o DbClusterOutput) ZoneId() pulumi.StringOutput
- type DbClusterState
- type GetAccountsAccount
- type GetAccountsAccountArgs
- type GetAccountsAccountArray
- type GetAccountsAccountArrayInput
- type GetAccountsAccountArrayOutput
- func (GetAccountsAccountArrayOutput) ElementType() reflect.Type
- func (o GetAccountsAccountArrayOutput) Index(i pulumi.IntInput) GetAccountsAccountOutput
- func (o GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutput() GetAccountsAccountArrayOutput
- func (o GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutputWithContext(ctx context.Context) GetAccountsAccountArrayOutput
- type GetAccountsAccountInput
- type GetAccountsAccountOutput
- func (o GetAccountsAccountOutput) AccountDescription() pulumi.StringOutput
- func (o GetAccountsAccountOutput) AccountName() pulumi.StringOutput
- func (o GetAccountsAccountOutput) AccountType() pulumi.StringOutput
- func (o GetAccountsAccountOutput) DbClusterId() pulumi.StringOutput
- func (GetAccountsAccountOutput) ElementType() reflect.Type
- func (o GetAccountsAccountOutput) Id() pulumi.StringOutput
- func (o GetAccountsAccountOutput) Status() pulumi.StringOutput
- func (o GetAccountsAccountOutput) ToGetAccountsAccountOutput() GetAccountsAccountOutput
- func (o GetAccountsAccountOutput) ToGetAccountsAccountOutputWithContext(ctx context.Context) GetAccountsAccountOutput
- type GetAccountsArgs
- type GetAccountsOutputArgs
- type GetAccountsResult
- type GetAccountsResultOutput
- func (o GetAccountsResultOutput) Accounts() GetAccountsAccountArrayOutput
- func (o GetAccountsResultOutput) DbClusterId() pulumi.StringOutput
- func (GetAccountsResultOutput) ElementType() reflect.Type
- func (o GetAccountsResultOutput) Id() pulumi.StringOutput
- func (o GetAccountsResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetAccountsResultOutput) NameRegex() pulumi.StringPtrOutput
- func (o GetAccountsResultOutput) Names() pulumi.StringArrayOutput
- func (o GetAccountsResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetAccountsResultOutput) Status() pulumi.StringPtrOutput
- func (o GetAccountsResultOutput) ToGetAccountsResultOutput() GetAccountsResultOutput
- func (o GetAccountsResultOutput) ToGetAccountsResultOutputWithContext(ctx context.Context) GetAccountsResultOutput
- type GetBackupPoliciesArgs
- type GetBackupPoliciesOutputArgs
- type GetBackupPoliciesPolicy
- type GetBackupPoliciesPolicyArgs
- type GetBackupPoliciesPolicyArray
- func (GetBackupPoliciesPolicyArray) ElementType() reflect.Type
- func (i GetBackupPoliciesPolicyArray) ToGetBackupPoliciesPolicyArrayOutput() GetBackupPoliciesPolicyArrayOutput
- func (i GetBackupPoliciesPolicyArray) ToGetBackupPoliciesPolicyArrayOutputWithContext(ctx context.Context) GetBackupPoliciesPolicyArrayOutput
- type GetBackupPoliciesPolicyArrayInput
- type GetBackupPoliciesPolicyArrayOutput
- func (GetBackupPoliciesPolicyArrayOutput) ElementType() reflect.Type
- func (o GetBackupPoliciesPolicyArrayOutput) Index(i pulumi.IntInput) GetBackupPoliciesPolicyOutput
- func (o GetBackupPoliciesPolicyArrayOutput) ToGetBackupPoliciesPolicyArrayOutput() GetBackupPoliciesPolicyArrayOutput
- func (o GetBackupPoliciesPolicyArrayOutput) ToGetBackupPoliciesPolicyArrayOutputWithContext(ctx context.Context) GetBackupPoliciesPolicyArrayOutput
- type GetBackupPoliciesPolicyInput
- type GetBackupPoliciesPolicyOutput
- func (o GetBackupPoliciesPolicyOutput) BackupRetentionPeriod() pulumi.IntOutput
- func (o GetBackupPoliciesPolicyOutput) DbClusterId() pulumi.StringOutput
- func (GetBackupPoliciesPolicyOutput) ElementType() reflect.Type
- func (o GetBackupPoliciesPolicyOutput) Id() pulumi.StringOutput
- func (o GetBackupPoliciesPolicyOutput) PreferredBackupPeriods() pulumi.StringArrayOutput
- func (o GetBackupPoliciesPolicyOutput) PreferredBackupTime() pulumi.StringOutput
- func (o GetBackupPoliciesPolicyOutput) Status() pulumi.StringOutput
- func (o GetBackupPoliciesPolicyOutput) ToGetBackupPoliciesPolicyOutput() GetBackupPoliciesPolicyOutput
- func (o GetBackupPoliciesPolicyOutput) ToGetBackupPoliciesPolicyOutputWithContext(ctx context.Context) GetBackupPoliciesPolicyOutput
- type GetBackupPoliciesResult
- type GetBackupPoliciesResultOutput
- func (o GetBackupPoliciesResultOutput) DbClusterId() pulumi.StringOutput
- func (GetBackupPoliciesResultOutput) ElementType() reflect.Type
- func (o GetBackupPoliciesResultOutput) Id() pulumi.StringOutput
- func (o GetBackupPoliciesResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetBackupPoliciesResultOutput) Policies() GetBackupPoliciesPolicyArrayOutput
- func (o GetBackupPoliciesResultOutput) ToGetBackupPoliciesResultOutput() GetBackupPoliciesResultOutput
- func (o GetBackupPoliciesResultOutput) ToGetBackupPoliciesResultOutputWithContext(ctx context.Context) GetBackupPoliciesResultOutput
- type GetDbClustersArgs
- type GetDbClustersCluster
- type GetDbClustersClusterArgs
- type GetDbClustersClusterArray
- type GetDbClustersClusterArrayInput
- type GetDbClustersClusterArrayOutput
- func (GetDbClustersClusterArrayOutput) ElementType() reflect.Type
- func (o GetDbClustersClusterArrayOutput) Index(i pulumi.IntInput) GetDbClustersClusterOutput
- func (o GetDbClustersClusterArrayOutput) ToGetDbClustersClusterArrayOutput() GetDbClustersClusterArrayOutput
- func (o GetDbClustersClusterArrayOutput) ToGetDbClustersClusterArrayOutputWithContext(ctx context.Context) GetDbClustersClusterArrayOutput
- type GetDbClustersClusterDbClusterAccessWhiteList
- type GetDbClustersClusterDbClusterAccessWhiteListArgs
- func (GetDbClustersClusterDbClusterAccessWhiteListArgs) ElementType() reflect.Type
- func (i GetDbClustersClusterDbClusterAccessWhiteListArgs) ToGetDbClustersClusterDbClusterAccessWhiteListOutput() GetDbClustersClusterDbClusterAccessWhiteListOutput
- func (i GetDbClustersClusterDbClusterAccessWhiteListArgs) ToGetDbClustersClusterDbClusterAccessWhiteListOutputWithContext(ctx context.Context) GetDbClustersClusterDbClusterAccessWhiteListOutput
- type GetDbClustersClusterDbClusterAccessWhiteListArray
- func (GetDbClustersClusterDbClusterAccessWhiteListArray) ElementType() reflect.Type
- func (i GetDbClustersClusterDbClusterAccessWhiteListArray) ToGetDbClustersClusterDbClusterAccessWhiteListArrayOutput() GetDbClustersClusterDbClusterAccessWhiteListArrayOutput
- func (i GetDbClustersClusterDbClusterAccessWhiteListArray) ToGetDbClustersClusterDbClusterAccessWhiteListArrayOutputWithContext(ctx context.Context) GetDbClustersClusterDbClusterAccessWhiteListArrayOutput
- type GetDbClustersClusterDbClusterAccessWhiteListArrayInput
- type GetDbClustersClusterDbClusterAccessWhiteListArrayOutput
- func (GetDbClustersClusterDbClusterAccessWhiteListArrayOutput) ElementType() reflect.Type
- func (o GetDbClustersClusterDbClusterAccessWhiteListArrayOutput) Index(i pulumi.IntInput) GetDbClustersClusterDbClusterAccessWhiteListOutput
- func (o GetDbClustersClusterDbClusterAccessWhiteListArrayOutput) ToGetDbClustersClusterDbClusterAccessWhiteListArrayOutput() GetDbClustersClusterDbClusterAccessWhiteListArrayOutput
- func (o GetDbClustersClusterDbClusterAccessWhiteListArrayOutput) ToGetDbClustersClusterDbClusterAccessWhiteListArrayOutputWithContext(ctx context.Context) GetDbClustersClusterDbClusterAccessWhiteListArrayOutput
- type GetDbClustersClusterDbClusterAccessWhiteListInput
- type GetDbClustersClusterDbClusterAccessWhiteListOutput
- func (o GetDbClustersClusterDbClusterAccessWhiteListOutput) DbClusterIpArrayAttribute() pulumi.StringOutput
- func (o GetDbClustersClusterDbClusterAccessWhiteListOutput) DbClusterIpArrayName() pulumi.StringOutput
- func (GetDbClustersClusterDbClusterAccessWhiteListOutput) ElementType() reflect.Type
- func (o GetDbClustersClusterDbClusterAccessWhiteListOutput) SecurityIpList() pulumi.StringOutput
- func (o GetDbClustersClusterDbClusterAccessWhiteListOutput) ToGetDbClustersClusterDbClusterAccessWhiteListOutput() GetDbClustersClusterDbClusterAccessWhiteListOutput
- func (o GetDbClustersClusterDbClusterAccessWhiteListOutput) ToGetDbClustersClusterDbClusterAccessWhiteListOutputWithContext(ctx context.Context) GetDbClustersClusterDbClusterAccessWhiteListOutput
- type GetDbClustersClusterInput
- type GetDbClustersClusterOutput
- func (o GetDbClustersClusterOutput) AliUid() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) Bid() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) Category() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) CommodityCode() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) ConnectionString() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) ControlVersion() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) CreateTime() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) DbClusterAccessWhiteLists() GetDbClustersClusterDbClusterAccessWhiteListArrayOutput
- func (o GetDbClustersClusterOutput) DbClusterDescription() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) DbClusterId() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) DbClusterNetworkType() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) DbClusterType() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) DbNodeClass() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) DbNodeCount() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) DbNodeStorage() pulumi.StringOutput
- func (GetDbClustersClusterOutput) ElementType() reflect.Type
- func (o GetDbClustersClusterOutput) EncryptionKey() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) EncryptionType() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) Engine() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) EngineVersion() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) ExpireTime() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) Id() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) IsExpired() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) LockMode() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) LockReason() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) MaintainTime() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) PaymentType() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) Port() pulumi.IntOutput
- func (o GetDbClustersClusterOutput) PublicConnectionString() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) PublicPort() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) ScaleOutStatuses() GetDbClustersClusterScaleOutStatusArrayOutput
- func (o GetDbClustersClusterOutput) Status() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) StorageType() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) SupportBackup() pulumi.IntOutput
- func (o GetDbClustersClusterOutput) SupportHttpsPort() pulumi.BoolOutput
- func (o GetDbClustersClusterOutput) SupportMysqlPort() pulumi.BoolOutput
- func (o GetDbClustersClusterOutput) ToGetDbClustersClusterOutput() GetDbClustersClusterOutput
- func (o GetDbClustersClusterOutput) ToGetDbClustersClusterOutputWithContext(ctx context.Context) GetDbClustersClusterOutput
- func (o GetDbClustersClusterOutput) VpcCloudInstanceId() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) VpcId() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) VswitchId() pulumi.StringOutput
- func (o GetDbClustersClusterOutput) ZoneId() pulumi.StringOutput
- type GetDbClustersClusterScaleOutStatus
- type GetDbClustersClusterScaleOutStatusArgs
- func (GetDbClustersClusterScaleOutStatusArgs) ElementType() reflect.Type
- func (i GetDbClustersClusterScaleOutStatusArgs) ToGetDbClustersClusterScaleOutStatusOutput() GetDbClustersClusterScaleOutStatusOutput
- func (i GetDbClustersClusterScaleOutStatusArgs) ToGetDbClustersClusterScaleOutStatusOutputWithContext(ctx context.Context) GetDbClustersClusterScaleOutStatusOutput
- type GetDbClustersClusterScaleOutStatusArray
- func (GetDbClustersClusterScaleOutStatusArray) ElementType() reflect.Type
- func (i GetDbClustersClusterScaleOutStatusArray) ToGetDbClustersClusterScaleOutStatusArrayOutput() GetDbClustersClusterScaleOutStatusArrayOutput
- func (i GetDbClustersClusterScaleOutStatusArray) ToGetDbClustersClusterScaleOutStatusArrayOutputWithContext(ctx context.Context) GetDbClustersClusterScaleOutStatusArrayOutput
- type GetDbClustersClusterScaleOutStatusArrayInput
- type GetDbClustersClusterScaleOutStatusArrayOutput
- func (GetDbClustersClusterScaleOutStatusArrayOutput) ElementType() reflect.Type
- func (o GetDbClustersClusterScaleOutStatusArrayOutput) Index(i pulumi.IntInput) GetDbClustersClusterScaleOutStatusOutput
- func (o GetDbClustersClusterScaleOutStatusArrayOutput) ToGetDbClustersClusterScaleOutStatusArrayOutput() GetDbClustersClusterScaleOutStatusArrayOutput
- func (o GetDbClustersClusterScaleOutStatusArrayOutput) ToGetDbClustersClusterScaleOutStatusArrayOutputWithContext(ctx context.Context) GetDbClustersClusterScaleOutStatusArrayOutput
- type GetDbClustersClusterScaleOutStatusInput
- type GetDbClustersClusterScaleOutStatusOutput
- func (GetDbClustersClusterScaleOutStatusOutput) ElementType() reflect.Type
- func (o GetDbClustersClusterScaleOutStatusOutput) Progress() pulumi.StringOutput
- func (o GetDbClustersClusterScaleOutStatusOutput) Ratio() pulumi.StringOutput
- func (o GetDbClustersClusterScaleOutStatusOutput) ToGetDbClustersClusterScaleOutStatusOutput() GetDbClustersClusterScaleOutStatusOutput
- func (o GetDbClustersClusterScaleOutStatusOutput) ToGetDbClustersClusterScaleOutStatusOutputWithContext(ctx context.Context) GetDbClustersClusterScaleOutStatusOutput
- type GetDbClustersOutputArgs
- type GetDbClustersResult
- type GetDbClustersResultOutput
- func (o GetDbClustersResultOutput) Clusters() GetDbClustersClusterArrayOutput
- func (o GetDbClustersResultOutput) DbClusterDescription() pulumi.StringPtrOutput
- func (GetDbClustersResultOutput) ElementType() reflect.Type
- func (o GetDbClustersResultOutput) EnableDetails() pulumi.BoolPtrOutput
- func (o GetDbClustersResultOutput) Id() pulumi.StringOutput
- func (o GetDbClustersResultOutput) Ids() pulumi.StringArrayOutput
- func (o GetDbClustersResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetDbClustersResultOutput) Status() pulumi.StringPtrOutput
- func (o GetDbClustersResultOutput) ToGetDbClustersResultOutput() GetDbClustersResultOutput
- func (o GetDbClustersResultOutput) ToGetDbClustersResultOutputWithContext(ctx context.Context) GetDbClustersResultOutput
- type GetRegionsArgs
- type GetRegionsOutputArgs
- type GetRegionsRegion
- type GetRegionsRegionArgs
- type GetRegionsRegionArray
- type GetRegionsRegionArrayInput
- type GetRegionsRegionArrayOutput
- func (GetRegionsRegionArrayOutput) ElementType() reflect.Type
- func (o GetRegionsRegionArrayOutput) Index(i pulumi.IntInput) GetRegionsRegionOutput
- func (o GetRegionsRegionArrayOutput) ToGetRegionsRegionArrayOutput() GetRegionsRegionArrayOutput
- func (o GetRegionsRegionArrayOutput) ToGetRegionsRegionArrayOutputWithContext(ctx context.Context) GetRegionsRegionArrayOutput
- type GetRegionsRegionInput
- type GetRegionsRegionOutput
- func (GetRegionsRegionOutput) ElementType() reflect.Type
- func (o GetRegionsRegionOutput) RegionId() pulumi.StringOutput
- func (o GetRegionsRegionOutput) ToGetRegionsRegionOutput() GetRegionsRegionOutput
- func (o GetRegionsRegionOutput) ToGetRegionsRegionOutputWithContext(ctx context.Context) GetRegionsRegionOutput
- func (o GetRegionsRegionOutput) ZoneIds() GetRegionsRegionZoneIdArrayOutput
- type GetRegionsRegionZoneId
- type GetRegionsRegionZoneIdArgs
- type GetRegionsRegionZoneIdArray
- func (GetRegionsRegionZoneIdArray) ElementType() reflect.Type
- func (i GetRegionsRegionZoneIdArray) ToGetRegionsRegionZoneIdArrayOutput() GetRegionsRegionZoneIdArrayOutput
- func (i GetRegionsRegionZoneIdArray) ToGetRegionsRegionZoneIdArrayOutputWithContext(ctx context.Context) GetRegionsRegionZoneIdArrayOutput
- type GetRegionsRegionZoneIdArrayInput
- type GetRegionsRegionZoneIdArrayOutput
- func (GetRegionsRegionZoneIdArrayOutput) ElementType() reflect.Type
- func (o GetRegionsRegionZoneIdArrayOutput) Index(i pulumi.IntInput) GetRegionsRegionZoneIdOutput
- func (o GetRegionsRegionZoneIdArrayOutput) ToGetRegionsRegionZoneIdArrayOutput() GetRegionsRegionZoneIdArrayOutput
- func (o GetRegionsRegionZoneIdArrayOutput) ToGetRegionsRegionZoneIdArrayOutputWithContext(ctx context.Context) GetRegionsRegionZoneIdArrayOutput
- type GetRegionsRegionZoneIdInput
- type GetRegionsRegionZoneIdOutput
- func (GetRegionsRegionZoneIdOutput) ElementType() reflect.Type
- func (o GetRegionsRegionZoneIdOutput) ToGetRegionsRegionZoneIdOutput() GetRegionsRegionZoneIdOutput
- func (o GetRegionsRegionZoneIdOutput) ToGetRegionsRegionZoneIdOutputWithContext(ctx context.Context) GetRegionsRegionZoneIdOutput
- func (o GetRegionsRegionZoneIdOutput) VpcEnabled() pulumi.BoolOutput
- func (o GetRegionsRegionZoneIdOutput) ZoneId() pulumi.StringOutput
- type GetRegionsResult
- type GetRegionsResultOutput
- func (o GetRegionsResultOutput) Current() pulumi.BoolPtrOutput
- func (GetRegionsResultOutput) ElementType() reflect.Type
- func (o GetRegionsResultOutput) Id() pulumi.StringOutput
- func (o GetRegionsResultOutput) OutputFile() pulumi.StringPtrOutput
- func (o GetRegionsResultOutput) RegionId() pulumi.StringPtrOutput
- func (o GetRegionsResultOutput) Regions() GetRegionsRegionArrayOutput
- func (o GetRegionsResultOutput) ToGetRegionsResultOutput() GetRegionsResultOutput
- func (o GetRegionsResultOutput) ToGetRegionsResultOutputWithContext(ctx context.Context) GetRegionsResultOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PkgVersion ¶ added in v0.0.1
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 Account ¶
type Account struct { pulumi.CustomResourceState // In Chinese, English letter. May contain Chinese and English characters, lowercase letters, numbers, and underscores (_), the dash (-). Cannot start with http:// and https:// at the beginning. Length is from 2 to 256 characters. AccountDescription pulumi.StringPtrOutput `pulumi:"accountDescription"` // Account name: lowercase letters, numbers, underscores, lowercase letter; length no more than 16 characters. AccountName pulumi.StringOutput `pulumi:"accountName"` // The account password: uppercase letters, lowercase letters, lowercase letters, numbers, and special characters (special character! #$%^& author (s):_+-=) in a length of 8-32 bit. AccountPassword pulumi.StringOutput `pulumi:"accountPassword"` // The list of databases to which you want to grant permissions. Separate databases with commas (,). AllowDatabases pulumi.StringOutput `pulumi:"allowDatabases"` // The list of dictionaries to which you want to grant permissions. Separate dictionaries with commas (,). AllowDictionaries pulumi.StringOutput `pulumi:"allowDictionaries"` // The db cluster id. DbClusterId pulumi.StringOutput `pulumi:"dbClusterId"` // Specifies whether to grant DDL permissions to the database account. Valid values: `true` and `false`. // -`true`: grants DDL permissions to the database account. // -`false`: does not grant DDL permissions to the database account. DdlAuthority pulumi.BoolOutput `pulumi:"ddlAuthority"` // Specifies whether to grant DML permissions to the database account. Valid values: `all` and `readOnly,modify`. DmlAuthority pulumi.StringOutput `pulumi:"dmlAuthority"` // The status of the resource. Valid Status: `Creating`,`Available`,`Deleting`. Status pulumi.StringOutput `pulumi:"status"` // The list of all databases. Separate databases with commas (,). TotalDatabases pulumi.StringOutput `pulumi:"totalDatabases"` // The list of all dictionaries. Separate dictionaries with commas (,). TotalDictionaries pulumi.StringOutput `pulumi:"totalDictionaries"` // The type of the database account. Valid values: `Normal` or `Super`. Type pulumi.StringOutput `pulumi:"type"` }
Provides a Click House Account resource.
For information about Click House Account and how to use it, see [What is Account](https://www.alibabacloud.com/product/clickhouse).
> **NOTE:** Available in v1.134.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/clickhouse" "github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/vpc" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config" "github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/clickhouse" "github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") name := "testaccountname" if param := cfg.Get("name"); param != "" { name = param } pwd := "Tf-testpwd" if param := cfg.Get("pwd"); param != "" { pwd = param } defaultRegions, err := clickhouse.GetRegions(ctx, &clickhouse.GetRegionsArgs{ Current: pulumi.BoolRef(true), }, nil) if err != nil { return err } defaultNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{ NameRegex: pulumi.StringRef("default-NODELETING"), }, nil) if err != nil { return err } defaultSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{ VpcId: pulumi.StringRef(defaultNetworks.Ids[0]), ZoneId: pulumi.StringRef(defaultRegions.Regions[0].ZoneIds[0].ZoneId), }, nil) if err != nil { return err } defaultDbCluster, err := clickhouse.NewDbCluster(ctx, "defaultDbCluster", &clickhouse.DbClusterArgs{ DbClusterVersion: pulumi.String("20.3.10.75"), Category: pulumi.String("Basic"), DbClusterClass: pulumi.String("S8"), DbClusterNetworkType: pulumi.String("vpc"), DbClusterDescription: pulumi.String(name), DbNodeGroupCount: pulumi.Int(1), PaymentType: pulumi.String("PayAsYouGo"), DbNodeStorage: pulumi.String("500"), StorageType: pulumi.String("cloud_essd"), VswitchId: pulumi.String(defaultSwitches.Vswitches[0].Id), }) if err != nil { return err } _, err = clickhouse.NewAccount(ctx, "defaultAccount", &clickhouse.AccountArgs{ DbClusterId: defaultDbCluster.ID(), AccountDescription: pulumi.String("your_description"), AccountName: pulumi.String(name), AccountPassword: pulumi.String(pwd), }) if err != nil { return err } return nil }) }
```
## Import
Click House Account can be imported using the id, e.g.
```sh
$ pulumi import alicloud:clickhouse/account:Account example <db_cluster_id>:<account_name>
```
func GetAccount ¶
func GetAccount(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AccountState, opts ...pulumi.ResourceOption) (*Account, error)
GetAccount gets an existing Account resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAccount ¶
func NewAccount(ctx *pulumi.Context, name string, args *AccountArgs, opts ...pulumi.ResourceOption) (*Account, error)
NewAccount registers a new resource with the given unique name, arguments, and options.
func (*Account) ElementType ¶
func (*Account) ToAccountOutput ¶
func (i *Account) ToAccountOutput() AccountOutput
func (*Account) ToAccountOutputWithContext ¶
func (i *Account) ToAccountOutputWithContext(ctx context.Context) AccountOutput
type AccountArgs ¶
type AccountArgs struct { // In Chinese, English letter. May contain Chinese and English characters, lowercase letters, numbers, and underscores (_), the dash (-). Cannot start with http:// and https:// at the beginning. Length is from 2 to 256 characters. AccountDescription pulumi.StringPtrInput // Account name: lowercase letters, numbers, underscores, lowercase letter; length no more than 16 characters. AccountName pulumi.StringInput // The account password: uppercase letters, lowercase letters, lowercase letters, numbers, and special characters (special character! #$%^& author (s):_+-=) in a length of 8-32 bit. AccountPassword pulumi.StringInput // The list of databases to which you want to grant permissions. Separate databases with commas (,). AllowDatabases pulumi.StringPtrInput // The list of dictionaries to which you want to grant permissions. Separate dictionaries with commas (,). AllowDictionaries pulumi.StringPtrInput // The db cluster id. DbClusterId pulumi.StringInput // Specifies whether to grant DDL permissions to the database account. Valid values: `true` and `false`. // -`true`: grants DDL permissions to the database account. // -`false`: does not grant DDL permissions to the database account. DdlAuthority pulumi.BoolPtrInput // Specifies whether to grant DML permissions to the database account. Valid values: `all` and `readOnly,modify`. DmlAuthority pulumi.StringPtrInput // The list of all databases. Separate databases with commas (,). TotalDatabases pulumi.StringPtrInput // The list of all dictionaries. Separate dictionaries with commas (,). TotalDictionaries pulumi.StringPtrInput }
The set of arguments for constructing a Account resource.
func (AccountArgs) ElementType ¶
func (AccountArgs) ElementType() reflect.Type
type AccountArray ¶
type AccountArray []AccountInput
func (AccountArray) ElementType ¶
func (AccountArray) ElementType() reflect.Type
func (AccountArray) ToAccountArrayOutput ¶
func (i AccountArray) ToAccountArrayOutput() AccountArrayOutput
func (AccountArray) ToAccountArrayOutputWithContext ¶
func (i AccountArray) ToAccountArrayOutputWithContext(ctx context.Context) AccountArrayOutput
type AccountArrayInput ¶
type AccountArrayInput interface { pulumi.Input ToAccountArrayOutput() AccountArrayOutput ToAccountArrayOutputWithContext(context.Context) AccountArrayOutput }
AccountArrayInput is an input type that accepts AccountArray and AccountArrayOutput values. You can construct a concrete instance of `AccountArrayInput` via:
AccountArray{ AccountArgs{...} }
type AccountArrayOutput ¶
type AccountArrayOutput struct{ *pulumi.OutputState }
func (AccountArrayOutput) ElementType ¶
func (AccountArrayOutput) ElementType() reflect.Type
func (AccountArrayOutput) Index ¶
func (o AccountArrayOutput) Index(i pulumi.IntInput) AccountOutput
func (AccountArrayOutput) ToAccountArrayOutput ¶
func (o AccountArrayOutput) ToAccountArrayOutput() AccountArrayOutput
func (AccountArrayOutput) ToAccountArrayOutputWithContext ¶
func (o AccountArrayOutput) ToAccountArrayOutputWithContext(ctx context.Context) AccountArrayOutput
type AccountInput ¶
type AccountInput interface { pulumi.Input ToAccountOutput() AccountOutput ToAccountOutputWithContext(ctx context.Context) AccountOutput }
type AccountMap ¶
type AccountMap map[string]AccountInput
func (AccountMap) ElementType ¶
func (AccountMap) ElementType() reflect.Type
func (AccountMap) ToAccountMapOutput ¶
func (i AccountMap) ToAccountMapOutput() AccountMapOutput
func (AccountMap) ToAccountMapOutputWithContext ¶
func (i AccountMap) ToAccountMapOutputWithContext(ctx context.Context) AccountMapOutput
type AccountMapInput ¶
type AccountMapInput interface { pulumi.Input ToAccountMapOutput() AccountMapOutput ToAccountMapOutputWithContext(context.Context) AccountMapOutput }
AccountMapInput is an input type that accepts AccountMap and AccountMapOutput values. You can construct a concrete instance of `AccountMapInput` via:
AccountMap{ "key": AccountArgs{...} }
type AccountMapOutput ¶
type AccountMapOutput struct{ *pulumi.OutputState }
func (AccountMapOutput) ElementType ¶
func (AccountMapOutput) ElementType() reflect.Type
func (AccountMapOutput) MapIndex ¶
func (o AccountMapOutput) MapIndex(k pulumi.StringInput) AccountOutput
func (AccountMapOutput) ToAccountMapOutput ¶
func (o AccountMapOutput) ToAccountMapOutput() AccountMapOutput
func (AccountMapOutput) ToAccountMapOutputWithContext ¶
func (o AccountMapOutput) ToAccountMapOutputWithContext(ctx context.Context) AccountMapOutput
type AccountOutput ¶
type AccountOutput struct{ *pulumi.OutputState }
func (AccountOutput) AccountDescription ¶
func (o AccountOutput) AccountDescription() pulumi.StringPtrOutput
In Chinese, English letter. May contain Chinese and English characters, lowercase letters, numbers, and underscores (_), the dash (-). Cannot start with http:// and https:// at the beginning. Length is from 2 to 256 characters.
func (AccountOutput) AccountName ¶
func (o AccountOutput) AccountName() pulumi.StringOutput
Account name: lowercase letters, numbers, underscores, lowercase letter; length no more than 16 characters.
func (AccountOutput) AccountPassword ¶
func (o AccountOutput) AccountPassword() pulumi.StringOutput
The account password: uppercase letters, lowercase letters, lowercase letters, numbers, and special characters (special character! #$%^& author (s):_+-=) in a length of 8-32 bit.
func (AccountOutput) AllowDatabases ¶
func (o AccountOutput) AllowDatabases() pulumi.StringOutput
The list of databases to which you want to grant permissions. Separate databases with commas (,).
func (AccountOutput) AllowDictionaries ¶
func (o AccountOutput) AllowDictionaries() pulumi.StringOutput
The list of dictionaries to which you want to grant permissions. Separate dictionaries with commas (,).
func (AccountOutput) DbClusterId ¶
func (o AccountOutput) DbClusterId() pulumi.StringOutput
The db cluster id.
func (AccountOutput) DdlAuthority ¶
func (o AccountOutput) DdlAuthority() pulumi.BoolOutput
Specifies whether to grant DDL permissions to the database account. Valid values: `true` and `false`. -`true`: grants DDL permissions to the database account. -`false`: does not grant DDL permissions to the database account.
func (AccountOutput) DmlAuthority ¶
func (o AccountOutput) DmlAuthority() pulumi.StringOutput
Specifies whether to grant DML permissions to the database account. Valid values: `all` and `readOnly,modify`.
func (AccountOutput) ElementType ¶
func (AccountOutput) ElementType() reflect.Type
func (AccountOutput) Status ¶
func (o AccountOutput) Status() pulumi.StringOutput
The status of the resource. Valid Status: `Creating`,`Available`,`Deleting`.
func (AccountOutput) ToAccountOutput ¶
func (o AccountOutput) ToAccountOutput() AccountOutput
func (AccountOutput) ToAccountOutputWithContext ¶
func (o AccountOutput) ToAccountOutputWithContext(ctx context.Context) AccountOutput
func (AccountOutput) TotalDatabases ¶
func (o AccountOutput) TotalDatabases() pulumi.StringOutput
The list of all databases. Separate databases with commas (,).
func (AccountOutput) TotalDictionaries ¶
func (o AccountOutput) TotalDictionaries() pulumi.StringOutput
The list of all dictionaries. Separate dictionaries with commas (,).
func (AccountOutput) Type ¶
func (o AccountOutput) Type() pulumi.StringOutput
The type of the database account. Valid values: `Normal` or `Super`.
type AccountState ¶
type AccountState struct { // In Chinese, English letter. May contain Chinese and English characters, lowercase letters, numbers, and underscores (_), the dash (-). Cannot start with http:// and https:// at the beginning. Length is from 2 to 256 characters. AccountDescription pulumi.StringPtrInput // Account name: lowercase letters, numbers, underscores, lowercase letter; length no more than 16 characters. AccountName pulumi.StringPtrInput // The account password: uppercase letters, lowercase letters, lowercase letters, numbers, and special characters (special character! #$%^& author (s):_+-=) in a length of 8-32 bit. AccountPassword pulumi.StringPtrInput // The list of databases to which you want to grant permissions. Separate databases with commas (,). AllowDatabases pulumi.StringPtrInput // The list of dictionaries to which you want to grant permissions. Separate dictionaries with commas (,). AllowDictionaries pulumi.StringPtrInput // The db cluster id. DbClusterId pulumi.StringPtrInput // Specifies whether to grant DDL permissions to the database account. Valid values: `true` and `false`. // -`true`: grants DDL permissions to the database account. // -`false`: does not grant DDL permissions to the database account. DdlAuthority pulumi.BoolPtrInput // Specifies whether to grant DML permissions to the database account. Valid values: `all` and `readOnly,modify`. DmlAuthority pulumi.StringPtrInput // The status of the resource. Valid Status: `Creating`,`Available`,`Deleting`. Status pulumi.StringPtrInput // The list of all databases. Separate databases with commas (,). TotalDatabases pulumi.StringPtrInput // The list of all dictionaries. Separate dictionaries with commas (,). TotalDictionaries pulumi.StringPtrInput // The type of the database account. Valid values: `Normal` or `Super`. Type pulumi.StringPtrInput }
func (AccountState) ElementType ¶
func (AccountState) ElementType() reflect.Type
type BackupPolicy ¶
type BackupPolicy struct { pulumi.CustomResourceState // Data backup days. Valid values: `7` to `730`. BackupRetentionPeriod pulumi.IntPtrOutput `pulumi:"backupRetentionPeriod"` // The id of the DBCluster. DbClusterId pulumi.StringOutput `pulumi:"dbClusterId"` // DBCluster Backup period. A list of DBCluster Backup period. Valid values: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]. PreferredBackupPeriods pulumi.StringArrayOutput `pulumi:"preferredBackupPeriods"` // DBCluster backup time, in the format of `HH:mmZ-HH:mmZ`. Time setting interval is one hour. China time is 8 hours behind it. PreferredBackupTime pulumi.StringOutput `pulumi:"preferredBackupTime"` // The status of the resource. Status pulumi.StringOutput `pulumi:"status"` }
Provides a Click House Backup Policy resource.
For information about Click House Backup Policy and how to use it, see [What is Backup Policy](https://www.alibabacloud.com/help/doc-detail/208840.html).
> **NOTE:** Available in v1.147.0+.
> **NOTE:** Only the cloud database ClickHouse cluster version `20.3` supports data backup.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/clickhouse" "github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/vpc" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/clickhouse" "github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { defaultRegions, err := clickhouse.GetRegions(ctx, &clickhouse.GetRegionsArgs{ Current: pulumi.BoolRef(true), }, nil) if err != nil { return err } defaultNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{ NameRegex: pulumi.StringRef("default-NODELETING"), }, nil) if err != nil { return err } defaultSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{ VpcId: pulumi.StringRef(defaultNetworks.Ids[0]), ZoneId: pulumi.StringRef(defaultRegions.Regions[0].ZoneIds[0].ZoneId), }, nil) if err != nil { return err } defaultDbCluster, err := clickhouse.NewDbCluster(ctx, "defaultDbCluster", &clickhouse.DbClusterArgs{ DbClusterVersion: pulumi.String("20.3.10.75"), Status: pulumi.String("Running"), Category: pulumi.String("Basic"), DbClusterClass: pulumi.String("S8"), DbClusterNetworkType: pulumi.String("vpc"), DbClusterDescription: pulumi.Any(_var.Name), DbNodeGroupCount: pulumi.Int(1), PaymentType: pulumi.String("PayAsYouGo"), DbNodeStorage: pulumi.String("500"), StorageType: pulumi.String("cloud_essd"), VswitchId: pulumi.String(defaultSwitches.Vswitches[0].Id), }) if err != nil { return err } _, err = clickhouse.NewBackupPolicy(ctx, "example", &clickhouse.BackupPolicyArgs{ DbClusterId: defaultDbCluster.ID(), PreferredBackupPeriods: pulumi.StringArray{ pulumi.String("Monday"), pulumi.String("Friday"), }, PreferredBackupTime: pulumi.String("00:00Z-01:00Z"), BackupRetentionPeriod: pulumi.Int(7), }) if err != nil { return err } return nil }) }
```
## Import
Click House Backup Policy can be imported using the id, e.g.
```sh
$ pulumi import alicloud:clickhouse/backupPolicy:BackupPolicy example <db_cluster_id>
```
func GetBackupPolicy ¶
func GetBackupPolicy(ctx *pulumi.Context, name string, id pulumi.IDInput, state *BackupPolicyState, opts ...pulumi.ResourceOption) (*BackupPolicy, error)
GetBackupPolicy gets an existing BackupPolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewBackupPolicy ¶
func NewBackupPolicy(ctx *pulumi.Context, name string, args *BackupPolicyArgs, opts ...pulumi.ResourceOption) (*BackupPolicy, error)
NewBackupPolicy registers a new resource with the given unique name, arguments, and options.
func (*BackupPolicy) ElementType ¶
func (*BackupPolicy) ElementType() reflect.Type
func (*BackupPolicy) ToBackupPolicyOutput ¶
func (i *BackupPolicy) ToBackupPolicyOutput() BackupPolicyOutput
func (*BackupPolicy) ToBackupPolicyOutputWithContext ¶
func (i *BackupPolicy) ToBackupPolicyOutputWithContext(ctx context.Context) BackupPolicyOutput
type BackupPolicyArgs ¶
type BackupPolicyArgs struct { // Data backup days. Valid values: `7` to `730`. BackupRetentionPeriod pulumi.IntPtrInput // The id of the DBCluster. DbClusterId pulumi.StringInput // DBCluster Backup period. A list of DBCluster Backup period. Valid values: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]. PreferredBackupPeriods pulumi.StringArrayInput // DBCluster backup time, in the format of `HH:mmZ-HH:mmZ`. Time setting interval is one hour. China time is 8 hours behind it. PreferredBackupTime pulumi.StringInput }
The set of arguments for constructing a BackupPolicy resource.
func (BackupPolicyArgs) ElementType ¶
func (BackupPolicyArgs) ElementType() reflect.Type
type BackupPolicyArray ¶
type BackupPolicyArray []BackupPolicyInput
func (BackupPolicyArray) ElementType ¶
func (BackupPolicyArray) ElementType() reflect.Type
func (BackupPolicyArray) ToBackupPolicyArrayOutput ¶
func (i BackupPolicyArray) ToBackupPolicyArrayOutput() BackupPolicyArrayOutput
func (BackupPolicyArray) ToBackupPolicyArrayOutputWithContext ¶
func (i BackupPolicyArray) ToBackupPolicyArrayOutputWithContext(ctx context.Context) BackupPolicyArrayOutput
type BackupPolicyArrayInput ¶
type BackupPolicyArrayInput interface { pulumi.Input ToBackupPolicyArrayOutput() BackupPolicyArrayOutput ToBackupPolicyArrayOutputWithContext(context.Context) BackupPolicyArrayOutput }
BackupPolicyArrayInput is an input type that accepts BackupPolicyArray and BackupPolicyArrayOutput values. You can construct a concrete instance of `BackupPolicyArrayInput` via:
BackupPolicyArray{ BackupPolicyArgs{...} }
type BackupPolicyArrayOutput ¶
type BackupPolicyArrayOutput struct{ *pulumi.OutputState }
func (BackupPolicyArrayOutput) ElementType ¶
func (BackupPolicyArrayOutput) ElementType() reflect.Type
func (BackupPolicyArrayOutput) Index ¶
func (o BackupPolicyArrayOutput) Index(i pulumi.IntInput) BackupPolicyOutput
func (BackupPolicyArrayOutput) ToBackupPolicyArrayOutput ¶
func (o BackupPolicyArrayOutput) ToBackupPolicyArrayOutput() BackupPolicyArrayOutput
func (BackupPolicyArrayOutput) ToBackupPolicyArrayOutputWithContext ¶
func (o BackupPolicyArrayOutput) ToBackupPolicyArrayOutputWithContext(ctx context.Context) BackupPolicyArrayOutput
type BackupPolicyInput ¶
type BackupPolicyInput interface { pulumi.Input ToBackupPolicyOutput() BackupPolicyOutput ToBackupPolicyOutputWithContext(ctx context.Context) BackupPolicyOutput }
type BackupPolicyMap ¶
type BackupPolicyMap map[string]BackupPolicyInput
func (BackupPolicyMap) ElementType ¶
func (BackupPolicyMap) ElementType() reflect.Type
func (BackupPolicyMap) ToBackupPolicyMapOutput ¶
func (i BackupPolicyMap) ToBackupPolicyMapOutput() BackupPolicyMapOutput
func (BackupPolicyMap) ToBackupPolicyMapOutputWithContext ¶
func (i BackupPolicyMap) ToBackupPolicyMapOutputWithContext(ctx context.Context) BackupPolicyMapOutput
type BackupPolicyMapInput ¶
type BackupPolicyMapInput interface { pulumi.Input ToBackupPolicyMapOutput() BackupPolicyMapOutput ToBackupPolicyMapOutputWithContext(context.Context) BackupPolicyMapOutput }
BackupPolicyMapInput is an input type that accepts BackupPolicyMap and BackupPolicyMapOutput values. You can construct a concrete instance of `BackupPolicyMapInput` via:
BackupPolicyMap{ "key": BackupPolicyArgs{...} }
type BackupPolicyMapOutput ¶
type BackupPolicyMapOutput struct{ *pulumi.OutputState }
func (BackupPolicyMapOutput) ElementType ¶
func (BackupPolicyMapOutput) ElementType() reflect.Type
func (BackupPolicyMapOutput) MapIndex ¶
func (o BackupPolicyMapOutput) MapIndex(k pulumi.StringInput) BackupPolicyOutput
func (BackupPolicyMapOutput) ToBackupPolicyMapOutput ¶
func (o BackupPolicyMapOutput) ToBackupPolicyMapOutput() BackupPolicyMapOutput
func (BackupPolicyMapOutput) ToBackupPolicyMapOutputWithContext ¶
func (o BackupPolicyMapOutput) ToBackupPolicyMapOutputWithContext(ctx context.Context) BackupPolicyMapOutput
type BackupPolicyOutput ¶
type BackupPolicyOutput struct{ *pulumi.OutputState }
func (BackupPolicyOutput) BackupRetentionPeriod ¶
func (o BackupPolicyOutput) BackupRetentionPeriod() pulumi.IntPtrOutput
Data backup days. Valid values: `7` to `730`.
func (BackupPolicyOutput) DbClusterId ¶
func (o BackupPolicyOutput) DbClusterId() pulumi.StringOutput
The id of the DBCluster.
func (BackupPolicyOutput) ElementType ¶
func (BackupPolicyOutput) ElementType() reflect.Type
func (BackupPolicyOutput) PreferredBackupPeriods ¶
func (o BackupPolicyOutput) PreferredBackupPeriods() pulumi.StringArrayOutput
DBCluster Backup period. A list of DBCluster Backup period. Valid values: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"].
func (BackupPolicyOutput) PreferredBackupTime ¶
func (o BackupPolicyOutput) PreferredBackupTime() pulumi.StringOutput
DBCluster backup time, in the format of `HH:mmZ-HH:mmZ`. Time setting interval is one hour. China time is 8 hours behind it.
func (BackupPolicyOutput) Status ¶
func (o BackupPolicyOutput) Status() pulumi.StringOutput
The status of the resource.
func (BackupPolicyOutput) ToBackupPolicyOutput ¶
func (o BackupPolicyOutput) ToBackupPolicyOutput() BackupPolicyOutput
func (BackupPolicyOutput) ToBackupPolicyOutputWithContext ¶
func (o BackupPolicyOutput) ToBackupPolicyOutputWithContext(ctx context.Context) BackupPolicyOutput
type BackupPolicyState ¶
type BackupPolicyState struct { // Data backup days. Valid values: `7` to `730`. BackupRetentionPeriod pulumi.IntPtrInput // The id of the DBCluster. DbClusterId pulumi.StringPtrInput // DBCluster Backup period. A list of DBCluster Backup period. Valid values: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]. PreferredBackupPeriods pulumi.StringArrayInput // DBCluster backup time, in the format of `HH:mmZ-HH:mmZ`. Time setting interval is one hour. China time is 8 hours behind it. PreferredBackupTime pulumi.StringPtrInput // The status of the resource. Status pulumi.StringPtrInput }
func (BackupPolicyState) ElementType ¶
func (BackupPolicyState) ElementType() reflect.Type
type DbCluster ¶
type DbCluster struct { pulumi.CustomResourceState // The Category of DBCluster. Valid values: `Basic`,`HighAvailability`. Category pulumi.StringOutput `pulumi:"category"` // The db cluster access white list. DbClusterAccessWhiteLists DbClusterDbClusterAccessWhiteListArrayOutput `pulumi:"dbClusterAccessWhiteLists"` // The DBCluster class. According to the category, dbClusterClass has two value ranges: // * Under the condition that the category is the `Basic`, Valid values: `S4-NEW`, `S8`, `S16`, `S32`, `S64`, `S104`. // * Under the condition that the category is the `HighAvailability`, Valid values: `C4-NEW`, `C8`, `C16`, `C32`, `C64`, `C104`. DbClusterClass pulumi.StringOutput `pulumi:"dbClusterClass"` // The DBCluster description. DbClusterDescription pulumi.StringOutput `pulumi:"dbClusterDescription"` // The DBCluster network type. Valid values: `vpc`. DbClusterNetworkType pulumi.StringOutput `pulumi:"dbClusterNetworkType"` // The DBCluster version. Valid values: `20.3.10.75`, `20.8.7.15`, `21.8.10.19`, `22.8.5.29`. **NOTE:** `19.15.2.2` is no longer supported. From version 1.191.0, `dbClusterVersion` can be set to `22.8.5.29`. DbClusterVersion pulumi.StringOutput `pulumi:"dbClusterVersion"` // The db node group count. The number should between 1 and 48. DbNodeGroupCount pulumi.IntOutput `pulumi:"dbNodeGroupCount"` // The db node storage. DbNodeStorage pulumi.StringOutput `pulumi:"dbNodeStorage"` // Key management service KMS key ID. EncryptionKey pulumi.StringPtrOutput `pulumi:"encryptionKey"` // Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty. EncryptionType pulumi.StringPtrOutput `pulumi:"encryptionType"` // The maintenance window of DBCluster. Valid format: `hh:mmZ-hh:mm Z`. MaintainTime pulumi.StringOutput `pulumi:"maintainTime"` // The payment type of the resource. Valid values: `PayAsYouGo`,`Subscription`. PaymentType pulumi.StringOutput `pulumi:"paymentType"` // Pre-paid cluster of the pay-as-you-go cycle. Valid values: `Month`, `Year`. Period pulumi.StringPtrOutput `pulumi:"period"` // The status of the resource. Valid values: `Running`,`Creating`,`Deleting`,`Restarting`,`Preparing`. Status pulumi.StringOutput `pulumi:"status"` // Storage type of DBCluster. Valid values: `cloudEssd`, `cloudEfficiency`, `cloudEssdPl2`, `cloudEssdPl3`. StorageType pulumi.StringOutput `pulumi:"storageType"` // The used time of DBCluster. UsedTime pulumi.StringPtrOutput `pulumi:"usedTime"` // The id of the VPC. VpcId pulumi.StringOutput `pulumi:"vpcId"` // The vswitch id of DBCluster. VswitchId pulumi.StringPtrOutput `pulumi:"vswitchId"` // The zone ID of the instance. ZoneId pulumi.StringOutput `pulumi:"zoneId"` }
Provides a Click House DBCluster resource.
For information about Click House DBCluster and how to use it, see [What is DBCluster](https://www.alibabacloud.com/product/clickhouse).
> **NOTE:** Available in v1.134.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/clickhouse" "github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/vpc" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/clickhouse" "github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { defaultRegions, err := clickhouse.GetRegions(ctx, &clickhouse.GetRegionsArgs{ Current: pulumi.BoolRef(true), }, nil) if err != nil { return err } defaultNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{ NameRegex: pulumi.StringRef("default-NODELETING"), }, nil) if err != nil { return err } defaultSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{ VpcId: pulumi.StringRef(defaultNetworks.Ids[0]), ZoneId: pulumi.StringRef(defaultRegions.Regions[0].ZoneIds[0].ZoneId), }, nil) if err != nil { return err } _, err = clickhouse.NewDbCluster(ctx, "defaultDbCluster", &clickhouse.DbClusterArgs{ DbClusterVersion: pulumi.String("20.3.10.75"), Category: pulumi.String("Basic"), DbClusterClass: pulumi.String("S8"), DbClusterNetworkType: pulumi.String("vpc"), DbNodeGroupCount: pulumi.Int(1), PaymentType: pulumi.String("PayAsYouGo"), DbNodeStorage: pulumi.String("500"), StorageType: pulumi.String("cloud_essd"), VswitchId: pulumi.String(defaultSwitches.Ids[0]), DbClusterAccessWhiteLists: clickhouse.DbClusterDbClusterAccessWhiteListArray{ &clickhouse.DbClusterDbClusterAccessWhiteListArgs{ DbClusterIpArrayAttribute: pulumi.String("test"), DbClusterIpArrayName: pulumi.String("test"), SecurityIpList: pulumi.String("192.168.0.1"), }, }, }) if err != nil { return err } return nil }) }
```
## Import
Click House DBCluster can be imported using the id, e.g.
```sh
$ pulumi import alicloud:clickhouse/dbCluster:DbCluster example <id>
```
func GetDbCluster ¶
func GetDbCluster(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DbClusterState, opts ...pulumi.ResourceOption) (*DbCluster, error)
GetDbCluster gets an existing DbCluster resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewDbCluster ¶
func NewDbCluster(ctx *pulumi.Context, name string, args *DbClusterArgs, opts ...pulumi.ResourceOption) (*DbCluster, error)
NewDbCluster registers a new resource with the given unique name, arguments, and options.
func (*DbCluster) ElementType ¶
func (*DbCluster) ToDbClusterOutput ¶
func (i *DbCluster) ToDbClusterOutput() DbClusterOutput
func (*DbCluster) ToDbClusterOutputWithContext ¶
func (i *DbCluster) ToDbClusterOutputWithContext(ctx context.Context) DbClusterOutput
type DbClusterArgs ¶
type DbClusterArgs struct { // The Category of DBCluster. Valid values: `Basic`,`HighAvailability`. Category pulumi.StringInput // The db cluster access white list. DbClusterAccessWhiteLists DbClusterDbClusterAccessWhiteListArrayInput // The DBCluster class. According to the category, dbClusterClass has two value ranges: // * Under the condition that the category is the `Basic`, Valid values: `S4-NEW`, `S8`, `S16`, `S32`, `S64`, `S104`. // * Under the condition that the category is the `HighAvailability`, Valid values: `C4-NEW`, `C8`, `C16`, `C32`, `C64`, `C104`. DbClusterClass pulumi.StringInput // The DBCluster description. DbClusterDescription pulumi.StringPtrInput // The DBCluster network type. Valid values: `vpc`. DbClusterNetworkType pulumi.StringInput // The DBCluster version. Valid values: `20.3.10.75`, `20.8.7.15`, `21.8.10.19`, `22.8.5.29`. **NOTE:** `19.15.2.2` is no longer supported. From version 1.191.0, `dbClusterVersion` can be set to `22.8.5.29`. DbClusterVersion pulumi.StringInput // The db node group count. The number should between 1 and 48. DbNodeGroupCount pulumi.IntInput // The db node storage. DbNodeStorage pulumi.StringInput // Key management service KMS key ID. EncryptionKey pulumi.StringPtrInput // Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty. EncryptionType pulumi.StringPtrInput // The maintenance window of DBCluster. Valid format: `hh:mmZ-hh:mm Z`. MaintainTime pulumi.StringPtrInput // The payment type of the resource. Valid values: `PayAsYouGo`,`Subscription`. PaymentType pulumi.StringInput // Pre-paid cluster of the pay-as-you-go cycle. Valid values: `Month`, `Year`. Period pulumi.StringPtrInput // The status of the resource. Valid values: `Running`,`Creating`,`Deleting`,`Restarting`,`Preparing`. Status pulumi.StringPtrInput // Storage type of DBCluster. Valid values: `cloudEssd`, `cloudEfficiency`, `cloudEssdPl2`, `cloudEssdPl3`. StorageType pulumi.StringInput // The used time of DBCluster. UsedTime pulumi.StringPtrInput // The id of the VPC. VpcId pulumi.StringPtrInput // The vswitch id of DBCluster. VswitchId pulumi.StringPtrInput // The zone ID of the instance. ZoneId pulumi.StringPtrInput }
The set of arguments for constructing a DbCluster resource.
func (DbClusterArgs) ElementType ¶
func (DbClusterArgs) ElementType() reflect.Type
type DbClusterArray ¶
type DbClusterArray []DbClusterInput
func (DbClusterArray) ElementType ¶
func (DbClusterArray) ElementType() reflect.Type
func (DbClusterArray) ToDbClusterArrayOutput ¶
func (i DbClusterArray) ToDbClusterArrayOutput() DbClusterArrayOutput
func (DbClusterArray) ToDbClusterArrayOutputWithContext ¶
func (i DbClusterArray) ToDbClusterArrayOutputWithContext(ctx context.Context) DbClusterArrayOutput
type DbClusterArrayInput ¶
type DbClusterArrayInput interface { pulumi.Input ToDbClusterArrayOutput() DbClusterArrayOutput ToDbClusterArrayOutputWithContext(context.Context) DbClusterArrayOutput }
DbClusterArrayInput is an input type that accepts DbClusterArray and DbClusterArrayOutput values. You can construct a concrete instance of `DbClusterArrayInput` via:
DbClusterArray{ DbClusterArgs{...} }
type DbClusterArrayOutput ¶
type DbClusterArrayOutput struct{ *pulumi.OutputState }
func (DbClusterArrayOutput) ElementType ¶
func (DbClusterArrayOutput) ElementType() reflect.Type
func (DbClusterArrayOutput) Index ¶
func (o DbClusterArrayOutput) Index(i pulumi.IntInput) DbClusterOutput
func (DbClusterArrayOutput) ToDbClusterArrayOutput ¶
func (o DbClusterArrayOutput) ToDbClusterArrayOutput() DbClusterArrayOutput
func (DbClusterArrayOutput) ToDbClusterArrayOutputWithContext ¶
func (o DbClusterArrayOutput) ToDbClusterArrayOutputWithContext(ctx context.Context) DbClusterArrayOutput
type DbClusterDbClusterAccessWhiteList ¶
type DbClusterDbClusterAccessWhiteList struct { // Field `dbClusterIpArrayAttribute` has been removed from provider. DbClusterIpArrayAttribute *string `pulumi:"dbClusterIpArrayAttribute"` // Whitelist group name. DbClusterIpArrayName *string `pulumi:"dbClusterIpArrayName"` // The IP address list under the whitelist group. SecurityIpList *string `pulumi:"securityIpList"` }
type DbClusterDbClusterAccessWhiteListArgs ¶
type DbClusterDbClusterAccessWhiteListArgs struct { // Field `dbClusterIpArrayAttribute` has been removed from provider. DbClusterIpArrayAttribute pulumi.StringPtrInput `pulumi:"dbClusterIpArrayAttribute"` // Whitelist group name. DbClusterIpArrayName pulumi.StringPtrInput `pulumi:"dbClusterIpArrayName"` // The IP address list under the whitelist group. SecurityIpList pulumi.StringPtrInput `pulumi:"securityIpList"` }
func (DbClusterDbClusterAccessWhiteListArgs) ElementType ¶
func (DbClusterDbClusterAccessWhiteListArgs) ElementType() reflect.Type
func (DbClusterDbClusterAccessWhiteListArgs) ToDbClusterDbClusterAccessWhiteListOutput ¶
func (i DbClusterDbClusterAccessWhiteListArgs) ToDbClusterDbClusterAccessWhiteListOutput() DbClusterDbClusterAccessWhiteListOutput
func (DbClusterDbClusterAccessWhiteListArgs) ToDbClusterDbClusterAccessWhiteListOutputWithContext ¶
func (i DbClusterDbClusterAccessWhiteListArgs) ToDbClusterDbClusterAccessWhiteListOutputWithContext(ctx context.Context) DbClusterDbClusterAccessWhiteListOutput
type DbClusterDbClusterAccessWhiteListArray ¶
type DbClusterDbClusterAccessWhiteListArray []DbClusterDbClusterAccessWhiteListInput
func (DbClusterDbClusterAccessWhiteListArray) ElementType ¶
func (DbClusterDbClusterAccessWhiteListArray) ElementType() reflect.Type
func (DbClusterDbClusterAccessWhiteListArray) ToDbClusterDbClusterAccessWhiteListArrayOutput ¶
func (i DbClusterDbClusterAccessWhiteListArray) ToDbClusterDbClusterAccessWhiteListArrayOutput() DbClusterDbClusterAccessWhiteListArrayOutput
func (DbClusterDbClusterAccessWhiteListArray) ToDbClusterDbClusterAccessWhiteListArrayOutputWithContext ¶
func (i DbClusterDbClusterAccessWhiteListArray) ToDbClusterDbClusterAccessWhiteListArrayOutputWithContext(ctx context.Context) DbClusterDbClusterAccessWhiteListArrayOutput
type DbClusterDbClusterAccessWhiteListArrayInput ¶
type DbClusterDbClusterAccessWhiteListArrayInput interface { pulumi.Input ToDbClusterDbClusterAccessWhiteListArrayOutput() DbClusterDbClusterAccessWhiteListArrayOutput ToDbClusterDbClusterAccessWhiteListArrayOutputWithContext(context.Context) DbClusterDbClusterAccessWhiteListArrayOutput }
DbClusterDbClusterAccessWhiteListArrayInput is an input type that accepts DbClusterDbClusterAccessWhiteListArray and DbClusterDbClusterAccessWhiteListArrayOutput values. You can construct a concrete instance of `DbClusterDbClusterAccessWhiteListArrayInput` via:
DbClusterDbClusterAccessWhiteListArray{ DbClusterDbClusterAccessWhiteListArgs{...} }
type DbClusterDbClusterAccessWhiteListArrayOutput ¶
type DbClusterDbClusterAccessWhiteListArrayOutput struct{ *pulumi.OutputState }
func (DbClusterDbClusterAccessWhiteListArrayOutput) ElementType ¶
func (DbClusterDbClusterAccessWhiteListArrayOutput) ElementType() reflect.Type
func (DbClusterDbClusterAccessWhiteListArrayOutput) ToDbClusterDbClusterAccessWhiteListArrayOutput ¶
func (o DbClusterDbClusterAccessWhiteListArrayOutput) ToDbClusterDbClusterAccessWhiteListArrayOutput() DbClusterDbClusterAccessWhiteListArrayOutput
func (DbClusterDbClusterAccessWhiteListArrayOutput) ToDbClusterDbClusterAccessWhiteListArrayOutputWithContext ¶
func (o DbClusterDbClusterAccessWhiteListArrayOutput) ToDbClusterDbClusterAccessWhiteListArrayOutputWithContext(ctx context.Context) DbClusterDbClusterAccessWhiteListArrayOutput
type DbClusterDbClusterAccessWhiteListInput ¶
type DbClusterDbClusterAccessWhiteListInput interface { pulumi.Input ToDbClusterDbClusterAccessWhiteListOutput() DbClusterDbClusterAccessWhiteListOutput ToDbClusterDbClusterAccessWhiteListOutputWithContext(context.Context) DbClusterDbClusterAccessWhiteListOutput }
DbClusterDbClusterAccessWhiteListInput is an input type that accepts DbClusterDbClusterAccessWhiteListArgs and DbClusterDbClusterAccessWhiteListOutput values. You can construct a concrete instance of `DbClusterDbClusterAccessWhiteListInput` via:
DbClusterDbClusterAccessWhiteListArgs{...}
type DbClusterDbClusterAccessWhiteListOutput ¶
type DbClusterDbClusterAccessWhiteListOutput struct{ *pulumi.OutputState }
func (DbClusterDbClusterAccessWhiteListOutput) DbClusterIpArrayAttribute ¶
func (o DbClusterDbClusterAccessWhiteListOutput) DbClusterIpArrayAttribute() pulumi.StringPtrOutput
Field `dbClusterIpArrayAttribute` has been removed from provider.
func (DbClusterDbClusterAccessWhiteListOutput) DbClusterIpArrayName ¶
func (o DbClusterDbClusterAccessWhiteListOutput) DbClusterIpArrayName() pulumi.StringPtrOutput
Whitelist group name.
func (DbClusterDbClusterAccessWhiteListOutput) ElementType ¶
func (DbClusterDbClusterAccessWhiteListOutput) ElementType() reflect.Type
func (DbClusterDbClusterAccessWhiteListOutput) SecurityIpList ¶
func (o DbClusterDbClusterAccessWhiteListOutput) SecurityIpList() pulumi.StringPtrOutput
The IP address list under the whitelist group.
func (DbClusterDbClusterAccessWhiteListOutput) ToDbClusterDbClusterAccessWhiteListOutput ¶
func (o DbClusterDbClusterAccessWhiteListOutput) ToDbClusterDbClusterAccessWhiteListOutput() DbClusterDbClusterAccessWhiteListOutput
func (DbClusterDbClusterAccessWhiteListOutput) ToDbClusterDbClusterAccessWhiteListOutputWithContext ¶
func (o DbClusterDbClusterAccessWhiteListOutput) ToDbClusterDbClusterAccessWhiteListOutputWithContext(ctx context.Context) DbClusterDbClusterAccessWhiteListOutput
type DbClusterInput ¶
type DbClusterInput interface { pulumi.Input ToDbClusterOutput() DbClusterOutput ToDbClusterOutputWithContext(ctx context.Context) DbClusterOutput }
type DbClusterMap ¶
type DbClusterMap map[string]DbClusterInput
func (DbClusterMap) ElementType ¶
func (DbClusterMap) ElementType() reflect.Type
func (DbClusterMap) ToDbClusterMapOutput ¶
func (i DbClusterMap) ToDbClusterMapOutput() DbClusterMapOutput
func (DbClusterMap) ToDbClusterMapOutputWithContext ¶
func (i DbClusterMap) ToDbClusterMapOutputWithContext(ctx context.Context) DbClusterMapOutput
type DbClusterMapInput ¶
type DbClusterMapInput interface { pulumi.Input ToDbClusterMapOutput() DbClusterMapOutput ToDbClusterMapOutputWithContext(context.Context) DbClusterMapOutput }
DbClusterMapInput is an input type that accepts DbClusterMap and DbClusterMapOutput values. You can construct a concrete instance of `DbClusterMapInput` via:
DbClusterMap{ "key": DbClusterArgs{...} }
type DbClusterMapOutput ¶
type DbClusterMapOutput struct{ *pulumi.OutputState }
func (DbClusterMapOutput) ElementType ¶
func (DbClusterMapOutput) ElementType() reflect.Type
func (DbClusterMapOutput) MapIndex ¶
func (o DbClusterMapOutput) MapIndex(k pulumi.StringInput) DbClusterOutput
func (DbClusterMapOutput) ToDbClusterMapOutput ¶
func (o DbClusterMapOutput) ToDbClusterMapOutput() DbClusterMapOutput
func (DbClusterMapOutput) ToDbClusterMapOutputWithContext ¶
func (o DbClusterMapOutput) ToDbClusterMapOutputWithContext(ctx context.Context) DbClusterMapOutput
type DbClusterOutput ¶
type DbClusterOutput struct{ *pulumi.OutputState }
func (DbClusterOutput) Category ¶
func (o DbClusterOutput) Category() pulumi.StringOutput
The Category of DBCluster. Valid values: `Basic`,`HighAvailability`.
func (DbClusterOutput) DbClusterAccessWhiteLists ¶
func (o DbClusterOutput) DbClusterAccessWhiteLists() DbClusterDbClusterAccessWhiteListArrayOutput
The db cluster access white list.
func (DbClusterOutput) DbClusterClass ¶
func (o DbClusterOutput) DbClusterClass() pulumi.StringOutput
The DBCluster class. According to the category, dbClusterClass has two value ranges: * Under the condition that the category is the `Basic`, Valid values: `S4-NEW`, `S8`, `S16`, `S32`, `S64`, `S104`. * Under the condition that the category is the `HighAvailability`, Valid values: `C4-NEW`, `C8`, `C16`, `C32`, `C64`, `C104`.
func (DbClusterOutput) DbClusterDescription ¶
func (o DbClusterOutput) DbClusterDescription() pulumi.StringOutput
The DBCluster description.
func (DbClusterOutput) DbClusterNetworkType ¶
func (o DbClusterOutput) DbClusterNetworkType() pulumi.StringOutput
The DBCluster network type. Valid values: `vpc`.
func (DbClusterOutput) DbClusterVersion ¶
func (o DbClusterOutput) DbClusterVersion() pulumi.StringOutput
The DBCluster version. Valid values: `20.3.10.75`, `20.8.7.15`, `21.8.10.19`, `22.8.5.29`. **NOTE:** `19.15.2.2` is no longer supported. From version 1.191.0, `dbClusterVersion` can be set to `22.8.5.29`.
func (DbClusterOutput) DbNodeGroupCount ¶
func (o DbClusterOutput) DbNodeGroupCount() pulumi.IntOutput
The db node group count. The number should between 1 and 48.
func (DbClusterOutput) DbNodeStorage ¶
func (o DbClusterOutput) DbNodeStorage() pulumi.StringOutput
The db node storage.
func (DbClusterOutput) ElementType ¶
func (DbClusterOutput) ElementType() reflect.Type
func (DbClusterOutput) EncryptionKey ¶
func (o DbClusterOutput) EncryptionKey() pulumi.StringPtrOutput
Key management service KMS key ID.
func (DbClusterOutput) EncryptionType ¶
func (o DbClusterOutput) EncryptionType() pulumi.StringPtrOutput
Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty.
func (DbClusterOutput) MaintainTime ¶
func (o DbClusterOutput) MaintainTime() pulumi.StringOutput
The maintenance window of DBCluster. Valid format: `hh:mmZ-hh:mm Z`.
func (DbClusterOutput) PaymentType ¶
func (o DbClusterOutput) PaymentType() pulumi.StringOutput
The payment type of the resource. Valid values: `PayAsYouGo`,`Subscription`.
func (DbClusterOutput) Period ¶
func (o DbClusterOutput) Period() pulumi.StringPtrOutput
Pre-paid cluster of the pay-as-you-go cycle. Valid values: `Month`, `Year`.
func (DbClusterOutput) Status ¶
func (o DbClusterOutput) Status() pulumi.StringOutput
The status of the resource. Valid values: `Running`,`Creating`,`Deleting`,`Restarting`,`Preparing`.
func (DbClusterOutput) StorageType ¶
func (o DbClusterOutput) StorageType() pulumi.StringOutput
Storage type of DBCluster. Valid values: `cloudEssd`, `cloudEfficiency`, `cloudEssdPl2`, `cloudEssdPl3`.
func (DbClusterOutput) ToDbClusterOutput ¶
func (o DbClusterOutput) ToDbClusterOutput() DbClusterOutput
func (DbClusterOutput) ToDbClusterOutputWithContext ¶
func (o DbClusterOutput) ToDbClusterOutputWithContext(ctx context.Context) DbClusterOutput
func (DbClusterOutput) UsedTime ¶
func (o DbClusterOutput) UsedTime() pulumi.StringPtrOutput
The used time of DBCluster.
func (DbClusterOutput) VpcId ¶
func (o DbClusterOutput) VpcId() pulumi.StringOutput
The id of the VPC.
func (DbClusterOutput) VswitchId ¶
func (o DbClusterOutput) VswitchId() pulumi.StringPtrOutput
The vswitch id of DBCluster.
func (DbClusterOutput) ZoneId ¶
func (o DbClusterOutput) ZoneId() pulumi.StringOutput
The zone ID of the instance.
type DbClusterState ¶
type DbClusterState struct { // The Category of DBCluster. Valid values: `Basic`,`HighAvailability`. Category pulumi.StringPtrInput // The db cluster access white list. DbClusterAccessWhiteLists DbClusterDbClusterAccessWhiteListArrayInput // The DBCluster class. According to the category, dbClusterClass has two value ranges: // * Under the condition that the category is the `Basic`, Valid values: `S4-NEW`, `S8`, `S16`, `S32`, `S64`, `S104`. // * Under the condition that the category is the `HighAvailability`, Valid values: `C4-NEW`, `C8`, `C16`, `C32`, `C64`, `C104`. DbClusterClass pulumi.StringPtrInput // The DBCluster description. DbClusterDescription pulumi.StringPtrInput // The DBCluster network type. Valid values: `vpc`. DbClusterNetworkType pulumi.StringPtrInput // The DBCluster version. Valid values: `20.3.10.75`, `20.8.7.15`, `21.8.10.19`, `22.8.5.29`. **NOTE:** `19.15.2.2` is no longer supported. From version 1.191.0, `dbClusterVersion` can be set to `22.8.5.29`. DbClusterVersion pulumi.StringPtrInput // The db node group count. The number should between 1 and 48. DbNodeGroupCount pulumi.IntPtrInput // The db node storage. DbNodeStorage pulumi.StringPtrInput // Key management service KMS key ID. EncryptionKey pulumi.StringPtrInput // Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty. EncryptionType pulumi.StringPtrInput // The maintenance window of DBCluster. Valid format: `hh:mmZ-hh:mm Z`. MaintainTime pulumi.StringPtrInput // The payment type of the resource. Valid values: `PayAsYouGo`,`Subscription`. PaymentType pulumi.StringPtrInput // Pre-paid cluster of the pay-as-you-go cycle. Valid values: `Month`, `Year`. Period pulumi.StringPtrInput // The status of the resource. Valid values: `Running`,`Creating`,`Deleting`,`Restarting`,`Preparing`. Status pulumi.StringPtrInput // Storage type of DBCluster. Valid values: `cloudEssd`, `cloudEfficiency`, `cloudEssdPl2`, `cloudEssdPl3`. StorageType pulumi.StringPtrInput // The used time of DBCluster. UsedTime pulumi.StringPtrInput // The id of the VPC. VpcId pulumi.StringPtrInput // The vswitch id of DBCluster. VswitchId pulumi.StringPtrInput // The zone ID of the instance. ZoneId pulumi.StringPtrInput }
func (DbClusterState) ElementType ¶
func (DbClusterState) ElementType() reflect.Type
type GetAccountsAccount ¶
type GetAccountsAccount struct { // In Chinese, English letter. May contain Chinese and English characters, lowercase letters, numbers, and underscores (_), the dash (-). Cannot start with http:// and https:// at the beginning. Length is from 2 to 256 characters. AccountDescription string `pulumi:"accountDescription"` // Account name: lowercase letters, numbers, underscores, lowercase letter; length no more than 16 characters. AccountName string `pulumi:"accountName"` // The Valid Account type: `Normal`, `Super`. AccountType string `pulumi:"accountType"` // The DBCluster id. DbClusterId string `pulumi:"dbClusterId"` // The ID of the Account. Its value is same as Queue Name. Id string `pulumi:"id"` // The status of the resource. Status string `pulumi:"status"` }
type GetAccountsAccountArgs ¶
type GetAccountsAccountArgs struct { // In Chinese, English letter. May contain Chinese and English characters, lowercase letters, numbers, and underscores (_), the dash (-). Cannot start with http:// and https:// at the beginning. Length is from 2 to 256 characters. AccountDescription pulumi.StringInput `pulumi:"accountDescription"` // Account name: lowercase letters, numbers, underscores, lowercase letter; length no more than 16 characters. AccountName pulumi.StringInput `pulumi:"accountName"` // The Valid Account type: `Normal`, `Super`. AccountType pulumi.StringInput `pulumi:"accountType"` // The DBCluster id. DbClusterId pulumi.StringInput `pulumi:"dbClusterId"` // The ID of the Account. Its value is same as Queue Name. Id pulumi.StringInput `pulumi:"id"` // The status of the resource. Status pulumi.StringInput `pulumi:"status"` }
func (GetAccountsAccountArgs) ElementType ¶
func (GetAccountsAccountArgs) ElementType() reflect.Type
func (GetAccountsAccountArgs) ToGetAccountsAccountOutput ¶
func (i GetAccountsAccountArgs) ToGetAccountsAccountOutput() GetAccountsAccountOutput
func (GetAccountsAccountArgs) ToGetAccountsAccountOutputWithContext ¶
func (i GetAccountsAccountArgs) ToGetAccountsAccountOutputWithContext(ctx context.Context) GetAccountsAccountOutput
type GetAccountsAccountArray ¶
type GetAccountsAccountArray []GetAccountsAccountInput
func (GetAccountsAccountArray) ElementType ¶
func (GetAccountsAccountArray) ElementType() reflect.Type
func (GetAccountsAccountArray) ToGetAccountsAccountArrayOutput ¶
func (i GetAccountsAccountArray) ToGetAccountsAccountArrayOutput() GetAccountsAccountArrayOutput
func (GetAccountsAccountArray) ToGetAccountsAccountArrayOutputWithContext ¶
func (i GetAccountsAccountArray) ToGetAccountsAccountArrayOutputWithContext(ctx context.Context) GetAccountsAccountArrayOutput
type GetAccountsAccountArrayInput ¶
type GetAccountsAccountArrayInput interface { pulumi.Input ToGetAccountsAccountArrayOutput() GetAccountsAccountArrayOutput ToGetAccountsAccountArrayOutputWithContext(context.Context) GetAccountsAccountArrayOutput }
GetAccountsAccountArrayInput is an input type that accepts GetAccountsAccountArray and GetAccountsAccountArrayOutput values. You can construct a concrete instance of `GetAccountsAccountArrayInput` via:
GetAccountsAccountArray{ GetAccountsAccountArgs{...} }
type GetAccountsAccountArrayOutput ¶
type GetAccountsAccountArrayOutput struct{ *pulumi.OutputState }
func (GetAccountsAccountArrayOutput) ElementType ¶
func (GetAccountsAccountArrayOutput) ElementType() reflect.Type
func (GetAccountsAccountArrayOutput) Index ¶
func (o GetAccountsAccountArrayOutput) Index(i pulumi.IntInput) GetAccountsAccountOutput
func (GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutput ¶
func (o GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutput() GetAccountsAccountArrayOutput
func (GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutputWithContext ¶
func (o GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutputWithContext(ctx context.Context) GetAccountsAccountArrayOutput
type GetAccountsAccountInput ¶
type GetAccountsAccountInput interface { pulumi.Input ToGetAccountsAccountOutput() GetAccountsAccountOutput ToGetAccountsAccountOutputWithContext(context.Context) GetAccountsAccountOutput }
GetAccountsAccountInput is an input type that accepts GetAccountsAccountArgs and GetAccountsAccountOutput values. You can construct a concrete instance of `GetAccountsAccountInput` via:
GetAccountsAccountArgs{...}
type GetAccountsAccountOutput ¶
type GetAccountsAccountOutput struct{ *pulumi.OutputState }
func (GetAccountsAccountOutput) AccountDescription ¶
func (o GetAccountsAccountOutput) AccountDescription() pulumi.StringOutput
In Chinese, English letter. May contain Chinese and English characters, lowercase letters, numbers, and underscores (_), the dash (-). Cannot start with http:// and https:// at the beginning. Length is from 2 to 256 characters.
func (GetAccountsAccountOutput) AccountName ¶
func (o GetAccountsAccountOutput) AccountName() pulumi.StringOutput
Account name: lowercase letters, numbers, underscores, lowercase letter; length no more than 16 characters.
func (GetAccountsAccountOutput) AccountType ¶
func (o GetAccountsAccountOutput) AccountType() pulumi.StringOutput
The Valid Account type: `Normal`, `Super`.
func (GetAccountsAccountOutput) DbClusterId ¶
func (o GetAccountsAccountOutput) DbClusterId() pulumi.StringOutput
The DBCluster id.
func (GetAccountsAccountOutput) ElementType ¶
func (GetAccountsAccountOutput) ElementType() reflect.Type
func (GetAccountsAccountOutput) Id ¶
func (o GetAccountsAccountOutput) Id() pulumi.StringOutput
The ID of the Account. Its value is same as Queue Name.
func (GetAccountsAccountOutput) Status ¶
func (o GetAccountsAccountOutput) Status() pulumi.StringOutput
The status of the resource.
func (GetAccountsAccountOutput) ToGetAccountsAccountOutput ¶
func (o GetAccountsAccountOutput) ToGetAccountsAccountOutput() GetAccountsAccountOutput
func (GetAccountsAccountOutput) ToGetAccountsAccountOutputWithContext ¶
func (o GetAccountsAccountOutput) ToGetAccountsAccountOutputWithContext(ctx context.Context) GetAccountsAccountOutput
type GetAccountsArgs ¶
type GetAccountsArgs struct { // The DBCluster id. DbClusterId string `pulumi:"dbClusterId"` // A list of Account IDs. Its element value is same as Account Name. Ids []string `pulumi:"ids"` // A regex string to filter results by Account name. NameRegex *string `pulumi:"nameRegex"` OutputFile *string `pulumi:"outputFile"` // The status of the resource. Status *string `pulumi:"status"` }
A collection of arguments for invoking getAccounts.
type GetAccountsOutputArgs ¶
type GetAccountsOutputArgs struct { // The DBCluster id. DbClusterId pulumi.StringInput `pulumi:"dbClusterId"` // A list of Account IDs. Its element value is same as Account Name. Ids pulumi.StringArrayInput `pulumi:"ids"` // A regex string to filter results by Account name. NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"` OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` // The status of the resource. Status pulumi.StringPtrInput `pulumi:"status"` }
A collection of arguments for invoking getAccounts.
func (GetAccountsOutputArgs) ElementType ¶
func (GetAccountsOutputArgs) ElementType() reflect.Type
type GetAccountsResult ¶
type GetAccountsResult struct { Accounts []GetAccountsAccount `pulumi:"accounts"` DbClusterId string `pulumi:"dbClusterId"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` NameRegex *string `pulumi:"nameRegex"` Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` Status *string `pulumi:"status"` }
A collection of values returned by getAccounts.
func GetAccounts ¶
func GetAccounts(ctx *pulumi.Context, args *GetAccountsArgs, opts ...pulumi.InvokeOption) (*GetAccountsResult, error)
This data source provides the Click House Accounts of the current Alibaba Cloud user.
> **NOTE:** Available in v1.134.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/clickhouse" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config" "github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/clickhouse"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { cfg := config.New(ctx, "") name := "testaccountname" if param := cfg.Get("name"); param != "" { name = param } pwd := "Tf-testpwd" if param := cfg.Get("pwd"); param != "" { pwd = param } defaultDbCluster, err := clickhouse.NewDbCluster(ctx, "defaultDbCluster", &clickhouse.DbClusterArgs{ DbClusterVersion: pulumi.String("20.3.10.75"), Category: pulumi.String("Basic"), DbClusterClass: pulumi.String("S8"), DbClusterNetworkType: pulumi.String("vpc"), DbClusterDescription: pulumi.String(name), DbNodeGroupCount: pulumi.Int(1), PaymentType: pulumi.String("PayAsYouGo"), DbNodeStorage: pulumi.String("500"), StorageType: pulumi.String("cloud_essd"), VswitchId: pulumi.String("your_vswitch_id"), }) if err != nil { return err } defaultAccount, err := clickhouse.NewAccount(ctx, "defaultAccount", &clickhouse.AccountArgs{ DbClusterId: defaultDbCluster.ID(), AccountDescription: pulumi.String("your_description"), AccountName: pulumi.String(name), AccountPassword: pulumi.String(pwd), }) if err != nil { return err } defaultAccounts := clickhouse.GetAccountsOutput(ctx, clickhouse.GetAccountsOutputArgs{ Ids: pulumi.StringArray{ defaultAccount.ID(), }, DbClusterId: defaultDbCluster.ID(), }, nil) ctx.Export("accountId", defaultAccounts.ApplyT(func(defaultAccounts clickhouse.GetAccountsResult) (string, error) { return defaultAccounts.Ids[0], nil }).(pulumi.StringOutput)) return nil }) }
```
type GetAccountsResultOutput ¶
type GetAccountsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getAccounts.
func GetAccountsOutput ¶
func GetAccountsOutput(ctx *pulumi.Context, args GetAccountsOutputArgs, opts ...pulumi.InvokeOption) GetAccountsResultOutput
func (GetAccountsResultOutput) Accounts ¶
func (o GetAccountsResultOutput) Accounts() GetAccountsAccountArrayOutput
func (GetAccountsResultOutput) DbClusterId ¶
func (o GetAccountsResultOutput) DbClusterId() pulumi.StringOutput
func (GetAccountsResultOutput) ElementType ¶
func (GetAccountsResultOutput) ElementType() reflect.Type
func (GetAccountsResultOutput) Id ¶
func (o GetAccountsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetAccountsResultOutput) Ids ¶
func (o GetAccountsResultOutput) Ids() pulumi.StringArrayOutput
func (GetAccountsResultOutput) NameRegex ¶
func (o GetAccountsResultOutput) NameRegex() pulumi.StringPtrOutput
func (GetAccountsResultOutput) Names ¶
func (o GetAccountsResultOutput) Names() pulumi.StringArrayOutput
func (GetAccountsResultOutput) OutputFile ¶
func (o GetAccountsResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetAccountsResultOutput) Status ¶
func (o GetAccountsResultOutput) Status() pulumi.StringPtrOutput
func (GetAccountsResultOutput) ToGetAccountsResultOutput ¶
func (o GetAccountsResultOutput) ToGetAccountsResultOutput() GetAccountsResultOutput
func (GetAccountsResultOutput) ToGetAccountsResultOutputWithContext ¶
func (o GetAccountsResultOutput) ToGetAccountsResultOutputWithContext(ctx context.Context) GetAccountsResultOutput
type GetBackupPoliciesArgs ¶
type GetBackupPoliciesArgs struct { // The db cluster id. DbClusterId string `pulumi:"dbClusterId"` OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getBackupPolicies.
type GetBackupPoliciesOutputArgs ¶
type GetBackupPoliciesOutputArgs struct { // The db cluster id. DbClusterId pulumi.StringInput `pulumi:"dbClusterId"` OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` }
A collection of arguments for invoking getBackupPolicies.
func (GetBackupPoliciesOutputArgs) ElementType ¶
func (GetBackupPoliciesOutputArgs) ElementType() reflect.Type
type GetBackupPoliciesPolicy ¶
type GetBackupPoliciesPolicy struct { // Data backup days. Valid values: `7` to `730`. BackupRetentionPeriod int `pulumi:"backupRetentionPeriod"` // The db cluster id. DbClusterId string `pulumi:"dbClusterId"` // The ID of the Backup Policy. Id string `pulumi:"id"` // DBCluster Backup period. PreferredBackupPeriods []string `pulumi:"preferredBackupPeriods"` // Backup Time, UTC time. PreferredBackupTime string `pulumi:"preferredBackupTime"` // The status of the resource. Status string `pulumi:"status"` }
type GetBackupPoliciesPolicyArgs ¶
type GetBackupPoliciesPolicyArgs struct { // Data backup days. Valid values: `7` to `730`. BackupRetentionPeriod pulumi.IntInput `pulumi:"backupRetentionPeriod"` // The db cluster id. DbClusterId pulumi.StringInput `pulumi:"dbClusterId"` // The ID of the Backup Policy. Id pulumi.StringInput `pulumi:"id"` // DBCluster Backup period. PreferredBackupPeriods pulumi.StringArrayInput `pulumi:"preferredBackupPeriods"` // Backup Time, UTC time. PreferredBackupTime pulumi.StringInput `pulumi:"preferredBackupTime"` // The status of the resource. Status pulumi.StringInput `pulumi:"status"` }
func (GetBackupPoliciesPolicyArgs) ElementType ¶
func (GetBackupPoliciesPolicyArgs) ElementType() reflect.Type
func (GetBackupPoliciesPolicyArgs) ToGetBackupPoliciesPolicyOutput ¶
func (i GetBackupPoliciesPolicyArgs) ToGetBackupPoliciesPolicyOutput() GetBackupPoliciesPolicyOutput
func (GetBackupPoliciesPolicyArgs) ToGetBackupPoliciesPolicyOutputWithContext ¶
func (i GetBackupPoliciesPolicyArgs) ToGetBackupPoliciesPolicyOutputWithContext(ctx context.Context) GetBackupPoliciesPolicyOutput
type GetBackupPoliciesPolicyArray ¶
type GetBackupPoliciesPolicyArray []GetBackupPoliciesPolicyInput
func (GetBackupPoliciesPolicyArray) ElementType ¶
func (GetBackupPoliciesPolicyArray) ElementType() reflect.Type
func (GetBackupPoliciesPolicyArray) ToGetBackupPoliciesPolicyArrayOutput ¶
func (i GetBackupPoliciesPolicyArray) ToGetBackupPoliciesPolicyArrayOutput() GetBackupPoliciesPolicyArrayOutput
func (GetBackupPoliciesPolicyArray) ToGetBackupPoliciesPolicyArrayOutputWithContext ¶
func (i GetBackupPoliciesPolicyArray) ToGetBackupPoliciesPolicyArrayOutputWithContext(ctx context.Context) GetBackupPoliciesPolicyArrayOutput
type GetBackupPoliciesPolicyArrayInput ¶
type GetBackupPoliciesPolicyArrayInput interface { pulumi.Input ToGetBackupPoliciesPolicyArrayOutput() GetBackupPoliciesPolicyArrayOutput ToGetBackupPoliciesPolicyArrayOutputWithContext(context.Context) GetBackupPoliciesPolicyArrayOutput }
GetBackupPoliciesPolicyArrayInput is an input type that accepts GetBackupPoliciesPolicyArray and GetBackupPoliciesPolicyArrayOutput values. You can construct a concrete instance of `GetBackupPoliciesPolicyArrayInput` via:
GetBackupPoliciesPolicyArray{ GetBackupPoliciesPolicyArgs{...} }
type GetBackupPoliciesPolicyArrayOutput ¶
type GetBackupPoliciesPolicyArrayOutput struct{ *pulumi.OutputState }
func (GetBackupPoliciesPolicyArrayOutput) ElementType ¶
func (GetBackupPoliciesPolicyArrayOutput) ElementType() reflect.Type
func (GetBackupPoliciesPolicyArrayOutput) Index ¶
func (o GetBackupPoliciesPolicyArrayOutput) Index(i pulumi.IntInput) GetBackupPoliciesPolicyOutput
func (GetBackupPoliciesPolicyArrayOutput) ToGetBackupPoliciesPolicyArrayOutput ¶
func (o GetBackupPoliciesPolicyArrayOutput) ToGetBackupPoliciesPolicyArrayOutput() GetBackupPoliciesPolicyArrayOutput
func (GetBackupPoliciesPolicyArrayOutput) ToGetBackupPoliciesPolicyArrayOutputWithContext ¶
func (o GetBackupPoliciesPolicyArrayOutput) ToGetBackupPoliciesPolicyArrayOutputWithContext(ctx context.Context) GetBackupPoliciesPolicyArrayOutput
type GetBackupPoliciesPolicyInput ¶
type GetBackupPoliciesPolicyInput interface { pulumi.Input ToGetBackupPoliciesPolicyOutput() GetBackupPoliciesPolicyOutput ToGetBackupPoliciesPolicyOutputWithContext(context.Context) GetBackupPoliciesPolicyOutput }
GetBackupPoliciesPolicyInput is an input type that accepts GetBackupPoliciesPolicyArgs and GetBackupPoliciesPolicyOutput values. You can construct a concrete instance of `GetBackupPoliciesPolicyInput` via:
GetBackupPoliciesPolicyArgs{...}
type GetBackupPoliciesPolicyOutput ¶
type GetBackupPoliciesPolicyOutput struct{ *pulumi.OutputState }
func (GetBackupPoliciesPolicyOutput) BackupRetentionPeriod ¶
func (o GetBackupPoliciesPolicyOutput) BackupRetentionPeriod() pulumi.IntOutput
Data backup days. Valid values: `7` to `730`.
func (GetBackupPoliciesPolicyOutput) DbClusterId ¶
func (o GetBackupPoliciesPolicyOutput) DbClusterId() pulumi.StringOutput
The db cluster id.
func (GetBackupPoliciesPolicyOutput) ElementType ¶
func (GetBackupPoliciesPolicyOutput) ElementType() reflect.Type
func (GetBackupPoliciesPolicyOutput) Id ¶
func (o GetBackupPoliciesPolicyOutput) Id() pulumi.StringOutput
The ID of the Backup Policy.
func (GetBackupPoliciesPolicyOutput) PreferredBackupPeriods ¶
func (o GetBackupPoliciesPolicyOutput) PreferredBackupPeriods() pulumi.StringArrayOutput
DBCluster Backup period.
func (GetBackupPoliciesPolicyOutput) PreferredBackupTime ¶
func (o GetBackupPoliciesPolicyOutput) PreferredBackupTime() pulumi.StringOutput
Backup Time, UTC time.
func (GetBackupPoliciesPolicyOutput) Status ¶
func (o GetBackupPoliciesPolicyOutput) Status() pulumi.StringOutput
The status of the resource.
func (GetBackupPoliciesPolicyOutput) ToGetBackupPoliciesPolicyOutput ¶
func (o GetBackupPoliciesPolicyOutput) ToGetBackupPoliciesPolicyOutput() GetBackupPoliciesPolicyOutput
func (GetBackupPoliciesPolicyOutput) ToGetBackupPoliciesPolicyOutputWithContext ¶
func (o GetBackupPoliciesPolicyOutput) ToGetBackupPoliciesPolicyOutputWithContext(ctx context.Context) GetBackupPoliciesPolicyOutput
type GetBackupPoliciesResult ¶
type GetBackupPoliciesResult struct { DbClusterId string `pulumi:"dbClusterId"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` OutputFile *string `pulumi:"outputFile"` Policies []GetBackupPoliciesPolicy `pulumi:"policies"` }
A collection of values returned by getBackupPolicies.
func GetBackupPolicies ¶
func GetBackupPolicies(ctx *pulumi.Context, args *GetBackupPoliciesArgs, opts ...pulumi.InvokeOption) (*GetBackupPoliciesResult, error)
This data source provides the Click House Backup Policies of the current Alibaba Cloud user.
> **NOTE:** Available in v1.147.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/clickhouse" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/clickhouse"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := clickhouse.GetBackupPolicies(ctx, &clickhouse.GetBackupPoliciesArgs{ DbClusterId: "example_value", }, nil) if err != nil { return err } ctx.Export("clickHouseBackupPolicyId1", example.Policies[0].Id) return nil }) }
```
type GetBackupPoliciesResultOutput ¶
type GetBackupPoliciesResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getBackupPolicies.
func GetBackupPoliciesOutput ¶
func GetBackupPoliciesOutput(ctx *pulumi.Context, args GetBackupPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetBackupPoliciesResultOutput
func (GetBackupPoliciesResultOutput) DbClusterId ¶
func (o GetBackupPoliciesResultOutput) DbClusterId() pulumi.StringOutput
func (GetBackupPoliciesResultOutput) ElementType ¶
func (GetBackupPoliciesResultOutput) ElementType() reflect.Type
func (GetBackupPoliciesResultOutput) Id ¶
func (o GetBackupPoliciesResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetBackupPoliciesResultOutput) OutputFile ¶
func (o GetBackupPoliciesResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetBackupPoliciesResultOutput) Policies ¶
func (o GetBackupPoliciesResultOutput) Policies() GetBackupPoliciesPolicyArrayOutput
func (GetBackupPoliciesResultOutput) ToGetBackupPoliciesResultOutput ¶
func (o GetBackupPoliciesResultOutput) ToGetBackupPoliciesResultOutput() GetBackupPoliciesResultOutput
func (GetBackupPoliciesResultOutput) ToGetBackupPoliciesResultOutputWithContext ¶
func (o GetBackupPoliciesResultOutput) ToGetBackupPoliciesResultOutputWithContext(ctx context.Context) GetBackupPoliciesResultOutput
type GetDbClustersArgs ¶
type GetDbClustersArgs struct { // The DBCluster description. DbClusterDescription *string `pulumi:"dbClusterDescription"` // Default to `false`. Set it to `true` can output more details about resource attributes. EnableDetails *bool `pulumi:"enableDetails"` // A list of DBCluster IDs. Ids []string `pulumi:"ids"` OutputFile *string `pulumi:"outputFile"` // The status of the DBCluster. Valid values: `Running`,`Creating`,`Deleting`,`Restarting`,`Preparing`. Status *string `pulumi:"status"` }
A collection of arguments for invoking getDbClusters.
type GetDbClustersCluster ¶
type GetDbClustersCluster struct { // Alibaba Cloud account Id. AliUid string `pulumi:"aliUid"` // The ID of the business process flow. Bid string `pulumi:"bid"` // Instance family values include: Basic: Basic edition; HighAvailability: high availability edition. Category string `pulumi:"category"` // The Commodity Code of the DBCluster. CommodityCode string `pulumi:"commodityCode"` // Connection string. ConnectionString string `pulumi:"connectionString"` // The control version of the DBCluster. ControlVersion string `pulumi:"controlVersion"` // The creation time of the resource. CreateTime string `pulumi:"createTime"` // The db cluster access white list. DbClusterAccessWhiteLists []GetDbClustersClusterDbClusterAccessWhiteList `pulumi:"dbClusterAccessWhiteLists"` // The DBCluster description. DbClusterDescription string `pulumi:"dbClusterDescription"` DbClusterId string `pulumi:"dbClusterId"` // The DBCluster network type. DbClusterNetworkType string `pulumi:"dbClusterNetworkType"` // The DBCluster type. DbClusterType string `pulumi:"dbClusterType"` // The node class of the DBCluster. DbNodeClass string `pulumi:"dbNodeClass"` // The node count of the DBCluster. DbNodeCount string `pulumi:"dbNodeCount"` // The node storage of the DBCluster. DbNodeStorage string `pulumi:"dbNodeStorage"` // Key management service KMS key ID. EncryptionKey string `pulumi:"encryptionKey"` // Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty. EncryptionType string `pulumi:"encryptionType"` // The Engine of the DBCluster. Engine string `pulumi:"engine"` // The engine version of the DBCluster. EngineVersion string `pulumi:"engineVersion"` // The expiration time of the DBCluster. ExpireTime string `pulumi:"expireTime"` // The ID of the DBCluster. Id string `pulumi:"id"` // If the instance has expired. IsExpired string `pulumi:"isExpired"` // The lock mode of the DBCluster. LockMode string `pulumi:"lockMode"` // Lock reason of the DBCluster. LockReason string `pulumi:"lockReason"` // Examples of the maintenance window, in the format of hh:mmZ-hh:mm Z. MaintainTime string `pulumi:"maintainTime"` // The payment type of the resource. Valid values: `PayAsYouGo`,`Subscription`. PaymentType string `pulumi:"paymentType"` // Connection port. Port int `pulumi:"port"` // A public IP address for the connection. PublicConnectionString string `pulumi:"publicConnectionString"` // Public network port. PublicPort string `pulumi:"publicPort"` // Scale state. ScaleOutStatuses []GetDbClustersClusterScaleOutStatus `pulumi:"scaleOutStatuses"` // The status of the DBCluster. Valid values: `Running`,`Creating`,`Deleting`,`Restarting`,`Preparing`. Status string `pulumi:"status"` // Storage type of DBCluster. Valid values: `cloudEssd`, `cloudEfficiency`, `cloudEssdPl2`, `cloudEssdPl3`. StorageType string `pulumi:"storageType"` // Support fallback scheme. SupportBackup int `pulumi:"supportBackup"` // The system supports http port number. SupportHttpsPort bool `pulumi:"supportHttpsPort"` // Supports Mysql, and those of the ports. SupportMysqlPort bool `pulumi:"supportMysqlPort"` // Virtual Private Cloud (VPC cloud instance ID. VpcCloudInstanceId string `pulumi:"vpcCloudInstanceId"` // The VPC ID of the DBCluster. VpcId string `pulumi:"vpcId"` // The vswitch id of the DBCluster. VswitchId string `pulumi:"vswitchId"` // The zone ID of the DBCluster. ZoneId string `pulumi:"zoneId"` }
type GetDbClustersClusterArgs ¶
type GetDbClustersClusterArgs struct { // Alibaba Cloud account Id. AliUid pulumi.StringInput `pulumi:"aliUid"` // The ID of the business process flow. Bid pulumi.StringInput `pulumi:"bid"` // Instance family values include: Basic: Basic edition; HighAvailability: high availability edition. Category pulumi.StringInput `pulumi:"category"` // The Commodity Code of the DBCluster. CommodityCode pulumi.StringInput `pulumi:"commodityCode"` // Connection string. ConnectionString pulumi.StringInput `pulumi:"connectionString"` // The control version of the DBCluster. ControlVersion pulumi.StringInput `pulumi:"controlVersion"` // The creation time of the resource. CreateTime pulumi.StringInput `pulumi:"createTime"` // The db cluster access white list. DbClusterAccessWhiteLists GetDbClustersClusterDbClusterAccessWhiteListArrayInput `pulumi:"dbClusterAccessWhiteLists"` // The DBCluster description. DbClusterDescription pulumi.StringInput `pulumi:"dbClusterDescription"` DbClusterId pulumi.StringInput `pulumi:"dbClusterId"` // The DBCluster network type. DbClusterNetworkType pulumi.StringInput `pulumi:"dbClusterNetworkType"` // The DBCluster type. DbClusterType pulumi.StringInput `pulumi:"dbClusterType"` // The node class of the DBCluster. DbNodeClass pulumi.StringInput `pulumi:"dbNodeClass"` // The node count of the DBCluster. DbNodeCount pulumi.StringInput `pulumi:"dbNodeCount"` // The node storage of the DBCluster. DbNodeStorage pulumi.StringInput `pulumi:"dbNodeStorage"` // Key management service KMS key ID. EncryptionKey pulumi.StringInput `pulumi:"encryptionKey"` // Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty. EncryptionType pulumi.StringInput `pulumi:"encryptionType"` // The Engine of the DBCluster. Engine pulumi.StringInput `pulumi:"engine"` // The engine version of the DBCluster. EngineVersion pulumi.StringInput `pulumi:"engineVersion"` // The expiration time of the DBCluster. ExpireTime pulumi.StringInput `pulumi:"expireTime"` // The ID of the DBCluster. Id pulumi.StringInput `pulumi:"id"` // If the instance has expired. IsExpired pulumi.StringInput `pulumi:"isExpired"` // The lock mode of the DBCluster. LockMode pulumi.StringInput `pulumi:"lockMode"` // Lock reason of the DBCluster. LockReason pulumi.StringInput `pulumi:"lockReason"` // Examples of the maintenance window, in the format of hh:mmZ-hh:mm Z. MaintainTime pulumi.StringInput `pulumi:"maintainTime"` // The payment type of the resource. Valid values: `PayAsYouGo`,`Subscription`. PaymentType pulumi.StringInput `pulumi:"paymentType"` // Connection port. Port pulumi.IntInput `pulumi:"port"` // A public IP address for the connection. PublicConnectionString pulumi.StringInput `pulumi:"publicConnectionString"` // Public network port. PublicPort pulumi.StringInput `pulumi:"publicPort"` // Scale state. ScaleOutStatuses GetDbClustersClusterScaleOutStatusArrayInput `pulumi:"scaleOutStatuses"` // The status of the DBCluster. Valid values: `Running`,`Creating`,`Deleting`,`Restarting`,`Preparing`. Status pulumi.StringInput `pulumi:"status"` // Storage type of DBCluster. Valid values: `cloudEssd`, `cloudEfficiency`, `cloudEssdPl2`, `cloudEssdPl3`. StorageType pulumi.StringInput `pulumi:"storageType"` // Support fallback scheme. SupportBackup pulumi.IntInput `pulumi:"supportBackup"` // The system supports http port number. SupportHttpsPort pulumi.BoolInput `pulumi:"supportHttpsPort"` // Supports Mysql, and those of the ports. SupportMysqlPort pulumi.BoolInput `pulumi:"supportMysqlPort"` // Virtual Private Cloud (VPC cloud instance ID. VpcCloudInstanceId pulumi.StringInput `pulumi:"vpcCloudInstanceId"` // The VPC ID of the DBCluster. VpcId pulumi.StringInput `pulumi:"vpcId"` // The vswitch id of the DBCluster. VswitchId pulumi.StringInput `pulumi:"vswitchId"` // The zone ID of the DBCluster. ZoneId pulumi.StringInput `pulumi:"zoneId"` }
func (GetDbClustersClusterArgs) ElementType ¶
func (GetDbClustersClusterArgs) ElementType() reflect.Type
func (GetDbClustersClusterArgs) ToGetDbClustersClusterOutput ¶
func (i GetDbClustersClusterArgs) ToGetDbClustersClusterOutput() GetDbClustersClusterOutput
func (GetDbClustersClusterArgs) ToGetDbClustersClusterOutputWithContext ¶
func (i GetDbClustersClusterArgs) ToGetDbClustersClusterOutputWithContext(ctx context.Context) GetDbClustersClusterOutput
type GetDbClustersClusterArray ¶
type GetDbClustersClusterArray []GetDbClustersClusterInput
func (GetDbClustersClusterArray) ElementType ¶
func (GetDbClustersClusterArray) ElementType() reflect.Type
func (GetDbClustersClusterArray) ToGetDbClustersClusterArrayOutput ¶
func (i GetDbClustersClusterArray) ToGetDbClustersClusterArrayOutput() GetDbClustersClusterArrayOutput
func (GetDbClustersClusterArray) ToGetDbClustersClusterArrayOutputWithContext ¶
func (i GetDbClustersClusterArray) ToGetDbClustersClusterArrayOutputWithContext(ctx context.Context) GetDbClustersClusterArrayOutput
type GetDbClustersClusterArrayInput ¶
type GetDbClustersClusterArrayInput interface { pulumi.Input ToGetDbClustersClusterArrayOutput() GetDbClustersClusterArrayOutput ToGetDbClustersClusterArrayOutputWithContext(context.Context) GetDbClustersClusterArrayOutput }
GetDbClustersClusterArrayInput is an input type that accepts GetDbClustersClusterArray and GetDbClustersClusterArrayOutput values. You can construct a concrete instance of `GetDbClustersClusterArrayInput` via:
GetDbClustersClusterArray{ GetDbClustersClusterArgs{...} }
type GetDbClustersClusterArrayOutput ¶
type GetDbClustersClusterArrayOutput struct{ *pulumi.OutputState }
func (GetDbClustersClusterArrayOutput) ElementType ¶
func (GetDbClustersClusterArrayOutput) ElementType() reflect.Type
func (GetDbClustersClusterArrayOutput) Index ¶
func (o GetDbClustersClusterArrayOutput) Index(i pulumi.IntInput) GetDbClustersClusterOutput
func (GetDbClustersClusterArrayOutput) ToGetDbClustersClusterArrayOutput ¶
func (o GetDbClustersClusterArrayOutput) ToGetDbClustersClusterArrayOutput() GetDbClustersClusterArrayOutput
func (GetDbClustersClusterArrayOutput) ToGetDbClustersClusterArrayOutputWithContext ¶
func (o GetDbClustersClusterArrayOutput) ToGetDbClustersClusterArrayOutputWithContext(ctx context.Context) GetDbClustersClusterArrayOutput
type GetDbClustersClusterDbClusterAccessWhiteList ¶
type GetDbClustersClusterDbClusterAccessWhiteList struct { // Field `dbClusterIpArrayAttribute` has been removed from provider. DbClusterIpArrayAttribute string `pulumi:"dbClusterIpArrayAttribute"` // Whitelist group name. DbClusterIpArrayName string `pulumi:"dbClusterIpArrayName"` // The IP address list under the whitelist group. SecurityIpList string `pulumi:"securityIpList"` }
type GetDbClustersClusterDbClusterAccessWhiteListArgs ¶
type GetDbClustersClusterDbClusterAccessWhiteListArgs struct { // Field `dbClusterIpArrayAttribute` has been removed from provider. DbClusterIpArrayAttribute pulumi.StringInput `pulumi:"dbClusterIpArrayAttribute"` // Whitelist group name. DbClusterIpArrayName pulumi.StringInput `pulumi:"dbClusterIpArrayName"` // The IP address list under the whitelist group. SecurityIpList pulumi.StringInput `pulumi:"securityIpList"` }
func (GetDbClustersClusterDbClusterAccessWhiteListArgs) ElementType ¶
func (GetDbClustersClusterDbClusterAccessWhiteListArgs) ElementType() reflect.Type
func (GetDbClustersClusterDbClusterAccessWhiteListArgs) ToGetDbClustersClusterDbClusterAccessWhiteListOutput ¶
func (i GetDbClustersClusterDbClusterAccessWhiteListArgs) ToGetDbClustersClusterDbClusterAccessWhiteListOutput() GetDbClustersClusterDbClusterAccessWhiteListOutput
func (GetDbClustersClusterDbClusterAccessWhiteListArgs) ToGetDbClustersClusterDbClusterAccessWhiteListOutputWithContext ¶
func (i GetDbClustersClusterDbClusterAccessWhiteListArgs) ToGetDbClustersClusterDbClusterAccessWhiteListOutputWithContext(ctx context.Context) GetDbClustersClusterDbClusterAccessWhiteListOutput
type GetDbClustersClusterDbClusterAccessWhiteListArray ¶
type GetDbClustersClusterDbClusterAccessWhiteListArray []GetDbClustersClusterDbClusterAccessWhiteListInput
func (GetDbClustersClusterDbClusterAccessWhiteListArray) ElementType ¶
func (GetDbClustersClusterDbClusterAccessWhiteListArray) ElementType() reflect.Type
func (GetDbClustersClusterDbClusterAccessWhiteListArray) ToGetDbClustersClusterDbClusterAccessWhiteListArrayOutput ¶
func (i GetDbClustersClusterDbClusterAccessWhiteListArray) ToGetDbClustersClusterDbClusterAccessWhiteListArrayOutput() GetDbClustersClusterDbClusterAccessWhiteListArrayOutput
func (GetDbClustersClusterDbClusterAccessWhiteListArray) ToGetDbClustersClusterDbClusterAccessWhiteListArrayOutputWithContext ¶
func (i GetDbClustersClusterDbClusterAccessWhiteListArray) ToGetDbClustersClusterDbClusterAccessWhiteListArrayOutputWithContext(ctx context.Context) GetDbClustersClusterDbClusterAccessWhiteListArrayOutput
type GetDbClustersClusterDbClusterAccessWhiteListArrayInput ¶
type GetDbClustersClusterDbClusterAccessWhiteListArrayInput interface { pulumi.Input ToGetDbClustersClusterDbClusterAccessWhiteListArrayOutput() GetDbClustersClusterDbClusterAccessWhiteListArrayOutput ToGetDbClustersClusterDbClusterAccessWhiteListArrayOutputWithContext(context.Context) GetDbClustersClusterDbClusterAccessWhiteListArrayOutput }
GetDbClustersClusterDbClusterAccessWhiteListArrayInput is an input type that accepts GetDbClustersClusterDbClusterAccessWhiteListArray and GetDbClustersClusterDbClusterAccessWhiteListArrayOutput values. You can construct a concrete instance of `GetDbClustersClusterDbClusterAccessWhiteListArrayInput` via:
GetDbClustersClusterDbClusterAccessWhiteListArray{ GetDbClustersClusterDbClusterAccessWhiteListArgs{...} }
type GetDbClustersClusterDbClusterAccessWhiteListArrayOutput ¶
type GetDbClustersClusterDbClusterAccessWhiteListArrayOutput struct{ *pulumi.OutputState }
func (GetDbClustersClusterDbClusterAccessWhiteListArrayOutput) ElementType ¶
func (GetDbClustersClusterDbClusterAccessWhiteListArrayOutput) ElementType() reflect.Type
func (GetDbClustersClusterDbClusterAccessWhiteListArrayOutput) ToGetDbClustersClusterDbClusterAccessWhiteListArrayOutput ¶
func (o GetDbClustersClusterDbClusterAccessWhiteListArrayOutput) ToGetDbClustersClusterDbClusterAccessWhiteListArrayOutput() GetDbClustersClusterDbClusterAccessWhiteListArrayOutput
func (GetDbClustersClusterDbClusterAccessWhiteListArrayOutput) ToGetDbClustersClusterDbClusterAccessWhiteListArrayOutputWithContext ¶
func (o GetDbClustersClusterDbClusterAccessWhiteListArrayOutput) ToGetDbClustersClusterDbClusterAccessWhiteListArrayOutputWithContext(ctx context.Context) GetDbClustersClusterDbClusterAccessWhiteListArrayOutput
type GetDbClustersClusterDbClusterAccessWhiteListInput ¶
type GetDbClustersClusterDbClusterAccessWhiteListInput interface { pulumi.Input ToGetDbClustersClusterDbClusterAccessWhiteListOutput() GetDbClustersClusterDbClusterAccessWhiteListOutput ToGetDbClustersClusterDbClusterAccessWhiteListOutputWithContext(context.Context) GetDbClustersClusterDbClusterAccessWhiteListOutput }
GetDbClustersClusterDbClusterAccessWhiteListInput is an input type that accepts GetDbClustersClusterDbClusterAccessWhiteListArgs and GetDbClustersClusterDbClusterAccessWhiteListOutput values. You can construct a concrete instance of `GetDbClustersClusterDbClusterAccessWhiteListInput` via:
GetDbClustersClusterDbClusterAccessWhiteListArgs{...}
type GetDbClustersClusterDbClusterAccessWhiteListOutput ¶
type GetDbClustersClusterDbClusterAccessWhiteListOutput struct{ *pulumi.OutputState }
func (GetDbClustersClusterDbClusterAccessWhiteListOutput) DbClusterIpArrayAttribute ¶
func (o GetDbClustersClusterDbClusterAccessWhiteListOutput) DbClusterIpArrayAttribute() pulumi.StringOutput
Field `dbClusterIpArrayAttribute` has been removed from provider.
func (GetDbClustersClusterDbClusterAccessWhiteListOutput) DbClusterIpArrayName ¶
func (o GetDbClustersClusterDbClusterAccessWhiteListOutput) DbClusterIpArrayName() pulumi.StringOutput
Whitelist group name.
func (GetDbClustersClusterDbClusterAccessWhiteListOutput) ElementType ¶
func (GetDbClustersClusterDbClusterAccessWhiteListOutput) ElementType() reflect.Type
func (GetDbClustersClusterDbClusterAccessWhiteListOutput) SecurityIpList ¶
func (o GetDbClustersClusterDbClusterAccessWhiteListOutput) SecurityIpList() pulumi.StringOutput
The IP address list under the whitelist group.
func (GetDbClustersClusterDbClusterAccessWhiteListOutput) ToGetDbClustersClusterDbClusterAccessWhiteListOutput ¶
func (o GetDbClustersClusterDbClusterAccessWhiteListOutput) ToGetDbClustersClusterDbClusterAccessWhiteListOutput() GetDbClustersClusterDbClusterAccessWhiteListOutput
func (GetDbClustersClusterDbClusterAccessWhiteListOutput) ToGetDbClustersClusterDbClusterAccessWhiteListOutputWithContext ¶
func (o GetDbClustersClusterDbClusterAccessWhiteListOutput) ToGetDbClustersClusterDbClusterAccessWhiteListOutputWithContext(ctx context.Context) GetDbClustersClusterDbClusterAccessWhiteListOutput
type GetDbClustersClusterInput ¶
type GetDbClustersClusterInput interface { pulumi.Input ToGetDbClustersClusterOutput() GetDbClustersClusterOutput ToGetDbClustersClusterOutputWithContext(context.Context) GetDbClustersClusterOutput }
GetDbClustersClusterInput is an input type that accepts GetDbClustersClusterArgs and GetDbClustersClusterOutput values. You can construct a concrete instance of `GetDbClustersClusterInput` via:
GetDbClustersClusterArgs{...}
type GetDbClustersClusterOutput ¶
type GetDbClustersClusterOutput struct{ *pulumi.OutputState }
func (GetDbClustersClusterOutput) AliUid ¶
func (o GetDbClustersClusterOutput) AliUid() pulumi.StringOutput
Alibaba Cloud account Id.
func (GetDbClustersClusterOutput) Bid ¶
func (o GetDbClustersClusterOutput) Bid() pulumi.StringOutput
The ID of the business process flow.
func (GetDbClustersClusterOutput) Category ¶
func (o GetDbClustersClusterOutput) Category() pulumi.StringOutput
Instance family values include: Basic: Basic edition; HighAvailability: high availability edition.
func (GetDbClustersClusterOutput) CommodityCode ¶
func (o GetDbClustersClusterOutput) CommodityCode() pulumi.StringOutput
The Commodity Code of the DBCluster.
func (GetDbClustersClusterOutput) ConnectionString ¶
func (o GetDbClustersClusterOutput) ConnectionString() pulumi.StringOutput
Connection string.
func (GetDbClustersClusterOutput) ControlVersion ¶
func (o GetDbClustersClusterOutput) ControlVersion() pulumi.StringOutput
The control version of the DBCluster.
func (GetDbClustersClusterOutput) CreateTime ¶
func (o GetDbClustersClusterOutput) CreateTime() pulumi.StringOutput
The creation time of the resource.
func (GetDbClustersClusterOutput) DbClusterAccessWhiteLists ¶
func (o GetDbClustersClusterOutput) DbClusterAccessWhiteLists() GetDbClustersClusterDbClusterAccessWhiteListArrayOutput
The db cluster access white list.
func (GetDbClustersClusterOutput) DbClusterDescription ¶
func (o GetDbClustersClusterOutput) DbClusterDescription() pulumi.StringOutput
The DBCluster description.
func (GetDbClustersClusterOutput) DbClusterId ¶
func (o GetDbClustersClusterOutput) DbClusterId() pulumi.StringOutput
func (GetDbClustersClusterOutput) DbClusterNetworkType ¶
func (o GetDbClustersClusterOutput) DbClusterNetworkType() pulumi.StringOutput
The DBCluster network type.
func (GetDbClustersClusterOutput) DbClusterType ¶
func (o GetDbClustersClusterOutput) DbClusterType() pulumi.StringOutput
The DBCluster type.
func (GetDbClustersClusterOutput) DbNodeClass ¶
func (o GetDbClustersClusterOutput) DbNodeClass() pulumi.StringOutput
The node class of the DBCluster.
func (GetDbClustersClusterOutput) DbNodeCount ¶
func (o GetDbClustersClusterOutput) DbNodeCount() pulumi.StringOutput
The node count of the DBCluster.
func (GetDbClustersClusterOutput) DbNodeStorage ¶
func (o GetDbClustersClusterOutput) DbNodeStorage() pulumi.StringOutput
The node storage of the DBCluster.
func (GetDbClustersClusterOutput) ElementType ¶
func (GetDbClustersClusterOutput) ElementType() reflect.Type
func (GetDbClustersClusterOutput) EncryptionKey ¶
func (o GetDbClustersClusterOutput) EncryptionKey() pulumi.StringOutput
Key management service KMS key ID.
func (GetDbClustersClusterOutput) EncryptionType ¶
func (o GetDbClustersClusterOutput) EncryptionType() pulumi.StringOutput
Currently only supports ECS disk encryption, with a value of CloudDisk, not encrypted when empty.
func (GetDbClustersClusterOutput) Engine ¶
func (o GetDbClustersClusterOutput) Engine() pulumi.StringOutput
The Engine of the DBCluster.
func (GetDbClustersClusterOutput) EngineVersion ¶
func (o GetDbClustersClusterOutput) EngineVersion() pulumi.StringOutput
The engine version of the DBCluster.
func (GetDbClustersClusterOutput) ExpireTime ¶
func (o GetDbClustersClusterOutput) ExpireTime() pulumi.StringOutput
The expiration time of the DBCluster.
func (GetDbClustersClusterOutput) Id ¶
func (o GetDbClustersClusterOutput) Id() pulumi.StringOutput
The ID of the DBCluster.
func (GetDbClustersClusterOutput) IsExpired ¶
func (o GetDbClustersClusterOutput) IsExpired() pulumi.StringOutput
If the instance has expired.
func (GetDbClustersClusterOutput) LockMode ¶
func (o GetDbClustersClusterOutput) LockMode() pulumi.StringOutput
The lock mode of the DBCluster.
func (GetDbClustersClusterOutput) LockReason ¶
func (o GetDbClustersClusterOutput) LockReason() pulumi.StringOutput
Lock reason of the DBCluster.
func (GetDbClustersClusterOutput) MaintainTime ¶
func (o GetDbClustersClusterOutput) MaintainTime() pulumi.StringOutput
Examples of the maintenance window, in the format of hh:mmZ-hh:mm Z.
func (GetDbClustersClusterOutput) PaymentType ¶
func (o GetDbClustersClusterOutput) PaymentType() pulumi.StringOutput
The payment type of the resource. Valid values: `PayAsYouGo`,`Subscription`.
func (GetDbClustersClusterOutput) Port ¶
func (o GetDbClustersClusterOutput) Port() pulumi.IntOutput
Connection port.
func (GetDbClustersClusterOutput) PublicConnectionString ¶
func (o GetDbClustersClusterOutput) PublicConnectionString() pulumi.StringOutput
A public IP address for the connection.
func (GetDbClustersClusterOutput) PublicPort ¶
func (o GetDbClustersClusterOutput) PublicPort() pulumi.StringOutput
Public network port.
func (GetDbClustersClusterOutput) ScaleOutStatuses ¶
func (o GetDbClustersClusterOutput) ScaleOutStatuses() GetDbClustersClusterScaleOutStatusArrayOutput
Scale state.
func (GetDbClustersClusterOutput) Status ¶
func (o GetDbClustersClusterOutput) Status() pulumi.StringOutput
The status of the DBCluster. Valid values: `Running`,`Creating`,`Deleting`,`Restarting`,`Preparing`.
func (GetDbClustersClusterOutput) StorageType ¶
func (o GetDbClustersClusterOutput) StorageType() pulumi.StringOutput
Storage type of DBCluster. Valid values: `cloudEssd`, `cloudEfficiency`, `cloudEssdPl2`, `cloudEssdPl3`.
func (GetDbClustersClusterOutput) SupportBackup ¶
func (o GetDbClustersClusterOutput) SupportBackup() pulumi.IntOutput
Support fallback scheme.
func (GetDbClustersClusterOutput) SupportHttpsPort ¶
func (o GetDbClustersClusterOutput) SupportHttpsPort() pulumi.BoolOutput
The system supports http port number.
func (GetDbClustersClusterOutput) SupportMysqlPort ¶
func (o GetDbClustersClusterOutput) SupportMysqlPort() pulumi.BoolOutput
Supports Mysql, and those of the ports.
func (GetDbClustersClusterOutput) ToGetDbClustersClusterOutput ¶
func (o GetDbClustersClusterOutput) ToGetDbClustersClusterOutput() GetDbClustersClusterOutput
func (GetDbClustersClusterOutput) ToGetDbClustersClusterOutputWithContext ¶
func (o GetDbClustersClusterOutput) ToGetDbClustersClusterOutputWithContext(ctx context.Context) GetDbClustersClusterOutput
func (GetDbClustersClusterOutput) VpcCloudInstanceId ¶
func (o GetDbClustersClusterOutput) VpcCloudInstanceId() pulumi.StringOutput
Virtual Private Cloud (VPC cloud instance ID.
func (GetDbClustersClusterOutput) VpcId ¶
func (o GetDbClustersClusterOutput) VpcId() pulumi.StringOutput
The VPC ID of the DBCluster.
func (GetDbClustersClusterOutput) VswitchId ¶
func (o GetDbClustersClusterOutput) VswitchId() pulumi.StringOutput
The vswitch id of the DBCluster.
func (GetDbClustersClusterOutput) ZoneId ¶
func (o GetDbClustersClusterOutput) ZoneId() pulumi.StringOutput
The zone ID of the DBCluster.
type GetDbClustersClusterScaleOutStatusArgs ¶
type GetDbClustersClusterScaleOutStatusArgs struct { // Process. Progress pulumi.StringInput `pulumi:"progress"` // Efficiency. Ratio pulumi.StringInput `pulumi:"ratio"` }
func (GetDbClustersClusterScaleOutStatusArgs) ElementType ¶
func (GetDbClustersClusterScaleOutStatusArgs) ElementType() reflect.Type
func (GetDbClustersClusterScaleOutStatusArgs) ToGetDbClustersClusterScaleOutStatusOutput ¶
func (i GetDbClustersClusterScaleOutStatusArgs) ToGetDbClustersClusterScaleOutStatusOutput() GetDbClustersClusterScaleOutStatusOutput
func (GetDbClustersClusterScaleOutStatusArgs) ToGetDbClustersClusterScaleOutStatusOutputWithContext ¶
func (i GetDbClustersClusterScaleOutStatusArgs) ToGetDbClustersClusterScaleOutStatusOutputWithContext(ctx context.Context) GetDbClustersClusterScaleOutStatusOutput
type GetDbClustersClusterScaleOutStatusArray ¶
type GetDbClustersClusterScaleOutStatusArray []GetDbClustersClusterScaleOutStatusInput
func (GetDbClustersClusterScaleOutStatusArray) ElementType ¶
func (GetDbClustersClusterScaleOutStatusArray) ElementType() reflect.Type
func (GetDbClustersClusterScaleOutStatusArray) ToGetDbClustersClusterScaleOutStatusArrayOutput ¶
func (i GetDbClustersClusterScaleOutStatusArray) ToGetDbClustersClusterScaleOutStatusArrayOutput() GetDbClustersClusterScaleOutStatusArrayOutput
func (GetDbClustersClusterScaleOutStatusArray) ToGetDbClustersClusterScaleOutStatusArrayOutputWithContext ¶
func (i GetDbClustersClusterScaleOutStatusArray) ToGetDbClustersClusterScaleOutStatusArrayOutputWithContext(ctx context.Context) GetDbClustersClusterScaleOutStatusArrayOutput
type GetDbClustersClusterScaleOutStatusArrayInput ¶
type GetDbClustersClusterScaleOutStatusArrayInput interface { pulumi.Input ToGetDbClustersClusterScaleOutStatusArrayOutput() GetDbClustersClusterScaleOutStatusArrayOutput ToGetDbClustersClusterScaleOutStatusArrayOutputWithContext(context.Context) GetDbClustersClusterScaleOutStatusArrayOutput }
GetDbClustersClusterScaleOutStatusArrayInput is an input type that accepts GetDbClustersClusterScaleOutStatusArray and GetDbClustersClusterScaleOutStatusArrayOutput values. You can construct a concrete instance of `GetDbClustersClusterScaleOutStatusArrayInput` via:
GetDbClustersClusterScaleOutStatusArray{ GetDbClustersClusterScaleOutStatusArgs{...} }
type GetDbClustersClusterScaleOutStatusArrayOutput ¶
type GetDbClustersClusterScaleOutStatusArrayOutput struct{ *pulumi.OutputState }
func (GetDbClustersClusterScaleOutStatusArrayOutput) ElementType ¶
func (GetDbClustersClusterScaleOutStatusArrayOutput) ElementType() reflect.Type
func (GetDbClustersClusterScaleOutStatusArrayOutput) ToGetDbClustersClusterScaleOutStatusArrayOutput ¶
func (o GetDbClustersClusterScaleOutStatusArrayOutput) ToGetDbClustersClusterScaleOutStatusArrayOutput() GetDbClustersClusterScaleOutStatusArrayOutput
func (GetDbClustersClusterScaleOutStatusArrayOutput) ToGetDbClustersClusterScaleOutStatusArrayOutputWithContext ¶
func (o GetDbClustersClusterScaleOutStatusArrayOutput) ToGetDbClustersClusterScaleOutStatusArrayOutputWithContext(ctx context.Context) GetDbClustersClusterScaleOutStatusArrayOutput
type GetDbClustersClusterScaleOutStatusInput ¶
type GetDbClustersClusterScaleOutStatusInput interface { pulumi.Input ToGetDbClustersClusterScaleOutStatusOutput() GetDbClustersClusterScaleOutStatusOutput ToGetDbClustersClusterScaleOutStatusOutputWithContext(context.Context) GetDbClustersClusterScaleOutStatusOutput }
GetDbClustersClusterScaleOutStatusInput is an input type that accepts GetDbClustersClusterScaleOutStatusArgs and GetDbClustersClusterScaleOutStatusOutput values. You can construct a concrete instance of `GetDbClustersClusterScaleOutStatusInput` via:
GetDbClustersClusterScaleOutStatusArgs{...}
type GetDbClustersClusterScaleOutStatusOutput ¶
type GetDbClustersClusterScaleOutStatusOutput struct{ *pulumi.OutputState }
func (GetDbClustersClusterScaleOutStatusOutput) ElementType ¶
func (GetDbClustersClusterScaleOutStatusOutput) ElementType() reflect.Type
func (GetDbClustersClusterScaleOutStatusOutput) Progress ¶
func (o GetDbClustersClusterScaleOutStatusOutput) Progress() pulumi.StringOutput
Process.
func (GetDbClustersClusterScaleOutStatusOutput) Ratio ¶
func (o GetDbClustersClusterScaleOutStatusOutput) Ratio() pulumi.StringOutput
Efficiency.
func (GetDbClustersClusterScaleOutStatusOutput) ToGetDbClustersClusterScaleOutStatusOutput ¶
func (o GetDbClustersClusterScaleOutStatusOutput) ToGetDbClustersClusterScaleOutStatusOutput() GetDbClustersClusterScaleOutStatusOutput
func (GetDbClustersClusterScaleOutStatusOutput) ToGetDbClustersClusterScaleOutStatusOutputWithContext ¶
func (o GetDbClustersClusterScaleOutStatusOutput) ToGetDbClustersClusterScaleOutStatusOutputWithContext(ctx context.Context) GetDbClustersClusterScaleOutStatusOutput
type GetDbClustersOutputArgs ¶
type GetDbClustersOutputArgs struct { // The DBCluster description. DbClusterDescription pulumi.StringPtrInput `pulumi:"dbClusterDescription"` // Default to `false`. Set it to `true` can output more details about resource attributes. EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"` // A list of DBCluster IDs. Ids pulumi.StringArrayInput `pulumi:"ids"` OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` // The status of the DBCluster. Valid values: `Running`,`Creating`,`Deleting`,`Restarting`,`Preparing`. Status pulumi.StringPtrInput `pulumi:"status"` }
A collection of arguments for invoking getDbClusters.
func (GetDbClustersOutputArgs) ElementType ¶
func (GetDbClustersOutputArgs) ElementType() reflect.Type
type GetDbClustersResult ¶
type GetDbClustersResult struct { Clusters []GetDbClustersCluster `pulumi:"clusters"` DbClusterDescription *string `pulumi:"dbClusterDescription"` EnableDetails *bool `pulumi:"enableDetails"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` OutputFile *string `pulumi:"outputFile"` Status *string `pulumi:"status"` }
A collection of values returned by getDbClusters.
func GetDbClusters ¶
func GetDbClusters(ctx *pulumi.Context, args *GetDbClustersArgs, opts ...pulumi.InvokeOption) (*GetDbClustersResult, error)
This data source provides the Click House DBCluster of the current Alibaba Cloud user.
> **NOTE:** Available in v1.134.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/clickhouse" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/clickhouse"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { defaultDbCluster, err := clickhouse.NewDbCluster(ctx, "defaultDbCluster", &clickhouse.DbClusterArgs{ DbClusterVersion: pulumi.String("20.3.10.75"), Category: pulumi.String("Basic"), DbClusterClass: pulumi.String("S8"), DbClusterNetworkType: pulumi.String("vpc"), DbNodeGroupCount: pulumi.Int(1), PaymentType: pulumi.String("PayAsYouGo"), DbNodeStorage: pulumi.String("500"), StorageType: pulumi.String("cloud_essd"), VswitchId: pulumi.String("your_vswitch_id"), }) if err != nil { return err } defaultDbClusters := clickhouse.GetDbClustersOutput(ctx, clickhouse.GetDbClustersOutputArgs{ Ids: pulumi.StringArray{ defaultDbCluster.ID(), }, }, nil) ctx.Export("dbCluster", defaultDbClusters.ApplyT(func(defaultDbClusters clickhouse.GetDbClustersResult) (string, error) { return defaultDbClusters.Ids[0], nil }).(pulumi.StringOutput)) return nil }) }
```
type GetDbClustersResultOutput ¶
type GetDbClustersResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getDbClusters.
func GetDbClustersOutput ¶
func GetDbClustersOutput(ctx *pulumi.Context, args GetDbClustersOutputArgs, opts ...pulumi.InvokeOption) GetDbClustersResultOutput
func (GetDbClustersResultOutput) Clusters ¶
func (o GetDbClustersResultOutput) Clusters() GetDbClustersClusterArrayOutput
func (GetDbClustersResultOutput) DbClusterDescription ¶
func (o GetDbClustersResultOutput) DbClusterDescription() pulumi.StringPtrOutput
func (GetDbClustersResultOutput) ElementType ¶
func (GetDbClustersResultOutput) ElementType() reflect.Type
func (GetDbClustersResultOutput) EnableDetails ¶
func (o GetDbClustersResultOutput) EnableDetails() pulumi.BoolPtrOutput
func (GetDbClustersResultOutput) Id ¶
func (o GetDbClustersResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetDbClustersResultOutput) Ids ¶
func (o GetDbClustersResultOutput) Ids() pulumi.StringArrayOutput
func (GetDbClustersResultOutput) OutputFile ¶
func (o GetDbClustersResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetDbClustersResultOutput) Status ¶
func (o GetDbClustersResultOutput) Status() pulumi.StringPtrOutput
func (GetDbClustersResultOutput) ToGetDbClustersResultOutput ¶
func (o GetDbClustersResultOutput) ToGetDbClustersResultOutput() GetDbClustersResultOutput
func (GetDbClustersResultOutput) ToGetDbClustersResultOutputWithContext ¶
func (o GetDbClustersResultOutput) ToGetDbClustersResultOutputWithContext(ctx context.Context) GetDbClustersResultOutput
type GetRegionsArgs ¶
type GetRegionsArgs struct { // Set to true to match only the region configured in the provider. Default value: `true`. Current *bool `pulumi:"current"` OutputFile *string `pulumi:"outputFile"` // The Region ID. RegionId *string `pulumi:"regionId"` }
A collection of arguments for invoking getRegions.
type GetRegionsOutputArgs ¶
type GetRegionsOutputArgs struct { // Set to true to match only the region configured in the provider. Default value: `true`. Current pulumi.BoolPtrInput `pulumi:"current"` OutputFile pulumi.StringPtrInput `pulumi:"outputFile"` // The Region ID. RegionId pulumi.StringPtrInput `pulumi:"regionId"` }
A collection of arguments for invoking getRegions.
func (GetRegionsOutputArgs) ElementType ¶
func (GetRegionsOutputArgs) ElementType() reflect.Type
type GetRegionsRegion ¶
type GetRegionsRegion struct { // The Region ID. RegionId string `pulumi:"regionId"` // A list of available zone ids in the region_id. ZoneIds []GetRegionsRegionZoneId `pulumi:"zoneIds"` }
type GetRegionsRegionArgs ¶
type GetRegionsRegionArgs struct { // The Region ID. RegionId pulumi.StringInput `pulumi:"regionId"` // A list of available zone ids in the region_id. ZoneIds GetRegionsRegionZoneIdArrayInput `pulumi:"zoneIds"` }
func (GetRegionsRegionArgs) ElementType ¶
func (GetRegionsRegionArgs) ElementType() reflect.Type
func (GetRegionsRegionArgs) ToGetRegionsRegionOutput ¶
func (i GetRegionsRegionArgs) ToGetRegionsRegionOutput() GetRegionsRegionOutput
func (GetRegionsRegionArgs) ToGetRegionsRegionOutputWithContext ¶
func (i GetRegionsRegionArgs) ToGetRegionsRegionOutputWithContext(ctx context.Context) GetRegionsRegionOutput
type GetRegionsRegionArray ¶
type GetRegionsRegionArray []GetRegionsRegionInput
func (GetRegionsRegionArray) ElementType ¶
func (GetRegionsRegionArray) ElementType() reflect.Type
func (GetRegionsRegionArray) ToGetRegionsRegionArrayOutput ¶
func (i GetRegionsRegionArray) ToGetRegionsRegionArrayOutput() GetRegionsRegionArrayOutput
func (GetRegionsRegionArray) ToGetRegionsRegionArrayOutputWithContext ¶
func (i GetRegionsRegionArray) ToGetRegionsRegionArrayOutputWithContext(ctx context.Context) GetRegionsRegionArrayOutput
type GetRegionsRegionArrayInput ¶
type GetRegionsRegionArrayInput interface { pulumi.Input ToGetRegionsRegionArrayOutput() GetRegionsRegionArrayOutput ToGetRegionsRegionArrayOutputWithContext(context.Context) GetRegionsRegionArrayOutput }
GetRegionsRegionArrayInput is an input type that accepts GetRegionsRegionArray and GetRegionsRegionArrayOutput values. You can construct a concrete instance of `GetRegionsRegionArrayInput` via:
GetRegionsRegionArray{ GetRegionsRegionArgs{...} }
type GetRegionsRegionArrayOutput ¶
type GetRegionsRegionArrayOutput struct{ *pulumi.OutputState }
func (GetRegionsRegionArrayOutput) ElementType ¶
func (GetRegionsRegionArrayOutput) ElementType() reflect.Type
func (GetRegionsRegionArrayOutput) Index ¶
func (o GetRegionsRegionArrayOutput) Index(i pulumi.IntInput) GetRegionsRegionOutput
func (GetRegionsRegionArrayOutput) ToGetRegionsRegionArrayOutput ¶
func (o GetRegionsRegionArrayOutput) ToGetRegionsRegionArrayOutput() GetRegionsRegionArrayOutput
func (GetRegionsRegionArrayOutput) ToGetRegionsRegionArrayOutputWithContext ¶
func (o GetRegionsRegionArrayOutput) ToGetRegionsRegionArrayOutputWithContext(ctx context.Context) GetRegionsRegionArrayOutput
type GetRegionsRegionInput ¶
type GetRegionsRegionInput interface { pulumi.Input ToGetRegionsRegionOutput() GetRegionsRegionOutput ToGetRegionsRegionOutputWithContext(context.Context) GetRegionsRegionOutput }
GetRegionsRegionInput is an input type that accepts GetRegionsRegionArgs and GetRegionsRegionOutput values. You can construct a concrete instance of `GetRegionsRegionInput` via:
GetRegionsRegionArgs{...}
type GetRegionsRegionOutput ¶
type GetRegionsRegionOutput struct{ *pulumi.OutputState }
func (GetRegionsRegionOutput) ElementType ¶
func (GetRegionsRegionOutput) ElementType() reflect.Type
func (GetRegionsRegionOutput) RegionId ¶
func (o GetRegionsRegionOutput) RegionId() pulumi.StringOutput
The Region ID.
func (GetRegionsRegionOutput) ToGetRegionsRegionOutput ¶
func (o GetRegionsRegionOutput) ToGetRegionsRegionOutput() GetRegionsRegionOutput
func (GetRegionsRegionOutput) ToGetRegionsRegionOutputWithContext ¶
func (o GetRegionsRegionOutput) ToGetRegionsRegionOutputWithContext(ctx context.Context) GetRegionsRegionOutput
func (GetRegionsRegionOutput) ZoneIds ¶
func (o GetRegionsRegionOutput) ZoneIds() GetRegionsRegionZoneIdArrayOutput
A list of available zone ids in the region_id.
type GetRegionsRegionZoneId ¶
type GetRegionsRegionZoneIdArgs ¶
type GetRegionsRegionZoneIdArgs struct { // Whether to support vpc network. VpcEnabled pulumi.BoolInput `pulumi:"vpcEnabled"` // The zone ID. ZoneId pulumi.StringInput `pulumi:"zoneId"` }
func (GetRegionsRegionZoneIdArgs) ElementType ¶
func (GetRegionsRegionZoneIdArgs) ElementType() reflect.Type
func (GetRegionsRegionZoneIdArgs) ToGetRegionsRegionZoneIdOutput ¶
func (i GetRegionsRegionZoneIdArgs) ToGetRegionsRegionZoneIdOutput() GetRegionsRegionZoneIdOutput
func (GetRegionsRegionZoneIdArgs) ToGetRegionsRegionZoneIdOutputWithContext ¶
func (i GetRegionsRegionZoneIdArgs) ToGetRegionsRegionZoneIdOutputWithContext(ctx context.Context) GetRegionsRegionZoneIdOutput
type GetRegionsRegionZoneIdArray ¶
type GetRegionsRegionZoneIdArray []GetRegionsRegionZoneIdInput
func (GetRegionsRegionZoneIdArray) ElementType ¶
func (GetRegionsRegionZoneIdArray) ElementType() reflect.Type
func (GetRegionsRegionZoneIdArray) ToGetRegionsRegionZoneIdArrayOutput ¶
func (i GetRegionsRegionZoneIdArray) ToGetRegionsRegionZoneIdArrayOutput() GetRegionsRegionZoneIdArrayOutput
func (GetRegionsRegionZoneIdArray) ToGetRegionsRegionZoneIdArrayOutputWithContext ¶
func (i GetRegionsRegionZoneIdArray) ToGetRegionsRegionZoneIdArrayOutputWithContext(ctx context.Context) GetRegionsRegionZoneIdArrayOutput
type GetRegionsRegionZoneIdArrayInput ¶
type GetRegionsRegionZoneIdArrayInput interface { pulumi.Input ToGetRegionsRegionZoneIdArrayOutput() GetRegionsRegionZoneIdArrayOutput ToGetRegionsRegionZoneIdArrayOutputWithContext(context.Context) GetRegionsRegionZoneIdArrayOutput }
GetRegionsRegionZoneIdArrayInput is an input type that accepts GetRegionsRegionZoneIdArray and GetRegionsRegionZoneIdArrayOutput values. You can construct a concrete instance of `GetRegionsRegionZoneIdArrayInput` via:
GetRegionsRegionZoneIdArray{ GetRegionsRegionZoneIdArgs{...} }
type GetRegionsRegionZoneIdArrayOutput ¶
type GetRegionsRegionZoneIdArrayOutput struct{ *pulumi.OutputState }
func (GetRegionsRegionZoneIdArrayOutput) ElementType ¶
func (GetRegionsRegionZoneIdArrayOutput) ElementType() reflect.Type
func (GetRegionsRegionZoneIdArrayOutput) Index ¶
func (o GetRegionsRegionZoneIdArrayOutput) Index(i pulumi.IntInput) GetRegionsRegionZoneIdOutput
func (GetRegionsRegionZoneIdArrayOutput) ToGetRegionsRegionZoneIdArrayOutput ¶
func (o GetRegionsRegionZoneIdArrayOutput) ToGetRegionsRegionZoneIdArrayOutput() GetRegionsRegionZoneIdArrayOutput
func (GetRegionsRegionZoneIdArrayOutput) ToGetRegionsRegionZoneIdArrayOutputWithContext ¶
func (o GetRegionsRegionZoneIdArrayOutput) ToGetRegionsRegionZoneIdArrayOutputWithContext(ctx context.Context) GetRegionsRegionZoneIdArrayOutput
type GetRegionsRegionZoneIdInput ¶
type GetRegionsRegionZoneIdInput interface { pulumi.Input ToGetRegionsRegionZoneIdOutput() GetRegionsRegionZoneIdOutput ToGetRegionsRegionZoneIdOutputWithContext(context.Context) GetRegionsRegionZoneIdOutput }
GetRegionsRegionZoneIdInput is an input type that accepts GetRegionsRegionZoneIdArgs and GetRegionsRegionZoneIdOutput values. You can construct a concrete instance of `GetRegionsRegionZoneIdInput` via:
GetRegionsRegionZoneIdArgs{...}
type GetRegionsRegionZoneIdOutput ¶
type GetRegionsRegionZoneIdOutput struct{ *pulumi.OutputState }
func (GetRegionsRegionZoneIdOutput) ElementType ¶
func (GetRegionsRegionZoneIdOutput) ElementType() reflect.Type
func (GetRegionsRegionZoneIdOutput) ToGetRegionsRegionZoneIdOutput ¶
func (o GetRegionsRegionZoneIdOutput) ToGetRegionsRegionZoneIdOutput() GetRegionsRegionZoneIdOutput
func (GetRegionsRegionZoneIdOutput) ToGetRegionsRegionZoneIdOutputWithContext ¶
func (o GetRegionsRegionZoneIdOutput) ToGetRegionsRegionZoneIdOutputWithContext(ctx context.Context) GetRegionsRegionZoneIdOutput
func (GetRegionsRegionZoneIdOutput) VpcEnabled ¶
func (o GetRegionsRegionZoneIdOutput) VpcEnabled() pulumi.BoolOutput
Whether to support vpc network.
func (GetRegionsRegionZoneIdOutput) ZoneId ¶
func (o GetRegionsRegionZoneIdOutput) ZoneId() pulumi.StringOutput
The zone ID.
type GetRegionsResult ¶
type GetRegionsResult struct { Current *bool `pulumi:"current"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` OutputFile *string `pulumi:"outputFile"` RegionId *string `pulumi:"regionId"` Regions []GetRegionsRegion `pulumi:"regions"` }
A collection of values returned by getRegions.
func GetRegions ¶
func GetRegions(ctx *pulumi.Context, args *GetRegionsArgs, opts ...pulumi.InvokeOption) (*GetRegionsResult, error)
This data source provides the Click House Accounts of the current Alibaba Cloud user.
> **NOTE:** Available in v1.138.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/clickhouse" "github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/clickhouse"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := clickhouse.GetRegions(ctx, &clickhouse.GetRegionsArgs{ Current: pulumi.BoolRef(true), }, nil) if err != nil { return err } _, err = clickhouse.GetRegions(ctx, &clickhouse.GetRegionsArgs{ RegionId: pulumi.StringRef("cn-hangzhou"), }, nil) if err != nil { return err } return nil }) }
```
type GetRegionsResultOutput ¶
type GetRegionsResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getRegions.
func GetRegionsOutput ¶
func GetRegionsOutput(ctx *pulumi.Context, args GetRegionsOutputArgs, opts ...pulumi.InvokeOption) GetRegionsResultOutput
func (GetRegionsResultOutput) Current ¶
func (o GetRegionsResultOutput) Current() pulumi.BoolPtrOutput
func (GetRegionsResultOutput) ElementType ¶
func (GetRegionsResultOutput) ElementType() reflect.Type
func (GetRegionsResultOutput) Id ¶
func (o GetRegionsResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetRegionsResultOutput) OutputFile ¶
func (o GetRegionsResultOutput) OutputFile() pulumi.StringPtrOutput
func (GetRegionsResultOutput) RegionId ¶
func (o GetRegionsResultOutput) RegionId() pulumi.StringPtrOutput
func (GetRegionsResultOutput) Regions ¶
func (o GetRegionsResultOutput) Regions() GetRegionsRegionArrayOutput
func (GetRegionsResultOutput) ToGetRegionsResultOutput ¶
func (o GetRegionsResultOutput) ToGetRegionsResultOutput() GetRegionsResultOutput
func (GetRegionsResultOutput) ToGetRegionsResultOutputWithContext ¶
func (o GetRegionsResultOutput) ToGetRegionsResultOutputWithContext(ctx context.Context) GetRegionsResultOutput