Class: AWSCDK::CfnParameterProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CfnParameterProps
- Defined in:
- cfn_parameter_props.rb
Instance Attribute Summary collapse
-
#allowed_pattern ⇒ String?
readonly
A regular expression that represents the patterns to allow for String types.
-
#allowed_values ⇒ Array<String>?
readonly
An array containing the list of values allowed for the parameter.
-
#constraint_description ⇒ String?
readonly
A string that explains a constraint when the constraint is violated.
-
#default ⇒ Object?
readonly
A value of the appropriate type for the template to use if no value is specified when a stack is created.
-
#description ⇒ String?
readonly
A string of up to 4000 characters that describes the parameter.
-
#max_length ⇒ Numeric?
readonly
An integer value that determines the largest number of characters you want to allow for String types.
-
#max_value ⇒ Numeric?
readonly
A numeric value that determines the largest numeric value you want to allow for Number types.
-
#min_length ⇒ Numeric?
readonly
An integer value that determines the smallest number of characters you want to allow for String types.
-
#min_value ⇒ Numeric?
readonly
A numeric value that determines the smallest numeric value you want to allow for Number types.
-
#no_echo ⇒ Boolean?
readonly
Whether to mask the parameter value when anyone makes a call that describes the stack.
-
#type ⇒ String?
readonly
The data type for the parameter (DataType).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(allowed_pattern: nil, allowed_values: nil, constraint_description: nil, default: nil, description: nil, max_length: nil, max_value: nil, min_length: nil, min_value: nil, no_echo: nil, type: nil) ⇒ CfnParameterProps
constructor
A new instance of CfnParameterProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(allowed_pattern: nil, allowed_values: nil, constraint_description: nil, default: nil, description: nil, max_length: nil, max_value: nil, min_length: nil, min_value: nil, no_echo: nil, type: nil) ⇒ CfnParameterProps
Returns a new instance of CfnParameterProps.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'cfn_parameter_props.rb', line 17 def initialize(allowed_pattern: nil, allowed_values: nil, constraint_description: nil, default: nil, description: nil, max_length: nil, max_value: nil, min_length: nil, min_value: nil, no_echo: nil, type: nil) @allowed_pattern = allowed_pattern Jsii::Type.check_type(@allowed_pattern, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "allowedPattern") unless @allowed_pattern.nil? @allowed_values = allowed_values Jsii::Type.check_type(@allowed_values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "allowedValues") unless @allowed_values.nil? @constraint_description = constraint_description Jsii::Type.check_type(@constraint_description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "constraintDescription") unless @constraint_description.nil? @default = default Jsii::Type.check_type(@default, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "default") unless @default.nil? @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @max_length = max_length Jsii::Type.check_type(@max_length, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxLength") unless @max_length.nil? @max_value = max_value Jsii::Type.check_type(@max_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxValue") unless @max_value.nil? @min_length = min_length Jsii::Type.check_type(@min_length, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minLength") unless @min_length.nil? @min_value = min_value Jsii::Type.check_type(@min_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minValue") unless @min_value.nil? @no_echo = no_echo Jsii::Type.check_type(@no_echo, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "noEcho") unless @no_echo.nil? @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil? end |
Instance Attribute Details
#allowed_pattern ⇒ String? (readonly)
Default: - No constraints on patterns allowed for parameter.
A regular expression that represents the patterns to allow for String types.
46 47 48 |
# File 'cfn_parameter_props.rb', line 46 def allowed_pattern @allowed_pattern end |
#allowed_values ⇒ Array<String>? (readonly)
Default: - No constraints on values allowed for parameter.
An array containing the list of values allowed for the parameter.
51 52 53 |
# File 'cfn_parameter_props.rb', line 51 def allowed_values @allowed_values end |
#constraint_description ⇒ String? (readonly)
Default: - No description with customized error message when user specifies invalid values.
A string that explains a constraint when the constraint is violated.
For example, without a constraint description, a parameter that has an allowed pattern of [A-Za-z0-9]+ displays the following error message when the user specifies an invalid value:
60 61 62 |
# File 'cfn_parameter_props.rb', line 60 def constraint_description @constraint_description end |
#default ⇒ Object? (readonly)
Default: - No default value for parameter.
A value of the appropriate type for the template to use if no value is specified when a stack is created.
If you define constraints for the parameter, you must specify a value that adheres to those constraints.
68 69 70 |
# File 'cfn_parameter_props.rb', line 68 def default @default end |
#description ⇒ String? (readonly)
Default: - No description for the parameter.
A string of up to 4000 characters that describes the parameter.
73 74 75 |
# File 'cfn_parameter_props.rb', line 73 def description @description end |
#max_length ⇒ Numeric? (readonly)
Default: - None.
An integer value that determines the largest number of characters you want to allow for String types.
78 79 80 |
# File 'cfn_parameter_props.rb', line 78 def max_length @max_length end |
#max_value ⇒ Numeric? (readonly)
Default: - None.
A numeric value that determines the largest numeric value you want to allow for Number types.
83 84 85 |
# File 'cfn_parameter_props.rb', line 83 def max_value @max_value end |
#min_length ⇒ Numeric? (readonly)
Default: - None.
An integer value that determines the smallest number of characters you want to allow for String types.
88 89 90 |
# File 'cfn_parameter_props.rb', line 88 def min_length @min_length end |
#min_value ⇒ Numeric? (readonly)
Default: - None.
A numeric value that determines the smallest numeric value you want to allow for Number types.
93 94 95 |
# File 'cfn_parameter_props.rb', line 93 def min_value @min_value end |
#no_echo ⇒ Boolean? (readonly)
Default: - Parameter values are not masked.
Whether to mask the parameter value when anyone makes a call that describes the stack.
If you set the value to true, the parameter value is masked with asterisks (*****).
100 101 102 |
# File 'cfn_parameter_props.rb', line 100 def no_echo @no_echo end |
#type ⇒ String? (readonly)
Default: String
The data type for the parameter (DataType).
105 106 107 |
# File 'cfn_parameter_props.rb', line 105 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 |
# File 'cfn_parameter_props.rb', line 107 def self.jsii_properties { :allowed_pattern => "allowedPattern", :allowed_values => "allowedValues", :constraint_description => "constraintDescription", :default => "default", :description => "description", :max_length => "maxLength", :max_value => "maxValue", :min_length => "minLength", :min_value => "minValue", :no_echo => "noEcho", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
# File 'cfn_parameter_props.rb', line 123 def to_jsii result = {} result.merge!({ "allowedPattern" => @allowed_pattern, "allowedValues" => @allowed_values, "constraintDescription" => @constraint_description, "default" => @default, "description" => @description, "maxLength" => @max_length, "maxValue" => @max_value, "minLength" => @min_length, "minValue" => @min_value, "noEcho" => @no_echo, "type" => @type, }) result.compact end |