Class: AWSCDK::RDS::EngineVersion

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
rds/engine_version.rb

Overview

A version of an engine - for either a cluster, or instance.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(major_version:, full_version: nil) ⇒ EngineVersion

Returns a new instance of EngineVersion.

Parameters:

  • major_version (String)

    The major version of the engine, for example, "5.6". Used in specifying the ParameterGroup family and OptionGroup version for this engine.

  • full_version (String, nil) (defaults to: nil)

    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.



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_versionString? (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.

Returns:

  • (String, nil)


24
25
26
# File 'rds/engine_version.rb', line 24

def full_version
  @full_version
end

#major_versionString (readonly)

The major version of the engine, for example, "5.6". Used in specifying the ParameterGroup family and OptionGroup version for this engine.

Returns:

  • (String)


19
20
21
# File 'rds/engine_version.rb', line 19

def major_version
  @major_version
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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