Class: AWSCDK::CloudFormation::CfnLambdaHook::StackNamesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFormation::CfnLambdaHook::StackNamesProperty
- Defined in:
- cloud_formation/cfn_lambda_hook.rb
Overview
Specifies the stack names for the StackFilters property type to include or exclude specific stacks from Hook invocations.
For more information, see CloudFormation Hooks stack level filters .
Instance Attribute Summary collapse
-
#exclude ⇒ Array<String>?
readonly
The stack names to exclude.
-
#include ⇒ Array<String>?
readonly
The stack names to include.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(exclude: nil, include: nil) ⇒ StackNamesProperty
constructor
A new instance of StackNamesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(exclude: nil, include: nil) ⇒ StackNamesProperty
Returns a new instance of StackNamesProperty.
720 721 722 723 724 725 |
# File 'cloud_formation/cfn_lambda_hook.rb', line 720 def initialize(exclude: nil, include: nil) @exclude = exclude Jsii::Type.check_type(@exclude, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "exclude") unless @exclude.nil? @include = include Jsii::Type.check_type(@include, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "include") unless @include.nil? end |
Instance Attribute Details
#exclude ⇒ Array<String>? (readonly)
The stack names to exclude.
All stacks except those listed here will invoke the Hook.
733 734 735 |
# File 'cloud_formation/cfn_lambda_hook.rb', line 733 def exclude @exclude end |
#include ⇒ Array<String>? (readonly)
The stack names to include.
Only the stacks specified in this list will invoke the Hook.
740 741 742 |
# File 'cloud_formation/cfn_lambda_hook.rb', line 740 def include @include end |
Class Method Details
.jsii_properties ⇒ Object
742 743 744 745 746 747 |
# File 'cloud_formation/cfn_lambda_hook.rb', line 742 def self.jsii_properties { :exclude => "exclude", :include => "include", } end |
Instance Method Details
#to_jsii ⇒ Object
749 750 751 752 753 754 755 756 |
# File 'cloud_formation/cfn_lambda_hook.rb', line 749 def to_jsii result = {} result.merge!({ "exclude" => @exclude, "include" => @include, }) result.compact end |