Class: AWSCDK::CloudFormation::CfnGuardHook::HookTargetProperty

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

Overview

Hook targets are the destination where hooks will be invoked against.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action:, invocation_point:, target_name:) ⇒ HookTargetProperty

Returns a new instance of HookTargetProperty.

Parameters:

  • action (String)

    Target actions are the type of operation hooks will be executed at.

  • invocation_point (String)

    Invocation points are the point in provisioning workflow where hooks will be executed.

  • target_name (String)

    Type name of hook target.



629
630
631
632
633
634
635
636
# File 'cloud_formation/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

#actionString (readonly)

Target actions are the type of operation hooks will be executed at.



642
643
644
# File 'cloud_formation/cfn_guard_hook.rb', line 642

def action
  @action
end

#invocation_pointString (readonly)

Invocation points are the point in provisioning workflow where hooks will be executed.



647
648
649
# File 'cloud_formation/cfn_guard_hook.rb', line 647

def invocation_point
  @invocation_point
end

#target_nameString (readonly)

Type name of hook target.

Hook targets are the destination where hooks will be invoked against.



654
655
656
# File 'cloud_formation/cfn_guard_hook.rb', line 654

def target_name
  @target_name
end

Class Method Details

.jsii_propertiesObject



656
657
658
659
660
661
662
# File 'cloud_formation/cfn_guard_hook.rb', line 656

def self.jsii_properties
  {
    :action => "action",
    :invocation_point => "invocationPoint",
    :target_name => "targetName",
  }
end

Instance Method Details

#to_jsiiObject



664
665
666
667
668
669
670
671
672
# File 'cloud_formation/cfn_guard_hook.rb', line 664

def to_jsii
  result = {}
  result.merge!({
    "action" => @action,
    "invocationPoint" => @invocation_point,
    "targetName" => @target_name,
  })
  result.compact
end