Class: AWSCDK::CfnGuardHook::TargetFiltersProperty

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



928
929
930
931
932
933
934
935
936
937
# File 'cfn_guard_hook.rb', line 928

def initialize(targets:, actions: nil, invocation_points: nil, target_names: nil)
  @targets = targets
  Jsii::Type.check_type(@targets, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5DZm5HdWFyZEhvb2suSG9va1RhcmdldFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "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.



948
949
950
# File 'cfn_guard_hook.rb', line 948

def actions
  @actions
end

#invocation_pointsArray<String>? (readonly)

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



953
954
955
# File 'cfn_guard_hook.rb', line 953

def invocation_points
  @invocation_points
end

#target_namesArray<String>? (readonly)

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



958
959
960
# File 'cfn_guard_hook.rb', line 958

def target_names
  @target_names
end

Class Method Details

.jsii_propertiesObject



960
961
962
963
964
965
966
967
# File 'cfn_guard_hook.rb', line 960

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

Instance Method Details

#to_jsiiObject



969
970
971
972
973
974
975
976
977
978
# File 'cfn_guard_hook.rb', line 969

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