alicloudroscdkredis

package module
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

README

Aliyun ROS REDIS Construct Library

This module is part of the AliCloud ROS Cloud Development Kit (ROS CDK) project.

import * as REDIS from '@alicloud/ros-cdk-redis';

Documentation

Overview

Aliyun SDK Copyright (C) Alibaba Cloud Computing All rights reserved. http://www.aliyun.com

Index

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 AuditLogConfig_IsConstruct

func AuditLogConfig_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

func Connection_IsConstruct

func Connection_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

func Instance_IsConstruct

func Instance_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 NewAuditLogConfig_Override

func NewAuditLogConfig_Override(a AuditLogConfig, scope alicloudroscdkcore.Construct, id *string, props *AuditLogConfigProps, enableResourcePropertyConstraint *bool)

Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.

func NewConnection_Override

func NewConnection_Override(c Connection, scope alicloudroscdkcore.Construct, id *string, props *ConnectionProps, enableResourcePropertyConstraint *bool)

Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.

func NewInstance_Override

func NewInstance_Override(i Instance, scope alicloudroscdkcore.Construct, id *string, props *InstanceProps, enableResourcePropertyConstraint *bool)

Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.

func NewPrepayInstance_Override

func NewPrepayInstance_Override(p PrepayInstance, scope alicloudroscdkcore.Construct, id *string, props *PrepayInstanceProps, 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 NewRosAuditLogConfig_Override

func NewRosAuditLogConfig_Override(r RosAuditLogConfig, scope alicloudroscdkcore.Construct, id *string, props *RosAuditLogConfigProps, enableResourcePropertyConstraint *bool)

func NewRosConnection_Override

func NewRosConnection_Override(r RosConnection, scope alicloudroscdkcore.Construct, id *string, props *RosConnectionProps, enableResourcePropertyConstraint *bool)

func NewRosInstance_Override

func NewRosInstance_Override(r RosInstance, scope alicloudroscdkcore.Construct, id *string, props *RosInstanceProps, enableResourcePropertyConstraint *bool)

func NewRosPrepayInstance_Override

func NewRosPrepayInstance_Override(r RosPrepayInstance, scope alicloudroscdkcore.Construct, id *string, props *RosPrepayInstanceProps, enableResourcePropertyConstraint *bool)

func NewRosWhitelist_Override

func NewRosWhitelist_Override(r RosWhitelist, scope alicloudroscdkcore.Construct, id *string, props *RosWhitelistProps, enableResourcePropertyConstraint *bool)

func NewWhitelist_Override

func NewWhitelist_Override(w Whitelist, scope alicloudroscdkcore.Construct, id *string, props *WhitelistProps, enableResourcePropertyConstraint *bool)

Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.

func PrepayInstance_IsConstruct

func PrepayInstance_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

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 RosAuditLogConfig_IsConstruct

func RosAuditLogConfig_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

func RosAuditLogConfig_IsRosElement

func RosAuditLogConfig_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 RosAuditLogConfig_IsRosResource

func RosAuditLogConfig_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool

Check whether the given construct is a RosResource.

func RosAuditLogConfig_ROS_RESOURCE_TYPE_NAME

func RosAuditLogConfig_ROS_RESOURCE_TYPE_NAME() *string

func RosConnection_IsConstruct

func RosConnection_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

func RosConnection_IsRosElement

func RosConnection_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 RosConnection_IsRosResource

func RosConnection_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool

Check whether the given construct is a RosResource.

func RosConnection_ROS_RESOURCE_TYPE_NAME

func RosConnection_ROS_RESOURCE_TYPE_NAME() *string

func RosInstance_IsConstruct

func RosInstance_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

func RosInstance_IsRosElement

func RosInstance_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 RosInstance_IsRosResource

func RosInstance_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool

Check whether the given construct is a RosResource.

func RosInstance_ROS_RESOURCE_TYPE_NAME

func RosInstance_ROS_RESOURCE_TYPE_NAME() *string

func RosPrepayInstance_IsConstruct

func RosPrepayInstance_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

func RosPrepayInstance_IsRosElement

func RosPrepayInstance_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 RosPrepayInstance_IsRosResource

func RosPrepayInstance_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool

Check whether the given construct is a RosResource.

func RosPrepayInstance_ROS_RESOURCE_TYPE_NAME

func RosPrepayInstance_ROS_RESOURCE_TYPE_NAME() *string

func RosWhitelist_IsConstruct

func RosWhitelist_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

func RosWhitelist_IsRosElement

func RosWhitelist_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 RosWhitelist_IsRosResource

func RosWhitelist_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool

Check whether the given construct is a RosResource.

func RosWhitelist_ROS_RESOURCE_TYPE_NAME

func RosWhitelist_ROS_RESOURCE_TYPE_NAME() *string

func Whitelist_IsConstruct

func Whitelist_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

Types

type Account

type Account interface {
	alicloudroscdkcore.Resource
	IAccount
	// Attribute AccountName: The name of the account.
	AttrAccountName() interface{}
	// Attribute InstanceId: The name of the instance.
	AttrInstanceId() 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.IResourceEnvironment
	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 `ALIYUN::REDIS::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 accountName: The name of the account.
	//
	// The name must start with a lowercase letter and can contain
	// lowercase letters, digits, and underscores (_). The name can be 1 to 16 characters
	// in length.
	AccountName interface{} `field:"required" json:"accountName" yaml:"accountName"`
	// Property accountPassword: The password of the account.
	//
	// The password can be 8 to 32 characters in length and
	// must contain at least three types of the following characters: uppercase letters,
	// lowercase letters, digits, and special characters. Special characters include ! at signs (@), number signs (#), dollar signs ($), percent signs (%), carets (^),
	// ampersands (&), asterisks (*), parentheses (()), underscores (_), plus signs (+),
	// hyphens (-), and equal signs (=).
	AccountPassword interface{} `field:"required" json:"accountPassword" yaml:"accountPassword"`
	// Property instanceId: The ID of the instance for which you want to create the account.
	InstanceId interface{} `field:"required" json:"instanceId" yaml:"instanceId"`
	// Property accountDescription: The description of the account.
	//
	// The description must start with a letter, and cannot start with http:\/\/ or https:\/\/.
	// The description can contain letters, underscores (_), hyphens (-), and digits.
	// It can be 2 to 256 characters in length.
	AccountDescription interface{} `field:"optional" json:"accountDescription" yaml:"accountDescription"`
	// Property accountPrivilege: The permission of the account.
	//
	// Valid values:
	// RoleReadOnly
	// RoleReadWrite (default value)
	// RoleRepl
	// Note In addition to reading data from and writing data to the ApsaraDB for Redis instance,
	// an account with the RoleRepl permission can run the SYNC and PSYNC commands. The RoleRepl
	// permission can be granted to an account only in an ApsaraDB for Redis instance of
	// the standard edition in Redis 4.0.
	AccountPrivilege interface{} `field:"optional" json:"accountPrivilege" yaml:"accountPrivilege"`
	// Property accountType: The type of the account.
	//
	// Set this parameter to Normal.
	AccountType interface{} `field:"optional" json:"accountType" yaml:"accountType"`
}

Properties for defining a `Account`.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-redis-account

type AuditLogConfig

type AuditLogConfig interface {
	alicloudroscdkcore.Resource
	IAuditLogConfig
	// Attribute InstanceId: IP address whitelist to be modified.
	AttrInstanceId() 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.IResourceEnvironment
	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() *AuditLogConfigProps
	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 `ALIYUN::REDIS::AuditLogConfig`.

func NewAuditLogConfig

func NewAuditLogConfig(scope alicloudroscdkcore.Construct, id *string, props *AuditLogConfigProps, enableResourcePropertyConstraint *bool) AuditLogConfig

Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.

type AuditLogConfigProps

type AuditLogConfigProps struct {
	// Property instanceId: The ID of the instance.
	//
	// You can call the DescribeInstances operation to query the ID of the instance.
	InstanceId interface{} `field:"required" json:"instanceId" yaml:"instanceId"`
	// Property retention: The retention period of audit logs.
	//
	// Valid values: 1 to 365. Unit: days.
	// Note: The value of this parameter takes effect for all ApsaraDB for Redis instances in the current region.
	Retention interface{} `field:"required" json:"retention" yaml:"retention"`
}

Properties for defining a `AuditLogConfig`.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-redis-auditlogconfig

type Connection

type Connection interface {
	alicloudroscdkcore.Resource
	IConnection
	// Attribute ConnectionString: The allocated connection string.
	AttrConnectionString() 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.IResourceEnvironment
	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() *ConnectionProps
	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 `ALIYUN::REDIS::Connection`.

func NewConnection

func NewConnection(scope alicloudroscdkcore.Construct, id *string, props *ConnectionProps, enableResourcePropertyConstraint *bool) Connection

Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.

type ConnectionProps

type ConnectionProps struct {
	// Property connectionStringPrefix: The prefix of the public endpoint.
	//
	// The prefix must be 8 to 64 characters in length,
	// and can contain lowercase letters and digits.
	// It must start with a lowercase letter.
	ConnectionStringPrefix interface{} `field:"required" json:"connectionStringPrefix" yaml:"connectionStringPrefix"`
	// Property connectionType: Allowed values: - Public: Public address.
	//
	// - Direct: Direct connection address. The instance is a cluster instance. You can apply for a direct connection endpoint as required.
	ConnectionType interface{} `field:"required" json:"connectionType" yaml:"connectionType"`
	// Property instanceId: Instance ID (globally unique).
	InstanceId interface{} `field:"required" json:"instanceId" yaml:"instanceId"`
	// Property port: The service port number of the ApsaraDB for Redis instance.
	//
	// Valid values: 1024 to 65535.
	Port interface{} `field:"required" json:"port" yaml:"port"`
}

Properties for defining a `Connection`.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-redis-connection

type IAccount added in v1.6.0

type IAccount interface {
	alicloudroscdkcore.IResource
	// Attribute AccountName: The name of the account.
	AttrAccountName() interface{}
	// Attribute InstanceId: The name of the instance.
	AttrInstanceId() interface{}
	Props() *AccountProps
}

Represents a `Account`.

type IAuditLogConfig added in v1.6.0

type IAuditLogConfig interface {
	alicloudroscdkcore.IResource
	// Attribute InstanceId: IP address whitelist to be modified.
	AttrInstanceId() interface{}
	Props() *AuditLogConfigProps
}

Represents a `AuditLogConfig`.

type IConnection added in v1.6.0

type IConnection interface {
	alicloudroscdkcore.IResource
	// Attribute ConnectionString: The allocated connection string.
	AttrConnectionString() interface{}
	Props() *ConnectionProps
}

Represents a `Connection`.

type IInstance added in v1.6.0

type IInstance interface {
	alicloudroscdkcore.IResource
	// Attribute ArchitectureType: The architecture.
	AttrArchitectureType() interface{}
	// Attribute Bandwidth: The bandwidth of the instance.
	//
	// Unit: Mbit/s.
	AttrBandwidth() interface{}
	// Attribute Capacity: The storage capacity of the instance.
	//
	// Unit: MB.
	AttrCapacity() interface{}
	// Attribute ChargeType: The billing method of the instance.
	AttrChargeType() interface{}
	// Attribute ClassicInnerConnectionPort: The classic inner connection port of the instance.
	AttrClassicInnerConnectionPort() interface{}
	// Attribute ClassicInnerConnectionString: The classic inner connection string of the instance.
	AttrClassicInnerConnectionString() interface{}
	// Attribute ConnectionDomain: Connection domain of created instance.
	AttrConnectionDomain() interface{}
	// Attribute Connections: The maximum number of connections supported by the instance.
	AttrConnections() interface{}
	// Attribute DirectConnectionPort: The direct connection port of the instance.
	AttrDirectConnectionPort() interface{}
	// Attribute DirectConnectionString: The direct connection string of the instance.
	AttrDirectConnectionString() interface{}
	// Attribute EngineVersion: The engine version of the instance.
	AttrEngineVersion() interface{}
	// Attribute HasRenewChangeOrder: Indicates whether the Alibaba Cloud account has pending renewal or scaling orders.
	AttrHasRenewChangeOrder() interface{}
	// Attribute InstanceClass: Redis instance type.
	AttrInstanceClass() interface{}
	// Attribute InstanceId: Instance id of created redis instance.
	AttrInstanceId() interface{}
	// Attribute InstanceName: Name of created redis instance.
	AttrInstanceName() interface{}
	// Attribute InstanceType: The engine type of the instance.
	AttrInstanceType() interface{}
	// Attribute NetworkType: The network type.
	AttrNetworkType() interface{}
	// Attribute NodeType: The type of node.
	AttrNodeType() interface{}
	// Attribute OrderId: Order Id of created instance.
	AttrOrderId() interface{}
	// Attribute PackageType: The plan type.
	AttrPackageType() interface{}
	// Attribute Port: Port of created instance.
	AttrPort() interface{}
	// Attribute PrivateIp: The internal IP address of the instance.
	AttrPrivateIp() interface{}
	// Attribute PublicConnectionPort: The public connection port of the instance.
	AttrPublicConnectionPort() interface{}
	// Attribute PublicConnectionString: The public connection string of the instance.
	AttrPublicConnectionString() interface{}
	// Attribute QPS: The queries per second (QPS) supported by the instance.
	AttrQps() interface{}
	// Attribute ResourceGroupId: The ID of the resource group to which the instance belongs.
	AttrResourceGroupId() interface{}
	// Attribute VpcId: The ID of the VPC.
	AttrVpcId() interface{}
	// Attribute VpcPrivateConnectionPort: The vpc private connection port of the instance.
	AttrVpcPrivateConnectionPort() interface{}
	// Attribute VpcPrivateConnectionString: The vpc private connection string of the instance.
	AttrVpcPrivateConnectionString() interface{}
	// Attribute VSwitchId: The ID of the vSwitch.
	AttrVSwitchId() interface{}
	// Attribute ZoneId: The ID of the zone.
	AttrZoneId() interface{}
	Props() *InstanceProps
}

Represents a `Instance`.

type IPrepayInstance added in v1.6.0

type IPrepayInstance interface {
	alicloudroscdkcore.IResource
	// Attribute ArchitectureType: The architecture.
	AttrArchitectureType() interface{}
	// Attribute Bandwidth: The bandwidth of the instance.
	//
	// Unit: Mbit/s.
	AttrBandwidth() interface{}
	// Attribute Capacity: The storage capacity of the instance.
	//
	// Unit: MB.
	AttrCapacity() interface{}
	// Attribute ChargeType: The billing method of the instance.
	AttrChargeType() interface{}
	// Attribute ClassicInnerConnectionPort: The classic inner connection port of the instance.
	AttrClassicInnerConnectionPort() interface{}
	// Attribute ClassicInnerConnectionString: The classic inner connection string of the instance.
	AttrClassicInnerConnectionString() interface{}
	// Attribute ConnectionDomain: Connection domain of created instance.
	AttrConnectionDomain() interface{}
	// Attribute Connections: The maximum number of connections supported by the instance.
	AttrConnections() interface{}
	// Attribute DirectConnectionPort: The direct connection port of the instance.
	AttrDirectConnectionPort() interface{}
	// Attribute DirectConnectionString: The direct connection string of the instance.
	AttrDirectConnectionString() interface{}
	// Attribute EngineVersion: The engine version of the instance.
	AttrEngineVersion() interface{}
	// Attribute HasRenewChangeOrder: Indicates whether the Alibaba Cloud account has pending renewal or scaling orders.
	AttrHasRenewChangeOrder() interface{}
	// Attribute InstanceClass: Redis instance type.
	AttrInstanceClass() interface{}
	// Attribute InstanceId: Instance id of created redis instance.
	AttrInstanceId() interface{}
	// Attribute InstanceName: Name of created redis instance.
	AttrInstanceName() interface{}
	// Attribute InstanceType: The engine type of the instance.
	AttrInstanceType() interface{}
	// Attribute NetworkType: The network type.
	AttrNetworkType() interface{}
	// Attribute NodeType: The type of node.
	AttrNodeType() interface{}
	// Attribute OrderId: Order Id of created instance.
	AttrOrderId() interface{}
	// Attribute PackageType: The plan type.
	AttrPackageType() interface{}
	// Attribute Port: Port of created instance.
	AttrPort() interface{}
	// Attribute PrivateIp: The internal IP address of the instance.
	AttrPrivateIp() interface{}
	// Attribute PublicConnectionPort: The public connection port of the instance.
	AttrPublicConnectionPort() interface{}
	// Attribute PublicConnectionString: The public connection string of the instance.
	AttrPublicConnectionString() interface{}
	// Attribute QPS: The queries per second (QPS) supported by the instance.
	AttrQps() interface{}
	// Attribute ResourceGroupId: The ID of the resource group to which the instance belongs.
	AttrResourceGroupId() interface{}
	// Attribute VpcId: The ID of the VPC.
	AttrVpcId() interface{}
	// Attribute VpcPrivateConnectionPort: The vpc private connection port of the instance.
	AttrVpcPrivateConnectionPort() interface{}
	// Attribute VpcPrivateConnectionString: The vpc private connection string of the instance.
	AttrVpcPrivateConnectionString() interface{}
	// Attribute VSwitchId: The ID of the vSwitch.
	AttrVSwitchId() interface{}
	// Attribute ZoneId: The ID of the zone.
	AttrZoneId() interface{}
	Props() *PrepayInstanceProps
}

Represents a `PrepayInstance`.

type IWhitelist added in v1.6.0

type IWhitelist interface {
	alicloudroscdkcore.IResource
	// Attribute SecurityIpGroupAttribute: The default is empty.
	//
	// For distinguishing between different attribute values, the console will not display the value of hidden whitelist packet.
	AttrSecurityIpGroupAttribute() interface{}
	// Attribute SecurityIpGroupName: Whitelist group.
	AttrSecurityIpGroupName() interface{}
	// Attribute SecurityIps: IP address whitelist to be modified.
	AttrSecurityIps() interface{}
	Props() *WhitelistProps
}

Represents a `Whitelist`.

type Instance

type Instance interface {
	alicloudroscdkcore.Resource
	IInstance
	// Attribute ArchitectureType: The architecture.
	AttrArchitectureType() interface{}
	// Attribute Bandwidth: The bandwidth of the instance.
	//
	// Unit: Mbit/s.
	AttrBandwidth() interface{}
	// Attribute Capacity: The storage capacity of the instance.
	//
	// Unit: MB.
	AttrCapacity() interface{}
	// Attribute ChargeType: The billing method of the instance.
	AttrChargeType() interface{}
	// Attribute ClassicInnerConnectionPort: The classic inner connection port of the instance.
	AttrClassicInnerConnectionPort() interface{}
	// Attribute ClassicInnerConnectionString: The classic inner connection string of the instance.
	AttrClassicInnerConnectionString() interface{}
	// Attribute ConnectionDomain: Connection domain of created instance.
	AttrConnectionDomain() interface{}
	// Attribute Connections: The maximum number of connections supported by the instance.
	AttrConnections() interface{}
	// Attribute DirectConnectionPort: The direct connection port of the instance.
	AttrDirectConnectionPort() interface{}
	// Attribute DirectConnectionString: The direct connection string of the instance.
	AttrDirectConnectionString() interface{}
	// Attribute EngineVersion: The engine version of the instance.
	AttrEngineVersion() interface{}
	// Attribute HasRenewChangeOrder: Indicates whether the Alibaba Cloud account has pending renewal or scaling orders.
	AttrHasRenewChangeOrder() interface{}
	// Attribute InstanceClass: Redis instance type.
	AttrInstanceClass() interface{}
	// Attribute InstanceId: Instance id of created redis instance.
	AttrInstanceId() interface{}
	// Attribute InstanceName: Name of created redis instance.
	AttrInstanceName() interface{}
	// Attribute InstanceType: The engine type of the instance.
	AttrInstanceType() interface{}
	// Attribute NetworkType: The network type.
	AttrNetworkType() interface{}
	// Attribute NodeType: The type of node.
	AttrNodeType() interface{}
	// Attribute OrderId: Order Id of created instance.
	AttrOrderId() interface{}
	// Attribute PackageType: The plan type.
	AttrPackageType() interface{}
	// Attribute Port: Port of created instance.
	AttrPort() interface{}
	// Attribute PrivateIp: The internal IP address of the instance.
	AttrPrivateIp() interface{}
	// Attribute PublicConnectionPort: The public connection port of the instance.
	AttrPublicConnectionPort() interface{}
	// Attribute PublicConnectionString: The public connection string of the instance.
	AttrPublicConnectionString() interface{}
	// Attribute QPS: The queries per second (QPS) supported by the instance.
	AttrQps() interface{}
	// Attribute ResourceGroupId: The ID of the resource group to which the instance belongs.
	AttrResourceGroupId() interface{}
	// Attribute VpcId: The ID of the VPC.
	AttrVpcId() interface{}
	// Attribute VpcPrivateConnectionPort: The vpc private connection port of the instance.
	AttrVpcPrivateConnectionPort() interface{}
	// Attribute VpcPrivateConnectionString: The vpc private connection string of the instance.
	AttrVpcPrivateConnectionString() interface{}
	// Attribute VSwitchId: The ID of the vSwitch.
	AttrVSwitchId() interface{}
	// Attribute ZoneId: The ID of the zone.
	AttrZoneId() 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.IResourceEnvironment
	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() *InstanceProps
	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 `ALIYUN::REDIS::Instance`.

func NewInstance

func NewInstance(scope alicloudroscdkcore.Construct, id *string, props *InstanceProps, enableResourcePropertyConstraint *bool) Instance

Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.

type InstanceProps

type InstanceProps struct {
	// Property autoRenewDuration: The auto-renewal period.
	//
	// Valid values: 1 to 12.
	//   When the instance is about to expire, the instance is automatically renewed
	// based on the number of months specified by this parameter.
	// Note This parameter is valid only when ChargeType is set to PrePaid.
	AutoRenewDuration interface{} `field:"optional" json:"autoRenewDuration" yaml:"autoRenewDuration"`
	// Property backupPolicy: Backup policy.
	BackupPolicy interface{} `field:"optional" json:"backupPolicy" yaml:"backupPolicy"`
	// Property chargeType: The billing method of the ApsaraDB for Redis instance.
	ChargeType interface{} `field:"optional" json:"chargeType" yaml:"chargeType"`
	// Property connections: Connection address.
	Connections interface{} `field:"optional" json:"connections" yaml:"connections"`
	// Property deletionForce: Whether destroy instance when it is in recycle.
	//
	// Default is false.
	DeletionForce interface{} `field:"optional" json:"deletionForce" yaml:"deletionForce"`
	// Property deletionProtection: Specifies whether to enable the release protection feature for the instance.
	//
	// Default is false.
	DeletionProtection interface{} `field:"optional" json:"deletionProtection" yaml:"deletionProtection"`
	// Property engineVersion: Engine version.
	//
	// Supported values: 2.8, 4.0, 5.0, 6.0 and 7.0
	EngineVersion interface{} `field:"optional" json:"engineVersion" yaml:"engineVersion"`
	// Property evictionPolicy: The eviction policy of cache data storage.
	EvictionPolicy interface{} `field:"optional" json:"evictionPolicy" yaml:"evictionPolicy"`
	// Property instanceClass: Redis instance type.
	//
	// Refer the Redis instance type reference, such as 'redis.master.small.default', 'redis.master.4xlarge.default', 'redis.sharding.mid.default' etc
	InstanceClass interface{} `field:"optional" json:"instanceClass" yaml:"instanceClass"`
	// Property instanceMaintainTime: Instance maintain time.
	InstanceMaintainTime interface{} `field:"optional" json:"instanceMaintainTime" yaml:"instanceMaintainTime"`
	// Property instanceName: Display name of the instance, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'.
	InstanceName interface{} `field:"optional" json:"instanceName" yaml:"instanceName"`
	// Property nodeType: The type of node.
	//
	// Valid value:
	// - **STAND_ALONE**
	// - **MASTER_SLAVE**
	// - **double**
	// - **single**.
	NodeType interface{} `field:"optional" json:"nodeType" yaml:"nodeType"`
	// Property password: The password of redis instance.length 8 to 30 characters, need to contain both uppercase and lowercase letters and numbers.
	Password interface{} `field:"optional" json:"password" yaml:"password"`
	// Property period: The period of order, when choose Prepaid required.optional value 1-9, 12, 24, 36, 60 Unit in month.
	Period interface{} `field:"optional" json:"period" yaml:"period"`
	// Property periodUnit: The unit of the subscription duration.
	//
	// Valid values:
	// Month
	// Year
	// Default value: Month.
	PeriodUnit interface{} `field:"optional" json:"periodUnit" yaml:"periodUnit"`
	// Property productType: Product type.
	//
	// Valid values:Local: Community Edition(Local) or Enhanced Edition(Local)Tair_rdb: Performance Enhanced(Cloud Disk)Tair_scm: Persistent Memory(Cloud Disk)Tair_essd: Capacity Storage(Cloud Disk)OnECS: Community Edition(Cloud Disk).
	ProductType interface{} `field:"optional" json:"productType" yaml:"productType"`
	// Property resourceGroupId: Resource group id.
	ResourceGroupId interface{} `field:"optional" json:"resourceGroupId" yaml:"resourceGroupId"`
	// Property secondaryZoneId: The secondary zone ID of the instance.
	SecondaryZoneId interface{} `field:"optional" json:"secondaryZoneId" yaml:"secondaryZoneId"`
	// Property securityGroupId: The IDs of security groups.
	//
	// Separate multiple security group IDs with commas (,) and up to 10 can be set.
	SecurityGroupId interface{} `field:"optional" json:"securityGroupId" yaml:"securityGroupId"`
	// Property shardCount: The number of data nodes in the instance.
	//
	// Default value: 1. Valid values:
	// 1: You can create an instance in the standard architecture that contains only a single data node.
	// For more information about the standard architecture, see Cluster master-replica instances.
	// 2 to 32: You can create an instance in the cluster architecturethat contains the specified number of data nodes.
	// For more information about the cluster architecture, see Cluster master-replica instances.
	ShardCount interface{} `field:"optional" json:"shardCount" yaml:"shardCount"`
	// Property sslEnabled: Modifies the SSL status.
	//
	// Valid values:
	// Disable: disables SSL encryption.
	// Enable: enables SSL encryption.
	// Update: updates the SSL certificate.
	SslEnabled interface{} `field:"optional" json:"sslEnabled" yaml:"sslEnabled"`
	// Property tags: Tags to attach to redis.
	//
	// Max support 20 tags to add during create redis. Each tag with two properties Key and Value, and Key is required.
	Tags *[]*RosInstance_TagsProperty `field:"optional" json:"tags" yaml:"tags"`
	// Property tairConfig: Tair config.
	//
	// This parameter is available only if the InstanceClass parameter is start with tair.
	TairConfig interface{} `field:"optional" json:"tairConfig" yaml:"tairConfig"`
	// Property vpcId: The VPC id to create ecs instance.
	VpcId interface{} `field:"optional" json:"vpcId" yaml:"vpcId"`
	// Property vpcPasswordFree: Specifies whether to enable password free for access within the VPC.
	//
	// If set to:
	// - true: enables password free.
	// - false: disables password free.
	VpcPasswordFree interface{} `field:"optional" json:"vpcPasswordFree" yaml:"vpcPasswordFree"`
	// Property vSwitchId: The vSwitch Id to create ecs instance.
	VSwitchId interface{} `field:"optional" json:"vSwitchId" yaml:"vSwitchId"`
	// Property zoneId: The zone id of input region.
	ZoneId interface{} `field:"optional" json:"zoneId" yaml:"zoneId"`
}

Properties for defining a `Instance`.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-redis-instance

type PrepayInstance

type PrepayInstance interface {
	alicloudroscdkcore.Resource
	IPrepayInstance
	// Attribute ArchitectureType: The architecture.
	AttrArchitectureType() interface{}
	// Attribute Bandwidth: The bandwidth of the instance.
	//
	// Unit: Mbit/s.
	AttrBandwidth() interface{}
	// Attribute Capacity: The storage capacity of the instance.
	//
	// Unit: MB.
	AttrCapacity() interface{}
	// Attribute ChargeType: The billing method of the instance.
	AttrChargeType() interface{}
	// Attribute ClassicInnerConnectionPort: The classic inner connection port of the instance.
	AttrClassicInnerConnectionPort() interface{}
	// Attribute ClassicInnerConnectionString: The classic inner connection string of the instance.
	AttrClassicInnerConnectionString() interface{}
	// Attribute ConnectionDomain: Connection domain of created instance.
	AttrConnectionDomain() interface{}
	// Attribute Connections: The maximum number of connections supported by the instance.
	AttrConnections() interface{}
	// Attribute DirectConnectionPort: The direct connection port of the instance.
	AttrDirectConnectionPort() interface{}
	// Attribute DirectConnectionString: The direct connection string of the instance.
	AttrDirectConnectionString() interface{}
	// Attribute EngineVersion: The engine version of the instance.
	AttrEngineVersion() interface{}
	// Attribute HasRenewChangeOrder: Indicates whether the Alibaba Cloud account has pending renewal or scaling orders.
	AttrHasRenewChangeOrder() interface{}
	// Attribute InstanceClass: Redis instance type.
	AttrInstanceClass() interface{}
	// Attribute InstanceId: Instance id of created redis instance.
	AttrInstanceId() interface{}
	// Attribute InstanceName: Name of created redis instance.
	AttrInstanceName() interface{}
	// Attribute InstanceType: The engine type of the instance.
	AttrInstanceType() interface{}
	// Attribute NetworkType: The network type.
	AttrNetworkType() interface{}
	// Attribute NodeType: The type of node.
	AttrNodeType() interface{}
	// Attribute OrderId: Order Id of created instance.
	AttrOrderId() interface{}
	// Attribute PackageType: The plan type.
	AttrPackageType() interface{}
	// Attribute Port: Port of created instance.
	AttrPort() interface{}
	// Attribute PrivateIp: The internal IP address of the instance.
	AttrPrivateIp() interface{}
	// Attribute PublicConnectionPort: The public connection port of the instance.
	AttrPublicConnectionPort() interface{}
	// Attribute PublicConnectionString: The public connection string of the instance.
	AttrPublicConnectionString() interface{}
	// Attribute QPS: The queries per second (QPS) supported by the instance.
	AttrQps() interface{}
	// Attribute ResourceGroupId: The ID of the resource group to which the instance belongs.
	AttrResourceGroupId() interface{}
	// Attribute VpcId: The ID of the VPC.
	AttrVpcId() interface{}
	// Attribute VpcPrivateConnectionPort: The vpc private connection port of the instance.
	AttrVpcPrivateConnectionPort() interface{}
	// Attribute VpcPrivateConnectionString: The vpc private connection string of the instance.
	AttrVpcPrivateConnectionString() interface{}
	// Attribute VSwitchId: The ID of the vSwitch.
	AttrVSwitchId() interface{}
	// Attribute ZoneId: The ID of the zone.
	AttrZoneId() 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.IResourceEnvironment
	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() *PrepayInstanceProps
	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 `ALIYUN::REDIS::PrepayInstance`.

func NewPrepayInstance

func NewPrepayInstance(scope alicloudroscdkcore.Construct, id *string, props *PrepayInstanceProps, enableResourcePropertyConstraint *bool) PrepayInstance

Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.

type PrepayInstanceProps

type PrepayInstanceProps struct {
	// Property autoPay: Indicates whether automatic payment is enabled.
	//
	// Valid values:
	// false: Automatic payment is disabled. You need to go to Orders to make the payment once an order is generated.
	// true: Automatic payment is enabled. The payment is automatically made.
	// Default is False.
	AutoPay interface{} `field:"optional" json:"autoPay" yaml:"autoPay"`
	// Property autoRenewDuration: The auto-renewal period.
	//
	// Valid values: 1 to 12.
	//   When the instance is about to expire, the instance is automatically renewed
	// based on the number of months specified by this parameter.
	// Note This parameter is valid only when ChargeType is set to PrePaid.
	AutoRenewDuration interface{} `field:"optional" json:"autoRenewDuration" yaml:"autoRenewDuration"`
	// Property backupPolicy: Backup policy.
	BackupPolicy interface{} `field:"optional" json:"backupPolicy" yaml:"backupPolicy"`
	// Property connections: Connection address.
	Connections interface{} `field:"optional" json:"connections" yaml:"connections"`
	// Property deletionForce: Whether destroy instance when it is in recycle.
	//
	// Default is false.
	DeletionForce interface{} `field:"optional" json:"deletionForce" yaml:"deletionForce"`
	// Property deletionProtection: Specifies whether to enable the release protection feature for the instance.
	//
	// Default is false.
	DeletionProtection interface{} `field:"optional" json:"deletionProtection" yaml:"deletionProtection"`
	// Property engineVersion: Engine version.
	//
	// Supported values: 2.8, 4.0, 5.0, 6.0 and 7.0
	EngineVersion interface{} `field:"optional" json:"engineVersion" yaml:"engineVersion"`
	// Property evictionPolicy: The eviction policy of cache data storage.
	EvictionPolicy interface{} `field:"optional" json:"evictionPolicy" yaml:"evictionPolicy"`
	// Property instanceClass: Redis instance type.
	//
	// Refer the Redis instance type reference, such as 'redis.master.small.default', 'redis.master.4xlarge.default', 'redis.sharding.mid.default' etc
	InstanceClass interface{} `field:"optional" json:"instanceClass" yaml:"instanceClass"`
	// Property instanceMaintainTime: Instance maintain time.
	InstanceMaintainTime interface{} `field:"optional" json:"instanceMaintainTime" yaml:"instanceMaintainTime"`
	// Property instanceName: Display name of the instance, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'.
	InstanceName interface{} `field:"optional" json:"instanceName" yaml:"instanceName"`
	// Property nodeType: The type of node.
	//
	// Valid value:
	// - **STAND_ALONE**
	// - **MASTER_SLAVE**
	// - **double**
	// - **single**.
	NodeType interface{} `field:"optional" json:"nodeType" yaml:"nodeType"`
	// Property password: The password of redis instance.length 8 to 30 characters, need to contain both uppercase and lowercase letters and numbers.
	Password interface{} `field:"optional" json:"password" yaml:"password"`
	// Property period: The period of order, when choose Prepaid required.optional value 1-9, 12, 24, 36, 60 Unit in month.
	Period interface{} `field:"optional" json:"period" yaml:"period"`
	// Property periodUnit: The unit of the subscription duration.
	//
	// Valid values:
	// Month
	// Year
	// Default value: Month.
	PeriodUnit interface{} `field:"optional" json:"periodUnit" yaml:"periodUnit"`
	// Property productType: Product type.
	//
	// Valid values:Local: Community Edition(Local) or Enhanced Edition(Local)Tair_rdb: Performance Enhanced(Cloud Disk)Tair_scm: Persistent Memory(Cloud Disk)Tair_essd: Capacity Storage(Cloud Disk)OnECS: Community Edition(Cloud Disk).
	ProductType interface{} `field:"optional" json:"productType" yaml:"productType"`
	// Property resourceGroupId: Resource group id.
	ResourceGroupId interface{} `field:"optional" json:"resourceGroupId" yaml:"resourceGroupId"`
	// Property secondaryZoneId: The secondary zone ID of the instance.
	SecondaryZoneId interface{} `field:"optional" json:"secondaryZoneId" yaml:"secondaryZoneId"`
	// Property securityGroupId: The IDs of security groups.
	//
	// Separate multiple security group IDs with commas (,) and up to 10 can be set.
	SecurityGroupId interface{} `field:"optional" json:"securityGroupId" yaml:"securityGroupId"`
	// Property shardCount: The number of data nodes in the instance.
	//
	// Default value: 1. Valid values:
	// 1: You can create an instance in the standard architecture that contains only a single data node.
	// For more information about the standard architecture, see Cluster master-replica instances.
	// 2 to 32: You can create an instance in the cluster architecturethat contains the specified number of data nodes.
	// For more information about the cluster architecture, see Cluster master-replica instances.
	ShardCount interface{} `field:"optional" json:"shardCount" yaml:"shardCount"`
	// Property sslEnabled: Modifies the SSL status.
	//
	// Valid values:
	// Disable: disables SSL encryption.
	// Enable: enables SSL encryption.
	// Update: updates the SSL certificate.
	SslEnabled interface{} `field:"optional" json:"sslEnabled" yaml:"sslEnabled"`
	// Property tags: Tags to attach to redis.
	//
	// Max support 20 tags to add during create redis. Each tag with two properties Key and Value, and Key is required.
	Tags *[]*RosPrepayInstance_TagsProperty `field:"optional" json:"tags" yaml:"tags"`
	// Property tairConfig: Tair config.
	//
	// This parameter is available only if the InstanceClass parameter is start with tair.
	TairConfig interface{} `field:"optional" json:"tairConfig" yaml:"tairConfig"`
	// Property vpcId: The VPC id to create ecs instance.
	VpcId interface{} `field:"optional" json:"vpcId" yaml:"vpcId"`
	// Property vpcPasswordFree: Specifies whether to enable password free for access within the VPC.
	//
	// If set to:
	// - true: enables password free.
	// - false: disables password free.
	VpcPasswordFree interface{} `field:"optional" json:"vpcPasswordFree" yaml:"vpcPasswordFree"`
	// Property vSwitchId: The vSwitch Id to create ecs instance.
	VSwitchId interface{} `field:"optional" json:"vSwitchId" yaml:"vSwitchId"`
	// Property zoneId: The zone id of input region.
	ZoneId interface{} `field:"optional" json:"zoneId" yaml:"zoneId"`
}

Properties for defining a `PrepayInstance`.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-redis-prepayinstance

type RosAccount

type RosAccount interface {
	alicloudroscdkcore.RosResource
	AccountDescription() interface{}
	SetAccountDescription(val interface{})
	AccountName() interface{}
	SetAccountName(val interface{})
	AccountPassword() interface{}
	SetAccountPassword(val interface{})
	AccountPrivilege() interface{}
	SetAccountPrivilege(val interface{})
	AccountType() interface{}
	SetAccountType(val interface{})
	AttrAccountName() alicloudroscdkcore.IResolvable
	AttrInstanceId() 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
	EnableResourcePropertyConstraint() *bool
	SetEnableResourcePropertyConstraint(val *bool)
	InstanceId() interface{}
	SetInstanceId(val interface{})
	// The logical ID for this stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	LogicalId() *string
	// The construct tree node associated with this construct.
	Node() alicloudroscdkcore.ConstructNode
	// Return a string that will be resolved to a RosTemplate `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	Ref() *string
	// Options for this resource, such as condition, update policy etc.
	RosOptions() alicloudroscdkcore.IRosResourceOptions
	RosProperties() *map[string]interface{}
	// ROS resource type.
	RosResourceType() *string
	// The stack in which this element is defined.
	//
	// RosElements must be defined within a stack scope (directly or indirectly).
	Stack() alicloudroscdkcore.Stack
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperites() *map[string]interface{}
	AddCondition(con alicloudroscdkcore.RosCondition)
	AddCount(count interface{})
	// Syntactic sugar for `addOverride(path, undefined)`.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	AddDependsOn(target alicloudroscdkcore.RosResource)
	AddDesc(desc *string)
	AddMetaData(key *string, value interface{})
	// Adds an override to the synthesized ROS resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// For example,
	// “`typescript
	// addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute'])
	// addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE')
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//    "GlobalSecondaryIndexes": [
	//      {
	//        "Projection": {
	//          "NonKeyAttributes": [ "myattribute" ]
	//          ...
	//        }
	//        ...
	//      },
	//      {
	//        "ProjectionType": "INCLUDE"
	//        ...
	//      },
	//    ]
	//    ...
	// }
	// “`.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	AddPropertyOverride(propertyPath *string, value interface{})
	AddRosDependency(target *string)
	// Sets the deletion policy of the resource based on the removal policy specified.
	ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy, options *alicloudroscdkcore.RemovalPolicyOptions)
	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 `ALIYUN::REDIS::Account`.

func NewRosAccount

func NewRosAccount(scope alicloudroscdkcore.Construct, id *string, props *RosAccountProps, enableResourcePropertyConstraint *bool) RosAccount

type RosAccountProps

type RosAccountProps struct {
	AccountName        interface{} `field:"required" json:"accountName" yaml:"accountName"`
	AccountPassword    interface{} `field:"required" json:"accountPassword" yaml:"accountPassword"`
	InstanceId         interface{} `field:"required" json:"instanceId" yaml:"instanceId"`
	AccountDescription interface{} `field:"optional" json:"accountDescription" yaml:"accountDescription"`
	AccountPrivilege   interface{} `field:"optional" json:"accountPrivilege" yaml:"accountPrivilege"`
	AccountType        interface{} `field:"optional" json:"accountType" yaml:"accountType"`
}

Properties for defining a `RosAccount`.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-redis-account

type RosAuditLogConfig

type RosAuditLogConfig interface {
	alicloudroscdkcore.RosResource
	AttrInstanceId() 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
	EnableResourcePropertyConstraint() *bool
	SetEnableResourcePropertyConstraint(val *bool)
	InstanceId() interface{}
	SetInstanceId(val interface{})
	// The logical ID for this stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	LogicalId() *string
	// The construct tree node associated with this construct.
	Node() alicloudroscdkcore.ConstructNode
	// Return a string that will be resolved to a RosTemplate `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	Ref() *string
	Retention() interface{}
	SetRetention(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 `ALIYUN::REDIS::AuditLogConfig`.

func NewRosAuditLogConfig

func NewRosAuditLogConfig(scope alicloudroscdkcore.Construct, id *string, props *RosAuditLogConfigProps, enableResourcePropertyConstraint *bool) RosAuditLogConfig

type RosAuditLogConfigProps

type RosAuditLogConfigProps struct {
	InstanceId interface{} `field:"required" json:"instanceId" yaml:"instanceId"`
	Retention  interface{} `field:"required" json:"retention" yaml:"retention"`
}

Properties for defining a `RosAuditLogConfig`.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-redis-auditlogconfig

type RosConnection

type RosConnection interface {
	alicloudroscdkcore.RosResource
	AttrConnectionString() alicloudroscdkcore.IResolvable
	ConnectionStringPrefix() interface{}
	SetConnectionStringPrefix(val interface{})
	ConnectionType() interface{}
	SetConnectionType(val interface{})
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aliyun:ros:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	CreationStack() *[]*string
	EnableResourcePropertyConstraint() *bool
	SetEnableResourcePropertyConstraint(val *bool)
	InstanceId() interface{}
	SetInstanceId(val interface{})
	// The logical ID for this stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	LogicalId() *string
	// The construct tree node associated with this construct.
	Node() alicloudroscdkcore.ConstructNode
	Port() interface{}
	SetPort(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
	// 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 `ALIYUN::REDIS::Connection`.

func NewRosConnection

func NewRosConnection(scope alicloudroscdkcore.Construct, id *string, props *RosConnectionProps, enableResourcePropertyConstraint *bool) RosConnection

type RosConnectionProps

type RosConnectionProps struct {
	ConnectionStringPrefix interface{} `field:"required" json:"connectionStringPrefix" yaml:"connectionStringPrefix"`
	ConnectionType         interface{} `field:"required" json:"connectionType" yaml:"connectionType"`
	InstanceId             interface{} `field:"required" json:"instanceId" yaml:"instanceId"`
	Port                   interface{} `field:"required" json:"port" yaml:"port"`
}

Properties for defining a `RosConnection`.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-redis-connection

type RosInstance

type RosInstance interface {
	alicloudroscdkcore.RosResource
	AttrArchitectureType() alicloudroscdkcore.IResolvable
	AttrBandwidth() alicloudroscdkcore.IResolvable
	AttrCapacity() alicloudroscdkcore.IResolvable
	AttrChargeType() alicloudroscdkcore.IResolvable
	AttrClassicInnerConnectionPort() alicloudroscdkcore.IResolvable
	AttrClassicInnerConnectionString() alicloudroscdkcore.IResolvable
	AttrConnectionDomain() alicloudroscdkcore.IResolvable
	AttrConnections() alicloudroscdkcore.IResolvable
	AttrDirectConnectionPort() alicloudroscdkcore.IResolvable
	AttrDirectConnectionString() alicloudroscdkcore.IResolvable
	AttrEngineVersion() alicloudroscdkcore.IResolvable
	AttrHasRenewChangeOrder() alicloudroscdkcore.IResolvable
	AttrInstanceClass() alicloudroscdkcore.IResolvable
	AttrInstanceId() alicloudroscdkcore.IResolvable
	AttrInstanceName() alicloudroscdkcore.IResolvable
	AttrInstanceType() alicloudroscdkcore.IResolvable
	AttrNetworkType() alicloudroscdkcore.IResolvable
	AttrNodeType() alicloudroscdkcore.IResolvable
	AttrOrderId() alicloudroscdkcore.IResolvable
	AttrPackageType() alicloudroscdkcore.IResolvable
	AttrPort() alicloudroscdkcore.IResolvable
	AttrPrivateIp() alicloudroscdkcore.IResolvable
	AttrPublicConnectionPort() alicloudroscdkcore.IResolvable
	AttrPublicConnectionString() alicloudroscdkcore.IResolvable
	AttrQps() alicloudroscdkcore.IResolvable
	AttrResourceGroupId() alicloudroscdkcore.IResolvable
	AttrVpcId() alicloudroscdkcore.IResolvable
	AttrVpcPrivateConnectionPort() alicloudroscdkcore.IResolvable
	AttrVpcPrivateConnectionString() alicloudroscdkcore.IResolvable
	AttrVSwitchId() alicloudroscdkcore.IResolvable
	AttrZoneId() alicloudroscdkcore.IResolvable
	AutoRenewDuration() interface{}
	SetAutoRenewDuration(val interface{})
	BackupPolicy() interface{}
	SetBackupPolicy(val interface{})
	ChargeType() interface{}
	SetChargeType(val interface{})
	Connections() interface{}
	SetConnections(val interface{})
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aliyun:ros:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	CreationStack() *[]*string
	DeletionForce() interface{}
	SetDeletionForce(val interface{})
	DeletionProtection() interface{}
	SetDeletionProtection(val interface{})
	EnableResourcePropertyConstraint() *bool
	SetEnableResourcePropertyConstraint(val *bool)
	EngineVersion() interface{}
	SetEngineVersion(val interface{})
	EvictionPolicy() interface{}
	SetEvictionPolicy(val interface{})
	InstanceClass() interface{}
	SetInstanceClass(val interface{})
	InstanceMaintainTime() interface{}
	SetInstanceMaintainTime(val interface{})
	InstanceName() interface{}
	SetInstanceName(val interface{})
	// The logical ID for this stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	LogicalId() *string
	// The construct tree node associated with this construct.
	Node() alicloudroscdkcore.ConstructNode
	NodeType() interface{}
	SetNodeType(val interface{})
	Password() interface{}
	SetPassword(val interface{})
	Period() interface{}
	SetPeriod(val interface{})
	PeriodUnit() interface{}
	SetPeriodUnit(val interface{})
	ProductType() interface{}
	SetProductType(val interface{})
	// Return a string that will be resolved to a RosTemplate `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	Ref() *string
	ResourceGroupId() interface{}
	SetResourceGroupId(val interface{})
	// Options for this resource, such as condition, update policy etc.
	RosOptions() alicloudroscdkcore.IRosResourceOptions
	RosProperties() *map[string]interface{}
	// ROS resource type.
	RosResourceType() *string
	SecondaryZoneId() interface{}
	SetSecondaryZoneId(val interface{})
	SecurityGroupId() interface{}
	SetSecurityGroupId(val interface{})
	ShardCount() interface{}
	SetShardCount(val interface{})
	SslEnabled() interface{}
	SetSslEnabled(val interface{})
	// The stack in which this element is defined.
	//
	// RosElements must be defined within a stack scope (directly or indirectly).
	Stack() alicloudroscdkcore.Stack
	Tags() *[]*RosInstance_TagsProperty
	SetTags(val *[]*RosInstance_TagsProperty)
	TairConfig() interface{}
	SetTairConfig(val interface{})
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperites() *map[string]interface{}
	VpcId() interface{}
	SetVpcId(val interface{})
	VpcPasswordFree() interface{}
	SetVpcPasswordFree(val interface{})
	VSwitchId() interface{}
	SetVSwitchId(val interface{})
	ZoneId() interface{}
	SetZoneId(val interface{})
	AddCondition(con alicloudroscdkcore.RosCondition)
	AddCount(count interface{})
	// Syntactic sugar for `addOverride(path, undefined)`.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	AddDependsOn(target alicloudroscdkcore.RosResource)
	AddDesc(desc *string)
	AddMetaData(key *string, value interface{})
	// Adds an override to the synthesized ROS resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// For example,
	// “`typescript
	// addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute'])
	// addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE')
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//    "GlobalSecondaryIndexes": [
	//      {
	//        "Projection": {
	//          "NonKeyAttributes": [ "myattribute" ]
	//          ...
	//        }
	//        ...
	//      },
	//      {
	//        "ProjectionType": "INCLUDE"
	//        ...
	//      },
	//    ]
	//    ...
	// }
	// “`.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	AddPropertyOverride(propertyPath *string, value interface{})
	AddRosDependency(target *string)
	// Sets the deletion policy of the resource based on the removal policy specified.
	ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy, options *alicloudroscdkcore.RemovalPolicyOptions)
	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 `ALIYUN::REDIS::Instance`.

func NewRosInstance

func NewRosInstance(scope alicloudroscdkcore.Construct, id *string, props *RosInstanceProps, enableResourcePropertyConstraint *bool) RosInstance

type RosInstanceProps

type RosInstanceProps struct {
	AutoRenewDuration    interface{}                  `field:"optional" json:"autoRenewDuration" yaml:"autoRenewDuration"`
	BackupPolicy         interface{}                  `field:"optional" json:"backupPolicy" yaml:"backupPolicy"`
	ChargeType           interface{}                  `field:"optional" json:"chargeType" yaml:"chargeType"`
	Connections          interface{}                  `field:"optional" json:"connections" yaml:"connections"`
	DeletionForce        interface{}                  `field:"optional" json:"deletionForce" yaml:"deletionForce"`
	DeletionProtection   interface{}                  `field:"optional" json:"deletionProtection" yaml:"deletionProtection"`
	EngineVersion        interface{}                  `field:"optional" json:"engineVersion" yaml:"engineVersion"`
	EvictionPolicy       interface{}                  `field:"optional" json:"evictionPolicy" yaml:"evictionPolicy"`
	InstanceClass        interface{}                  `field:"optional" json:"instanceClass" yaml:"instanceClass"`
	InstanceMaintainTime interface{}                  `field:"optional" json:"instanceMaintainTime" yaml:"instanceMaintainTime"`
	InstanceName         interface{}                  `field:"optional" json:"instanceName" yaml:"instanceName"`
	NodeType             interface{}                  `field:"optional" json:"nodeType" yaml:"nodeType"`
	Password             interface{}                  `field:"optional" json:"password" yaml:"password"`
	Period               interface{}                  `field:"optional" json:"period" yaml:"period"`
	PeriodUnit           interface{}                  `field:"optional" json:"periodUnit" yaml:"periodUnit"`
	ProductType          interface{}                  `field:"optional" json:"productType" yaml:"productType"`
	ResourceGroupId      interface{}                  `field:"optional" json:"resourceGroupId" yaml:"resourceGroupId"`
	SecondaryZoneId      interface{}                  `field:"optional" json:"secondaryZoneId" yaml:"secondaryZoneId"`
	SecurityGroupId      interface{}                  `field:"optional" json:"securityGroupId" yaml:"securityGroupId"`
	ShardCount           interface{}                  `field:"optional" json:"shardCount" yaml:"shardCount"`
	SslEnabled           interface{}                  `field:"optional" json:"sslEnabled" yaml:"sslEnabled"`
	Tags                 *[]*RosInstance_TagsProperty `field:"optional" json:"tags" yaml:"tags"`
	TairConfig           interface{}                  `field:"optional" json:"tairConfig" yaml:"tairConfig"`
	VpcId                interface{}                  `field:"optional" json:"vpcId" yaml:"vpcId"`
	VpcPasswordFree      interface{}                  `field:"optional" json:"vpcPasswordFree" yaml:"vpcPasswordFree"`
	VSwitchId            interface{}                  `field:"optional" json:"vSwitchId" yaml:"vSwitchId"`
	ZoneId               interface{}                  `field:"optional" json:"zoneId" yaml:"zoneId"`
}

Properties for defining a `RosInstance`.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-redis-instance

type RosInstance_BackupPolicyProperty

type RosInstance_BackupPolicyProperty struct {
	PreferredBackupPeriod interface{} `field:"required" json:"preferredBackupPeriod" yaml:"preferredBackupPeriod"`
	PreferredBackupTime   interface{} `field:"required" json:"preferredBackupTime" yaml:"preferredBackupTime"`
	EnableBackupLog       interface{} `field:"optional" json:"enableBackupLog" yaml:"enableBackupLog"`
}

type RosInstance_ClassicInnerConnectionProperty

type RosInstance_ClassicInnerConnectionProperty struct {
	ConnectionPort   interface{} `field:"required" json:"connectionPort" yaml:"connectionPort"`
	ConnectionString interface{} `field:"required" json:"connectionString" yaml:"connectionString"`
}

type RosInstance_ConnectionsProperty

type RosInstance_ConnectionsProperty struct {
	ClassicInnerConnection interface{} `field:"optional" json:"classicInnerConnection" yaml:"classicInnerConnection"`
	DirectConnection       interface{} `field:"optional" json:"directConnection" yaml:"directConnection"`
	PublicConnection       interface{} `field:"optional" json:"publicConnection" yaml:"publicConnection"`
	VpcPrivateConnection   interface{} `field:"optional" json:"vpcPrivateConnection" yaml:"vpcPrivateConnection"`
}

type RosInstance_DirectConnectionProperty

type RosInstance_DirectConnectionProperty struct {
	ConnectionPort   interface{} `field:"required" json:"connectionPort" yaml:"connectionPort"`
	ConnectionString interface{} `field:"required" json:"connectionString" yaml:"connectionString"`
}

type RosInstance_InstanceMaintainTimeProperty

type RosInstance_InstanceMaintainTimeProperty struct {
	MaintainEndTime   interface{} `field:"optional" json:"maintainEndTime" yaml:"maintainEndTime"`
	MaintainStartTime interface{} `field:"optional" json:"maintainStartTime" yaml:"maintainStartTime"`
}

type RosInstance_PublicConnectionProperty

type RosInstance_PublicConnectionProperty struct {
	ConnectionPort   interface{} `field:"required" json:"connectionPort" yaml:"connectionPort"`
	ConnectionString interface{} `field:"required" json:"connectionString" yaml:"connectionString"`
}

type RosInstance_TagsProperty

type RosInstance_TagsProperty struct {
	Key   interface{} `field:"required" json:"key" yaml:"key"`
	Value interface{} `field:"optional" json:"value" yaml:"value"`
}

type RosInstance_TairConfigProperty

type RosInstance_TairConfigProperty struct {
	ShardCount  interface{} `field:"optional" json:"shardCount" yaml:"shardCount"`
	Storage     interface{} `field:"optional" json:"storage" yaml:"storage"`
	StorageType interface{} `field:"optional" json:"storageType" yaml:"storageType"`
}

type RosInstance_VpcPrivateConnectionProperty

type RosInstance_VpcPrivateConnectionProperty struct {
	ConnectionPort   interface{} `field:"required" json:"connectionPort" yaml:"connectionPort"`
	ConnectionString interface{} `field:"required" json:"connectionString" yaml:"connectionString"`
}

type RosPrepayInstance

type RosPrepayInstance interface {
	alicloudroscdkcore.RosResource
	AttrArchitectureType() alicloudroscdkcore.IResolvable
	AttrBandwidth() alicloudroscdkcore.IResolvable
	AttrCapacity() alicloudroscdkcore.IResolvable
	AttrChargeType() alicloudroscdkcore.IResolvable
	AttrClassicInnerConnectionPort() alicloudroscdkcore.IResolvable
	AttrClassicInnerConnectionString() alicloudroscdkcore.IResolvable
	AttrConnectionDomain() alicloudroscdkcore.IResolvable
	AttrConnections() alicloudroscdkcore.IResolvable
	AttrDirectConnectionPort() alicloudroscdkcore.IResolvable
	AttrDirectConnectionString() alicloudroscdkcore.IResolvable
	AttrEngineVersion() alicloudroscdkcore.IResolvable
	AttrHasRenewChangeOrder() alicloudroscdkcore.IResolvable
	AttrInstanceClass() alicloudroscdkcore.IResolvable
	AttrInstanceId() alicloudroscdkcore.IResolvable
	AttrInstanceName() alicloudroscdkcore.IResolvable
	AttrInstanceType() alicloudroscdkcore.IResolvable
	AttrNetworkType() alicloudroscdkcore.IResolvable
	AttrNodeType() alicloudroscdkcore.IResolvable
	AttrOrderId() alicloudroscdkcore.IResolvable
	AttrPackageType() alicloudroscdkcore.IResolvable
	AttrPort() alicloudroscdkcore.IResolvable
	AttrPrivateIp() alicloudroscdkcore.IResolvable
	AttrPublicConnectionPort() alicloudroscdkcore.IResolvable
	AttrPublicConnectionString() alicloudroscdkcore.IResolvable
	AttrQps() alicloudroscdkcore.IResolvable
	AttrResourceGroupId() alicloudroscdkcore.IResolvable
	AttrVpcId() alicloudroscdkcore.IResolvable
	AttrVpcPrivateConnectionPort() alicloudroscdkcore.IResolvable
	AttrVpcPrivateConnectionString() alicloudroscdkcore.IResolvable
	AttrVSwitchId() alicloudroscdkcore.IResolvable
	AttrZoneId() alicloudroscdkcore.IResolvable
	AutoPay() interface{}
	SetAutoPay(val interface{})
	AutoRenewDuration() interface{}
	SetAutoRenewDuration(val interface{})
	BackupPolicy() interface{}
	SetBackupPolicy(val interface{})
	Connections() interface{}
	SetConnections(val interface{})
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aliyun:ros:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	CreationStack() *[]*string
	DeletionForce() interface{}
	SetDeletionForce(val interface{})
	DeletionProtection() interface{}
	SetDeletionProtection(val interface{})
	EnableResourcePropertyConstraint() *bool
	SetEnableResourcePropertyConstraint(val *bool)
	EngineVersion() interface{}
	SetEngineVersion(val interface{})
	EvictionPolicy() interface{}
	SetEvictionPolicy(val interface{})
	InstanceClass() interface{}
	SetInstanceClass(val interface{})
	InstanceMaintainTime() interface{}
	SetInstanceMaintainTime(val interface{})
	InstanceName() interface{}
	SetInstanceName(val interface{})
	// The logical ID for this stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	LogicalId() *string
	// The construct tree node associated with this construct.
	Node() alicloudroscdkcore.ConstructNode
	NodeType() interface{}
	SetNodeType(val interface{})
	Password() interface{}
	SetPassword(val interface{})
	Period() interface{}
	SetPeriod(val interface{})
	PeriodUnit() interface{}
	SetPeriodUnit(val interface{})
	ProductType() interface{}
	SetProductType(val interface{})
	// Return a string that will be resolved to a RosTemplate `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	Ref() *string
	ResourceGroupId() interface{}
	SetResourceGroupId(val interface{})
	// Options for this resource, such as condition, update policy etc.
	RosOptions() alicloudroscdkcore.IRosResourceOptions
	RosProperties() *map[string]interface{}
	// ROS resource type.
	RosResourceType() *string
	SecondaryZoneId() interface{}
	SetSecondaryZoneId(val interface{})
	SecurityGroupId() interface{}
	SetSecurityGroupId(val interface{})
	ShardCount() interface{}
	SetShardCount(val interface{})
	SslEnabled() interface{}
	SetSslEnabled(val interface{})
	// The stack in which this element is defined.
	//
	// RosElements must be defined within a stack scope (directly or indirectly).
	Stack() alicloudroscdkcore.Stack
	Tags() *[]*RosPrepayInstance_TagsProperty
	SetTags(val *[]*RosPrepayInstance_TagsProperty)
	TairConfig() interface{}
	SetTairConfig(val interface{})
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperites() *map[string]interface{}
	VpcId() interface{}
	SetVpcId(val interface{})
	VpcPasswordFree() interface{}
	SetVpcPasswordFree(val interface{})
	VSwitchId() interface{}
	SetVSwitchId(val interface{})
	ZoneId() interface{}
	SetZoneId(val interface{})
	AddCondition(con alicloudroscdkcore.RosCondition)
	AddCount(count interface{})
	// Syntactic sugar for `addOverride(path, undefined)`.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	AddDependsOn(target alicloudroscdkcore.RosResource)
	AddDesc(desc *string)
	AddMetaData(key *string, value interface{})
	// Adds an override to the synthesized ROS resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// For example,
	// “`typescript
	// addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute'])
	// addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE')
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//    "GlobalSecondaryIndexes": [
	//      {
	//        "Projection": {
	//          "NonKeyAttributes": [ "myattribute" ]
	//          ...
	//        }
	//        ...
	//      },
	//      {
	//        "ProjectionType": "INCLUDE"
	//        ...
	//      },
	//    ]
	//    ...
	// }
	// “`.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	AddPropertyOverride(propertyPath *string, value interface{})
	AddRosDependency(target *string)
	// Sets the deletion policy of the resource based on the removal policy specified.
	ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy, options *alicloudroscdkcore.RemovalPolicyOptions)
	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 `ALIYUN::REDIS::PrepayInstance`.

func NewRosPrepayInstance

func NewRosPrepayInstance(scope alicloudroscdkcore.Construct, id *string, props *RosPrepayInstanceProps, enableResourcePropertyConstraint *bool) RosPrepayInstance

type RosPrepayInstanceProps

type RosPrepayInstanceProps struct {
	AutoPay              interface{}                        `field:"optional" json:"autoPay" yaml:"autoPay"`
	AutoRenewDuration    interface{}                        `field:"optional" json:"autoRenewDuration" yaml:"autoRenewDuration"`
	BackupPolicy         interface{}                        `field:"optional" json:"backupPolicy" yaml:"backupPolicy"`
	Connections          interface{}                        `field:"optional" json:"connections" yaml:"connections"`
	DeletionForce        interface{}                        `field:"optional" json:"deletionForce" yaml:"deletionForce"`
	DeletionProtection   interface{}                        `field:"optional" json:"deletionProtection" yaml:"deletionProtection"`
	EngineVersion        interface{}                        `field:"optional" json:"engineVersion" yaml:"engineVersion"`
	EvictionPolicy       interface{}                        `field:"optional" json:"evictionPolicy" yaml:"evictionPolicy"`
	InstanceClass        interface{}                        `field:"optional" json:"instanceClass" yaml:"instanceClass"`
	InstanceMaintainTime interface{}                        `field:"optional" json:"instanceMaintainTime" yaml:"instanceMaintainTime"`
	InstanceName         interface{}                        `field:"optional" json:"instanceName" yaml:"instanceName"`
	NodeType             interface{}                        `field:"optional" json:"nodeType" yaml:"nodeType"`
	Password             interface{}                        `field:"optional" json:"password" yaml:"password"`
	Period               interface{}                        `field:"optional" json:"period" yaml:"period"`
	PeriodUnit           interface{}                        `field:"optional" json:"periodUnit" yaml:"periodUnit"`
	ProductType          interface{}                        `field:"optional" json:"productType" yaml:"productType"`
	ResourceGroupId      interface{}                        `field:"optional" json:"resourceGroupId" yaml:"resourceGroupId"`
	SecondaryZoneId      interface{}                        `field:"optional" json:"secondaryZoneId" yaml:"secondaryZoneId"`
	SecurityGroupId      interface{}                        `field:"optional" json:"securityGroupId" yaml:"securityGroupId"`
	ShardCount           interface{}                        `field:"optional" json:"shardCount" yaml:"shardCount"`
	SslEnabled           interface{}                        `field:"optional" json:"sslEnabled" yaml:"sslEnabled"`
	Tags                 *[]*RosPrepayInstance_TagsProperty `field:"optional" json:"tags" yaml:"tags"`
	TairConfig           interface{}                        `field:"optional" json:"tairConfig" yaml:"tairConfig"`
	VpcId                interface{}                        `field:"optional" json:"vpcId" yaml:"vpcId"`
	VpcPasswordFree      interface{}                        `field:"optional" json:"vpcPasswordFree" yaml:"vpcPasswordFree"`
	VSwitchId            interface{}                        `field:"optional" json:"vSwitchId" yaml:"vSwitchId"`
	ZoneId               interface{}                        `field:"optional" json:"zoneId" yaml:"zoneId"`
}

Properties for defining a `RosPrepayInstance`.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-redis-prepayinstance

type RosPrepayInstance_BackupPolicyProperty

type RosPrepayInstance_BackupPolicyProperty struct {
	PreferredBackupPeriod interface{} `field:"required" json:"preferredBackupPeriod" yaml:"preferredBackupPeriod"`
	PreferredBackupTime   interface{} `field:"required" json:"preferredBackupTime" yaml:"preferredBackupTime"`
	EnableBackupLog       interface{} `field:"optional" json:"enableBackupLog" yaml:"enableBackupLog"`
}

type RosPrepayInstance_ClassicInnerConnectionProperty

type RosPrepayInstance_ClassicInnerConnectionProperty struct {
	ConnectionPort   interface{} `field:"required" json:"connectionPort" yaml:"connectionPort"`
	ConnectionString interface{} `field:"required" json:"connectionString" yaml:"connectionString"`
}

type RosPrepayInstance_ConnectionsProperty

type RosPrepayInstance_ConnectionsProperty struct {
	ClassicInnerConnection interface{} `field:"optional" json:"classicInnerConnection" yaml:"classicInnerConnection"`
	DirectConnection       interface{} `field:"optional" json:"directConnection" yaml:"directConnection"`
	PublicConnection       interface{} `field:"optional" json:"publicConnection" yaml:"publicConnection"`
	VpcPrivateConnection   interface{} `field:"optional" json:"vpcPrivateConnection" yaml:"vpcPrivateConnection"`
}

type RosPrepayInstance_DirectConnectionProperty

type RosPrepayInstance_DirectConnectionProperty struct {
	ConnectionPort   interface{} `field:"required" json:"connectionPort" yaml:"connectionPort"`
	ConnectionString interface{} `field:"required" json:"connectionString" yaml:"connectionString"`
}

type RosPrepayInstance_InstanceMaintainTimeProperty

type RosPrepayInstance_InstanceMaintainTimeProperty struct {
	MaintainEndTime   interface{} `field:"optional" json:"maintainEndTime" yaml:"maintainEndTime"`
	MaintainStartTime interface{} `field:"optional" json:"maintainStartTime" yaml:"maintainStartTime"`
}

type RosPrepayInstance_PublicConnectionProperty

type RosPrepayInstance_PublicConnectionProperty struct {
	ConnectionPort   interface{} `field:"required" json:"connectionPort" yaml:"connectionPort"`
	ConnectionString interface{} `field:"required" json:"connectionString" yaml:"connectionString"`
}

type RosPrepayInstance_TagsProperty

type RosPrepayInstance_TagsProperty struct {
	Key   interface{} `field:"required" json:"key" yaml:"key"`
	Value interface{} `field:"optional" json:"value" yaml:"value"`
}

type RosPrepayInstance_TairConfigProperty

type RosPrepayInstance_TairConfigProperty struct {
	ShardCount  interface{} `field:"optional" json:"shardCount" yaml:"shardCount"`
	Storage     interface{} `field:"optional" json:"storage" yaml:"storage"`
	StorageType interface{} `field:"optional" json:"storageType" yaml:"storageType"`
}

type RosPrepayInstance_VpcPrivateConnectionProperty

type RosPrepayInstance_VpcPrivateConnectionProperty struct {
	ConnectionPort   interface{} `field:"required" json:"connectionPort" yaml:"connectionPort"`
	ConnectionString interface{} `field:"required" json:"connectionString" yaml:"connectionString"`
}

type RosWhitelist

type RosWhitelist interface {
	alicloudroscdkcore.RosResource
	AttrSecurityIpGroupAttribute() alicloudroscdkcore.IResolvable
	AttrSecurityIpGroupName() alicloudroscdkcore.IResolvable
	AttrSecurityIps() 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
	EnableResourcePropertyConstraint() *bool
	SetEnableResourcePropertyConstraint(val *bool)
	InstanceId() interface{}
	SetInstanceId(val interface{})
	// The logical ID for this stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	LogicalId() *string
	// The construct tree node associated with this construct.
	Node() alicloudroscdkcore.ConstructNode
	// Return a string that will be resolved to a RosTemplate `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	Ref() *string
	// Options for this resource, such as condition, update policy etc.
	RosOptions() alicloudroscdkcore.IRosResourceOptions
	RosProperties() *map[string]interface{}
	// ROS resource type.
	RosResourceType() *string
	SecurityIpGroupAttribute() interface{}
	SetSecurityIpGroupAttribute(val interface{})
	SecurityIpGroupName() interface{}
	SetSecurityIpGroupName(val interface{})
	SecurityIps() interface{}
	SetSecurityIps(val interface{})
	// 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 `ALIYUN::REDIS::Whitelist`.

func NewRosWhitelist

func NewRosWhitelist(scope alicloudroscdkcore.Construct, id *string, props *RosWhitelistProps, enableResourcePropertyConstraint *bool) RosWhitelist

type RosWhitelistProps

type RosWhitelistProps struct {
	InstanceId               interface{} `field:"required" json:"instanceId" yaml:"instanceId"`
	SecurityIps              interface{} `field:"required" json:"securityIps" yaml:"securityIps"`
	SecurityIpGroupAttribute interface{} `field:"optional" json:"securityIpGroupAttribute" yaml:"securityIpGroupAttribute"`
	SecurityIpGroupName      interface{} `field:"optional" json:"securityIpGroupName" yaml:"securityIpGroupName"`
}

Properties for defining a `RosWhitelist`.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-redis-whitelist

type Whitelist

type Whitelist interface {
	alicloudroscdkcore.Resource
	IWhitelist
	// Attribute SecurityIpGroupAttribute: The default is empty.
	//
	// For distinguishing between different attribute values, the console will not display the value of hidden whitelist packet.
	AttrSecurityIpGroupAttribute() interface{}
	// Attribute SecurityIpGroupName: Whitelist group.
	AttrSecurityIpGroupName() interface{}
	// Attribute SecurityIps: IP address whitelist to be modified.
	AttrSecurityIps() 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.IResourceEnvironment
	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() *WhitelistProps
	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 `ALIYUN::REDIS::Whitelist`.

func NewWhitelist

func NewWhitelist(scope alicloudroscdkcore.Construct, id *string, props *WhitelistProps, enableResourcePropertyConstraint *bool) Whitelist

Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.

type WhitelistProps

type WhitelistProps struct {
	// Property instanceId: Instance ID (globally unique).
	InstanceId interface{} `field:"required" json:"instanceId" yaml:"instanceId"`
	// Property securityIps: IP address whitelist to be modified.
	SecurityIps interface{} `field:"required" json:"securityIps" yaml:"securityIps"`
	// Property securityIpGroupAttribute: The default is empty.
	//
	// For distinguishing between different attribute values, the console will not display the value of hidden whitelist packet.
	SecurityIpGroupAttribute interface{} `field:"optional" json:"securityIpGroupAttribute" yaml:"securityIpGroupAttribute"`
	// Property securityIpGroupName: Whitelist group.
	SecurityIpGroupName interface{} `field:"optional" json:"securityIpGroupName" yaml:"securityIpGroupName"`
}

Properties for defining a `Whitelist`.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-redis-whitelist

Source Files

Directories

Path Synopsis
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL