Instance
- Implements: IInstance
This class encapsulates and extends the ROS resource type ALIYUN::REDIS::Instance.
Initializers
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkredis"
alicloudroscdkredis.NewInstance(scope Construct, id *string, props InstanceProps, enableResourcePropertyConstraint *bool) Instance
| Name | Type | Description |
|---|---|---|
scope | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct | No description. |
id | *string | No description. |
props | InstanceProps | No description. |
enableResourcePropertyConstraint | *bool | No description. |
scopeRequired
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct
idRequired
- Type: *string
propsOptional
- Type: InstanceProps
enableResourcePropertyConstraintOptional
- Type: *bool
Methods
| Name | Description |
|---|---|
ToString | Returns a string representation of this construct. |
Synthesize | Allows this construct to emit artifacts into the cloud assembly during synthesis. |
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
func ToString() *string
Returns a string representation of this construct.
Synthesize
func Synthesize(session ISynthesisSession)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ISynthesisSession
The synthesis session.
AddCondition
func AddCondition(condition RosCondition)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosCondition
AddCount
func AddCount(count interface{})
- Type: interface{}
AddDependency
func AddDependency(resource Resource)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Resource
AddResourceDesc
func AddResourceDesc(desc *string)
- Type: *string
ApplyRemovalPolicy
func ApplyRemovalPolicy(policy RemovalPolicy)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RemovalPolicy
FetchCondition
func FetchCondition() RosCondition
FetchDependency
func FetchDependency() *[]*string
FetchResourceDesc
func FetchResourceDesc() *string
GetAtt
func GetAtt(name *string) IResolvable
- Type: *string
SetMetadata
func SetMetadata(key *string, value interface{})
- Type: *string
- Type: interface{}
Static Functions
| Name | Description |
|---|---|
IsConstruct | Return whether the given object is a Construct. |
IsConstruct
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkredis"
alicloudroscdkredis.Instance_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
- Type: interface{}
Properties
| Name | Type | Description |
|---|---|---|
Node | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode | The construct tree node associated with this construct. |
Env | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResourceEnvironment | The environment this resource belongs to. |
Ref | *string | No description. |
Stack | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack | The stack in which this resource is defined. |
Resource | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource | No description. |
AttrArchitectureType | interface{} | Attribute ArchitectureType: The architecture. |
AttrBandwidth | interface{} | Attribute Bandwidth: The bandwidth of the instance. |
AttrCapacity | interface{} | Attribute Capacity: The storage capacity of the instance. |
AttrChargeType | interface{} | Attribute ChargeType: The billing method of the instance. |
AttrClassicInnerConnectionPort | interface{} | Attribute ClassicInnerConnectionPort: The classic inner connection port of the instance. |
AttrClassicInnerConnectionString | interface{} | Attribute ClassicInnerConnectionString: The classic inner connection string of the instance. |
AttrConnectionDomain | interface{} | Attribute ConnectionDomain: Connection domain of created instance. |
AttrConnections | interface{} | Attribute Connections: The maximum number of connections supported by the instance. |
AttrDirectConnectionPort | interface{} | Attribute DirectConnectionPort: The direct connection port of the instance. |
AttrDirectConnectionString | interface{} | Attribute DirectConnectionString: The direct connection string of the instance. |
AttrEngineVersion | interface{} | Attribute EngineVersion: The engine version of the instance. |
AttrHasRenewChangeOrder | interface{} | Attribute HasRenewChangeOrder: Indicates whether the Alibaba Cloud account has pending renewal or scaling orders. |
AttrInstanceClass | interface{} | Attribute InstanceClass: Redis instance type. |
AttrInstanceId | interface{} | Attribute InstanceId: Instance id of created redis instance. |
AttrInstanceName | interface{} | Attribute InstanceName: Name of created redis instance. |
AttrInstanceType | interface{} | Attribute InstanceType: The engine type of the instance. |
AttrNetworkType | interface{} | Attribute NetworkType: The network type. |
AttrNodeType | interface{} | Attribute NodeType: The type of node. |
AttrOrderId | interface{} | Attribute OrderId: Order Id of created instance. |
AttrPackageType | interface{} | Attribute PackageType: The plan type. |
AttrPort | interface{} | Attribute Port: Port of created instance. |
AttrPrivateIp | interface{} | Attribute PrivateIp: The internal IP address of the instance. |
AttrPublicConnectionPort | interface{} | Attribute PublicConnectionPort: The public connection port of the instance. |
AttrPublicConnectionString | interface{} | Attribute PublicConnectionString: The public connection string of the instance. |
AttrQps | interface{} | Attribute QPS: The queries per second (QPS) supported by the instance. |
AttrResourceGroupId | interface{} | Attribute ResourceGroupId: The ID of the resource group to which the instance belongs. |
AttrVpcId | interface{} | Attribute VpcId: The ID of the VPC. |
AttrVpcPrivateConnectionPort | interface{} | Attribute VpcPrivateConnectionPort: The vpc private connection port of the instance. |
AttrVpcPrivateConnectionString | interface{} | Attribute VpcPrivateConnectionString: The vpc private connection string of the instance. |
AttrVSwitchId | interface{} | Attribute VSwitchId: The ID of the vSwitch. |
AttrZoneId | interface{} | Attribute ZoneId: The ID of the zone. |
Props | InstanceProps | No description. |
NodeRequired
func Node() ConstructNode
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode
The construct tree node associated with this construct.
EnvRequired
func Env() IResourceEnvironment
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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
func Ref() *string
- Type: *string
StackRequired
func Stack() Stack
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack
The stack in which this resource is defined.
ResourceOptional
func Resource() RosResource
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource
AttrArchitectureTypeRequired
func AttrArchitectureType() interface{}
- Type: interface{}
Attribute ArchitectureType: The architecture.
AttrBandwidthRequired
func AttrBandwidth() interface{}
- Type: interface{}
Attribute Bandwidth: The bandwidth of the instance.
Unit: Mbit/s.
AttrCapacityRequired
func AttrCapacity() interface{}
- Type: interface{}
Attribute Capacity: The storage capacity of the instance.
Unit: MB.
AttrChargeTypeRequired
func AttrChargeType() interface{}
- Type: interface{}
Attribute ChargeType: The billing method of the instance.
AttrClassicInnerConnectionPortRequired
func AttrClassicInnerConnectionPort() interface{}
- Type: interface{}
Attribute ClassicInnerConnectionPort: The classic inner connection port of the instance.
AttrClassicInnerConnectionStringRequired
func AttrClassicInnerConnectionString() interface{}
- Type: interface{}
Attribute ClassicInnerConnectionString: The classic inner connection string of the instance.
AttrConnectionDomainRequired
func AttrConnectionDomain() interface{}
- Type: interface{}
Attribute ConnectionDomain: Connection domain of created instance.
AttrConnectionsRequired
func AttrConnections() interface{}
- Type: interface{}
Attribute Connections: The maximum number of connections supported by the instance.
AttrDirectConnectionPortRequired
func AttrDirectConnectionPort() interface{}
- Type: interface{}
Attribute DirectConnectionPort: The direct connection port of the instance.
AttrDirectConnectionStringRequired
func AttrDirectConnectionString() interface{}
- Type: interface{}
Attribute DirectConnectionString: The direct connection string of the instance.
AttrEngineVersionRequired
func AttrEngineVersion() interface{}
- Type: interface{}
Attribute EngineVersion: The engine version of the instance.
AttrHasRenewChangeOrderRequired
func AttrHasRenewChangeOrder() interface{}
- Type: interface{}
Attribute HasRenewChangeOrder: Indicates whether the Alibaba Cloud account has pending renewal or scaling orders.
AttrInstanceClassRequired
func AttrInstanceClass() interface{}
- Type: interface{}
Attribute InstanceClass: Redis instance type.
AttrInstanceIdRequired
func AttrInstanceId() interface{}
- Type: interface{}
Attribute InstanceId: Instance id of created redis instance.
AttrInstanceNameRequired
func AttrInstanceName() interface{}
- Type: interface{}
Attribute InstanceName: Name of created redis instance.
AttrInstanceTypeRequired
func AttrInstanceType() interface{}
- Type: interface{}
Attribute InstanceType: The engine type of the instance.
AttrNetworkTypeRequired
func AttrNetworkType() interface{}
- Type: interface{}
Attribute NetworkType: The network type.
AttrNodeTypeRequired
func AttrNodeType() interface{}
- Type: interface{}
Attribute NodeType: The type of node.
AttrOrderIdRequired
func AttrOrderId() interface{}
- Type: interface{}
Attribute OrderId: Order Id of created instance.
AttrPackageTypeRequired
func AttrPackageType() interface{}
- Type: interface{}
Attribute PackageType: The plan type.
AttrPortRequired
func AttrPort() interface{}
- Type: interface{}
Attribute Port: Port of created instance.
AttrPrivateIpRequired
func AttrPrivateIp() interface{}
- Type: interface{}
Attribute PrivateIp: The internal IP address of the instance.
AttrPublicConnectionPortRequired
func AttrPublicConnectionPort() interface{}
- Type: interface{}
Attribute PublicConnectionPort: The public connection port of the instance.
AttrPublicConnectionStringRequired
func AttrPublicConnectionString() interface{}
- Type: interface{}
Attribute PublicConnectionString: The public connection string of the instance.
AttrQpsRequired
func AttrQps() interface{}
- Type: interface{}
Attribute QPS: The queries per second (QPS) supported by the instance.
AttrResourceGroupIdRequired
func AttrResourceGroupId() interface{}
- Type: interface{}
Attribute ResourceGroupId: The ID of the resource group to which the instance belongs.
AttrVpcIdRequired
func AttrVpcId() interface{}
- Type: interface{}
Attribute VpcId: The ID of the VPC.
AttrVpcPrivateConnectionPortRequired
func AttrVpcPrivateConnectionPort() interface{}
- Type: interface{}
Attribute VpcPrivateConnectionPort: The vpc private connection port of the instance.
AttrVpcPrivateConnectionStringRequired
func AttrVpcPrivateConnectionString() interface{}
- Type: interface{}
Attribute VpcPrivateConnectionString: The vpc private connection string of the instance.
AttrVSwitchIdRequired
func AttrVSwitchId() interface{}
- Type: interface{}
Attribute VSwitchId: The ID of the vSwitch.
AttrZoneIdRequired
func AttrZoneId() interface{}
- Type: interface{}
Attribute ZoneId: The ID of the zone.
PropsRequired
func Props() InstanceProps
- Type: InstanceProps