Class: AWSCDK::NestedStackProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NestedStackProps
- Defined in:
- nested_stack_props.rb
Overview
Initialization props for the NestedStack construct.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
A description of the stack.
-
#notification_arns ⇒ Array<String>?
readonly
The Simple Notification Service (SNS) topics to publish stack related events.
-
#parameters ⇒ Hash{String => String}?
readonly
The set value pairs that represent the parameters passed to CloudFormation when this nested stack is created.
-
#removal_policy ⇒ AWSCDK::RemovalPolicy?
readonly
Policy to apply when the nested stack is removed.
-
#suppress_template_indentation ⇒ Boolean?
readonly
Enable this flag to suppress indentation in generated CloudFormation templates.
-
#timeout ⇒ AWSCDK::Duration?
readonly
The length of time that CloudFormation waits for the nested stack to reach the CREATE_COMPLETE state.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(description: nil, notification_arns: nil, parameters: nil, removal_policy: nil, suppress_template_indentation: nil, timeout: nil) ⇒ NestedStackProps
constructor
A new instance of NestedStackProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(description: nil, notification_arns: nil, parameters: nil, removal_policy: nil, suppress_template_indentation: nil, timeout: nil) ⇒ NestedStackProps
Returns a new instance of NestedStackProps.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'nested_stack_props.rb', line 13 def initialize(description: nil, notification_arns: nil, parameters: nil, removal_policy: nil, suppress_template_indentation: nil, timeout: nil) @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @notification_arns = notification_arns Jsii::Type.check_type(@notification_arns, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "notificationArns") unless @notification_arns.nil? @parameters = parameters Jsii::Type.check_type(@parameters, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "parameters") unless @parameters.nil? @removal_policy = removal_policy Jsii::Type.check_type(@removal_policy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZW1vdmFsUG9saWN5In0=")), "removalPolicy") unless @removal_policy.nil? @suppress_template_indentation = suppress_template_indentation Jsii::Type.check_type(@suppress_template_indentation, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "suppressTemplateIndentation") unless @suppress_template_indentation.nil? @timeout = timeout Jsii::Type.check_type(@timeout, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5EdXJhdGlvbiJ9")), "timeout") unless @timeout.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
Default: - No description.
A description of the stack.
32 33 34 |
# File 'nested_stack_props.rb', line 32 def description @description end |
#notification_arns ⇒ Array<String>? (readonly)
Default: - notifications are not sent for this stack.
The Simple Notification Service (SNS) topics to publish stack related events.
37 38 39 |
# File 'nested_stack_props.rb', line 37 def notification_arns @notification_arns end |
#parameters ⇒ Hash{String => String}? (readonly)
Default: - no user-defined parameters are passed to the nested stack
The set value pairs that represent the parameters passed to CloudFormation when this nested stack is created.
Each parameter has a name corresponding to a parameter defined in the embedded template and a value representing the value that you want to set for the parameter.
The nested stack construct will automatically synthesize parameters in order to bind references from the parent stack(s) into the nested stack.
49 50 51 |
# File 'nested_stack_props.rb', line 49 def parameters @parameters end |
#removal_policy ⇒ AWSCDK::RemovalPolicy? (readonly)
Default: RemovalPolicy.DESTROY
Policy to apply when the nested stack is removed.
The default is Destroy, because all Removal Policies of resources inside the
Nested Stack should already have been set correctly. You normally should
not need to set this value.
58 59 60 |
# File 'nested_stack_props.rb', line 58 def removal_policy @removal_policy end |
#suppress_template_indentation ⇒ Boolean? (readonly)
Default: - the value of @aws-cdk/core:suppressTemplateIndentation, or false if that is not set.
Enable this flag to suppress indentation in generated CloudFormation templates.
If not specified, the value of the @aws-cdk/core:suppressTemplateIndentation
context key will be used. If that is not specified, then the
default value false will be used.
67 68 69 |
# File 'nested_stack_props.rb', line 67 def suppress_template_indentation @suppress_template_indentation end |
#timeout ⇒ AWSCDK::Duration? (readonly)
Default: - no timeout
The length of time that CloudFormation waits for the nested stack to reach the CREATE_COMPLETE state.
When CloudFormation detects that the nested stack has reached the CREATE_COMPLETE state, it marks the nested stack resource as CREATE_COMPLETE in the parent stack and resumes creating the parent stack. If the timeout period expires before the nested stack reaches CREATE_COMPLETE, CloudFormation marks the nested stack as failed and rolls back both the nested stack and parent stack.
79 80 81 |
# File 'nested_stack_props.rb', line 79 def timeout @timeout end |
Class Method Details
.jsii_properties ⇒ Object
81 82 83 84 85 86 87 88 89 90 |
# File 'nested_stack_props.rb', line 81 def self.jsii_properties { :description => "description", :notification_arns => "notificationArns", :parameters => "parameters", :removal_policy => "removalPolicy", :suppress_template_indentation => "suppressTemplateIndentation", :timeout => "timeout", } end |
Instance Method Details
#to_jsii ⇒ Object
92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'nested_stack_props.rb', line 92 def to_jsii result = {} result.merge!({ "description" => @description, "notificationArns" => @notification_arns, "parameters" => @parameters, "removalPolicy" => @removal_policy, "suppressTemplateIndentation" => @suppress_template_indentation, "timeout" => @timeout, }) result.compact end |