Class: AWSCDK::SSM::StringListParameterProps
- Inherits:
-
ParameterOptions
- Object
- ParameterOptions
- AWSCDK::SSM::StringListParameterProps
- Defined in:
- ssm/string_list_parameter_props.rb
Overview
Properties needed to create a StringList SSM Parameter.
Instance Attribute Summary collapse
-
#allowed_pattern ⇒ String?
readonly
A regular expression used to validate the parameter value.
-
#description ⇒ String?
readonly
Information about the parameter that you want to add to the system.
-
#parameter_name ⇒ String?
readonly
The name of the parameter.
-
#simple_name ⇒ Boolean?
readonly
Indicates whether the parameter name is a simple name.
-
#string_list_value ⇒ Array<String>
readonly
The values of the parameter.
-
#tier ⇒ AWSCDK::SSM::ParameterTier?
readonly
The tier of the string parameter.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(allowed_pattern: nil, description: nil, parameter_name: nil, simple_name: nil, tier: nil, string_list_value:) ⇒ StringListParameterProps
constructor
A new instance of StringListParameterProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(allowed_pattern: nil, description: nil, parameter_name: nil, simple_name: nil, tier: nil, string_list_value:) ⇒ StringListParameterProps
Returns a new instance of StringListParameterProps.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'ssm/string_list_parameter_props.rb', line 13 def initialize(allowed_pattern: nil, description: nil, parameter_name: nil, simple_name: nil, tier: nil, string_list_value:) @allowed_pattern = allowed_pattern Jsii::Type.check_type(@allowed_pattern, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "allowedPattern") unless @allowed_pattern.nil? @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @parameter_name = parameter_name Jsii::Type.check_type(@parameter_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "parameterName") unless @parameter_name.nil? @simple_name = simple_name Jsii::Type.check_type(@simple_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "simpleName") unless @simple_name.nil? @tier = tier Jsii::Type.check_type(@tier, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3NtLlBhcmFtZXRlclRpZXIifQ==")), "tier") unless @tier.nil? @string_list_value = string_list_value Jsii::Type.check_type(@string_list_value, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "stringListValue") end |
Instance Attribute Details
#allowed_pattern ⇒ String? (readonly)
Default: no validation is performed
A regular expression used to validate the parameter value.
For example, for String types with values restricted to
numbers, you can specify the following: ^\d+$
35 36 37 |
# File 'ssm/string_list_parameter_props.rb', line 35 def allowed_pattern @allowed_pattern end |
#description ⇒ String? (readonly)
Default: none
Information about the parameter that you want to add to the system.
40 41 42 |
# File 'ssm/string_list_parameter_props.rb', line 40 def description @description end |
#parameter_name ⇒ String? (readonly)
Default: - a name will be generated by CloudFormation
The name of the parameter.
45 46 47 |
# File 'ssm/string_list_parameter_props.rb', line 45 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.
63 64 65 |
# File 'ssm/string_list_parameter_props.rb', line 63 def simple_name @simple_name end |
#string_list_value ⇒ Array<String> (readonly)
The values of the parameter.
It may not reference another parameter and {{}} cannot be used in the value.
74 75 76 |
# File 'ssm/string_list_parameter_props.rb', line 74 def string_list_value @string_list_value end |
#tier ⇒ AWSCDK::SSM::ParameterTier? (readonly)
Default: - undefined
The tier of the string parameter.
68 69 70 |
# File 'ssm/string_list_parameter_props.rb', line 68 def tier @tier end |
Class Method Details
.jsii_properties ⇒ Object
76 77 78 79 80 81 82 83 84 85 |
# File 'ssm/string_list_parameter_props.rb', line 76 def self.jsii_properties { :allowed_pattern => "allowedPattern", :description => "description", :parameter_name => "parameterName", :simple_name => "simpleName", :tier => "tier", :string_list_value => "stringListValue", } end |
Instance Method Details
#to_jsii ⇒ Object
87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'ssm/string_list_parameter_props.rb', line 87 def to_jsii result = {} result.merge!(super) result.merge!({ "allowedPattern" => @allowed_pattern, "description" => @description, "parameterName" => @parameter_name, "simpleName" => @simple_name, "tier" => @tier, "stringListValue" => @string_list_value, }) result.compact end |