Class: AWSCDK::CfnLambdaHook::StackNamesProperty

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

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.



720
721
722
723
724
725
# File '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

#excludeArray<String>? (readonly)

The stack names to exclude.

All stacks except those listed here will invoke the Hook.



733
734
735
# File 'cfn_lambda_hook.rb', line 733

def exclude
  @exclude
end

#includeArray<String>? (readonly)

The stack names to include.

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



740
741
742
# File 'cfn_lambda_hook.rb', line 740

def include
  @include
end

Class Method Details

.jsii_propertiesObject



742
743
744
745
746
747
# File 'cfn_lambda_hook.rb', line 742

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

Instance Method Details

#to_jsiiObject



749
750
751
752
753
754
755
756
# File 'cfn_lambda_hook.rb', line 749

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