Using the Callback Parameter

The Node.js runtimes v4.3 and v6.10 support the optional callback
parameter. You can use it to explicitly return information back to the caller.
The general syntax is:

callback(Error error, Object result);

Where:

error – is an optional parameter that you can
use to provide results of the failed Lambda function execution. When
a Lambda function succeeds, you can pass null as the first
parameter.

result – is an optional parameter that you can
use to provide the result of a successful function execution. The
result provided must be JSON.stringify compatible. If
an error is provided, this parameter is ignored.

Note

Using the callback parameter is optional. If you don't use the
optional callback parameter, the behavior is same as if you called the
callback() without any parameters. You can specify the
callback in your code to return information to the
caller.

The API-executing Resource expression has the following general
format:

where:

region is the AWS region (such as
us-east-1 or * for
all AWS regions) that corresponds to the deployed API for the
method.

account-id is the 12-digit AWS account Id
of the REST API owner.

api-id is the identifier API Gateway has assigned
to the API for the method. (* can be used for all
APIs, regardless of the API's identifier.)

stage-name is the name of the stage
associated with the method (* can be used for all
stages, regardless of the stage's name.)

HTTP-VERB is the HTTP verb for the method.
It can be one of the following: GET, POST, PUT, DELETE, PATCH, HEAD,
OPTIONS.

resource-path-specifier is the path to the
desired method. (* can be used for all
paths).

Some example resource expressions include:

arn:aws:execute-api:*:*:* for any resource path
in any stage, for any API in any AWS region. (This is equivalent to
*).

arn:aws:execute-api:us-east-1:*:* for any
resource path in any stage, for any API in the AWS region of
us-east-1.

arn:aws:execute-api:us-east-1:*:api-id/*
for any resource path in any stage, for the API with the identifier of
api-id in the AWS region of
us-east-1.

arn:aws:execute-api:us-east-1:*:api-id/test/*
for resource path in the stage of test, for the API
with the identifier of api-id in the AWS
region of us-east-1.

arn:aws:execute-api:us-east-1:*:api-id/test/*/mydemoresource/*
for any resource path along the path of
mydemoresource, for any HTTP method in
the stage of test, for the API with the identifier
of api-id in the AWS region of
us-east-1.

arn:aws:execute-api:us-east-1:*:api-id/test/GET/mydemoresource/*
for GET methods under any resource path along the path of
mydemoresource, in the stage of
test, for the API with the identifier of
api-id in the AWS region of
us-east-1.

case "application_fee.created": //describes an application fee, Occurs whenever an application fee is created on a charge.

case "application_fee.refunded": //describes an application fee, Occurs whenever an application fee is refunded, whether from refunding a charge or from refunding the application fee directly, including partial refunds.

case "balance.available": //describes a balance, Occurs whenever your Stripe balance has been updated (e.g., when a charge is available to be paid out). By default, Stripe automatically transfers funds in your balance to your bank account on a daily basis.

case "bitcoin.receiver.created": //describes a bitcoin receiver, Occurs whenever a receiver has been created.

case "bitcoin.receiver.filled": //describes a bitcoin receiver, Occurs whenever a receiver is filled (i.e., when it has received enough bitcoin to process a payment of the same amount).

case "invoice.sent": //describes an invoice, Occurs whenever an invoice email is sent out.

case "invoice.upcoming": //describes an invoice, Occurs X number of days before a subscription is scheduled to create an invoice that is charged automatically, where X is determined by your subscriptions settings.

case "payout.paid": //describes a payout, Occurs whenever a payout is expected to be available in the destination account. If the payout fails, a payout.failed notification is additionally sent at a later time.

case "payout.updated": //describes a payout, Occurs whenever the metadata of a payout is updated.

I recently created a Azure App Service Certificate that I wanted to use with Azure Application Gateway. However, this requires you to upload an PFX file and there isn't an option to generate one from Azure App Service Certificate. However, I found an article that can generate the PFX for you from the App Service Certificate;