Class: AWSCDK::RDS::ClusterEngineFeatures

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

Overview

Represents Database Engine features.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s3_export: nil, s3_import: nil, serverless_v2_auto_pause_supported: nil) ⇒ ClusterEngineFeatures

Returns a new instance of ClusterEngineFeatures.

Parameters:

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

    Feature name for the DB instance that the IAM role to export to S3 bucket is to be associated with.

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

    Feature name for the DB instance that the IAM role to access the S3 bucket for import is to be associated with.

  • serverless_v2_auto_pause_supported (Boolean, nil) (defaults to: nil)

    Whether the DB cluster engine supports the Aurora ServerlessV2 auto-pause feature.



10
11
12
13
14
15
16
17
# File 'rds/cluster_engine_features.rb', line 10

def initialize(s3_export: nil, s3_import: nil, serverless_v2_auto_pause_supported: nil)
  @s3_export = s3_export
  Jsii::Type.check_type(@s3_export, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3Export") unless @s3_export.nil?
  @s3_import = s3_import
  Jsii::Type.check_type(@s3_import, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3Import") unless @s3_import.nil?
  @serverless_v2_auto_pause_supported = serverless_v2_auto_pause_supported
  Jsii::Type.check_type(@serverless_v2_auto_pause_supported, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "serverlessV2AutoPauseSupported") unless @serverless_v2_auto_pause_supported.nil?
end

Instance Attribute Details

#s3_exportString? (readonly)

Note:

Default: - no s3Export feature name

Feature name for the DB instance that the IAM role to export to S3 bucket is to be associated with.

Returns:

  • (String, nil)


23
24
25
# File 'rds/cluster_engine_features.rb', line 23

def s3_export
  @s3_export
end

#s3_importString? (readonly)

Note:

Default: - no s3Import feature name

Feature name for the DB instance that the IAM role to access the S3 bucket for import is to be associated with.

Returns:

  • (String, nil)


28
29
30
# File 'rds/cluster_engine_features.rb', line 28

def s3_import
  @s3_import
end

#serverless_v2_auto_pause_supportedBoolean? (readonly)

Note:

Default: false

Whether the DB cluster engine supports the Aurora ServerlessV2 auto-pause feature.

Returns:

  • (Boolean, nil)


33
34
35
# File 'rds/cluster_engine_features.rb', line 33

def serverless_v2_auto_pause_supported
  @serverless_v2_auto_pause_supported
end

Class Method Details

.jsii_propertiesObject



35
36
37
38
39
40
41
# File 'rds/cluster_engine_features.rb', line 35

def self.jsii_properties
  {
    :s3_export => "s3Export",
    :s3_import => "s3Import",
    :serverless_v2_auto_pause_supported => "serverlessV2AutoPauseSupported",
  }
end

Instance Method Details

#to_jsiiObject



43
44
45
46
47
48
49
50
51
# File 'rds/cluster_engine_features.rb', line 43

def to_jsii
  result = {}
  result.merge!({
    "s3Export" => @s3_export,
    "s3Import" => @s3_import,
    "serverlessV2AutoPauseSupported" => @serverless_v2_auto_pause_supported,
  })
  result.compact
end