Class: AWSCDK::RDS::CfnDBInstance::ProcessorFeatureProperty

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

Overview

The ProcessorFeature property type specifies the processor features of a DB instance class.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil, value: nil) ⇒ ProcessorFeatureProperty

Returns a new instance of ProcessorFeatureProperty.

Parameters:

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

    The name of the processor feature.

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

    The value of a processor feature.



2214
2215
2216
2217
2218
2219
# File 'rds/cfn_db_instance.rb', line 2214

def initialize(name: nil, value: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil?
end

Instance Attribute Details

#nameString? (readonly)

The name of the processor feature.

Valid names are core_count and threads_per_core .



2227
2228
2229
# File 'rds/cfn_db_instance.rb', line 2227

def name
  @name
end

#valueString? (readonly)

The value of a processor feature.



2232
2233
2234
# File 'rds/cfn_db_instance.rb', line 2232

def value
  @value
end

Class Method Details

.jsii_propertiesObject



2234
2235
2236
2237
2238
2239
# File 'rds/cfn_db_instance.rb', line 2234

def self.jsii_properties
  {
    :name => "name",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



2241
2242
2243
2244
2245
2246
2247
2248
# File 'rds/cfn_db_instance.rb', line 2241

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "value" => @value,
  })
  result.compact
end