Class: AWSCDK::CloudFormation::CfnGuardHook::StackNamesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFormation::CfnGuardHook::StackNamesProperty
- Defined in:
- cloud_formation/cfn_guard_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.
828 829 830 831 832 833 |
# File 'cloud_formation/cfn_guard_hook.rb', line 828 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.
841 842 843 |
# File 'cloud_formation/cfn_guard_hook.rb', line 841 def exclude @exclude end |
#include ⇒ Array<String>? (readonly)
The stack names to include.
Only the stacks specified in this list will invoke the Hook.
848 849 850 |
# File 'cloud_formation/cfn_guard_hook.rb', line 848 def include @include end |
Class Method Details
.jsii_properties ⇒ Object
850 851 852 853 854 855 |
# File 'cloud_formation/cfn_guard_hook.rb', line 850 def self.jsii_properties { :exclude => "exclude", :include => "include", } end |
Instance Method Details
#to_jsii ⇒ Object
857 858 859 860 861 862 863 864 |
# File 'cloud_formation/cfn_guard_hook.rb', line 857 def to_jsii result = {} result.merge!({ "exclude" => @exclude, "include" => @include, }) result.compact end |