Class: AWSCDK::RDS::ClusterInstanceType
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::RDS::ClusterInstanceType
- Defined in:
- rds/cluster_instance_type.rb
Overview
The type of Aurora Cluster Instance.
Can be either serverless v2 or provisioned
Class Method Summary collapse
- .jsii_overridable_methods ⇒ Object
-
.provisioned(instance_type = nil) ⇒ AWSCDK::RDS::ClusterInstanceType
Aurora Provisioned instance type.
-
.serverless_v2 ⇒ AWSCDK::RDS::ClusterInstanceType
Aurora Serverless V2 instance type.
Instance Method Summary collapse
-
#initialize(instance_type, type) ⇒ ClusterInstanceType
constructor
A new instance of ClusterInstanceType.
-
#to_string ⇒ String
String representation of the instance type that can be used in the CloudFormation resource.
- #type ⇒ AWSCDK::RDS::InstanceType
Constructor Details
#initialize(instance_type, type) ⇒ ClusterInstanceType
Returns a new instance of ClusterInstanceType.
13 14 15 16 17 |
# File 'rds/cluster_instance_type.rb', line 13 def initialize(instance_type, type) Jsii::Type.check_type(instance_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "instanceType") Jsii::Type.check_type(type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcmRzLkluc3RhbmNlVHlwZSJ9")), "type") Jsii::Object.instance_method(:initialize).bind(self).call(instance_type, type) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
19 20 21 22 23 24 |
# File 'rds/cluster_instance_type.rb', line 19 def self.jsii_overridable_methods { :type => { kind: :property, name: "type", is_optional: false }, :to_string => { kind: :method, name: "toString", is_optional: false }, } end |
.provisioned(instance_type = nil) ⇒ AWSCDK::RDS::ClusterInstanceType
Aurora Provisioned instance type.
30 31 32 33 |
# File 'rds/cluster_instance_type.rb', line 30 def self.provisioned(instance_type = nil) Jsii::Type.check_type(instance_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkluc3RhbmNlVHlwZSJ9")), "instanceType") unless instance_type.nil? Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_rds.ClusterInstanceType", "provisioned", [instance_type]) end |
.serverless_v2 ⇒ AWSCDK::RDS::ClusterInstanceType
Aurora Serverless V2 instance type.
39 40 41 |
# File 'rds/cluster_instance_type.rb', line 39 def self.serverless_v2() Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_rds.ClusterInstanceType", "serverlessV2", []) end |
Instance Method Details
#to_string ⇒ String
String representation of the instance type that can be used in the CloudFormation resource.
51 52 53 |
# File 'rds/cluster_instance_type.rb', line 51 def to_string() jsii_call_method("toString", []) end |
#type ⇒ AWSCDK::RDS::InstanceType
44 45 46 |
# File 'rds/cluster_instance_type.rb', line 44 def type() jsii_get_property("type") end |