Class: AWSCDK::CfnGuardHook::HookTargetProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CfnGuardHook::HookTargetProperty
- Defined in:
- cfn_guard_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.
629 630 631 632 633 634 635 636 |
# File 'cfn_guard_hook.rb', line 629 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.
642 643 644 |
# File 'cfn_guard_hook.rb', line 642 def action @action end |
#invocation_point ⇒ String (readonly)
Invocation points are the point in provisioning workflow where hooks will be executed.
647 648 649 |
# File 'cfn_guard_hook.rb', line 647 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.
654 655 656 |
# File 'cfn_guard_hook.rb', line 654 def target_name @target_name end |
Class Method Details
.jsii_properties ⇒ Object
656 657 658 659 660 661 662 |
# File 'cfn_guard_hook.rb', line 656 def self.jsii_properties { :action => "action", :invocation_point => "invocationPoint", :target_name => "targetName", } end |
Instance Method Details
#to_jsii ⇒ Object
664 665 666 667 668 669 670 671 672 |
# File 'cfn_guard_hook.rb', line 664 def to_jsii result = {} result.merge!({ "action" => @action, "invocationPoint" => @invocation_point, "targetName" => @target_name, }) result.compact end |