Class: AWSCDK::CloudFormation::CfnLambdaHook::TargetFiltersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_formation/cfn_lambda_hook.rb

Overview

The TargetFilters property type specifies the target filters for the Hook.

For more information, see CloudFormation Hook target filters .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(targets:, actions: nil, invocation_points: nil, target_names: nil) ⇒ TargetFiltersProperty

Returns a new instance of TargetFiltersProperty.

Parameters:

  • targets (AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::CloudFormation::CfnLambdaHook::HookTargetProperty>)

    List of hook targets.

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

    List of actions that the hook is going to target.

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

    List of invocation points that the hook is going to target.

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

    List of type names that the hook is going to target.



820
821
822
823
824
825
826
827
828
829
# File 'cloud_formation/cfn_lambda_hook.rb', line 820

def initialize(targets:, actions: nil, invocation_points: nil, target_names: nil)
  @targets = targets
  Jsii::Type.check_type(@targets, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWRmb3JtYXRpb24uQ2ZuTGFtYmRhSG9vay5Ib29rVGFyZ2V0UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "targets")
  @actions = actions
  Jsii::Type.check_type(@actions, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "actions") unless @actions.nil?
  @invocation_points = invocation_points
  Jsii::Type.check_type(@invocation_points, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "invocationPoints") unless @invocation_points.nil?
  @target_names = target_names
  Jsii::Type.check_type(@target_names, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "targetNames") unless @target_names.nil?
end

Instance Attribute Details

#actionsArray<String>? (readonly)

List of actions that the hook is going to target.



840
841
842
# File 'cloud_formation/cfn_lambda_hook.rb', line 840

def actions
  @actions
end

#invocation_pointsArray<String>? (readonly)

List of invocation points that the hook is going to target.



845
846
847
# File 'cloud_formation/cfn_lambda_hook.rb', line 845

def invocation_points
  @invocation_points
end

#target_namesArray<String>? (readonly)

List of type names that the hook is going to target.



850
851
852
# File 'cloud_formation/cfn_lambda_hook.rb', line 850

def target_names
  @target_names
end

Class Method Details

.jsii_propertiesObject



852
853
854
855
856
857
858
859
# File 'cloud_formation/cfn_lambda_hook.rb', line 852

def self.jsii_properties
  {
    :targets => "targets",
    :actions => "actions",
    :invocation_points => "invocationPoints",
    :target_names => "targetNames",
  }
end

Instance Method Details

#to_jsiiObject



861
862
863
864
865
866
867
868
869
870
# File 'cloud_formation/cfn_lambda_hook.rb', line 861

def to_jsii
  result = {}
  result.merge!({
    "targets" => @targets,
    "actions" => @actions,
    "invocationPoints" => @invocation_points,
    "targetNames" => @target_names,
  })
  result.compact
end