Documentation ¶
Overview ¶
Aliyun SDK Copyright (C) Alibaba Cloud Computing All rights reserved. http://www.aliyun.com
Index ¶
- func Account_IsConstruct(x interface{}) *bool
- func DBCluster_IsConstruct(x interface{}) *bool
- func NewAccount_Override(a Account, scope alicloudroscdkcore.Construct, id *string, props *AccountProps, ...)
- func NewDBCluster_Override(d DBCluster, scope alicloudroscdkcore.Construct, id *string, ...)
- func NewRosAccount_Override(r RosAccount, scope alicloudroscdkcore.Construct, id *string, ...)
- func NewRosDBCluster_Override(r RosDBCluster, scope alicloudroscdkcore.Construct, id *string, ...)
- func RosAccount_IsConstruct(x interface{}) *bool
- func RosAccount_IsRosElement(x interface{}) *bool
- func RosAccount_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
- func RosAccount_ROS_RESOURCE_TYPE_NAME() *string
- func RosDBCluster_IsConstruct(x interface{}) *bool
- func RosDBCluster_IsRosElement(x interface{}) *bool
- func RosDBCluster_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
- func RosDBCluster_ROS_RESOURCE_TYPE_NAME() *string
- type Account
- type AccountProps
- type DBCluster
- type DBClusterProps
- type RosAccount
- type RosAccountProps
- type RosDBCluster
- type RosDBClusterProps
- type RosDBCluster_TagsProperty
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Account_IsConstruct ¶
func Account_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func DBCluster_IsConstruct ¶
func DBCluster_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func NewAccount_Override ¶
func NewAccount_Override(a Account, scope alicloudroscdkcore.Construct, id *string, props *AccountProps, enableResourcePropertyConstraint *bool)
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
func NewDBCluster_Override ¶
func NewDBCluster_Override(d DBCluster, scope alicloudroscdkcore.Construct, id *string, props *DBClusterProps, enableResourcePropertyConstraint *bool)
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
func NewRosAccount_Override ¶
func NewRosAccount_Override(r RosAccount, scope alicloudroscdkcore.Construct, id *string, props *RosAccountProps, enableResourcePropertyConstraint *bool)
func NewRosDBCluster_Override ¶
func NewRosDBCluster_Override(r RosDBCluster, scope alicloudroscdkcore.Construct, id *string, props *RosDBClusterProps, enableResourcePropertyConstraint *bool)
func RosAccount_IsConstruct ¶
func RosAccount_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func RosAccount_IsRosElement ¶
func RosAccount_IsRosElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func RosAccount_IsRosResource ¶
func RosAccount_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
Check whether the given construct is a RosResource.
func RosAccount_ROS_RESOURCE_TYPE_NAME ¶
func RosAccount_ROS_RESOURCE_TYPE_NAME() *string
func RosDBCluster_IsConstruct ¶
func RosDBCluster_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func RosDBCluster_IsRosElement ¶
func RosDBCluster_IsRosElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func RosDBCluster_IsRosResource ¶
func RosDBCluster_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
Check whether the given construct is a RosResource.
func RosDBCluster_ROS_RESOURCE_TYPE_NAME ¶
func RosDBCluster_ROS_RESOURCE_TYPE_NAME() *string
Types ¶
type Account ¶
type Account interface { alicloudroscdkcore.Resource // Attribute AccountName: The name of the account. AttrAccountName() alicloudroscdkcore.IResolvable // Attribute AccountType: The type of the account. AttrAccountType() alicloudroscdkcore.IResolvable // Attribute DBClusterId: The ID of the cluster. AttrDbClusterId() alicloudroscdkcore.IResolvable EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) Id() *string SetId(val *string) // The construct tree node associated with this construct. Node() alicloudroscdkcore.ConstructNode // Returns a string-encoded token that resolves to the physical name that should be passed to the ROS resource. // // This value will resolve to one of the following: // - a concrete value (e.g. `"my-awesome-bucket"`) // - `undefined`, when a name should be generated by ROS // - a concrete name generated automatically during synthesis, in // cross-environment scenarios. // Experimental. PhysicalName() *string Props() *AccountProps SetProps(val *AccountProps) Ref() *string Resource() alicloudroscdkcore.RosResource SetResource(val alicloudroscdkcore.RosResource) Scope() alicloudroscdkcore.Construct SetScope(val alicloudroscdkcore.Construct) // The stack in which this resource is defined. Stack() alicloudroscdkcore.Stack AddCondition(condition alicloudroscdkcore.RosCondition) AddCount(count interface{}) AddDependency(resource alicloudroscdkcore.Resource) AddResourceDesc(desc *string) ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy) GeneratePhysicalName() *string GetAtt(name *string) alicloudroscdkcore.IResolvable // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. OnPrepare() // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. OnValidate() *[]*string // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. Prepare() SetMetadata(key *string, value interface{}) // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. Synthesize(session alicloudroscdkcore.ISynthesisSession) // Returns a string representation of this construct. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. Validate() *[]*string }
This class encapsulates and extends the ROS resource type `ALIYUN::ADB::Account`, which is used to create a database account for an AnalyticDB for MySQL cluster.
func NewAccount ¶
func NewAccount(scope alicloudroscdkcore.Construct, id *string, props *AccountProps, enableResourcePropertyConstraint *bool) Account
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
type AccountProps ¶
type AccountProps struct { // Property accountName: The name of the account. AccountName interface{} `field:"required" json:"accountName" yaml:"accountName"` // Property accountPassword: The password of the account. // // The password must contain uppercase letters, lowercase letters, digits, and special // characters. // Special characters include ! @ # $ % ^ & * () _ + - and = // The password must be 8 to 32 characters in length. AccountPassword interface{} `field:"required" json:"accountPassword" yaml:"accountPassword"` // Property dbClusterId: The ID of the cluster. DbClusterId interface{} `field:"required" json:"dbClusterId" yaml:"dbClusterId"` // Property accountDescription: The description of the account. // // The description cannot start with http:\/\/or https:\/\/. // The description can be up to 256 characters in length. AccountDescription interface{} `field:"optional" json:"accountDescription" yaml:"accountDescription"` // Property accountType: Normal: standard account Super: privileged account. AccountType interface{} `field:"optional" json:"accountType" yaml:"accountType"` }
Properties for defining a `Account`.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-adb-account
type DBCluster ¶
type DBCluster interface { alicloudroscdkcore.Resource // Attribute ConnectionString: Vpc connection string. AttrConnectionString() alicloudroscdkcore.IResolvable // Attribute DBClusterId: The ID of the cluster. AttrDbClusterId() alicloudroscdkcore.IResolvable // Attribute OrderId: The ID of the order. AttrOrderId() alicloudroscdkcore.IResolvable EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) Id() *string SetId(val *string) // The construct tree node associated with this construct. Node() alicloudroscdkcore.ConstructNode // Returns a string-encoded token that resolves to the physical name that should be passed to the ROS resource. // // This value will resolve to one of the following: // - a concrete value (e.g. `"my-awesome-bucket"`) // - `undefined`, when a name should be generated by ROS // - a concrete name generated automatically during synthesis, in // cross-environment scenarios. // Experimental. PhysicalName() *string Props() *DBClusterProps SetProps(val *DBClusterProps) Ref() *string Resource() alicloudroscdkcore.RosResource SetResource(val alicloudroscdkcore.RosResource) Scope() alicloudroscdkcore.Construct SetScope(val alicloudroscdkcore.Construct) // The stack in which this resource is defined. Stack() alicloudroscdkcore.Stack AddCondition(condition alicloudroscdkcore.RosCondition) AddCount(count interface{}) AddDependency(resource alicloudroscdkcore.Resource) AddResourceDesc(desc *string) ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy) GeneratePhysicalName() *string GetAtt(name *string) alicloudroscdkcore.IResolvable // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. OnPrepare() // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. OnValidate() *[]*string // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. Prepare() SetMetadata(key *string, value interface{}) // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. Synthesize(session alicloudroscdkcore.ISynthesisSession) // Returns a string representation of this construct. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. Validate() *[]*string }
This class encapsulates and extends the ROS resource type `ALIYUN::ADB::DBCluster`, which is used to create an AnalyticDB for MySQL cluster.
func NewDBCluster ¶
func NewDBCluster(scope alicloudroscdkcore.Construct, id *string, props *DBClusterProps, enableResourcePropertyConstraint *bool) DBCluster
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
type DBClusterProps ¶
type DBClusterProps struct { // Property dbClusterCategory: The edition of the cluster. // // Valid values when the cluster is in reserved mode: // Basic // Cluster // When the cluster is in elastic mode, set the value to MixedStorage. DbClusterCategory interface{} `field:"required" json:"dbClusterCategory" yaml:"dbClusterCategory"` // Property dbClusterVersion: The version of the cluster. // // Set the value to 3.0. DbClusterVersion interface{} `field:"required" json:"dbClusterVersion" yaml:"dbClusterVersion"` // Property mode: The mode of the cluster. // // Valid values: // Reserver: the reserved mode // Flexible: the elastic mode. Mode interface{} `field:"required" json:"mode" yaml:"mode"` // Property payType: The billing method of the cluster. // // Valid values: // Postpaid: pay-as-you-go // Prepaid: subscription. PayType interface{} `field:"required" json:"payType" yaml:"payType"` // Property vpcId: The ID of the VPC. VpcId interface{} `field:"required" json:"vpcId" yaml:"vpcId"` // Property vSwitchId: The ID of the vSwitch. VSwitchId interface{} `field:"required" json:"vSwitchId" yaml:"vSwitchId"` // Property computeResource: The computing resource of the cluster. // // This parameter is required in elastic mode. ComputeResource interface{} `field:"optional" json:"computeResource" yaml:"computeResource"` // Property dbClusterClass: The specification of the cluster. // // This parameter is required in reserved mode. Valid values: // Basic Edition: T8, T16, T32, and T52 // Cluster Edition: C8 and C32. DbClusterClass interface{} `field:"optional" json:"dbClusterClass" yaml:"dbClusterClass"` // Property dbClusterDescription: The description of the cluster. DbClusterDescription interface{} `field:"optional" json:"dbClusterDescription" yaml:"dbClusterDescription"` // Property dbNodeGroupCount: The number of node groups. // // This parameter is required in reserved mode. Valid values: // T8, T16, T32, and T52: 1 // C8 and C32: 1 to 128. DbNodeGroupCount interface{} `field:"optional" json:"dbNodeGroupCount" yaml:"dbNodeGroupCount"` // Property dbNodeStorage: The storage space of the node. // // This parameter is required in reserved mode. Unit: GB. Valid values: // T8: 100 to 500 // T16 and T32: 100 to 2000 // T52: 100 to 4000 // C8: 100 to 1000 // C32: 100 to 8000 // Note The storage space less than 1,000 GB increases in increments of 100 GB. The storage space greater than 1,000 GB increases in increments of 1,000 GB. DbNodeStorage interface{} `field:"optional" json:"dbNodeStorage" yaml:"dbNodeStorage"` // Property elasticIoResource: Elastic IO Unit Note the flexible mode cluster will use this parameter. ElasticIoResource interface{} `field:"optional" json:"elasticIoResource" yaml:"elasticIoResource"` // Property executorCount: ExecutorCount. ExecutorCount interface{} `field:"optional" json:"executorCount" yaml:"executorCount"` // Property period: Valid values when the Period parameter is set to Month: 1, 2, 3, 4, 5, 6, 7, 8, and 9. // // Valid values when the Period parameter is set to Year: 1, 2, and 3. Period interface{} `field:"optional" json:"period" yaml:"period"` // Property periodType: The subscription period for the cluster. // // This parameter is required if the PayType parameter is set to Prepaid. Valid values: // Year: subscription on a yearly basis // Month: subscription on a monthly basis. PeriodType interface{} `field:"optional" json:"periodType" yaml:"periodType"` // Property resourceGroupId: The ID of the resource group. ResourceGroupId interface{} `field:"optional" json:"resourceGroupId" yaml:"resourceGroupId"` // Property tags: Tags to attach to instance. // // Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required. Tags *[]*RosDBCluster_TagsProperty `field:"optional" json:"tags" yaml:"tags"` // Property zoneId: The zone ID of the cluster. // // You can call the DescribeRegions operation to query the most recent zone list. ZoneId interface{} `field:"optional" json:"zoneId" yaml:"zoneId"` }
Properties for defining a `DBCluster`.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-adb-dbcluster
type RosAccount ¶
type RosAccount interface { alicloudroscdkcore.RosResource AccountDescription() interface{} SetAccountDescription(val interface{}) AccountName() interface{} SetAccountName(val interface{}) AccountPassword() interface{} SetAccountPassword(val interface{}) AccountType() interface{} SetAccountType(val interface{}) AttrAccountName() alicloudroscdkcore.IResolvable AttrAccountType() alicloudroscdkcore.IResolvable AttrDbClusterId() alicloudroscdkcore.IResolvable // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aliyun:ros:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string DbClusterId() interface{} SetDbClusterId(val interface{}) EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) // The logical ID for this stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The construct tree node associated with this construct. Node() alicloudroscdkcore.ConstructNode // Return a string that will be resolved to a RosTemplate `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // Options for this resource, such as condition, update policy etc. RosOptions() alicloudroscdkcore.IRosResourceOptions RosProperties() *map[string]interface{} // ROS resource type. RosResourceType() *string // The stack in which this element is defined. // // RosElements must be defined within a stack scope (directly or indirectly). Stack() alicloudroscdkcore.Stack // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} AddCondition(con alicloudroscdkcore.RosCondition) AddCount(count interface{}) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependsOn(target alicloudroscdkcore.RosResource) AddDesc(desc *string) AddMetaData(key *string, value interface{}) // Adds an override to the synthesized ROS resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // For example, // “`typescript // addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']) // addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE') // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “`. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) AddRosDependency(target *string) // Sets the deletion policy of the resource based on the removal policy specified. ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy, options *alicloudroscdkcore.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string) alicloudroscdkcore.Reference // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. OnPrepare() // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. OnValidate() *[]*string // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. Synthesize(session alicloudroscdkcore.ISynthesisSession) // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. Validate() *[]*string ValidateProperties(_properties interface{}) }
This class is a base encapsulation around the ROS resource type `ALIYUN::ADB::Account`, which is used to create a database account for an AnalyticDB for MySQL cluster.
func NewRosAccount ¶
func NewRosAccount(scope alicloudroscdkcore.Construct, id *string, props *RosAccountProps, enableResourcePropertyConstraint *bool) RosAccount
type RosAccountProps ¶
type RosAccountProps struct { AccountName interface{} `field:"required" json:"accountName" yaml:"accountName"` AccountPassword interface{} `field:"required" json:"accountPassword" yaml:"accountPassword"` DbClusterId interface{} `field:"required" json:"dbClusterId" yaml:"dbClusterId"` AccountDescription interface{} `field:"optional" json:"accountDescription" yaml:"accountDescription"` AccountType interface{} `field:"optional" json:"accountType" yaml:"accountType"` }
Properties for defining a `RosAccount`.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-adb-account
type RosDBCluster ¶
type RosDBCluster interface { alicloudroscdkcore.RosResource AttrConnectionString() alicloudroscdkcore.IResolvable AttrDbClusterId() alicloudroscdkcore.IResolvable AttrOrderId() alicloudroscdkcore.IResolvable ComputeResource() interface{} SetComputeResource(val interface{}) // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aliyun:ros:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string DbClusterCategory() interface{} SetDbClusterCategory(val interface{}) DbClusterClass() interface{} SetDbClusterClass(val interface{}) DbClusterDescription() interface{} SetDbClusterDescription(val interface{}) DbClusterVersion() interface{} SetDbClusterVersion(val interface{}) DbNodeGroupCount() interface{} SetDbNodeGroupCount(val interface{}) DbNodeStorage() interface{} SetDbNodeStorage(val interface{}) ElasticIoResource() interface{} SetElasticIoResource(val interface{}) EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) ExecutorCount() interface{} SetExecutorCount(val interface{}) // The logical ID for this stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string Mode() interface{} SetMode(val interface{}) // The construct tree node associated with this construct. Node() alicloudroscdkcore.ConstructNode PayType() interface{} SetPayType(val interface{}) Period() interface{} SetPeriod(val interface{}) PeriodType() interface{} SetPeriodType(val interface{}) // Return a string that will be resolved to a RosTemplate `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string ResourceGroupId() interface{} SetResourceGroupId(val interface{}) // Options for this resource, such as condition, update policy etc. RosOptions() alicloudroscdkcore.IRosResourceOptions RosProperties() *map[string]interface{} // ROS resource type. RosResourceType() *string // The stack in which this element is defined. // // RosElements must be defined within a stack scope (directly or indirectly). Stack() alicloudroscdkcore.Stack Tags() *[]*RosDBCluster_TagsProperty SetTags(val *[]*RosDBCluster_TagsProperty) // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} VpcId() interface{} SetVpcId(val interface{}) VSwitchId() interface{} SetVSwitchId(val interface{}) ZoneId() interface{} SetZoneId(val interface{}) AddCondition(con alicloudroscdkcore.RosCondition) AddCount(count interface{}) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependsOn(target alicloudroscdkcore.RosResource) AddDesc(desc *string) AddMetaData(key *string, value interface{}) // Adds an override to the synthesized ROS resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // For example, // “`typescript // addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']) // addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE') // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “`. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) AddRosDependency(target *string) // Sets the deletion policy of the resource based on the removal policy specified. ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy, options *alicloudroscdkcore.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string) alicloudroscdkcore.Reference // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. OnPrepare() // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. OnValidate() *[]*string // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} // Allows this construct to emit artifacts into the cloud assembly during synthesis. // // This method is usually implemented by framework-level constructs such as `Stack` and `Asset` // as they participate in synthesizing the cloud assembly. Synthesize(session alicloudroscdkcore.ISynthesisSession) // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. Validate() *[]*string ValidateProperties(_properties interface{}) }
This class is a base encapsulation around the ROS resource type `ALIYUN::ADB::DBCluster`, which is used to create an AnalyticDB for MySQL cluster.
func NewRosDBCluster ¶
func NewRosDBCluster(scope alicloudroscdkcore.Construct, id *string, props *RosDBClusterProps, enableResourcePropertyConstraint *bool) RosDBCluster
type RosDBClusterProps ¶
type RosDBClusterProps struct { DbClusterCategory interface{} `field:"required" json:"dbClusterCategory" yaml:"dbClusterCategory"` DbClusterVersion interface{} `field:"required" json:"dbClusterVersion" yaml:"dbClusterVersion"` Mode interface{} `field:"required" json:"mode" yaml:"mode"` PayType interface{} `field:"required" json:"payType" yaml:"payType"` VpcId interface{} `field:"required" json:"vpcId" yaml:"vpcId"` VSwitchId interface{} `field:"required" json:"vSwitchId" yaml:"vSwitchId"` ComputeResource interface{} `field:"optional" json:"computeResource" yaml:"computeResource"` DbClusterClass interface{} `field:"optional" json:"dbClusterClass" yaml:"dbClusterClass"` DbClusterDescription interface{} `field:"optional" json:"dbClusterDescription" yaml:"dbClusterDescription"` DbNodeGroupCount interface{} `field:"optional" json:"dbNodeGroupCount" yaml:"dbNodeGroupCount"` DbNodeStorage interface{} `field:"optional" json:"dbNodeStorage" yaml:"dbNodeStorage"` ElasticIoResource interface{} `field:"optional" json:"elasticIoResource" yaml:"elasticIoResource"` ExecutorCount interface{} `field:"optional" json:"executorCount" yaml:"executorCount"` Period interface{} `field:"optional" json:"period" yaml:"period"` PeriodType interface{} `field:"optional" json:"periodType" yaml:"periodType"` ResourceGroupId interface{} `field:"optional" json:"resourceGroupId" yaml:"resourceGroupId"` Tags *[]*RosDBCluster_TagsProperty `field:"optional" json:"tags" yaml:"tags"` ZoneId interface{} `field:"optional" json:"zoneId" yaml:"zoneId"` }
Properties for defining a `RosDBCluster`.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-adb-dbcluster
type RosDBCluster_TagsProperty ¶
type RosDBCluster_TagsProperty struct { Key interface{} `field:"required" json:"key" yaml:"key"` Value interface{} `field:"optional" json:"value" yaml:"value"` }