Package-level declarations

Types

Link copied to clipboard

Overview

Properties

Link copied to clipboard
const val SdkVersion: String
Link copied to clipboard
Link copied to clipboard
const val ServiceId: String

Functions

Link copied to clipboard

Adds permissions to the resource-based policy of a version of an Lambda layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all accounts in an organization, or all Amazon Web Services accounts.

Link copied to clipboard

Grants an Amazon Web Service, Amazon Web Services account, or Amazon Web Services organization permission to use a function. You can apply the policy at the function level, or specify a qualifier to restrict access to a single version or alias. If you use a qualifier, the invoker must use the full Amazon Resource Name (ARN) of that version or alias to invoke the function. Note: Lambda does not support adding policies to version $LATEST.

Link copied to clipboard
inline suspend fun LambdaClient.createAlias(crossinline block: CreateAliasRequest.Builder.() -> Unit): CreateAliasResponse

Creates an alias for a Lambda function version. Use aliases to provide clients with a function identifier that you can update to invoke a different version.

Link copied to clipboard

Creates a code signing configuration. A code signing configuration defines a list of allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment validation checks fail).

Link copied to clipboard

Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and invokes the function.

Link copied to clipboard

Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing.

Link copied to clipboard

Creates a Lambda function URL with the specified configuration parameters. A function URL is a dedicated HTTP(S) endpoint that you can use to invoke your function.

Link copied to clipboard
inline suspend fun LambdaClient.deleteAlias(crossinline block: DeleteAliasRequest.Builder.() -> Unit): DeleteAliasResponse

Deletes a Lambda function alias.

Link copied to clipboard

Deletes the code signing configuration. You can delete the code signing configuration only if no function is using it.

Link copied to clipboard

Deletes an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.

Link copied to clipboard

Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter. Otherwise, all versions and aliases are deleted. This doesn't require the user to have explicit permissions for DeleteAlias.

Link copied to clipboard

Removes the code signing configuration from the function.

Link copied to clipboard

Removes a concurrent execution limit from a function.

Link copied to clipboard

Deletes the configuration for asynchronous invocation for a function, version, or alias.

Link copied to clipboard

Deletes a Lambda function URL. When you delete a function URL, you can't recover it. Creating a new function URL results in a different URL address.

Link copied to clipboard

Deletes a version of an Lambda layer. Deleted versions can no longer be viewed or added to functions. To avoid breaking functions, a copy of the version remains in Lambda until no functions refer to it.

Link copied to clipboard

Deletes the provisioned concurrency configuration for a function.

Link copied to clipboard

Retrieves details about your account's limits and usage in an Amazon Web Services Region.

Link copied to clipboard
inline suspend fun LambdaClient.getAlias(crossinline block: GetAliasRequest.Builder.() -> Unit): GetAliasResponse

Returns details about a Lambda function alias.

Link copied to clipboard

Returns information about the specified code signing configuration.

Link copied to clipboard

Returns details about an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.

Link copied to clipboard
inline suspend fun LambdaClient.getFunction(crossinline block: GetFunctionRequest.Builder.() -> Unit): GetFunctionResponse

Returns information about the function or function version, with a link to download the deployment package that's valid for 10 minutes. If you specify a function version, only details that are specific to that version are returned.

Link copied to clipboard

Returns the code signing configuration for the specified function.

Link copied to clipboard

Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use PutFunctionConcurrency.

Link copied to clipboard

Returns the version-specific settings of a Lambda function or version. The output includes only options that can vary between versions of a function. To modify these settings, use UpdateFunctionConfiguration.

Link copied to clipboard

Retrieves the configuration for asynchronous invocation for a function, version, or alias.

Link copied to clipboard

Returns details about a Lambda function URL.

Link copied to clipboard

Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.

Link copied to clipboard

Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.

Link copied to clipboard

Returns the permission policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.

Link copied to clipboard
inline suspend fun LambdaClient.getPolicy(crossinline block: GetPolicyRequest.Builder.() -> Unit): GetPolicyResponse

Returns the resource-based IAM policy for a function, version, or alias.

Link copied to clipboard

Retrieves the provisioned concurrency configuration for a function's alias or version.

Link copied to clipboard

Retrieves the runtime management configuration for a function's version. If the runtime update mode is Manual, this includes the ARN of the runtime version and the runtime update mode. If the runtime update mode is Auto or Function update, this includes the runtime update mode and null is returned for the ARN. For more information, see Runtime updates.

Link copied to clipboard
inline suspend fun LambdaClient.invoke(crossinline block: InvokeRequest.Builder.() -> Unit): InvokeResponse

Invokes a Lambda function. You can invoke a function synchronously (and wait for the response), or asynchronously. By default, Lambda invokes your function synchronously (i.e. theInvocationType is RequestResponse). To invoke a function asynchronously, set InvocationType to Event. Lambda passes the ClientContext object to your function for synchronous invocations only.

Link copied to clipboard
inline suspend fun LambdaClient.invokeAsync(crossinline block: InvokeAsyncRequest.Builder.() -> Unit): InvokeAsyncResponse

For asynchronous function invocation, use Invoke.

Link copied to clipboard
inline suspend fun LambdaClient.listAliases(crossinline block: ListAliasesRequest.Builder.() -> Unit): ListAliasesResponse

Returns a list of aliases for a Lambda function.

Link copied to clipboard

Returns a list of code signing configurations. A request returns up to 10,000 configurations per call. You can use the MaxItems parameter to return fewer configurations per call.

Link copied to clipboard

Lists event source mappings. Specify an EventSourceArn to show only event source mappings for a single event source.

Link copied to clipboard

Retrieves a list of configurations for asynchronous invocation for a function.

Link copied to clipboard

Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.

Link copied to clipboard

List the functions that use the specified code signing configuration. You can use this method prior to deleting a code signing configuration, to verify that no functions are using it.

Link copied to clipboard

Returns a list of Lambda function URLs for the specified function.

Link copied to clipboard
inline suspend fun LambdaClient.listLayers(crossinline block: ListLayersRequest.Builder.() -> Unit): ListLayersResponse

Lists Lambda layers and shows information about the latest version of each. Specify a runtime identifier to list only layers that indicate that they're compatible with that runtime. Specify a compatible architecture to include only layers that are compatible with that instruction set architecture.

Link copied to clipboard

Lists the versions of an Lambda layer. Versions that have been deleted aren't listed. Specify a runtime identifier to list only versions that indicate that they're compatible with that runtime. Specify a compatible architecture to include only layer versions that are compatible with that architecture.

Link copied to clipboard

Retrieves a list of provisioned concurrency configurations for a function.

Link copied to clipboard
inline suspend fun LambdaClient.listTags(crossinline block: ListTagsRequest.Builder.() -> Unit): ListTagsResponse

Returns a function's tags. You can also view tags with GetFunction.

Link copied to clipboard

Returns a list of versions, with the version-specific configuration of each. Lambda returns up to 50 versions per call.

Link copied to clipboard

Creates an Lambda layer from a ZIP archive. Each time you call PublishLayerVersion with the same layer name, a new version is created.

Link copied to clipboard

Creates a version from the current code and configuration of a function. Use versions to create a snapshot of your function code and configuration that doesn't change.

Link copied to clipboard

Update the code signing configuration for the function. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.

Link copied to clipboard

Sets the maximum number of simultaneous executions for a function, and reserves capacity for that concurrency level.

Link copied to clipboard

Configures options for asynchronous invocation on a function, version, or alias. If a configuration already exists for a function, version, or alias, this operation overwrites it. If you exclude any settings, they are removed. To set one option without affecting existing settings for other options, use UpdateFunctionEventInvokeConfig.

Link copied to clipboard

Adds a provisioned concurrency configuration to a function's alias or version.

Link copied to clipboard

Sets the runtime management configuration for a function's version. For more information, see Runtime updates.

Link copied to clipboard

Removes a statement from the permissions policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.

Link copied to clipboard

Revokes function-use permission from an Amazon Web Service or another Amazon Web Services account. You can get the ID of the statement from the output of GetPolicy.

Link copied to clipboard
inline suspend fun LambdaClient.tagResource(crossinline block: TagResourceRequest.Builder.() -> Unit): TagResourceResponse

Adds tags to a function.

Link copied to clipboard

Removes tags from a function.

Link copied to clipboard
inline suspend fun LambdaClient.updateAlias(crossinline block: UpdateAliasRequest.Builder.() -> Unit): UpdateAliasResponse

Updates the configuration of a Lambda function alias.

Link copied to clipboard

Update the code signing configuration. Changes to the code signing configuration take effect the next time a user tries to deploy a code package to the function.

Link copied to clipboard

Updates an event source mapping. You can change the function that Lambda invokes, or pause invocation and resume later from the same location.

Link copied to clipboard

Updates a Lambda function's code. If code signing is enabled for the function, the code package must be signed by a trusted publisher. For more information, see Configuring code signing for Lambda.

Link copied to clipboard

Modify the version-specific settings of a Lambda function.

Link copied to clipboard

Updates the configuration for asynchronous invocation for a function, version, or alias.

Link copied to clipboard

Updates the configuration for a Lambda function URL.

Link copied to clipboard

Create a copy of the client with one or more configuration values overridden. This method allows the caller to perform scoped config overrides for one or more client operations.