sam local callback succeed - AWS Serverless Application Model

sam local callback succeed

Send a success callback to a durable function execution.

Usage

$ sam local callback succeed CALLBACK_ID [OPTIONS]

Required Arguments

CALLBACK_ID

The unique identifier of the callback to send a success response to.

Options

-r, --result TEXT

Success result payload as string.

--region TEXT

Set the AWS Region of the service (for example, us-east-1).

--profile TEXT

Select a specific profile from your credential file to get AWS credentials.

--config-env TEXT

Environment name specifying default parameter values in the configuration file. Default: default

--config-file TEXT

Configuration file containing default parameter values. Default: samconfig.toml

--save-params

Save the parameters provided via the command line to the configuration file.

--beta-features / --no-beta-features

Enable/Disable beta features.

--debug

Turn on debug logging to print debug messages generated by AWS SAM CLI and display timestamps.

-h, --help

Shows this message and exits.

Examples

Send success callback with no result:

$ sam local callback succeed my-callback-id

Send success callback with result:

$ sam local callback succeed my-callback-id --result 'Task completed successfully'

Send success callback with short option:

$ sam local callback succeed my-callback-id -r 'Success result'