Class: AWSCDK::SSM::ListParameterAttributes
- Inherits:
-
CommonStringParameterAttributes
- Object
- CommonStringParameterAttributes
- AWSCDK::SSM::ListParameterAttributes
- Defined in:
- ssm/list_parameter_attributes.rb
Overview
Attributes for parameters of string list type.
Instance Attribute Summary collapse
-
#element_type ⇒ AWSCDK::SSM::ParameterValueType?
readonly
The type of the string list parameter value.
-
#parameter_name ⇒ String
readonly
The name of the parameter store value.
-
#simple_name ⇒ Boolean?
readonly
Indicates whether the parameter name is a simple name.
-
#version ⇒ Numeric?
readonly
The version number of the value you wish to retrieve.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(parameter_name:, simple_name: nil, element_type: nil, version: nil) ⇒ ListParameterAttributes
constructor
A new instance of ListParameterAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(parameter_name:, simple_name: nil, element_type: nil, version: nil) ⇒ ListParameterAttributes
Returns a new instance of ListParameterAttributes.
13 14 15 16 17 18 19 20 21 22 |
# File 'ssm/list_parameter_attributes.rb', line 13 def initialize(parameter_name:, simple_name: nil, element_type: nil, version: nil) @parameter_name = parameter_name Jsii::Type.check_type(@parameter_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "parameterName") @simple_name = simple_name Jsii::Type.check_type(@simple_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "simpleName") unless @simple_name.nil? @element_type = element_type Jsii::Type.check_type(@element_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3NtLlBhcmFtZXRlclZhbHVlVHlwZSJ9")), "elementType") unless @element_type.nil? @version = version Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "version") unless @version.nil? end |
Instance Attribute Details
#element_type ⇒ AWSCDK::SSM::ParameterValueType? (readonly)
Default: ParameterValueType.STRING
The type of the string list parameter value.
Using specific types can be helpful in catching invalid values at the start of creating or updating a stack. CloudFormation validates the values against existing values in the account.
Note - if you want to allow values from different AWS accounts, use ParameterValueType.STRING
61 62 63 |
# File 'ssm/list_parameter_attributes.rb', line 61 def element_type @element_type end |
#parameter_name ⇒ String (readonly)
The name of the parameter store value.
This value can be a token or a concrete string. If it is a concrete string and includes "/" it must also be prefixed with a "/" (fully-qualified).
30 31 32 |
# File 'ssm/list_parameter_attributes.rb', line 30 def parameter_name @parameter_name end |
#simple_name ⇒ Boolean? (readonly)
Default: - auto-detect based on parameterName
Indicates whether the parameter name is a simple name.
A parameter name without any "/" is considered a simple name. If the parameter name includes "/", setting simpleName to true might cause unintended issues such as duplicate "/" in the resulting ARN.
This is required only if parameter_name is a token, which means we
are unable to detect if the name is simple or "path-like" for the purpose
of rendering SSM parameter ARNs.
If parameter_name is not specified, simple_name must be true (or
undefined) since the name generated by AWS CloudFormation is always a
simple name.
48 49 50 |
# File 'ssm/list_parameter_attributes.rb', line 48 def simple_name @simple_name end |
#version ⇒ Numeric? (readonly)
Default: The latest version will be retrieved.
The version number of the value you wish to retrieve.
66 67 68 |
# File 'ssm/list_parameter_attributes.rb', line 66 def version @version end |
Class Method Details
.jsii_properties ⇒ Object
68 69 70 71 72 73 74 75 |
# File 'ssm/list_parameter_attributes.rb', line 68 def self.jsii_properties { :parameter_name => "parameterName", :simple_name => "simpleName", :element_type => "elementType", :version => "version", } end |
Instance Method Details
#to_jsii ⇒ Object
77 78 79 80 81 82 83 84 85 86 87 |
# File 'ssm/list_parameter_attributes.rb', line 77 def to_jsii result = {} result.merge!(super) result.merge!({ "parameterName" => @parameter_name, "simpleName" => @simple_name, "elementType" => @element_type, "version" => @version, }) result.compact end |