Class: AWSCDK::CfnGuardHook::StackNamesProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exclude: nil, include: nil) ⇒ StackNamesProperty

Returns a new instance of StackNamesProperty.

Parameters:

  • exclude (Array<String>, nil) (defaults to: nil)

    The stack names to exclude.

  • include (Array<String>, nil) (defaults to: nil)

    The stack names to include.



828
829
830
831
832
833
# File '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

#excludeArray<String>? (readonly)

The stack names to exclude.

All stacks except those listed here will invoke the Hook.



841
842
843
# File 'cfn_guard_hook.rb', line 841

def exclude
  @exclude
end

#includeArray<String>? (readonly)

The stack names to include.

Only the stacks specified in this list will invoke the Hook.



848
849
850
# File 'cfn_guard_hook.rb', line 848

def include
  @include
end

Class Method Details

.jsii_propertiesObject



850
851
852
853
854
855
# File 'cfn_guard_hook.rb', line 850

def self.jsii_properties
  {
    :exclude => "exclude",
    :include => "include",
  }
end

Instance Method Details

#to_jsiiObject



857
858
859
860
861
862
863
864
# File 'cfn_guard_hook.rb', line 857

def to_jsii
  result = {}
  result.merge!({
    "exclude" => @exclude,
    "include" => @include,
  })
  result.compact
end