Class: AWSCDK::MemoryDB::CfnParameterGroupProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MemoryDB::CfnParameterGroupProps
- Defined in:
- memory_db/cfn_parameter_group_props.rb
Overview
Properties for defining a CfnParameterGroup.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
A description of the parameter group.
-
#family ⇒ String
readonly
The name of the parameter group family that this parameter group is compatible with.
-
#parameter_group_name ⇒ String
readonly
The name of the parameter group.
-
#parameters ⇒ Object?
readonly
Returns the detailed parameter list for the parameter group.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(family:, parameter_group_name:, description: nil, parameters: nil, tags: nil) ⇒ CfnParameterGroupProps
constructor
A new instance of CfnParameterGroupProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(family:, parameter_group_name:, description: nil, parameters: nil, tags: nil) ⇒ CfnParameterGroupProps
Returns a new instance of CfnParameterGroupProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'memory_db/cfn_parameter_group_props.rb', line 14 def initialize(family:, parameter_group_name:, description: nil, parameters: nil, tags: nil) @family = family Jsii::Type.check_type(@family, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "family") @parameter_group_name = parameter_group_name Jsii::Type.check_type(@parameter_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "parameterGroupName") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @parameters = parameters Jsii::Type.check_type(@parameters, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "parameters") unless @parameters.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
A description of the parameter group.
41 42 43 |
# File 'memory_db/cfn_parameter_group_props.rb', line 41 def description @description end |
#family ⇒ String (readonly)
The name of the parameter group family that this parameter group is compatible with.
31 32 33 |
# File 'memory_db/cfn_parameter_group_props.rb', line 31 def family @family end |
#parameter_group_name ⇒ String (readonly)
The name of the parameter group.
36 37 38 |
# File 'memory_db/cfn_parameter_group_props.rb', line 36 def parameter_group_name @parameter_group_name end |
#parameters ⇒ Object? (readonly)
Returns the detailed parameter list for the parameter group.
46 47 48 |
# File 'memory_db/cfn_parameter_group_props.rb', line 46 def parameters @parameters end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
For more information, see Tag .
53 54 55 |
# File 'memory_db/cfn_parameter_group_props.rb', line 53 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
55 56 57 58 59 60 61 62 63 |
# File 'memory_db/cfn_parameter_group_props.rb', line 55 def self.jsii_properties { :family => "family", :parameter_group_name => "parameterGroupName", :description => "description", :parameters => "parameters", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 |
# File 'memory_db/cfn_parameter_group_props.rb', line 65 def to_jsii result = {} result.merge!({ "family" => @family, "parameterGroupName" => @parameter_group_name, "description" => @description, "parameters" => @parameters, "tags" => @tags, }) result.compact end |