class Amazonite::Lambda::FunctionEventInvokeConfig

Included Modules

Defined in:

lambda/function_event_invoke_config.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(last_modified : Time | Nil = nil, function_arn : String | Nil = nil, maximum_retry_attempts : Int32 | Nil = nil, maximum_event_age_in_seconds : Int32 | Nil = nil, destination_config : DestinationConfig | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def destination_config : DestinationConfig | Nil #

A destination for events after they have been sent to a function for processing.

Destinations

  • Function - The Amazon Resource Name (ARN) of a Lambda function.

  • Queue - The ARN of a standard SQS queue.

  • Bucket - The ARN of an Amazon S3 bucket.

  • Topic - The ARN of a standard SNS topic.

  • Event Bus - The ARN of an Amazon EventBridge event bus.

S3 buckets are supported only for on-failure destinations. To retain records of successful invocations, use another destination type.


[View source]
def destination_config=(destination_config : DestinationConfig | Nil) #

A destination for events after they have been sent to a function for processing.

Destinations

  • Function - The Amazon Resource Name (ARN) of a Lambda function.

  • Queue - The ARN of a standard SQS queue.

  • Bucket - The ARN of an Amazon S3 bucket.

  • Topic - The ARN of a standard SNS topic.

  • Event Bus - The ARN of an Amazon EventBridge event bus.

S3 buckets are supported only for on-failure destinations. To retain records of successful invocations, use another destination type.


[View source]
def function_arn : String | Nil #

The Amazon Resource Name (ARN) of the function.


[View source]
def function_arn=(function_arn : String | Nil) #

The Amazon Resource Name (ARN) of the function.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def last_modified : Time | Nil #

The date and time that the configuration was last updated.


[View source]
def last_modified=(last_modified : Time | Nil) #

The date and time that the configuration was last updated.


[View source]
def maximum_event_age_in_seconds : Int32 | Nil #

The maximum age of a request that Lambda sends to a function for processing.


[View source]
def maximum_event_age_in_seconds=(maximum_event_age_in_seconds : Int32 | Nil) #

The maximum age of a request that Lambda sends to a function for processing.


[View source]
def maximum_retry_attempts : Int32 | Nil #

The maximum number of times to retry when the function returns an error.


[View source]
def maximum_retry_attempts=(maximum_retry_attempts : Int32 | Nil) #

The maximum number of times to retry when the function returns an error.


[View source]
def validate! : Nil #

[View source]