Class: AWSCDK::RDS::EngineVersion
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::RDS::EngineVersion
- Defined in:
- rds/engine_version.rb
Overview
A version of an engine - for either a cluster, or instance.
Instance Attribute Summary collapse
-
#full_version ⇒ String?
readonly
The full version string of the engine, for example, "5.6.mysql_aurora.1.22.1".
-
#major_version ⇒ String
readonly
The major version of the engine, for example, "5.6".
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(major_version:, full_version: nil) ⇒ EngineVersion
constructor
A new instance of EngineVersion.
- #to_jsii ⇒ Object
Constructor Details
#initialize(major_version:, full_version: nil) ⇒ EngineVersion
Returns a new instance of EngineVersion.
9 10 11 12 13 14 |
# File 'rds/engine_version.rb', line 9 def initialize(major_version:, full_version: nil) @major_version = major_version Jsii::Type.check_type(@major_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "majorVersion") @full_version = full_version Jsii::Type.check_type(@full_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fullVersion") unless @full_version.nil? end |
Instance Attribute Details
#full_version ⇒ String? (readonly)
Note:
Default: - no version specified
The full version string of the engine, for example, "5.6.mysql_aurora.1.22.1". It can be undefined, which means RDS should use whatever version it deems appropriate for the given engine type.
24 25 26 |
# File 'rds/engine_version.rb', line 24 def full_version @full_version end |
#major_version ⇒ String (readonly)
The major version of the engine, for example, "5.6". Used in specifying the ParameterGroup family and OptionGroup version for this engine.
19 20 21 |
# File 'rds/engine_version.rb', line 19 def major_version @major_version end |
Class Method Details
.jsii_properties ⇒ Object
26 27 28 29 30 31 |
# File 'rds/engine_version.rb', line 26 def self.jsii_properties { :major_version => "majorVersion", :full_version => "fullVersion", } end |
Instance Method Details
#to_jsii ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'rds/engine_version.rb', line 33 def to_jsii result = {} result.merge!({ "majorVersion" => @major_version, "fullVersion" => @full_version, }) result.compact end |