Class: AWSCDK::RDS::ClusterInstanceType

Inherits:
Jsii::Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(instance_type, type) ⇒ ClusterInstanceType

Returns a new instance of ClusterInstanceType.

Parameters:



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_methodsObject



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.

Parameters:

Returns:

  • (AWSCDK::RDS::ClusterInstanceType)


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_v2AWSCDK::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_stringString

String representation of the instance type that can be used in the CloudFormation resource.

Returns:

  • (String)


51
52
53
# File 'rds/cluster_instance_type.rb', line 51

def to_string()
  jsii_call_method("toString", [])
end

#typeAWSCDK::RDS::InstanceType



44
45
46
# File 'rds/cluster_instance_type.rb', line 44

def type()
  jsii_get_property("type")
end