Documentation ¶
Index ¶
- func Account_IsConstruct(x interface{}) *bool
- func Accounts_IsConstruct(x interface{}) *bool
- func Database_IsConstruct(x interface{}) *bool
- func Databases_IsConstruct(x interface{}) *bool
- func NewAccount_Override(a Account, scope alicloudroscdkcore.Construct, id *string, props *AccountProps, ...)
- func NewAccounts_Override(a Accounts, scope alicloudroscdkcore.Construct, id *string, ...)
- func NewDatabase_Override(d Database, scope alicloudroscdkcore.Construct, id *string, ...)
- func NewDatabases_Override(d Databases, scope alicloudroscdkcore.Construct, id *string, ...)
- func NewRosAccount_Override(r RosAccount, scope alicloudroscdkcore.Construct, id *string, ...)
- func NewRosAccounts_Override(r RosAccounts, scope alicloudroscdkcore.Construct, id *string, ...)
- func NewRosDatabase_Override(r RosDatabase, scope alicloudroscdkcore.Construct, id *string, ...)
- func NewRosDatabases_Override(r RosDatabases, 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 RosAccounts_IsConstruct(x interface{}) *bool
- func RosAccounts_IsRosElement(x interface{}) *bool
- func RosAccounts_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
- func RosAccounts_ROS_RESOURCE_TYPE_NAME() *string
- func RosDatabase_IsConstruct(x interface{}) *bool
- func RosDatabase_IsRosElement(x interface{}) *bool
- func RosDatabase_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
- func RosDatabase_ROS_RESOURCE_TYPE_NAME() *string
- func RosDatabases_IsConstruct(x interface{}) *bool
- func RosDatabases_IsRosElement(x interface{}) *bool
- func RosDatabases_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
- func RosDatabases_ROS_RESOURCE_TYPE_NAME() *string
- type Account
- type AccountProps
- type Accounts
- type AccountsProps
- type Database
- type DatabaseProps
- type Databases
- type DatabasesProps
- type IAccount
- type IAccounts
- type IDatabase
- type IDatabases
- type RosAccount
- type RosAccountProps
- type RosAccounts
- type RosAccountsProps
- type RosDatabase
- type RosDatabaseProps
- type RosDatabases
- type RosDatabasesProps
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 Accounts_IsConstruct ¶
func Accounts_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func Database_IsConstruct ¶
func Database_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func Databases_IsConstruct ¶
func Databases_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 NewAccounts_Override ¶
func NewAccounts_Override(a Accounts, scope alicloudroscdkcore.Construct, id *string, props *AccountsProps, enableResourcePropertyConstraint *bool)
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
func NewDatabase_Override ¶
func NewDatabase_Override(d Database, scope alicloudroscdkcore.Construct, id *string, props *DatabaseProps, enableResourcePropertyConstraint *bool)
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
func NewDatabases_Override ¶
func NewDatabases_Override(d Databases, scope alicloudroscdkcore.Construct, id *string, props *DatabasesProps, 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 NewRosAccounts_Override ¶
func NewRosAccounts_Override(r RosAccounts, scope alicloudroscdkcore.Construct, id *string, props *RosAccountsProps, enableResourcePropertyConstraint *bool)
func NewRosDatabase_Override ¶
func NewRosDatabase_Override(r RosDatabase, scope alicloudroscdkcore.Construct, id *string, props *RosDatabaseProps, enableResourcePropertyConstraint *bool)
func NewRosDatabases_Override ¶
func NewRosDatabases_Override(r RosDatabases, scope alicloudroscdkcore.Construct, id *string, props *RosDatabasesProps, 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 RosAccounts_IsConstruct ¶
func RosAccounts_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func RosAccounts_IsRosElement ¶
func RosAccounts_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 RosAccounts_IsRosResource ¶
func RosAccounts_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
Check whether the given construct is a RosResource.
func RosAccounts_ROS_RESOURCE_TYPE_NAME ¶
func RosAccounts_ROS_RESOURCE_TYPE_NAME() *string
func RosDatabase_IsConstruct ¶
func RosDatabase_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func RosDatabase_IsRosElement ¶
func RosDatabase_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 RosDatabase_IsRosResource ¶
func RosDatabase_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
Check whether the given construct is a RosResource.
func RosDatabase_ROS_RESOURCE_TYPE_NAME ¶
func RosDatabase_ROS_RESOURCE_TYPE_NAME() *string
func RosDatabases_IsConstruct ¶
func RosDatabases_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func RosDatabases_IsRosElement ¶
func RosDatabases_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 RosDatabases_IsRosResource ¶
func RosDatabases_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
Check whether the given construct is a RosResource.
func RosDatabases_ROS_RESOURCE_TYPE_NAME ¶
func RosDatabases_ROS_RESOURCE_TYPE_NAME() *string
Types ¶
type Account ¶
type Account interface { alicloudroscdkcore.Resource IAccount // Attribute AccountDescription: The description of the account. AttrAccountDescription() interface{} // Attribute AccountType: The type of the account. AttrAccountType() interface{} // Attribute CreateTime: The point in time when the account was created. AttrCreateTime() interface{} // Attribute DBInstanceId: The ID of the PolarDB-X 2.0 instance. AttrDbInstanceId() interface{} // Attribute PolarDBXAccountName: The username of the account. AttrPolarDbxAccountName() interface{} EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) // The environment this resource belongs to. // // For resources that are created and managed by the CDK // (generally, those created by creating new class instances like Role, Bucket, etc.), // this is always the same as the environment of the stack they belong to; // however, for imported resources // (those obtained from static methods like fromRoleArn, fromBucketName, etc.), // that might be different than the stack they were imported into. Env() *alicloudroscdkcore.ResourceEnvironment 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 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) FetchCondition() alicloudroscdkcore.RosCondition FetchDependency() *[]*string FetchResourceDesc() *string 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 `DATASOURCE::PolarDBX::Account`.
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 dbInstanceId: The ID of the PolarDB-X 2.0 instance. DbInstanceId interface{} `field:"required" json:"dbInstanceId" yaml:"dbInstanceId"` // Property polarDbxAccountName: The username of the account that you want to query. // // If you want to query information about a specific account, you must specify this parameter. PolarDbxAccountName interface{} `field:"required" json:"polarDbxAccountName" yaml:"polarDbxAccountName"` // Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated. // // Valid values: // - Never: Never refresh the datasource resource when the stack is updated. // - Always: Always refresh the datasource resource when the stack is updated. // Default is Never. RefreshOptions interface{} `field:"optional" json:"refreshOptions" yaml:"refreshOptions"` }
Properties for defining a `Account`.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-polardbx-account
type Accounts ¶
type Accounts interface { alicloudroscdkcore.Resource IAccounts // Attribute PolarDBXAccountNames: The list of PolarDB-X 2.0 account names. AttrPolarDbxAccountNames() interface{} // Attribute PolarDBXAccounts: The list of PolarDB-X 2.0 accounts. AttrPolarDbxAccounts() interface{} EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) // The environment this resource belongs to. // // For resources that are created and managed by the CDK // (generally, those created by creating new class instances like Role, Bucket, etc.), // this is always the same as the environment of the stack they belong to; // however, for imported resources // (those obtained from static methods like fromRoleArn, fromBucketName, etc.), // that might be different than the stack they were imported into. Env() *alicloudroscdkcore.ResourceEnvironment 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() *AccountsProps 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) FetchCondition() alicloudroscdkcore.RosCondition FetchDependency() *[]*string FetchResourceDesc() *string 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 `DATASOURCE::PolarDBX::Accounts`.
func NewAccounts ¶
func NewAccounts(scope alicloudroscdkcore.Construct, id *string, props *AccountsProps, enableResourcePropertyConstraint *bool) Accounts
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
type AccountsProps ¶
type AccountsProps struct { // Property dbInstanceId: The ID of the PolarDB-X 2.0 instance. DbInstanceId interface{} `field:"required" json:"dbInstanceId" yaml:"dbInstanceId"` // Property accountType: The type of the account. // // 0 represents an ordinary account, and 1 represents a high-privilege account. AccountType interface{} `field:"optional" json:"accountType" yaml:"accountType"` // Property polarDbxAccountName: The username of the account that you want to query. // // If you want to query information about a specific account, you must specify this parameter. PolarDbxAccountName interface{} `field:"optional" json:"polarDbxAccountName" yaml:"polarDbxAccountName"` // Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated. // // Valid values: // - Never: Never refresh the datasource resource when the stack is updated. // - Always: Always refresh the datasource resource when the stack is updated. // Default is Never. RefreshOptions interface{} `field:"optional" json:"refreshOptions" yaml:"refreshOptions"` }
Properties for defining a `Accounts`.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-polardbx-accounts
type Database ¶
type Database interface { alicloudroscdkcore.Resource IDatabase // Attribute Accounts: The list of accounts that can be used to access the database. AttrAccounts() interface{} // Attribute CharacterSetName: The character set that is supported by the database. AttrCharacterSetName() interface{} // Attribute DatabaseDescription: The description of the database. AttrDatabaseDescription() interface{} // Attribute DBInstanceId: The ID of the PolarDB-X 2.0 instance. AttrDbInstanceId() interface{} // Attribute PolarDBXDatabaseName: The name of the PolarDB-X instance. AttrPolarDbxDatabaseName() interface{} EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) // The environment this resource belongs to. // // For resources that are created and managed by the CDK // (generally, those created by creating new class instances like Role, Bucket, etc.), // this is always the same as the environment of the stack they belong to; // however, for imported resources // (those obtained from static methods like fromRoleArn, fromBucketName, etc.), // that might be different than the stack they were imported into. Env() *alicloudroscdkcore.ResourceEnvironment 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() *DatabaseProps 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) FetchCondition() alicloudroscdkcore.RosCondition FetchDependency() *[]*string FetchResourceDesc() *string 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 `DATASOURCE::PolarDBX::Database`.
func NewDatabase ¶
func NewDatabase(scope alicloudroscdkcore.Construct, id *string, props *DatabaseProps, enableResourcePropertyConstraint *bool) Database
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
type DatabaseProps ¶
type DatabaseProps struct { // Property dbInstanceId: The ID of the PolarDB-X 2.0 instance. DbInstanceId interface{} `field:"required" json:"dbInstanceId" yaml:"dbInstanceId"` // Property polarDbxDatabaseName: The name of the PolarDB-X 2.0 instance. PolarDbxDatabaseName interface{} `field:"required" json:"polarDbxDatabaseName" yaml:"polarDbxDatabaseName"` // Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated. // // Valid values: // - Never: Never refresh the datasource resource when the stack is updated. // - Always: Always refresh the datasource resource when the stack is updated. // Default is Never. RefreshOptions interface{} `field:"optional" json:"refreshOptions" yaml:"refreshOptions"` }
Properties for defining a `Database`.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-polardbx-database
type Databases ¶
type Databases interface { alicloudroscdkcore.Resource IDatabases // Attribute PolarDBXDatabaseNames: The list of PolarDB-X 2.0 database names. AttrPolarDbxDatabaseNames() interface{} // Attribute PolarDBXDatabases: The list of PolarDB-X 2.0 databases. AttrPolarDbxDatabases() interface{} EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) // The environment this resource belongs to. // // For resources that are created and managed by the CDK // (generally, those created by creating new class instances like Role, Bucket, etc.), // this is always the same as the environment of the stack they belong to; // however, for imported resources // (those obtained from static methods like fromRoleArn, fromBucketName, etc.), // that might be different than the stack they were imported into. Env() *alicloudroscdkcore.ResourceEnvironment 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() *DatabasesProps 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) FetchCondition() alicloudroscdkcore.RosCondition FetchDependency() *[]*string FetchResourceDesc() *string 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 `DATASOURCE::PolarDBX::Databases`.
func NewDatabases ¶
func NewDatabases(scope alicloudroscdkcore.Construct, id *string, props *DatabasesProps, enableResourcePropertyConstraint *bool) Databases
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
type DatabasesProps ¶
type DatabasesProps struct { // Property dbInstanceId: The ID of the PolarDB-X 2.0 instance. DbInstanceId interface{} `field:"required" json:"dbInstanceId" yaml:"dbInstanceId"` // Property polarDbxDatabaseName: The name of the PolarDB-X 2.0 instance. PolarDbxDatabaseName interface{} `field:"optional" json:"polarDbxDatabaseName" yaml:"polarDbxDatabaseName"` // Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated. // // Valid values: // - Never: Never refresh the datasource resource when the stack is updated. // - Always: Always refresh the datasource resource when the stack is updated. // Default is Never. RefreshOptions interface{} `field:"optional" json:"refreshOptions" yaml:"refreshOptions"` }
Properties for defining a `Databases`.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-polardbx-databases
type IAccount ¶ added in v1.6.0
type IAccount interface { alicloudroscdkcore.IResource // Attribute AccountDescription: The description of the account. AttrAccountDescription() interface{} // Attribute AccountType: The type of the account. AttrAccountType() interface{} // Attribute CreateTime: The point in time when the account was created. AttrCreateTime() interface{} // Attribute DBInstanceId: The ID of the PolarDB-X 2.0 instance. AttrDbInstanceId() interface{} // Attribute PolarDBXAccountName: The username of the account. AttrPolarDbxAccountName() interface{} Props() *AccountProps }
Represents a `Account`.
type IAccounts ¶ added in v1.6.0
type IAccounts interface { alicloudroscdkcore.IResource // Attribute PolarDBXAccountNames: The list of PolarDB-X 2.0 account names. AttrPolarDbxAccountNames() interface{} // Attribute PolarDBXAccounts: The list of PolarDB-X 2.0 accounts. AttrPolarDbxAccounts() interface{} Props() *AccountsProps }
Represents a `Accounts`.
type IDatabase ¶ added in v1.6.0
type IDatabase interface { alicloudroscdkcore.IResource // Attribute Accounts: The list of accounts that can be used to access the database. AttrAccounts() interface{} // Attribute CharacterSetName: The character set that is supported by the database. AttrCharacterSetName() interface{} // Attribute DatabaseDescription: The description of the database. AttrDatabaseDescription() interface{} // Attribute DBInstanceId: The ID of the PolarDB-X 2.0 instance. AttrDbInstanceId() interface{} // Attribute PolarDBXDatabaseName: The name of the PolarDB-X instance. AttrPolarDbxDatabaseName() interface{} Props() *DatabaseProps }
Represents a `Database`.
type IDatabases ¶ added in v1.6.0
type IDatabases interface { alicloudroscdkcore.IResource // Attribute PolarDBXDatabaseNames: The list of PolarDB-X 2.0 database names. AttrPolarDbxDatabaseNames() interface{} // Attribute PolarDBXDatabases: The list of PolarDB-X 2.0 databases. AttrPolarDbxDatabases() interface{} Props() *DatabasesProps }
Represents a `Databases`.
type RosAccount ¶
type RosAccount interface { alicloudroscdkcore.RosResource AttrAccountDescription() alicloudroscdkcore.IResolvable AttrAccountType() alicloudroscdkcore.IResolvable AttrCreateTime() alicloudroscdkcore.IResolvable AttrDbInstanceId() alicloudroscdkcore.IResolvable AttrPolarDbxAccountName() 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 DbInstanceId() interface{} SetDbInstanceId(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 PolarDbxAccountName() interface{} SetPolarDbxAccountName(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 RefreshOptions() interface{} SetRefreshOptions(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 // 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) FetchCondition() alicloudroscdkcore.RosCondition FetchDesc() *string FetchRosDependency() *[]*string // 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 `DATASOURCE::PolarDBX::Account`.
func NewRosAccount ¶
func NewRosAccount(scope alicloudroscdkcore.Construct, id *string, props *RosAccountProps, enableResourcePropertyConstraint *bool) RosAccount
type RosAccountProps ¶
type RosAccountProps struct { DbInstanceId interface{} `field:"required" json:"dbInstanceId" yaml:"dbInstanceId"` PolarDbxAccountName interface{} `field:"required" json:"polarDbxAccountName" yaml:"polarDbxAccountName"` RefreshOptions interface{} `field:"optional" json:"refreshOptions" yaml:"refreshOptions"` }
Properties for defining a `RosAccount`.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-polardbx-account
type RosAccounts ¶
type RosAccounts interface { alicloudroscdkcore.RosResource AccountType() interface{} SetAccountType(val interface{}) AttrPolarDbxAccountNames() alicloudroscdkcore.IResolvable AttrPolarDbxAccounts() 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 DbInstanceId() interface{} SetDbInstanceId(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 PolarDbxAccountName() interface{} SetPolarDbxAccountName(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 RefreshOptions() interface{} SetRefreshOptions(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 // 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) FetchCondition() alicloudroscdkcore.RosCondition FetchDesc() *string FetchRosDependency() *[]*string // 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 `DATASOURCE::PolarDBX::Accounts`.
func NewRosAccounts ¶
func NewRosAccounts(scope alicloudroscdkcore.Construct, id *string, props *RosAccountsProps, enableResourcePropertyConstraint *bool) RosAccounts
type RosAccountsProps ¶
type RosAccountsProps struct { DbInstanceId interface{} `field:"required" json:"dbInstanceId" yaml:"dbInstanceId"` AccountType interface{} `field:"optional" json:"accountType" yaml:"accountType"` PolarDbxAccountName interface{} `field:"optional" json:"polarDbxAccountName" yaml:"polarDbxAccountName"` RefreshOptions interface{} `field:"optional" json:"refreshOptions" yaml:"refreshOptions"` }
Properties for defining a `RosAccounts`.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-polardbx-accounts
type RosDatabase ¶
type RosDatabase interface { alicloudroscdkcore.RosResource AttrAccounts() alicloudroscdkcore.IResolvable AttrCharacterSetName() alicloudroscdkcore.IResolvable AttrDatabaseDescription() alicloudroscdkcore.IResolvable AttrDbInstanceId() alicloudroscdkcore.IResolvable AttrPolarDbxDatabaseName() 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 DbInstanceId() interface{} SetDbInstanceId(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 PolarDbxDatabaseName() interface{} SetPolarDbxDatabaseName(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 RefreshOptions() interface{} SetRefreshOptions(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 // 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) FetchCondition() alicloudroscdkcore.RosCondition FetchDesc() *string FetchRosDependency() *[]*string // 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 `DATASOURCE::PolarDBX::Database`.
func NewRosDatabase ¶
func NewRosDatabase(scope alicloudroscdkcore.Construct, id *string, props *RosDatabaseProps, enableResourcePropertyConstraint *bool) RosDatabase
type RosDatabaseProps ¶
type RosDatabaseProps struct { DbInstanceId interface{} `field:"required" json:"dbInstanceId" yaml:"dbInstanceId"` PolarDbxDatabaseName interface{} `field:"required" json:"polarDbxDatabaseName" yaml:"polarDbxDatabaseName"` RefreshOptions interface{} `field:"optional" json:"refreshOptions" yaml:"refreshOptions"` }
Properties for defining a `RosDatabase`.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-polardbx-database
type RosDatabases ¶
type RosDatabases interface { alicloudroscdkcore.RosResource AttrPolarDbxDatabaseNames() alicloudroscdkcore.IResolvable AttrPolarDbxDatabases() 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 DbInstanceId() interface{} SetDbInstanceId(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 PolarDbxDatabaseName() interface{} SetPolarDbxDatabaseName(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 RefreshOptions() interface{} SetRefreshOptions(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 // 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) FetchCondition() alicloudroscdkcore.RosCondition FetchDesc() *string FetchRosDependency() *[]*string // 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 `DATASOURCE::PolarDBX::Databases`.
func NewRosDatabases ¶
func NewRosDatabases(scope alicloudroscdkcore.Construct, id *string, props *RosDatabasesProps, enableResourcePropertyConstraint *bool) RosDatabases
type RosDatabasesProps ¶
type RosDatabasesProps struct { DbInstanceId interface{} `field:"required" json:"dbInstanceId" yaml:"dbInstanceId"` PolarDbxDatabaseName interface{} `field:"optional" json:"polarDbxDatabaseName" yaml:"polarDbxDatabaseName"` RefreshOptions interface{} `field:"optional" json:"refreshOptions" yaml:"refreshOptions"` }
Properties for defining a `RosDatabases`.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-polardbx-databases
Source Files ¶
- Account.go
- AccountProps.go
- Account__checks.go
- Accounts.go
- AccountsProps.go
- Accounts__checks.go
- Database.go
- DatabaseProps.go
- Database__checks.go
- Databases.go
- DatabasesProps.go
- Databases__checks.go
- IAccount.go
- IAccounts.go
- IDatabase.go
- IDatabases.go
- RosAccount.go
- RosAccountProps.go
- RosAccount__checks.go
- RosAccounts.go
- RosAccountsProps.go
- RosAccounts__checks.go
- RosDatabase.go
- RosDatabaseProps.go
- RosDatabase__checks.go
- RosDatabases.go
- RosDatabasesProps.go
- RosDatabases__checks.go
- main.go