RosDBInstanceClone
This class is a base encapsulation around the ROS resource type ALIYUN::RDS::DBInstanceClone
, which is used to restore historical data of an instance to a new instance.
The new instance is the clone of the instance.
Initializers
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkrds"
alicloudroscdkrds.NewRosDBInstanceClone(scope Construct, id *string, props RosDBInstanceCloneProps, enableResourcePropertyConstraint *bool) RosDBInstanceClone
Name | Type | Description |
---|---|---|
scope |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct |
- scope in which this resource is defined. |
id |
*string |
- scoped id of the resource. |
props |
RosDBInstanceCloneProps |
- resource properties. |
enableResourcePropertyConstraint |
*bool |
No description. |
scope
Required
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct
scope in which this resource is defined.
id
Required
- Type: *string
scoped id of the resource.
props
Required
- Type: RosDBInstanceCloneProps
resource properties.
enableResourcePropertyConstraint
Required
- Type: *bool
Methods
Name | Description |
---|---|
ToString |
Returns a string representation of this construct. |
Synthesize |
Allows this construct to emit artifacts into the cloud assembly during synthesis. |
OverrideLogicalId |
Overrides the auto-generated logical ID with a specific ID. |
AddCondition |
No description. |
AddCount |
No description. |
AddDeletionOverride |
Syntactic sugar for addOverride(path, undefined) . |
AddDependsOn |
Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. |
AddDesc |
No description. |
AddMetaData |
No description. |
AddOverride |
Adds an override to the synthesized ROS resource. |
AddPropertyDeletionOverride |
Adds an override that deletes the value of a property from the resource definition. |
AddPropertyOverride |
Adds an override to a resource property. |
AddRosDependency |
No description. |
ApplyRemovalPolicy |
Sets the deletion policy of the resource based on the removal policy specified. |
GetAtt |
Returns a token for an runtime attribute of this resource. |
ToString
func ToString() *string
Returns a string representation of this construct.
Synthesize
func Synthesize(session ISynthesisSession)
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.
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ISynthesisSession
The synthesis session.
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
- Type: *string
The new logical ID to use for this stack element.
AddCondition
func AddCondition(con RosCondition)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosCondition
AddCount
func AddCount(count interface{})
- Type: interface{}
AddDeletionOverride
func AddDeletionOverride(path *string)
Syntactic sugar for addOverride(path, undefined)
.
- Type: *string
The path of the value to delete.
AddDependsOn
func AddDependsOn(target RosResource)
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.
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource
AddDesc
func AddDesc(desc *string)
- Type: *string
AddMetaData
func AddMetaData(key *string, value interface{})
- Type: *string
- Type: interface{}
AddOverride
func AddOverride(path *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,
addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute'])
addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE')
would add the overrides
"Properties": {
"GlobalSecondaryIndexes": [
{
"Projection": {
"NonKeyAttributes": [ "myattribute" ]
...
}
...
},
{
"ProjectionType": "INCLUDE"
...
},
]
...
}
- Type: *string
The path of the property, you can use dot notation to override values in complex types.
Any intermdediate keys will be created as needed.
- Type: interface{}
The value.
Could be primitive or complex.
AddPropertyDeletionOverride
func AddPropertyDeletionOverride(propertyPath *string)
Adds an override that deletes the value of a property from the resource definition.
- Type: *string
The path to the property.
AddPropertyOverride
func AddPropertyOverride(propertyPath *string, value interface{})
Adds an override to a resource property.
Syntactic sugar for addOverride("Properties.<...>", value)
.
- Type: *string
The path of the property.
- Type: interface{}
The value.
AddRosDependency
func AddRosDependency(target *string)
- Type: *string
ApplyRemovalPolicy
func ApplyRemovalPolicy(policy RemovalPolicy, options RemovalPolicyOptions)
Sets the deletion policy of the resource based on the removal policy specified.
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RemovalPolicy
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RemovalPolicyOptions
GetAtt
func GetAtt(attributeName *string) Reference
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.
- Type: *string
The name of the attribute.
Static Functions
Name | Description |
---|---|
IsConstruct |
Return whether the given object is a Construct. |
IsRosElement |
Returns true if a construct is a stack element (i.e. part of the synthesized template). |
IsRosResource |
Check whether the given construct is a RosResource. |
IsConstruct
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkrds"
alicloudroscdkrds.RosDBInstanceClone_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
- Type: interface{}
IsRosElement
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkrds"
alicloudroscdkrds.RosDBInstanceClone_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.
- Type: interface{}
IsRosResource
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkrds"
alicloudroscdkrds.RosDBInstanceClone_IsRosResource(construct IConstruct) *bool
Check whether the given construct is a RosResource.
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IConstruct
Properties
Name | Type | Description |
---|---|---|
Node |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode |
The construct tree node associated with this construct. |
CreationStack |
[]string |
No description. |
LogicalId |
*string |
The logical ID for this stack element. |
Stack |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack |
The stack in which this element is defined. |
Ref |
*string |
Return a string that will be resolved to a RosTemplate { Ref } for this element. |
RosOptions |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IRosResourceOptions |
Options for this resource, such as condition, update policy etc. |
RosResourceType |
*string |
ROS resource type. |
AttrDbInstanceId |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
No description. |
AttrInnerConnectionString |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
No description. |
AttrInnerIpAddress |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
No description. |
AttrInnerPort |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
No description. |
AttrPublicConnectionString |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
No description. |
AttrPublicIpAddress |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
No description. |
AttrPublicPort |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
No description. |
DbInstanceId |
interface{} |
No description. |
EnableResourcePropertyConstraint |
*bool |
No description. |
PayType |
interface{} |
No description. |
AllocatePublicConnection |
interface{} |
No description. |
BackupId |
interface{} |
No description. |
BackupRetentionPeriod |
interface{} |
No description. |
BackupType |
interface{} |
No description. |
Category |
interface{} |
No description. |
ConnectionStringPrefix |
interface{} |
No description. |
ConnectionStringType |
interface{} |
No description. |
DbInstanceClass |
interface{} |
No description. |
DbInstanceDescription |
interface{} |
No description. |
DbInstanceStorage |
interface{} |
No description. |
DbInstanceStorageType |
interface{} |
No description. |
DbMappings |
interface{} |
No description. |
DbNames |
interface{} |
No description. |
DedicatedHostGroupId |
interface{} |
No description. |
InstanceNetworkType |
interface{} |
No description. |
MaintainTime |
interface{} |
No description. |
MasterUsername |
interface{} |
No description. |
MasterUserPassword |
interface{} |
No description. |
MasterUserType |
interface{} |
No description. |
Period |
interface{} |
No description. |
PeriodType |
interface{} |
No description. |
Port |
interface{} |
No description. |
PreferredBackupPeriod |
interface{} |
No description. |
PreferredBackupTime |
interface{} |
No description. |
PrivateIpAddress |
interface{} |
No description. |
RestoreTable |
interface{} |
No description. |
RestoreTime |
interface{} |
No description. |
SecurityGroupId |
interface{} |
No description. |
SecurityIpList |
interface{} |
No description. |
SlaveZoneIds |
interface{} |
No description. |
SqlCollectorStatus |
interface{} |
No description. |
SslSetting |
interface{} |
No description. |
TableMeta |
interface{} |
No description. |
Tags |
*map[string]interface{} |
No description. |
TimeoutInMinutes |
interface{} |
No description. |
VpcId |
interface{} |
No description. |
VSwitchId |
interface{} |
No description. |
ZoneId |
interface{} |
No description. |
Node
Required
func Node() ConstructNode
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode
The construct tree node associated with this construct.
CreationStack
Required
func CreationStack() *[]*string
- Type: []string
LogicalId
Required
func LogicalId() *string
- Type: *string
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)
.
Stack
Required
func Stack() Stack
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack
The stack in which this element is defined.
RosElements must be defined within a stack scope (directly or indirectly).
Ref
Required
func Ref() *string
- Type: *string
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 })
.
RosOptions
Required
func RosOptions() IRosResourceOptions
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IRosResourceOptions
Options for this resource, such as condition, update policy etc.
RosResourceType
Required
func RosResourceType() *string
- Type: *string
ROS resource type.
AttrDbInstanceId
Required
func AttrDbInstanceId() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
AttrInnerConnectionString
Required
func AttrInnerConnectionString() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
AttrInnerIpAddress
Required
func AttrInnerIpAddress() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
AttrInnerPort
Required
func AttrInnerPort() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
AttrPublicConnectionString
Required
func AttrPublicConnectionString() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
AttrPublicIpAddress
Required
func AttrPublicIpAddress() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
AttrPublicPort
Required
func AttrPublicPort() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
DbInstanceId
Required
func DbInstanceId() interface{}
- Type: interface{}
EnableResourcePropertyConstraint
Required
func EnableResourcePropertyConstraint() *bool
- Type: *bool
PayType
Required
func PayType() interface{}
- Type: interface{}
AllocatePublicConnection
Optional
func AllocatePublicConnection() interface{}
- Type: interface{}
BackupId
Optional
func BackupId() interface{}
- Type: interface{}
BackupRetentionPeriod
Optional
func BackupRetentionPeriod() interface{}
- Type: interface{}
BackupType
Optional
func BackupType() interface{}
- Type: interface{}
Category
Optional
func Category() interface{}
- Type: interface{}
ConnectionStringPrefix
Optional
func ConnectionStringPrefix() interface{}
- Type: interface{}
ConnectionStringType
Optional
func ConnectionStringType() interface{}
- Type: interface{}
DbInstanceClass
Optional
func DbInstanceClass() interface{}
- Type: interface{}
DbInstanceDescription
Optional
func DbInstanceDescription() interface{}
- Type: interface{}
DbInstanceStorage
Optional
func DbInstanceStorage() interface{}
- Type: interface{}
DbInstanceStorageType
Optional
func DbInstanceStorageType() interface{}
- Type: interface{}
DbMappings
Optional
func DbMappings() interface{}
- Type: interface{}
DbNames
Optional
func DbNames() interface{}
- Type: interface{}
DedicatedHostGroupId
Optional
func DedicatedHostGroupId() interface{}
- Type: interface{}
InstanceNetworkType
Optional
func InstanceNetworkType() interface{}
- Type: interface{}
MaintainTime
Optional
func MaintainTime() interface{}
- Type: interface{}
MasterUsername
Optional
func MasterUsername() interface{}
- Type: interface{}
MasterUserPassword
Optional
func MasterUserPassword() interface{}
- Type: interface{}
MasterUserType
Optional
func MasterUserType() interface{}
- Type: interface{}
Period
Optional
func Period() interface{}
- Type: interface{}
PeriodType
Optional
func PeriodType() interface{}
- Type: interface{}
Port
Optional
func Port() interface{}
- Type: interface{}
PreferredBackupPeriod
Optional
func PreferredBackupPeriod() interface{}
- Type: interface{}
PreferredBackupTime
Optional
func PreferredBackupTime() interface{}
- Type: interface{}
PrivateIpAddress
Optional
func PrivateIpAddress() interface{}
- Type: interface{}
RestoreTable
Optional
func RestoreTable() interface{}
- Type: interface{}
RestoreTime
Optional
func RestoreTime() interface{}
- Type: interface{}
SecurityGroupId
Optional
func SecurityGroupId() interface{}
- Type: interface{}
SecurityIpList
Optional
func SecurityIpList() interface{}
- Type: interface{}
SlaveZoneIds
Optional
func SlaveZoneIds() interface{}
- Type: interface{}
SqlCollectorStatus
Optional
func SqlCollectorStatus() interface{}
- Type: interface{}
SslSetting
Optional
func SslSetting() interface{}
- Type: interface{}
TableMeta
Optional
func TableMeta() interface{}
- Type: interface{}
Tags
Optional
func Tags() *map[string]interface{}
- Type: *map[string]interface{}
TimeoutInMinutes
Optional
func TimeoutInMinutes() interface{}
- Type: interface{}
VpcId
Optional
func VpcId() interface{}
- Type: interface{}
VSwitchId
Optional
func VSwitchId() interface{}
- Type: interface{}
ZoneId
Optional
func ZoneId() interface{}
- Type: interface{}
Constants
Name | Type | Description |
---|---|---|
RosResourceTypeName |
*string |
The resource type name for this resource class. |
RosResourceTypeName
Required
func RosResourceTypeName() *string
- Type: *string
The resource type name for this resource class.