Instance
- Implements: @alicloud/ros-cdk-redis.datasource.IInstance
This class encapsulates and extends the ROS resource type DATASOURCE::REDIS::Instance.
Initializers
import { datasource } from '@alicloud/ros-cdk-redis'
new datasource.Instance(scope: Construct, id: string, props: InstanceProps, enableResourcePropertyConstraint?: boolean)
| Name | Type | Description |
|---|---|---|
scope | @alicloud/ros-cdk-core.Construct | No description. |
id | string | No description. |
props | InstanceProps | No description. |
enableResourcePropertyConstraint | boolean | No description. |
scopeRequired
- Type: @alicloud/ros-cdk-core.Construct
idRequired
- Type: string
propsRequired
- Type: InstanceProps
enableResourcePropertyConstraintOptional
- Type: boolean
Methods
| Name | Description |
|---|---|
toString | Returns a string representation of this construct. |
synthesize | Allows this construct to emit artifacts into the cloud assembly during synthesis. |
addCondition | No description. |
addCount | No description. |
addDependency | No description. |
addResourceDesc | No description. |
applyRemovalPolicy | No description. |
fetchCondition | No description. |
fetchDependency | No description. |
fetchResourceDesc | No description. |
getAtt | No description. |
setMetadata | No description. |
toString
public toString(): string
Returns a string representation of this construct.
synthesize
public synthesize(session: ISynthesisSession): void
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.
- Type: @alicloud/ros-cdk-core.ISynthesisSession
The synthesis session.
addCondition
public addCondition(condition: RosCondition): void
- Type: @alicloud/ros-cdk-core.RosCondition
addCount
public addCount(count: number | IResolvable): void
- Type: number | @alicloud/ros-cdk-core.IResolvable
addDependency
public addDependency(resource: Resource): void
- Type: @alicloud/ros-cdk-core.Resource
addResourceDesc
public addResourceDesc(desc: string): void
- Type: string
applyRemovalPolicy
public applyRemovalPolicy(policy: RemovalPolicy): void
- Type: @alicloud/ros-cdk-core.RemovalPolicy
fetchCondition
public fetchCondition(): RosCondition
fetchDependency
public fetchDependency(): string[]
fetchResourceDesc
public fetchResourceDesc(): string
getAtt
public getAtt(name: string): IResolvable
- Type: string
setMetadata
public setMetadata(key: string, value: any): void
- Type: string
- Type: any
Static Functions
| Name | Description |
|---|---|
isConstruct | Return whether the given object is a Construct. |
isConstruct
import { datasource } from '@alicloud/ros-cdk-redis'
datasource.Instance.isConstruct(x: any)
Return whether the given object is a Construct.
- Type: any
Properties
| Name | Type | Description |
|---|---|---|
node | @alicloud/ros-cdk-core.ConstructNode | The construct tree node associated with this construct. |
env | @alicloud/ros-cdk-core.IResourceEnvironment | The environment this resource belongs to. |
ref | string | No description. |
stack | @alicloud/ros-cdk-core.Stack | The stack in which this resource is defined. |
resource | @alicloud/ros-cdk-core.RosResource | No description. |
attrArchitectureType | string | @alicloud/ros-cdk-core.IResolvable | Attribute ArchitectureType: Architecture type. |
attrBandwidth | string | @alicloud/ros-cdk-core.IResolvable | Attribute Bandwidth: Bandwidth. |
attrCapacity | string | @alicloud/ros-cdk-core.IResolvable | Attribute Capacity: Capacity. |
attrCloudType | string | @alicloud/ros-cdk-core.IResolvable | Attribute CloudType: Cloud category. |
attrConfig | string | @alicloud/ros-cdk-core.IResolvable | Attribute Config: Config. |
attrConnectionDomain | string | @alicloud/ros-cdk-core.IResolvable | Attribute ConnectionDomain: Connection domain. |
attrCreateTime | string | @alicloud/ros-cdk-core.IResolvable | Attribute CreateTime: Create time. |
attrDbInstanceId | string | @alicloud/ros-cdk-core.IResolvable | Attribute DBInstanceId: Database instance id. |
attrDbInstanceName | string | @alicloud/ros-cdk-core.IResolvable | Attribute DBInstanceName: Instance name. |
attrEndTime | string | @alicloud/ros-cdk-core.IResolvable | Attribute EndTime: End time. |
attrEngineVersion | string | @alicloud/ros-cdk-core.IResolvable | Attribute EngineVersion: Engine version. |
attrHasRenewChangeOrder | string | @alicloud/ros-cdk-core.IResolvable | Attribute HasRenewChangeOrder: Has renew change order. |
attrInstanceClass | string | @alicloud/ros-cdk-core.IResolvable | Attribute InstanceClass: Instance class. |
attrInstanceReleaseProtection | string | @alicloud/ros-cdk-core.IResolvable | Attribute InstanceReleaseProtection: Instance release protection. |
attrInstanceType | string | @alicloud/ros-cdk-core.IResolvable | Attribute InstanceType: Instance type. |
attrIsRds | string | @alicloud/ros-cdk-core.IResolvable | Attribute IsRds: is RDS. |
attrMaintainEndTime | string | @alicloud/ros-cdk-core.IResolvable | Attribute MaintainEndTime: Maintain end time. |
attrMaintainStartTime | string | @alicloud/ros-cdk-core.IResolvable | Attribute MaintainStartTime: Maintain start time. |
attrNetworkType | string | @alicloud/ros-cdk-core.IResolvable | Attribute NetworkType: Network type. |
attrPackageType | string | @alicloud/ros-cdk-core.IResolvable | Attribute PackageType: Package type. |
attrPaymentType | string | @alicloud/ros-cdk-core.IResolvable | Attribute PaymentType: Payment type. |
attrPort | string | @alicloud/ros-cdk-core.IResolvable | Attribute Port: Port. |
attrPrivateIp | string | @alicloud/ros-cdk-core.IResolvable | Attribute PrivateIp: Private IP. |
attrQps | string | @alicloud/ros-cdk-core.IResolvable | Attribute Qps: QPS. |
attrReadOnlyCount | string | @alicloud/ros-cdk-core.IResolvable | Attribute ReadOnlyCount: The number of read-only nodes. |
attrReplacateId | string | @alicloud/ros-cdk-core.IResolvable | Attribute ReplacateId: Replacate id. |
attrResourceGroupId | string | @alicloud/ros-cdk-core.IResolvable | Attribute ResourceGroupId: Resource group id. |
attrSecondaryZoneId | string | @alicloud/ros-cdk-core.IResolvable | Attribute SecondaryZoneId: The ID of the standby zone. |
attrSecurityGroupId | string | @alicloud/ros-cdk-core.IResolvable | Attribute SecurityGroupId: Security group id. |
attrSecurityIpGroupAttribute | string | @alicloud/ros-cdk-core.IResolvable | Attribute SecurityIpGroupAttribute: Security IP group attribute. |
attrSecurityIpGroupName | string | @alicloud/ros-cdk-core.IResolvable | Attribute SecurityIpGroupName: Security IP group name. |
attrSecurityIps | string | @alicloud/ros-cdk-core.IResolvable | Attribute SecurityIps: Security IPs. |
attrShardCount | string | @alicloud/ros-cdk-core.IResolvable | Attribute ShardCount: The number of slices. |
attrTags | string | @alicloud/ros-cdk-core.IResolvable | Attribute Tags: Tags. |
attrVpcAuthMode | string | @alicloud/ros-cdk-core.IResolvable | Attribute VpcAuthMode: Vpc auth mode. |
attrVpcCloudInstanceId | string | @alicloud/ros-cdk-core.IResolvable | Attribute VpcCloudInstanceId: Vpc cloud instance id. |
attrVpcId | string | @alicloud/ros-cdk-core.IResolvable | Attribute VpcId: Vpc id. |
attrVSwitchId | string | @alicloud/ros-cdk-core.IResolvable | Attribute VSwitchId: Vswitch id. |
attrZoneId | string | @alicloud/ros-cdk-core.IResolvable | Attribute ZoneId: Zone id. |
props | InstanceProps | No description. |
nodeRequired
public readonly node: ConstructNode;
- Type: @alicloud/ros-cdk-core.ConstructNode
The construct tree node associated with this construct.
envRequired
public readonly env: IResourceEnvironment;
- Type: @alicloud/ros-cdk-core.IResourceEnvironment
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.
refRequired
public readonly ref: string;
- Type: string
stackRequired
public readonly stack: Stack;
- Type: @alicloud/ros-cdk-core.Stack
The stack in which this resource is defined.
resourceOptional
public readonly resource: RosResource;
- Type: @alicloud/ros-cdk-core.RosResource
attrArchitectureTypeRequired
public readonly attrArchitectureType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute ArchitectureType: Architecture type.
attrBandwidthRequired
public readonly attrBandwidth: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute Bandwidth: Bandwidth.
attrCapacityRequired
public readonly attrCapacity: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute Capacity: Capacity.
attrCloudTypeRequired
public readonly attrCloudType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute CloudType: Cloud category.
attrConfigRequired
public readonly attrConfig: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute Config: Config.
attrConnectionDomainRequired
public readonly attrConnectionDomain: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute ConnectionDomain: Connection domain.
attrCreateTimeRequired
public readonly attrCreateTime: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute CreateTime: Create time.
attrDbInstanceIdRequired
public readonly attrDbInstanceId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute DBInstanceId: Database instance id.
attrDbInstanceNameRequired
public readonly attrDbInstanceName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute DBInstanceName: Instance name.
attrEndTimeRequired
public readonly attrEndTime: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute EndTime: End time.
attrEngineVersionRequired
public readonly attrEngineVersion: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute EngineVersion: Engine version.
attrHasRenewChangeOrderRequired
public readonly attrHasRenewChangeOrder: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute HasRenewChangeOrder: Has renew change order.
attrInstanceClassRequired
public readonly attrInstanceClass: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute InstanceClass: Instance class.
attrInstanceReleaseProtectionRequired
public readonly attrInstanceReleaseProtection: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute InstanceReleaseProtection: Instance release protection.
attrInstanceTypeRequired
public readonly attrInstanceType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute InstanceType: Instance type.
attrIsRdsRequired
public readonly attrIsRds: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute IsRds: is RDS.
attrMaintainEndTimeRequired
public readonly attrMaintainEndTime: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute MaintainEndTime: Maintain end time.
attrMaintainStartTimeRequired
public readonly attrMaintainStartTime: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute MaintainStartTime: Maintain start time.
attrNetworkTypeRequired
public readonly attrNetworkType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute NetworkType: Network type.
attrPackageTypeRequired
public readonly attrPackageType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute PackageType: Package type.
attrPaymentTypeRequired
public readonly attrPaymentType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute PaymentType: Payment type.
attrPortRequired
public readonly attrPort: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute Port: Port.
attrPrivateIpRequired
public readonly attrPrivateIp: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute PrivateIp: Private IP.
attrQpsRequired
public readonly attrQps: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute Qps: QPS.
attrReadOnlyCountRequired
public readonly attrReadOnlyCount: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute ReadOnlyCount: The number of read-only nodes.
This parameter is only applicable to the creation of read-write splitting instances in the cloud disk version. You can use this parameter to customize the number of read-only nodes. Valid values: 1 to 5.
attrReplacateIdRequired
public readonly attrReplacateId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute ReplacateId: Replacate id.
attrResourceGroupIdRequired
public readonly attrResourceGroupId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute ResourceGroupId: Resource group id.
attrSecondaryZoneIdRequired
public readonly attrSecondaryZoneId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute SecondaryZoneId: The ID of the standby zone.
attrSecurityGroupIdRequired
public readonly attrSecurityGroupId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute SecurityGroupId: Security group id.
attrSecurityIpGroupAttributeRequired
public readonly attrSecurityIpGroupAttribute: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute SecurityIpGroupAttribute: Security IP group attribute.
attrSecurityIpGroupNameRequired
public readonly attrSecurityIpGroupName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute SecurityIpGroupName: Security IP group name.
attrSecurityIpsRequired
public readonly attrSecurityIps: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute SecurityIps: Security IPs.
attrShardCountRequired
public readonly attrShardCount: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute ShardCount: The number of slices.
This parameter is only applicable to creating a cloud disk cluster architecture instance. You can use this parameter to customize the number of slices.
attrTagsRequired
public readonly attrTags: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute Tags: Tags.
attrVpcAuthModeRequired
public readonly attrVpcAuthMode: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute VpcAuthMode: Vpc auth mode.
attrVpcCloudInstanceIdRequired
public readonly attrVpcCloudInstanceId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute VpcCloudInstanceId: Vpc cloud instance id.
attrVpcIdRequired
public readonly attrVpcId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute VpcId: Vpc id.
attrVSwitchIdRequired
public readonly attrVSwitchId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute VSwitchId: Vswitch id.
attrZoneIdRequired
public readonly attrZoneId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Attribute ZoneId: Zone id.
propsRequired
public readonly props: InstanceProps;
- Type: InstanceProps