Class: AWSCDK::Pipes::CfnPipe::PipeTargetLambdaFunctionParametersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pipes/cfn_pipe.rb

Overview

The parameters for using a Lambda function as a target.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(invocation_type: nil) ⇒ PipeTargetLambdaFunctionParametersProperty

Returns a new instance of PipeTargetLambdaFunctionParametersProperty.

Parameters:

  • invocation_type (String, nil) (defaults to: nil)

    Specify whether to invoke the function synchronously or asynchronously.



3484
3485
3486
3487
# File 'pipes/cfn_pipe.rb', line 3484

def initialize(invocation_type: nil)
  @invocation_type = invocation_type
  Jsii::Type.check_type(@invocation_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "invocationType") unless @invocation_type.nil?
end

Instance Attribute Details

#invocation_typeString? (readonly)

Specify whether to invoke the function synchronously or asynchronously.

  • REQUEST_RESPONSE (default) - Invoke synchronously. This corresponds to the RequestResponse option in the InvocationType parameter for the Lambda Invoke API.
  • FIRE_AND_FORGET - Invoke asynchronously. This corresponds to the Event option in the InvocationType parameter for the Lambda Invoke API.

For more information, see Invocation types in the Amazon EventBridge User Guide .



3498
3499
3500
# File 'pipes/cfn_pipe.rb', line 3498

def invocation_type
  @invocation_type
end

Class Method Details

.jsii_propertiesObject



3500
3501
3502
3503
3504
# File 'pipes/cfn_pipe.rb', line 3500

def self.jsii_properties
  {
    :invocation_type => "invocationType",
  }
end

Instance Method Details

#to_jsiiObject



3506
3507
3508
3509
3510
3511
3512
# File 'pipes/cfn_pipe.rb', line 3506

def to_jsii
  result = {}
  result.merge!({
    "invocationType" => @invocation_type,
  })
  result.compact
end