Skip to content

RosPrepayDBInstance

This class is a base encapsulation around the ROS resource type ALIYUN::RDS::PrepayDBInstance, which is used to create subscription ApsaraDB RDS instances.

Initializers

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkrds"
alicloudroscdkrds.NewRosPrepayDBInstance(scope Construct, id *string, props RosPrepayDBInstanceProps, enableResourcePropertyConstraint *bool) RosPrepayDBInstance
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 RosPrepayDBInstanceProps - resource properties.
enableResourcePropertyConstraint *bool No description.

scopeRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct

scope in which this resource is defined.


idRequired

  • Type: *string

scoped id of the resource.


propsRequired

resource properties.


enableResourcePropertyConstraintRequired

  • 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.

sessionRequired

  • 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.

newLogicalIdRequired

  • Type: *string

The new logical ID to use for this stack element.


AddCondition

func AddCondition(con RosCondition)

conRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosCondition

AddCount

func AddCount(count interface{})

countRequired

  • Type: interface{}

AddDeletionOverride

func AddDeletionOverride(path *string)

Syntactic sugar for addOverride(path, undefined).

pathRequired

  • 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.

targetRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource

AddDesc

func AddDesc(desc *string)

descRequired

  • Type: *string

AddMetaData

func AddMetaData(key *string, value interface{})

keyRequired

  • Type: *string

valueRequired

  • 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"
       ...
     },
   ]
   ...
}

pathRequired

  • 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.


valueRequired

  • 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.

propertyPathRequired

  • 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).

propertyPathRequired

  • Type: *string

The path of the property.


valueRequired

  • Type: interface{}

The value.


AddRosDependency

func AddRosDependency(target *string)

targetRequired

  • Type: *string

ApplyRemovalPolicy

func ApplyRemovalPolicy(policy RemovalPolicy, options RemovalPolicyOptions)

Sets the deletion policy of the resource based on the removal policy specified.

policyOptional

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RemovalPolicy

optionsOptional

  • 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.

attributeNameRequired

  • 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.RosPrepayDBInstance_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

xRequired

  • Type: interface{}

IsRosElement

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkrds"
alicloudroscdkrds.RosPrepayDBInstance_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.

xRequired

  • Type: interface{}

IsRosResource

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkrds"
alicloudroscdkrds.RosPrepayDBInstance_IsRosResource(construct IConstruct) *bool

Check whether the given construct is a RosResource.

constructRequired

  • 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.
AttrOrderId 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.
CommodityCode interface{} No description.
DbInstanceClass interface{} No description.
DbInstanceStorage interface{} No description.
EnableResourcePropertyConstraint *bool No description.
Engine interface{} No description.
EngineVersion interface{} No description.
Period interface{} No description.
PeriodType interface{} No description.
AllocatePublicConnection interface{} No description.
ArchiveBackupKeepCount interface{} No description.
ArchiveBackupKeepPolicy interface{} No description.
ArchiveBackupRetentionPeriod interface{} No description.
AutoPay interface{} No description.
AutoRenew interface{} No description.
BackUpCategory interface{} No description.
BackupPolicyMode interface{} No description.
BackupRetentionPeriod interface{} No description.
BurstingEnabled interface{} No description.
Category interface{} No description.
ColdDataEnabled interface{} No description.
CompressType interface{} No description.
ConnectionMode interface{} No description.
ConnectionStringPrefix interface{} No description.
ConnectionStringType interface{} No description.
CouponCode interface{} No description.
DbInstanceDescription interface{} No description.
DbInstanceNetType interface{} No description.
DbInstanceStorageType interface{} No description.
DbIsIgnoreCase interface{} No description.
DbMappings interface{} No description.
DbParamGroupId interface{} No description.
DbTimeZone interface{} No description.
DedicatedHostGroupId interface{} No description.
DeletionProtection interface{} No description.
EnableBackupLog interface{} No description.
EncryptionKey interface{} No description.
HighSpaceUsageProtection interface{} No description.
InstanceNetworkType interface{} No description.
IoAccelerationEnabled interface{} No description.
LocalLogRetentionHours interface{} No description.
LocalLogRetentionSpace interface{} No description.
LogBackupFrequency interface{} No description.
LogBackupLocalRetentionNumber interface{} No description.
LogBackupRetentionPeriod interface{} No description.
MaintainTime interface{} No description.
MasterUsername interface{} No description.
MasterUserPassword interface{} No description.
MasterUserType interface{} No description.
MultiAz interface{} No description.
Port interface{} No description.
PreferredBackupPeriod interface{} No description.
PreferredBackupTime interface{} No description.
PrivateIpAddress interface{} No description.
Quantity interface{} No description.
ReleasedKeepPolicy interface{} No description.
ResourceGroupId interface{} No description.
RoleArn interface{} No description.
SecurityGroupId interface{} No description.
ServerlessConfig interface{} No description.
SlaveZoneIds interface{} No description.
SqlCollectorStatus interface{} No description.
SslSetting interface{} No description.
StorageAutoScale interface{} No description.
StorageThreshold interface{} No description.
StorageUpperBound interface{} No description.
Tags *map[string]interface{} No description.
TargetDedicatedHostIdForLog interface{} No description.
TargetDedicatedHostIdForMaster interface{} No description.
TargetDedicatedHostIdForSlave interface{} No description.
VpcId interface{} No description.
VSwitchId interface{} No description.
ZoneId interface{} No description.

NodeRequired

func Node() ConstructNode
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode

The construct tree node associated with this construct.


CreationStackRequired

func CreationStack() *[]*string
  • Type: []string

LogicalIdRequired

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).


StackRequired

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).


RefRequired

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 }).


RosOptionsRequired

func RosOptions() IRosResourceOptions
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IRosResourceOptions

Options for this resource, such as condition, update policy etc.


RosResourceTypeRequired

func RosResourceType() *string
  • Type: *string

ROS resource type.


AttrDbInstanceIdRequired

func AttrDbInstanceId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrInnerConnectionStringRequired

func AttrInnerConnectionString() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrInnerIpAddressRequired

func AttrInnerIpAddress() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrInnerPortRequired

func AttrInnerPort() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrOrderIdRequired

func AttrOrderId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrPublicConnectionStringRequired

func AttrPublicConnectionString() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrPublicIpAddressRequired

func AttrPublicIpAddress() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

AttrPublicPortRequired

func AttrPublicPort() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

CommodityCodeRequired

func CommodityCode() interface{}
  • Type: interface{}

DbInstanceClassRequired

func DbInstanceClass() interface{}
  • Type: interface{}

DbInstanceStorageRequired

func DbInstanceStorage() interface{}
  • Type: interface{}

EnableResourcePropertyConstraintRequired

func EnableResourcePropertyConstraint() *bool
  • Type: *bool

EngineRequired

func Engine() interface{}
  • Type: interface{}

EngineVersionRequired

func EngineVersion() interface{}
  • Type: interface{}

PeriodRequired

func Period() interface{}
  • Type: interface{}

PeriodTypeRequired

func PeriodType() interface{}
  • Type: interface{}

AllocatePublicConnectionOptional

func AllocatePublicConnection() interface{}
  • Type: interface{}

ArchiveBackupKeepCountOptional

func ArchiveBackupKeepCount() interface{}
  • Type: interface{}

ArchiveBackupKeepPolicyOptional

func ArchiveBackupKeepPolicy() interface{}
  • Type: interface{}

ArchiveBackupRetentionPeriodOptional

func ArchiveBackupRetentionPeriod() interface{}
  • Type: interface{}

AutoPayOptional

func AutoPay() interface{}
  • Type: interface{}

AutoRenewOptional

func AutoRenew() interface{}
  • Type: interface{}

BackUpCategoryOptional

func BackUpCategory() interface{}
  • Type: interface{}

BackupPolicyModeOptional

func BackupPolicyMode() interface{}
  • Type: interface{}

BackupRetentionPeriodOptional

func BackupRetentionPeriod() interface{}
  • Type: interface{}

BurstingEnabledOptional

func BurstingEnabled() interface{}
  • Type: interface{}

CategoryOptional

func Category() interface{}
  • Type: interface{}

ColdDataEnabledOptional

func ColdDataEnabled() interface{}
  • Type: interface{}

CompressTypeOptional

func CompressType() interface{}
  • Type: interface{}

ConnectionModeOptional

func ConnectionMode() interface{}
  • Type: interface{}

ConnectionStringPrefixOptional

func ConnectionStringPrefix() interface{}
  • Type: interface{}

ConnectionStringTypeOptional

func ConnectionStringType() interface{}
  • Type: interface{}

CouponCodeOptional

func CouponCode() interface{}
  • Type: interface{}

DbInstanceDescriptionOptional

func DbInstanceDescription() interface{}
  • Type: interface{}

DbInstanceNetTypeOptional

func DbInstanceNetType() interface{}
  • Type: interface{}

DbInstanceStorageTypeOptional

func DbInstanceStorageType() interface{}
  • Type: interface{}

DbIsIgnoreCaseOptional

func DbIsIgnoreCase() interface{}
  • Type: interface{}

DbMappingsOptional

func DbMappings() interface{}
  • Type: interface{}

DbParamGroupIdOptional

func DbParamGroupId() interface{}
  • Type: interface{}

DbTimeZoneOptional

func DbTimeZone() interface{}
  • Type: interface{}

DedicatedHostGroupIdOptional

func DedicatedHostGroupId() interface{}
  • Type: interface{}

DeletionProtectionOptional

func DeletionProtection() interface{}
  • Type: interface{}

EnableBackupLogOptional

func EnableBackupLog() interface{}
  • Type: interface{}

EncryptionKeyOptional

func EncryptionKey() interface{}
  • Type: interface{}

HighSpaceUsageProtectionOptional

func HighSpaceUsageProtection() interface{}
  • Type: interface{}

InstanceNetworkTypeOptional

func InstanceNetworkType() interface{}
  • Type: interface{}

IoAccelerationEnabledOptional

func IoAccelerationEnabled() interface{}
  • Type: interface{}

LocalLogRetentionHoursOptional

func LocalLogRetentionHours() interface{}
  • Type: interface{}

LocalLogRetentionSpaceOptional

func LocalLogRetentionSpace() interface{}
  • Type: interface{}

LogBackupFrequencyOptional

func LogBackupFrequency() interface{}
  • Type: interface{}

LogBackupLocalRetentionNumberOptional

func LogBackupLocalRetentionNumber() interface{}
  • Type: interface{}

LogBackupRetentionPeriodOptional

func LogBackupRetentionPeriod() interface{}
  • Type: interface{}

MaintainTimeOptional

func MaintainTime() interface{}
  • Type: interface{}

MasterUsernameOptional

func MasterUsername() interface{}
  • Type: interface{}

MasterUserPasswordOptional

func MasterUserPassword() interface{}
  • Type: interface{}

MasterUserTypeOptional

func MasterUserType() interface{}
  • Type: interface{}

MultiAzOptional

func MultiAz() interface{}
  • Type: interface{}

PortOptional

func Port() interface{}
  • Type: interface{}

PreferredBackupPeriodOptional

func PreferredBackupPeriod() interface{}
  • Type: interface{}

PreferredBackupTimeOptional

func PreferredBackupTime() interface{}
  • Type: interface{}

PrivateIpAddressOptional

func PrivateIpAddress() interface{}
  • Type: interface{}

QuantityOptional

func Quantity() interface{}
  • Type: interface{}

ReleasedKeepPolicyOptional

func ReleasedKeepPolicy() interface{}
  • Type: interface{}

ResourceGroupIdOptional

func ResourceGroupId() interface{}
  • Type: interface{}

RoleArnOptional

func RoleArn() interface{}
  • Type: interface{}

SecurityGroupIdOptional

func SecurityGroupId() interface{}
  • Type: interface{}

ServerlessConfigOptional

func ServerlessConfig() interface{}
  • Type: interface{}

SlaveZoneIdsOptional

func SlaveZoneIds() interface{}
  • Type: interface{}

SqlCollectorStatusOptional

func SqlCollectorStatus() interface{}
  • Type: interface{}

SslSettingOptional

func SslSetting() interface{}
  • Type: interface{}

StorageAutoScaleOptional

func StorageAutoScale() interface{}
  • Type: interface{}

StorageThresholdOptional

func StorageThreshold() interface{}
  • Type: interface{}

StorageUpperBoundOptional

func StorageUpperBound() interface{}
  • Type: interface{}

TagsOptional

func Tags() *map[string]interface{}
  • Type: *map[string]interface{}

TargetDedicatedHostIdForLogOptional

func TargetDedicatedHostIdForLog() interface{}
  • Type: interface{}

TargetDedicatedHostIdForMasterOptional

func TargetDedicatedHostIdForMaster() interface{}
  • Type: interface{}

TargetDedicatedHostIdForSlaveOptional

func TargetDedicatedHostIdForSlave() interface{}
  • Type: interface{}

VpcIdOptional

func VpcId() interface{}
  • Type: interface{}

VSwitchIdOptional

func VSwitchId() interface{}
  • Type: interface{}

ZoneIdOptional

func ZoneId() interface{}
  • Type: interface{}

Constants

Name Type Description
RosResourceTypeName *string The resource type name for this resource class.

RosResourceTypeNameRequired

func RosResourceTypeName() *string
  • Type: *string

The resource type name for this resource class.