Class: AWSCDK::CfnLambdaHook::HookTargetProperty

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



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

#actionString (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_pointString (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_nameString (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_propertiesObject



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_jsiiObject



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