Class: AWSCDK::CfnLambdaHook::TargetFiltersProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CfnLambdaHook::TargetFiltersProperty
- Defined in:
- 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
-
#actions ⇒ Array<String>?
readonly
List of actions that the hook is going to target.
-
#invocation_points ⇒ Array<String>?
readonly
List of invocation points that the hook is going to target.
-
#target_names ⇒ Array<String>?
readonly
List of type names that the hook is going to target.
-
#targets ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::CfnLambdaHook::HookTargetProperty>
readonly
List of hook targets.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(targets:, actions: nil, invocation_points: nil, target_names: nil) ⇒ TargetFiltersProperty
constructor
A new instance of TargetFiltersProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(targets:, actions: nil, invocation_points: nil, target_names: nil) ⇒ TargetFiltersProperty
Returns a new instance of TargetFiltersProperty.
820 821 822 823 824 825 826 827 828 829 |
# File '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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5DZm5MYW1iZGFIb29rLkhvb2tUYXJnZXRQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "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
#actions ⇒ Array<String>? (readonly)
List of actions that the hook is going to target.
840 841 842 |
# File 'cfn_lambda_hook.rb', line 840 def actions @actions end |
#invocation_points ⇒ Array<String>? (readonly)
List of invocation points that the hook is going to target.
845 846 847 |
# File 'cfn_lambda_hook.rb', line 845 def invocation_points @invocation_points end |
#target_names ⇒ Array<String>? (readonly)
List of type names that the hook is going to target.
850 851 852 |
# File 'cfn_lambda_hook.rb', line 850 def target_names @target_names end |
#targets ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::CfnLambdaHook::HookTargetProperty> (readonly)
List of hook targets.
835 836 837 |
# File 'cfn_lambda_hook.rb', line 835 def targets @targets end |
Class Method Details
.jsii_properties ⇒ Object
852 853 854 855 856 857 858 859 |
# File '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_jsii ⇒ Object
861 862 863 864 865 866 867 868 869 870 |
# File '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 |