Class: AWSCDK::CfnLambdaHook::HookTargetProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CfnLambdaHook::HookTargetProperty
- Defined in:
- cfn_lambda_hook.rb
Overview
Hook targets are the destination where hooks will be invoked against.
Instance Attribute Summary collapse
-
#action ⇒ String
readonly
Target actions are the type of operation hooks will be executed at.
-
#invocation_point ⇒ String
readonly
Invocation points are the point in provisioning workflow where hooks will be executed.
-
#target_name ⇒ String
readonly
Type name of hook target.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(action:, invocation_point:, target_name:) ⇒ HookTargetProperty
constructor
A new instance of HookTargetProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(action:, invocation_point:, target_name:) ⇒ HookTargetProperty
Returns a new instance of HookTargetProperty.
603 604 605 606 607 608 609 610 |
# File 'cfn_lambda_hook.rb', line 603 def initialize(action:, invocation_point:, target_name:) @action = action Jsii::Type.check_type(@action, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "action") @invocation_point = invocation_point Jsii::Type.check_type(@invocation_point, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "invocationPoint") @target_name = target_name Jsii::Type.check_type(@target_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetName") end |
Instance Attribute Details
#action ⇒ String (readonly)
Target actions are the type of operation hooks will be executed at.
616 617 618 |
# File 'cfn_lambda_hook.rb', line 616 def action @action end |
#invocation_point ⇒ String (readonly)
Invocation points are the point in provisioning workflow where hooks will be executed.
621 622 623 |
# File 'cfn_lambda_hook.rb', line 621 def invocation_point @invocation_point end |
#target_name ⇒ String (readonly)
Type name of hook target.
Hook targets are the destination where hooks will be invoked against.
628 629 630 |
# File 'cfn_lambda_hook.rb', line 628 def target_name @target_name end |
Class Method Details
.jsii_properties ⇒ Object
630 631 632 633 634 635 636 |
# File 'cfn_lambda_hook.rb', line 630 def self.jsii_properties { :action => "action", :invocation_point => "invocationPoint", :target_name => "targetName", } end |
Instance Method Details
#to_jsii ⇒ Object
638 639 640 641 642 643 644 645 646 |
# File 'cfn_lambda_hook.rb', line 638 def to_jsii result = {} result.merge!({ "action" => @action, "invocationPoint" => @invocation_point, "targetName" => @target_name, }) result.compact end |