Class: AWSCDK::SSM::CfnParameterProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SSM::CfnParameterProps
- Defined in:
- ssm/cfn_parameter_props.rb
Overview
Properties for defining a CfnParameter.
Instance Attribute Summary collapse
-
#allowed_pattern ⇒ String?
readonly
A regular expression used to validate the parameter value.
-
#data_type ⇒ String?
readonly
The data type of the parameter, such as
textoraws:ec2:image. -
#description ⇒ String?
readonly
Information about the parameter.
-
#name ⇒ String?
readonly
The name of the parameter.
-
#policies ⇒ String?
readonly
Information about the policies assigned to a parameter.
-
#tags ⇒ Hash{String => String}?
readonly
Optional metadata that you assign to a resource in the form of an arbitrary set of tags (key-value pairs).
-
#tier ⇒ String?
readonly
The parameter tier.
-
#type ⇒ String
readonly
The type of parameter.
-
#value ⇒ String
readonly
The parameter value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, value:, allowed_pattern: nil, data_type: nil, description: nil, name: nil, policies: nil, tags: nil, tier: nil) ⇒ CfnParameterProps
constructor
A new instance of CfnParameterProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, value:, allowed_pattern: nil, data_type: nil, description: nil, name: nil, policies: nil, tags: nil, tier: nil) ⇒ CfnParameterProps
Returns a new instance of CfnParameterProps.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'ssm/cfn_parameter_props.rb', line 18 def initialize(type:, value:, allowed_pattern: nil, data_type: nil, description: nil, name: nil, policies: nil, tags: nil, tier: nil) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") @allowed_pattern = allowed_pattern Jsii::Type.check_type(@allowed_pattern, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "allowedPattern") unless @allowed_pattern.nil? @data_type = data_type Jsii::Type.check_type(@data_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dataType") unless @data_type.nil? @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @policies = policies Jsii::Type.check_type(@policies, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policies") unless @policies.nil? @tags = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil? @tier = tier Jsii::Type.check_type(@tier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tier") unless @tier.nil? end |
Instance Attribute Details
#allowed_pattern ⇒ String? (readonly)
A regular expression used to validate the parameter value.
For example, for String types with values restricted to numbers, you can specify the following: AllowedPattern=^\d+$
59 60 61 |
# File 'ssm/cfn_parameter_props.rb', line 59 def allowed_pattern @allowed_pattern end |
#data_type ⇒ String? (readonly)
The data type of the parameter, such as text or aws:ec2:image .
The default is text .
66 67 68 |
# File 'ssm/cfn_parameter_props.rb', line 66 def data_type @data_type end |
#description ⇒ String? (readonly)
Information about the parameter.
71 72 73 |
# File 'ssm/cfn_parameter_props.rb', line 71 def description @description end |
#name ⇒ String? (readonly)
The name of the parameter.
The reported maximum length of 2048 characters for a parameter name includes 1037 characters that are reserved for internal use by Systems Manager . The maximum length for a parameter name that you specify is 1011 characters.
This count of 1011 characters includes the characters in the ARN that precede the name you specify. This ARN length will vary depending on your partition and Region. For example, the following 45 characters count toward the 1011 character maximum for a parameter created in the US East (Ohio) Region:
arn:aws:ssm:us-east-2:111122223333:parameter/.
80 81 82 |
# File 'ssm/cfn_parameter_props.rb', line 80 def name @name end |
#policies ⇒ String? (readonly)
Information about the policies assigned to a parameter.
Assigning parameter policies in the AWS Systems Manager User Guide .
87 88 89 |
# File 'ssm/cfn_parameter_props.rb', line 87 def policies @policies end |
#tags ⇒ Hash{String => String}? (readonly)
Optional metadata that you assign to a resource in the form of an arbitrary set of tags (key-value pairs).
Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a Systems Manager parameter to identify the type of resource to which it applies, the environment, or the type of configuration data referenced by the parameter.
94 95 96 |
# File 'ssm/cfn_parameter_props.rb', line 94 def @tags end |
#tier ⇒ String? (readonly)
The parameter tier.
99 100 101 |
# File 'ssm/cfn_parameter_props.rb', line 99 def tier @tier end |
#type ⇒ String (readonly)
The type of parameter.
Parameters of type
SecureStringare not supported by AWS CloudFormation .
45 46 47 |
# File 'ssm/cfn_parameter_props.rb', line 45 def type @type end |
#value ⇒ String (readonly)
The parameter value.
If type is
StringList, the system returns a comma-separated string with no spaces between commas in theValuefield.
52 53 54 |
# File 'ssm/cfn_parameter_props.rb', line 52 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
101 102 103 104 105 106 107 108 109 110 111 112 113 |
# File 'ssm/cfn_parameter_props.rb', line 101 def self.jsii_properties { :type => "type", :value => "value", :allowed_pattern => "allowedPattern", :data_type => "dataType", :description => "description", :name => "name", :policies => "policies", :tags => "tags", :tier => "tier", } end |
Instance Method Details
#to_jsii ⇒ Object
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
# File 'ssm/cfn_parameter_props.rb', line 115 def to_jsii result = {} result.merge!({ "type" => @type, "value" => @value, "allowedPattern" => @allowed_pattern, "dataType" => @data_type, "description" => @description, "name" => @name, "policies" => @policies, "tags" => @tags, "tier" => @tier, }) result.compact end |