SDK for PHP V3

Client: Aws\LambdaWeb\LambdaWebClient
Service ID: lambda-web
Version: 2025-03-07

This page describes the parameters and results for the operations of the Lambda Web (2025-03-07), and shows how to use the Aws\LambdaWeb\LambdaWebClient object to call the described operations. This documentation is specific to the 2025-03-07 API version of the service.

Operation Summary

Each of the following operations can be created from a client using $client->getCommand('CommandName'), where "CommandName" is the name of one of the following operations. Note: a command is a value that encapsulates an operation and the parameters used to create an HTTP request.

You can also create and send a command immediately using the magic methods available on a client object: $client->commandName(/* parameters */). You can send the command asynchronously (returning a promise) by appending the word "Async" to the operation name: $client->commandNameAsync(/* parameters */).

CreateWebFunction ( array $params = [] )
Creates a web function with an initial revision and endpoint.
CreateWebFunctionEndpoint ( array $params = [] )
Creates an endpoint for a web function.
CreateWebFunctionRevision ( array $params = [] )
Creates an immutable revision for a web function.
DeleteResourcePolicy ( array $params = [] )
Removes the resource-based policy from a web function.
DeleteWebFunction ( array $params = [] )
Deletes a web function and all of its associated revisions and endpoints.
DeleteWebFunctionEndpoint ( array $params = [] )
Deletes a web function endpoint.
DeleteWebFunctionRevision ( array $params = [] )
Deletes a web function revision.
GetResourcePolicy ( array $params = [] )
Retrieves the resource-based policy attached to a web function.
GetWebAccountSettings ( array $params = [] )
Retrieves details about your AWS Lambda Web Functions account settings for the current AWS Region, including the quotas that apply to web functions and your current usage.
GetWebFunction ( array $params = [] )
Retrieves details about a web function, including its current state and configuration.
GetWebFunctionEndpoint ( array $params = [] )
Retrieves details about a web function endpoint, including its current state, configuration, and domain name.
GetWebFunctionRevision ( array $params = [] )
Retrieves details about a web function revision, including its state and configuration.
ListTags ( array $params = [] )
Returns a list of tags applied to a web function.
ListWebFunctionEndpoints ( array $params = [] )
Lists endpoints for a web function.
ListWebFunctionRevisions ( array $params = [] )
Lists revisions for a web function.
ListWebFunctions ( array $params = [] )
Lists web functions in your account.
PutResourcePolicy ( array $params = [] )
Adds or updates a resource-based policy on a web function.
TagResource ( array $params = [] )
Adds tags to a web function.
UntagResource ( array $params = [] )
Removes tags from a web function.
UpdateWebFunctionEndpoint ( array $params = [] )
Updates the configuration of a web function endpoint.

Paginators

Paginators handle automatically iterating over paginated API results. Paginators are associated with specific API operations, and they accept the parameters that the corresponding API operation accepts. You can get a paginator from a client class using getPaginator($paginatorName, $operationParameters). This client supports the following paginators:

ListWebFunctionEndpoints
ListWebFunctionRevisions
ListWebFunctions

Waiters

Waiters allow you to poll a resource until it enters into a desired state. A waiter has a name used to describe what it does, and is associated with an API operation. When creating a waiter, you can provide the API operation parameters associated with the corresponding operation. Waiters can be accessed using the getWaiter($waiterName, $operationParameters) method of a client object. This client supports the following waiters:

Waiter name API Operation Delay Max Attempts
WebFunctionActive GetWebFunction 1 300
WebFunctionDeleted GetWebFunction 1 300
WebFunctionEndpointActive GetWebFunctionEndpoint 1 300
WebFunctionEndpointDeleted GetWebFunctionEndpoint 1 300
WebFunctionEndpointUpdated GetWebFunctionEndpoint 1 300
WebFunctionRevisionActive GetWebFunctionRevision 1 300

Operations

CreateWebFunction

$result = $client->createWebFunction([/* ... */]);
$promise = $client->createWebFunctionAsync([/* ... */]);

Creates a web function with an initial revision and endpoint. To create a web function, you provide the function name, revision configuration (code and service settings), and endpoint configuration.

To use this operation, you must have the CreateWebFunction permission on the web function. You don't need separate permissions for the initial revision or endpoint.

Parameter Syntax

$result = $client->createWebFunction([
    'endpointConfig' => [
        'authType' => 'ApplicationManaged|IamAuth', // REQUIRED
        'autoDeploymentMode' => 'LatestRevision|Disabled',
        'description' => '<string>',
        'endpointName' => '<string>', // REQUIRED
        'endpointType' => 'HomeRegion|MultiRegion|PerRegion', // REQUIRED
        'regions' => ['<string>', ...],
        'scalingConfig' => [
            'maxEnvironments' => <integer>,
        ],
        'throttleConfig' => [
            'rateLimit' => <integer>,
        ],
    ],
    'functionName' => '<string>', // REQUIRED
    'revisionConfig' => [
        'buildConfig' => [ // REQUIRED
            'codeConfig' => [ // REQUIRED
                's3Object' => [ // REQUIRED
                    'bucket' => '<string>', // REQUIRED
                    'key' => '<string>', // REQUIRED
                    'versionId' => '<string>',
                ],
            ],
            'runtimeConfig' => [ // REQUIRED
                'runtime' => '<string>', // REQUIRED
            ],
        ],
        'description' => '<string>',
        'kmsKeyArn' => '<string>',
        'serviceConfig' => [ // REQUIRED
            'egressNetworkConnectorArn' => '<string>',
            'environmentVariables' => ['<string>', ...],
            'executionRoleArn' => '<string>', // REQUIRED
            'maxConcurrencyPerEnvironment' => <integer>,
            'telemetryConfig' => [
                'loggingConfig' => [
                    'applicationLogLevel' => 'TRACE|DEBUG|INFO|WARN|ERROR|FATAL',
                    'logGroup' => '<string>',
                    'systemLogLevel' => 'DEBUG|INFO|WARN',
                ],
            ],
            'timeoutSeconds' => <integer>,
        ],
    ],
    'tags' => ['<string>', ...],
]);

Parameter Details

Members
endpointConfig
Type: EndpointConfig structure

The configuration for the initial endpoint of the web function.

functionName
Required: Yes
Type: string

The name of the web function. The name can contain letters, numbers, hyphens (-), and underscores (_), and can't begin or end with a hyphen or an underscore. The name is limited to 64 characters in length.

revisionConfig
Type: RevisionConfig structure

The configuration for the initial revision of the web function, including code and service settings.

tags
Type: Associative array of custom strings keys (TagKey) to strings

A map of tag keys and values to apply to the web function.

Result Syntax

[
    'createdAt' => <DateTime>,
    'endpoint' => [
        'authType' => 'ApplicationManaged|IamAuth',
        'autoDeploymentMode' => 'LatestRevision|Disabled',
        'createdAt' => <DateTime>,
        'description' => '<string>',
        'domainName' => '<string>',
        'endpointArn' => '<string>',
        'endpointName' => '<string>',
        'endpointType' => 'HomeRegion|MultiRegion|PerRegion',
        'regions' => ['<string>', ...],
        'revisionWeights' => [
            [
                'revisionId' => '<string>',
                'weight' => <integer>,
            ],
            // ...
        ],
        'scalingConfig' => [
            'maxEnvironments' => <integer>,
        ],
        'state' => 'Pending|Active|Failed|Deleting',
        'stateReason' => '<string>',
        'throttleConfig' => [
            'rateLimit' => <integer>,
        ],
        'updateStatus' => 'InProgress|Successful|Failed',
        'updateStatusReason' => '<string>',
        'updatedAt' => <DateTime>,
    ],
    'functionArn' => '<string>',
    'functionName' => '<string>',
    'revision' => [
        'createdAt' => <DateTime>,
        'description' => '<string>',
        'revisionArn' => '<string>',
        'revisionId' => '<string>',
        'state' => 'Pending|Active|Failed',
        'stateReason' => '<string>',
    ],
    'state' => 'Pending|Active|Failed|Deleting',
    'stateReason' => '<string>',
    'tags' => ['<string>', ...],
    'updatedAt' => <DateTime>,
]

Result Details

Members
createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time the web function was created.

endpoint
Type: FunctionEndpointSummary structure

A summary of the initial endpoint created with the web function.

functionArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the web function.

functionName
Required: Yes
Type: string

The name of the web function.

revision
Type: FunctionRevisionSummary structure

A summary of the initial revision created with the web function.

state
Required: Yes
Type: string

The current state of the web function.

stateReason
Required: Yes
Type: string

The reason for the current state of the web function.

tags
Type: Associative array of custom strings keys (TagKey) to strings

A map of tag keys and values associated with the web function.

updatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time the web function was last updated.

Errors

AccessDeniedException:

You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.

ConflictException:

The request conflicts with the current state of the resource. For example, the resource is being modified by another request, you tried to delete a revision that is serving traffic on an endpoint, or the policy revision ID that you specified doesn't match the current policy. Resolve the conflict and try again.

InternalServerException:

The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.

ValidationException:

The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.

ResourceNotFoundException:

The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.

ThrottlingException:

The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.

ServiceQuotaExceededException:

The request would exceed a service quota, such as the maximum number of web functions in your account or the maximum number of revisions or endpoints per web function. Request a quota increase or reduce usage and try again.

CreateWebFunctionEndpoint

$result = $client->createWebFunctionEndpoint([/* ... */]);
$promise = $client->createWebFunctionEndpointAsync([/* ... */]);

Creates an endpoint for a web function. An endpoint exposes the web function over HTTPS and routes traffic to one or more revisions.

To use this operation, you must have the CreateWebFunctionEndpoint permission on the web function, not on the endpoint being created.

Parameter Syntax

$result = $client->createWebFunctionEndpoint([
    'authType' => 'ApplicationManaged|IamAuth', // REQUIRED
    'autoDeploymentMode' => 'LatestRevision|Disabled',
    'description' => '<string>',
    'endpointName' => '<string>', // REQUIRED
    'endpointType' => 'HomeRegion|MultiRegion|PerRegion', // REQUIRED
    'functionName' => '<string>', // REQUIRED
    'regions' => ['<string>', ...],
    'revisionWeights' => [
        [
            'revisionId' => '<string>', // REQUIRED
            'weight' => <integer>, // REQUIRED
        ],
        // ...
    ],
    'scalingConfig' => [
        'maxEnvironments' => <integer>,
    ],
    'throttleConfig' => [
        'rateLimit' => <integer>,
    ],
]);

Parameter Details

Members
authType
Required: Yes
Type: string

The authorization type for the endpoint.

Valid values:

  • ApplicationManaged – Your application handles authorization.

  • IamAuth – Lambda uses IAM to authorize requests, which must be signed with Signature Version 4 (SigV4).

autoDeploymentMode
Type: string

The auto-deployment mode for the endpoint. Controls whether the endpoint automatically serves the newest revision. If you don't specify a value, the default is Disabled, and this default is returned in the response.

Valid values:

  • LatestRevision – The endpoint automatically serves the newest revision.

  • Disabled – Revision routing stays fixed until you change it.

description
Type: string

A description of the endpoint.

endpointName
Required: Yes
Type: string

The name of the endpoint to create. The name can contain letters, numbers, hyphens (-), and underscores (_), and can't begin or end with a hyphen or an underscore. The name is limited to 64 characters in length.

endpointType
Required: Yes
Type: string

The type of endpoint to create. Determines how traffic is served and routed across Regions.

Valid values:

  • HomeRegion – Serves traffic from the Region where you created the web function.

  • MultiRegion – Replicates across the Regions that you choose and routes each request to the nearest one.

  • PerRegion – Creates a separate endpoint in each Region that you choose.

functionName
Required: Yes
Type: string

The web function to create the endpoint for.

You can specify either of the following:

  • The function name, for example my-function.

  • The function ARN.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

regions
Type: Array of strings

The list of Regions for the endpoint. Required when the endpoint type is MultiRegion or PerRegion: specify at least one Region other than the Region where you create the endpoint (the home Region). The home Region is added automatically if you don't include it; specifying only the home Region isn't allowed. When the endpoint type is HomeRegion, omit this field or specify only the home Region.

revisionWeights
Type: Array of RevisionWeight structures

A list of revision weights that determine how traffic is distributed across revisions. You can specify up to two revisions for canary or blue-green deployments.

scalingConfig
Type: ScalingConfig structure

The scaling configuration for the endpoint. There is no default value. If you don't specify a scaling configuration, it is absent from the response.

throttleConfig
Type: ThrottleConfig structure

The throttling configuration for the endpoint. There is no default value. If you don't specify a throttling configuration, it is absent from the response.

Result Syntax

[
    'authType' => 'ApplicationManaged|IamAuth',
    'autoDeploymentMode' => 'LatestRevision|Disabled',
    'createdAt' => <DateTime>,
    'description' => '<string>',
    'domainName' => '<string>',
    'endpointArn' => '<string>',
    'endpointName' => '<string>',
    'endpointType' => 'HomeRegion|MultiRegion|PerRegion',
    'functionArn' => '<string>',
    'regionalEndpoints' => [
        '<Region>' => [
            'authType' => 'ApplicationManaged|IamAuth',
            'domainName' => '<string>',
            'revisionWeights' => [
                [
                    'revisionId' => '<string>',
                    'weight' => <integer>,
                ],
                // ...
            ],
            'scalingConfig' => [
                'maxEnvironments' => <integer>,
            ],
            'state' => 'Pending|Active|Failed|Deleting',
            'stateReason' => '<string>',
            'throttleConfig' => [
                'rateLimit' => <integer>,
            ],
            'updateStatus' => 'InProgress|Successful|Failed',
            'updateStatusReason' => '<string>',
        ],
        // ...
    ],
    'regions' => ['<string>', ...],
    'revisionWeights' => [
        [
            'revisionId' => '<string>',
            'weight' => <integer>,
        ],
        // ...
    ],
    'scalingConfig' => [
        'maxEnvironments' => <integer>,
    ],
    'state' => 'Pending|Active|Failed|Deleting',
    'stateReason' => '<string>',
    'throttleConfig' => [
        'rateLimit' => <integer>,
    ],
    'updateStatus' => 'InProgress|Successful|Failed',
    'updateStatusReason' => '<string>',
    'updatedAt' => <DateTime>,
]

Result Details

Members
authType
Required: Yes
Type: string

The authorization type for a web function endpoint.

Valid values:

  • ApplicationManaged – Your application handles authorization.

  • IamAuth – Lambda uses IAM to authorize requests, which must be signed with Signature Version 4 (SigV4).

autoDeploymentMode
Required: Yes
Type: string

The auto-deployment mode for a web function endpoint.

Valid values:

  • LatestRevision – The endpoint automatically serves the newest revision.

  • Disabled – Revision routing stays fixed until you change it.

createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time the endpoint was created.

description
Type: string

The description of the endpoint.

domainName
Required: Yes
Type: string

The domain name assigned to the endpoint.

endpointArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the endpoint.

endpointName
Required: Yes
Type: string

The name of the endpoint.

endpointType
Required: Yes
Type: string

The type of a web function endpoint.

Valid values:

  • HomeRegion – Serves traffic from the Region where you created the web function.

  • MultiRegion – Replicates across the Regions that you choose and routes each request to the nearest one.

  • PerRegion – Creates a separate endpoint in each Region that you choose.

functionArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the web function.

regionalEndpoints
Required: Yes
Type: Associative array of custom strings keys (Region) to RegionalEndpoint structures

The list of regional endpoint configurations.

regions
Required: Yes
Type: Array of strings

The Regions configured for the endpoint.

revisionWeights
Required: Yes
Type: Array of RevisionWeight structures

The traffic distribution across revisions for the endpoint. Each entry maps a revision to a weight from 1 to 100.

scalingConfig
Type: ScalingConfig structure

The scaling configuration for a web function endpoint.

state
Required: Yes
Type: string

The current state of the endpoint.

stateReason
Required: Yes
Type: string

The reason for the current state of the endpoint.

throttleConfig
Type: ThrottleConfig structure

The throttling configuration for a web function endpoint.

updateStatus
Type: string

The status of the most recent update to an endpoint. Possible values:

  • InProgress – The update is in progress.

  • Successful – The update completed successfully.

  • Failed – The update failed.

updateStatusReason
Type: string

The reason for the endpoint's most recent update status.

updatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time the endpoint was last updated.

Errors

AccessDeniedException:

You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.

ConflictException:

The request conflicts with the current state of the resource. For example, the resource is being modified by another request, you tried to delete a revision that is serving traffic on an endpoint, or the policy revision ID that you specified doesn't match the current policy. Resolve the conflict and try again.

InternalServerException:

The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.

ValidationException:

The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.

ResourceNotFoundException:

The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.

ThrottlingException:

The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.

ServiceQuotaExceededException:

The request would exceed a service quota, such as the maximum number of web functions in your account or the maximum number of revisions or endpoints per web function. Request a quota increase or reduce usage and try again.

CreateWebFunctionRevision

$result = $client->createWebFunctionRevision([/* ... */]);
$promise = $client->createWebFunctionRevisionAsync([/* ... */]);

Creates an immutable revision for a web function. A revision represents a specific version of the function code and configuration.

To use this operation, you must have the CreateWebFunctionRevision permission on the web function, not on the revision being created.

Parameter Syntax

$result = $client->createWebFunctionRevision([
    'buildConfig' => [ // REQUIRED
        'codeConfig' => [ // REQUIRED
            's3Object' => [ // REQUIRED
                'bucket' => '<string>', // REQUIRED
                'key' => '<string>', // REQUIRED
                'versionId' => '<string>',
            ],
        ],
        'runtimeConfig' => [ // REQUIRED
            'runtime' => '<string>', // REQUIRED
        ],
    ],
    'description' => '<string>',
    'functionName' => '<string>', // REQUIRED
    'kmsKeyArn' => '<string>',
    'serviceConfig' => [ // REQUIRED
        'egressNetworkConnectorArn' => '<string>',
        'environmentVariables' => ['<string>', ...],
        'executionRoleArn' => '<string>', // REQUIRED
        'maxConcurrencyPerEnvironment' => <integer>,
        'telemetryConfig' => [
            'loggingConfig' => [
                'applicationLogLevel' => 'TRACE|DEBUG|INFO|WARN|ERROR|FATAL',
                'logGroup' => '<string>',
                'systemLogLevel' => 'DEBUG|INFO|WARN',
            ],
        ],
        'timeoutSeconds' => <integer>,
    ],
]);

Parameter Details

Members
buildConfig
Required: Yes
Type: BuildConfig structure

The build configuration for the revision, including code location and runtime settings.

description
Type: string

A description of the revision.

functionName
Required: Yes
Type: string

The web function.

You can specify either of the following:

  • The function name, for example my-function.

  • The function ARN.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

kmsKeyArn
Type: string

The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) key used to encrypt the revision's code and environment variables.

serviceConfig
Required: Yes
Type: ServiceConfig structure

The service configuration for the revision, including execution role, timeout, and concurrency settings.

Result Syntax

[
    'buildConfig' => [
        'codeConfig' => [
            's3Object' => [
                'bucket' => '<string>',
                'key' => '<string>',
                'versionId' => '<string>',
            ],
        ],
        'runtimeConfig' => [
            'runtime' => '<string>',
        ],
    ],
    'createdAt' => <DateTime>,
    'description' => '<string>',
    'errors' => [
        [
            'attribute' => '<string>',
            'errorCode' => '<string>',
            'errorMessage' => '<string>',
        ],
        // ...
    ],
    'functionArn' => '<string>',
    'kmsKeyArn' => '<string>',
    'revisionArn' => '<string>',
    'revisionId' => '<string>',
    'serviceConfig' => [
        'egressNetworkConnectorArn' => '<string>',
        'environmentVariables' => ['<string>', ...],
        'executionRoleArn' => '<string>',
        'maxConcurrencyPerEnvironment' => <integer>,
        'telemetryConfig' => [
            'loggingConfig' => [
                'applicationLogLevel' => 'TRACE|DEBUG|INFO|WARN|ERROR|FATAL',
                'logGroup' => '<string>',
                'systemLogLevel' => 'DEBUG|INFO|WARN',
            ],
        ],
        'timeoutSeconds' => <integer>,
    ],
    'state' => 'Pending|Active|Failed',
    'stateReason' => '<string>',
]

Result Details

Members
buildConfig
Required: Yes
Type: BuildConfig structure

The build configuration for a web function revision, including code location and runtime settings.

createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time the revision was created.

description
Type: string

The description of the revision.

errors
Type: Array of RevisionError structures

A list of errors encountered during revision creation. This field is absent when the revision has no errors.

functionArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the web function.

kmsKeyArn
Type: string

The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the revision's code and environment variables.

revisionArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the revision.

revisionId
Required: Yes
Type: string

The identifier of the revision.

serviceConfig
Required: Yes
Type: ServiceConfig structure

The service configuration for a web function revision, including execution role, timeout, VPC network access, concurrency, and telemetry settings.

state
Required: Yes
Type: string

The current state of the revision.

stateReason
Required: Yes
Type: string

The reason for the current state of the revision.

Errors

AccessDeniedException:

You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.

ConflictException:

The request conflicts with the current state of the resource. For example, the resource is being modified by another request, you tried to delete a revision that is serving traffic on an endpoint, or the policy revision ID that you specified doesn't match the current policy. Resolve the conflict and try again.

InternalServerException:

The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.

ValidationException:

The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.

ResourceNotFoundException:

The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.

ThrottlingException:

The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.

ServiceQuotaExceededException:

The request would exceed a service quota, such as the maximum number of web functions in your account or the maximum number of revisions or endpoints per web function. Request a quota increase or reduce usage and try again.

DeleteResourcePolicy

$result = $client->deleteResourcePolicy([/* ... */]);
$promise = $client->deleteResourcePolicyAsync([/* ... */]);

Removes the resource-based policy from a web function.

Parameter Syntax

$result = $client->deleteResourcePolicy([
    'resourceArn' => '<string>', // REQUIRED
    'revisionId' => '<string>',
]);

Parameter Details

Members
resourceArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the web function.

revisionId
Type: string

The revision ID of the policy. Use this to prevent deleting a policy that has been updated since you last retrieved it. If you don't specify a value, the policy is deleted regardless of its current revision.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

AccessDeniedException:

You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.

ConflictException:

The request conflicts with the current state of the resource. For example, the resource is being modified by another request, you tried to delete a revision that is serving traffic on an endpoint, or the policy revision ID that you specified doesn't match the current policy. Resolve the conflict and try again.

InternalServerException:

The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.

ValidationException:

The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.

ResourceNotFoundException:

The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.

ThrottlingException:

The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.

DeleteWebFunction

$result = $client->deleteWebFunction([/* ... */]);
$promise = $client->deleteWebFunctionAsync([/* ... */]);

Deletes a web function and all of its associated revisions and endpoints.

To use this operation, you must have the DeleteWebFunction permission on the web function. You don't need the DeleteWebFunctionRevision or DeleteWebFunctionEndpoint permission.

Parameter Syntax

$result = $client->deleteWebFunction([
    'functionName' => '<string>', // REQUIRED
]);

Parameter Details

Members
functionName
Required: Yes
Type: string

The web function to delete.

You can specify either of the following:

  • The function name, for example my-function.

  • The function ARN.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

AccessDeniedException:

You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.

ConflictException:

The request conflicts with the current state of the resource. For example, the resource is being modified by another request, you tried to delete a revision that is serving traffic on an endpoint, or the policy revision ID that you specified doesn't match the current policy. Resolve the conflict and try again.

InternalServerException:

The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.

ValidationException:

The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.

ResourceNotFoundException:

The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.

ThrottlingException:

The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.

DeleteWebFunctionEndpoint

$result = $client->deleteWebFunctionEndpoint([/* ... */]);
$promise = $client->deleteWebFunctionEndpointAsync([/* ... */]);

Deletes a web function endpoint.

Parameter Syntax

$result = $client->deleteWebFunctionEndpoint([
    'endpointName' => '<string>', // REQUIRED
    'functionName' => '<string>', // REQUIRED
]);

Parameter Details

Members
endpointName
Required: Yes
Type: string

The endpoint to delete.

You can specify either of the following:

  • The endpoint name, for example my-endpoint.

  • The endpoint ARN.

The length constraint applies only to the full ARN. If you specify only the endpoint name, it is limited to 64 characters in length.

functionName
Required: Yes
Type: string

The web function.

You can specify either of the following:

  • The function name, for example my-function.

  • The function ARN.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

AccessDeniedException:

You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.

ConflictException:

The request conflicts with the current state of the resource. For example, the resource is being modified by another request, you tried to delete a revision that is serving traffic on an endpoint, or the policy revision ID that you specified doesn't match the current policy. Resolve the conflict and try again.

InternalServerException:

The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.

ValidationException:

The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.

ResourceNotFoundException:

The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.

ThrottlingException:

The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.

DeleteWebFunctionRevision

$result = $client->deleteWebFunctionRevision([/* ... */]);
$promise = $client->deleteWebFunctionRevisionAsync([/* ... */]);

Deletes a web function revision. You cannot delete a revision that is currently serving traffic on an endpoint.

Parameter Syntax

$result = $client->deleteWebFunctionRevision([
    'functionName' => '<string>', // REQUIRED
    'revisionId' => '<string>', // REQUIRED
]);

Parameter Details

Members
functionName
Required: Yes
Type: string

The web function.

You can specify either of the following:

  • The function name, for example my-function.

  • The function ARN.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

revisionId
Required: Yes
Type: string

The revision to delete.

You can specify either of the following:

  • The revision identifier.

  • The revision ARN.

The length constraint applies only to the full ARN.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

AccessDeniedException:

You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.

ConflictException:

The request conflicts with the current state of the resource. For example, the resource is being modified by another request, you tried to delete a revision that is serving traffic on an endpoint, or the policy revision ID that you specified doesn't match the current policy. Resolve the conflict and try again.

InternalServerException:

The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.

ValidationException:

The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.

ResourceNotFoundException:

The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.

ThrottlingException:

The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.

GetResourcePolicy

$result = $client->getResourcePolicy([/* ... */]);
$promise = $client->getResourcePolicyAsync([/* ... */]);

Retrieves the resource-based policy attached to a web function.

Parameter Syntax

$result = $client->getResourcePolicy([
    'resourceArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
resourceArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the web function.

Result Syntax

[
    'policy' => '<string>',
    'revisionId' => '<string>',
]

Result Details

Members
policy
Required: Yes
Type: string

The JSON-formatted resource-based policy attached to the web function.

revisionId
Required: Yes
Type: string

The revision ID of the policy.

Errors

AccessDeniedException:

You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.

InternalServerException:

The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.

ValidationException:

The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.

ResourceNotFoundException:

The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.

ThrottlingException:

The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.

GetWebAccountSettings

$result = $client->getWebAccountSettings([/* ... */]);
$promise = $client->getWebAccountSettingsAsync([/* ... */]);

Retrieves details about your AWS Lambda Web Functions account settings for the current AWS Region, including the quotas that apply to web functions and your current usage.

Parameter Syntax

$result = $client->getWebAccountSettings([
]);

Parameter Details

Members

Result Syntax

[
    'accountQuotas' => [
        'maxEndpointsPerFunction' => <integer>,
        'maxRevisionsPerFunction' => <integer>,
        'maxTotalArmVCpus' => <integer>,
        'maxTotalRateLimit' => <integer>,
    ],
    'accountUsage' => [
        'functionCount' => <integer>,
    ],
]

Result Details

Members
accountQuotas
Required: Yes
Type: AccountQuotas structure

The quotas that apply to web functions in your account in the current AWS Region.

accountUsage
Required: Yes
Type: AccountUsage structure

The current web function usage for your account in the current AWS Region.

Errors

AccessDeniedException:

You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.

InternalServerException:

The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.

ThrottlingException:

The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.

GetWebFunction

$result = $client->getWebFunction([/* ... */]);
$promise = $client->getWebFunctionAsync([/* ... */]);

Retrieves details about a web function, including its current state and configuration.

Parameter Syntax

$result = $client->getWebFunction([
    'functionName' => '<string>', // REQUIRED
]);

Parameter Details

Members
functionName
Required: Yes
Type: string

The web function to retrieve.

You can specify either of the following:

  • The function name, for example my-function.

  • The function ARN.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Result Syntax

[
    'createdAt' => <DateTime>,
    'functionArn' => '<string>',
    'functionName' => '<string>',
    'state' => 'Pending|Active|Failed|Deleting',
    'stateReason' => '<string>',
    'updatedAt' => <DateTime>,
]

Result Details

Members
createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time the web function was created.

functionArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the web function.

functionName
Required: Yes
Type: string

The name of the web function.

state
Required: Yes
Type: string

The current state of the web function.

stateReason
Required: Yes
Type: string

The reason for the current state of the web function.

updatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time the web function was last updated.

Errors

AccessDeniedException:

You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.

InternalServerException:

The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.

ValidationException:

The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.

ResourceNotFoundException:

The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.

ThrottlingException:

The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.

GetWebFunctionEndpoint

$result = $client->getWebFunctionEndpoint([/* ... */]);
$promise = $client->getWebFunctionEndpointAsync([/* ... */]);

Retrieves details about a web function endpoint, including its current state, configuration, and domain name.

Parameter Syntax

$result = $client->getWebFunctionEndpoint([
    'endpointName' => '<string>', // REQUIRED
    'functionName' => '<string>', // REQUIRED
]);

Parameter Details

Members
endpointName
Required: Yes
Type: string

The endpoint to retrieve.

You can specify either of the following:

  • The endpoint name, for example my-endpoint.

  • The endpoint ARN.

The length constraint applies only to the full ARN. If you specify only the endpoint name, it is limited to 64 characters in length.

functionName
Required: Yes
Type: string

The web function.

You can specify either of the following:

  • The function name, for example my-function.

  • The function ARN.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Result Syntax

[
    'authType' => 'ApplicationManaged|IamAuth',
    'autoDeploymentMode' => 'LatestRevision|Disabled',
    'createdAt' => <DateTime>,
    'description' => '<string>',
    'domainName' => '<string>',
    'endpointArn' => '<string>',
    'endpointName' => '<string>',
    'endpointType' => 'HomeRegion|MultiRegion|PerRegion',
    'functionArn' => '<string>',
    'regionalEndpoints' => [
        '<Region>' => [
            'authType' => 'ApplicationManaged|IamAuth',
            'domainName' => '<string>',
            'revisionWeights' => [
                [
                    'revisionId' => '<string>',
                    'weight' => <integer>,
                ],
                // ...
            ],
            'scalingConfig' => [
                'maxEnvironments' => <integer>,
            ],
            'state' => 'Pending|Active|Failed|Deleting',
            'stateReason' => '<string>',
            'throttleConfig' => [
                'rateLimit' => <integer>,
            ],
            'updateStatus' => 'InProgress|Successful|Failed',
            'updateStatusReason' => '<string>',
        ],
        // ...
    ],
    'regions' => ['<string>', ...],
    'revisionWeights' => [
        [
            'revisionId' => '<string>',
            'weight' => <integer>,
        ],
        // ...
    ],
    'scalingConfig' => [
        'maxEnvironments' => <integer>,
    ],
    'state' => 'Pending|Active|Failed|Deleting',
    'stateReason' => '<string>',
    'throttleConfig' => [
        'rateLimit' => <integer>,
    ],
    'updateStatus' => 'InProgress|Successful|Failed',
    'updateStatusReason' => '<string>',
    'updatedAt' => <DateTime>,
]

Result Details

Members
authType
Required: Yes
Type: string

The authorization type for a web function endpoint.

Valid values:

  • ApplicationManaged – Your application handles authorization.

  • IamAuth – Lambda uses IAM to authorize requests, which must be signed with Signature Version 4 (SigV4).

autoDeploymentMode
Required: Yes
Type: string

The auto-deployment mode for a web function endpoint.

Valid values:

  • LatestRevision – The endpoint automatically serves the newest revision.

  • Disabled – Revision routing stays fixed until you change it.

createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time the endpoint was created.

description
Type: string

The description of the endpoint.

domainName
Required: Yes
Type: string

The domain name assigned to the endpoint.

endpointArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the endpoint.

endpointName
Required: Yes
Type: string

The name of the endpoint.

endpointType
Required: Yes
Type: string

The type of a web function endpoint.

Valid values:

  • HomeRegion – Serves traffic from the Region where you created the web function.

  • MultiRegion – Replicates across the Regions that you choose and routes each request to the nearest one.

  • PerRegion – Creates a separate endpoint in each Region that you choose.

functionArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the web function.

regionalEndpoints
Required: Yes
Type: Associative array of custom strings keys (Region) to RegionalEndpoint structures

The list of regional endpoint configurations.

regions
Required: Yes
Type: Array of strings

The Regions configured for the endpoint.

revisionWeights
Required: Yes
Type: Array of RevisionWeight structures

The traffic distribution across revisions for the endpoint. Each entry maps a revision to a weight from 1 to 100.

scalingConfig
Type: ScalingConfig structure

The scaling configuration for a web function endpoint.

state
Required: Yes
Type: string

The current state of the endpoint.

stateReason
Required: Yes
Type: string

The reason for the current state of the endpoint.

throttleConfig
Type: ThrottleConfig structure

The throttling configuration for a web function endpoint.

updateStatus
Type: string

The status of the most recent update to an endpoint. Possible values:

  • InProgress – The update is in progress.

  • Successful – The update completed successfully.

  • Failed – The update failed.

updateStatusReason
Type: string

The reason for the endpoint's most recent update status.

updatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time the endpoint was last updated.

Errors

AccessDeniedException:

You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.

InternalServerException:

The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.

ValidationException:

The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.

ResourceNotFoundException:

The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.

ThrottlingException:

The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.

GetWebFunctionRevision

$result = $client->getWebFunctionRevision([/* ... */]);
$promise = $client->getWebFunctionRevisionAsync([/* ... */]);

Retrieves details about a web function revision, including its state and configuration.

Parameter Syntax

$result = $client->getWebFunctionRevision([
    'functionName' => '<string>', // REQUIRED
    'revisionId' => '<string>', // REQUIRED
]);

Parameter Details

Members
functionName
Required: Yes
Type: string

The web function.

You can specify either of the following:

  • The function name, for example my-function.

  • The function ARN.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

revisionId
Required: Yes
Type: string

The revision to retrieve.

You can specify either of the following:

  • The revision identifier.

  • The revision ARN.

The length constraint applies only to the full ARN.

Result Syntax

[
    'buildConfig' => [
        'codeConfig' => [
            's3Object' => [
                'bucket' => '<string>',
                'key' => '<string>',
                'versionId' => '<string>',
            ],
        ],
        'runtimeConfig' => [
            'runtime' => '<string>',
        ],
    ],
    'createdAt' => <DateTime>,
    'description' => '<string>',
    'errors' => [
        [
            'attribute' => '<string>',
            'errorCode' => '<string>',
            'errorMessage' => '<string>',
        ],
        // ...
    ],
    'functionArn' => '<string>',
    'kmsKeyArn' => '<string>',
    'revisionArn' => '<string>',
    'revisionId' => '<string>',
    'serviceConfig' => [
        'egressNetworkConnectorArn' => '<string>',
        'environmentVariables' => ['<string>', ...],
        'executionRoleArn' => '<string>',
        'maxConcurrencyPerEnvironment' => <integer>,
        'telemetryConfig' => [
            'loggingConfig' => [
                'applicationLogLevel' => 'TRACE|DEBUG|INFO|WARN|ERROR|FATAL',
                'logGroup' => '<string>',
                'systemLogLevel' => 'DEBUG|INFO|WARN',
            ],
        ],
        'timeoutSeconds' => <integer>,
    ],
    'state' => 'Pending|Active|Failed',
    'stateReason' => '<string>',
]

Result Details

Members
buildConfig
Required: Yes
Type: BuildConfig structure

The build configuration for a web function revision, including code location and runtime settings.

createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time the revision was created.

description
Type: string

The description of the revision.

errors
Type: Array of RevisionError structures

A list of errors encountered during revision creation. This field is absent when the revision has no errors.

functionArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the web function.

kmsKeyArn
Type: string

The Amazon Resource Name (ARN) of the AWS KMS key used to encrypt the revision's code and environment variables.

revisionArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the revision.

revisionId
Required: Yes
Type: string

The identifier of the revision.

serviceConfig
Required: Yes
Type: ServiceConfig structure

The service configuration for a web function revision, including execution role, timeout, VPC network access, concurrency, and telemetry settings.

state
Required: Yes
Type: string

The current state of the revision.

stateReason
Required: Yes
Type: string

The reason for the current state of the revision.

Errors

AccessDeniedException:

You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.

InternalServerException:

The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.

ValidationException:

The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.

ResourceNotFoundException:

The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.

ThrottlingException:

The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.

ListTags

$result = $client->listTags([/* ... */]);
$promise = $client->listTagsAsync([/* ... */]);

Returns a list of tags applied to a web function.

Parameter Syntax

$result = $client->listTags([
    'resource' => '<string>', // REQUIRED
]);

Parameter Details

Members
resource
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the web function.

Result Syntax

[
    'tags' => ['<string>', ...],
]

Result Details

Members
tags
Type: Associative array of custom strings keys (TagKey) to strings

A map of tag keys and values associated with the web function.

Errors

AccessDeniedException:

You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.

InternalServerException:

The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.

ValidationException:

The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.

ResourceNotFoundException:

The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.

ThrottlingException:

The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.

ListWebFunctionEndpoints

$result = $client->listWebFunctionEndpoints([/* ... */]);
$promise = $client->listWebFunctionEndpointsAsync([/* ... */]);

Lists endpoints for a web function. Use pagination to ensure that the operation returns quickly and successfully.

Parameter Syntax

$result = $client->listWebFunctionEndpoints([
    'filters' => [
        [
            'name' => '<string>', // REQUIRED
            'values' => ['<string>', ...], // REQUIRED
        ],
        // ...
    ],
    'functionName' => '<string>', // REQUIRED
    'maxResults' => <integer>,
    'nextToken' => '<string>',
]);

Parameter Details

Members
filters
Type: Array of Filter structures

A list of filters to apply to the results. Supported filter names: authType, autoDeploymentMode, endpointType, state, and updateStatus. If you don't specify a filter, the operation returns all endpoints for the web function.

functionName
Required: Yes
Type: string

The web function.

You can specify either of the following:

  • The function name, for example my-function.

  • The function ARN.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

maxResults
Type: int

The maximum number of results to return in a single call. Minimum value of 1, maximum value of 50. Default is 50.

nextToken
Type: string

The pagination token that's returned by a previous request to retrieve the next page of results.

Result Syntax

[
    'endpoints' => [
        [
            'authType' => 'ApplicationManaged|IamAuth',
            'autoDeploymentMode' => 'LatestRevision|Disabled',
            'createdAt' => <DateTime>,
            'description' => '<string>',
            'domainName' => '<string>',
            'endpointArn' => '<string>',
            'endpointName' => '<string>',
            'endpointType' => 'HomeRegion|MultiRegion|PerRegion',
            'regions' => ['<string>', ...],
            'revisionWeights' => [
                [
                    'revisionId' => '<string>',
                    'weight' => <integer>,
                ],
                // ...
            ],
            'scalingConfig' => [
                'maxEnvironments' => <integer>,
            ],
            'state' => 'Pending|Active|Failed|Deleting',
            'stateReason' => '<string>',
            'throttleConfig' => [
                'rateLimit' => <integer>,
            ],
            'updateStatus' => 'InProgress|Successful|Failed',
            'updateStatusReason' => '<string>',
            'updatedAt' => <DateTime>,
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
endpoints
Required: Yes
Type: Array of FunctionEndpointSummary structures

A list of endpoint summaries for the web function.

nextToken
Type: string

The pagination token that's included if more results are available. Use this value as the nextToken request parameter in a subsequent call to retrieve the next page of results.

Errors

AccessDeniedException:

You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.

InternalServerException:

The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.

ValidationException:

The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.

ResourceNotFoundException:

The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.

ThrottlingException:

The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.

ListWebFunctionRevisions

$result = $client->listWebFunctionRevisions([/* ... */]);
$promise = $client->listWebFunctionRevisionsAsync([/* ... */]);

Lists revisions for a web function. Use pagination to ensure that the operation returns quickly and successfully.

Parameter Syntax

$result = $client->listWebFunctionRevisions([
    'filters' => [
        [
            'name' => '<string>', // REQUIRED
            'values' => ['<string>', ...], // REQUIRED
        ],
        // ...
    ],
    'functionName' => '<string>', // REQUIRED
    'maxResults' => <integer>,
    'nextToken' => '<string>',
]);

Parameter Details

Members
filters
Type: Array of Filter structures

A list of filters to apply to the results. The only supported filter name is state. If you don't specify a filter, the operation returns all revisions for the web function.

functionName
Required: Yes
Type: string

The web function.

You can specify either of the following:

  • The function name, for example my-function.

  • The function ARN.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

maxResults
Type: int

The maximum number of results to return in a single call. Minimum value of 1, maximum value of 50. Default is 50.

nextToken
Type: string

The pagination token that's returned by a previous request to retrieve the next page of results.

Result Syntax

[
    'nextToken' => '<string>',
    'revisions' => [
        [
            'createdAt' => <DateTime>,
            'description' => '<string>',
            'revisionArn' => '<string>',
            'revisionId' => '<string>',
            'state' => 'Pending|Active|Failed',
            'stateReason' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
nextToken
Type: string

The pagination token that's included if more results are available. Use this value as the nextToken request parameter in a subsequent call to retrieve the next page of results.

revisions
Required: Yes
Type: Array of FunctionRevisionSummary structures

A list of revision summaries for the web function.

Errors

AccessDeniedException:

You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.

InternalServerException:

The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.

ValidationException:

The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.

ResourceNotFoundException:

The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.

ThrottlingException:

The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.

ListWebFunctions

$result = $client->listWebFunctions([/* ... */]);
$promise = $client->listWebFunctionsAsync([/* ... */]);

Lists web functions in your account. Use pagination to ensure that the operation returns quickly and successfully.

Parameter Syntax

$result = $client->listWebFunctions([
    'filters' => [
        [
            'name' => '<string>', // REQUIRED
            'values' => ['<string>', ...], // REQUIRED
        ],
        // ...
    ],
    'maxResults' => <integer>,
    'nextToken' => '<string>',
]);

Parameter Details

Members
filters
Type: Array of Filter structures

A list of filters to apply to the results. The only supported filter name is state. If you don't specify a filter, the operation returns all web functions.

maxResults
Type: int

The maximum number of results to return in a single call. Minimum value of 1, maximum value of 50. Default is 50.

nextToken
Type: string

The pagination token that's returned by a previous request to retrieve the next page of results.

Result Syntax

[
    'functions' => [
        [
            'createdAt' => <DateTime>,
            'functionArn' => '<string>',
            'functionName' => '<string>',
            'state' => 'Pending|Active|Failed|Deleting',
            'stateReason' => '<string>',
            'updatedAt' => <DateTime>,
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
functions
Required: Yes
Type: Array of FunctionSummary structures

A list of web function summaries.

nextToken
Type: string

The pagination token that's included if more results are available. Use this value as the nextToken request parameter in a subsequent call to retrieve the next page of results.

Errors

AccessDeniedException:

You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.

InternalServerException:

The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.

ValidationException:

The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.

ThrottlingException:

The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.

PutResourcePolicy

$result = $client->putResourcePolicy([/* ... */]);
$promise = $client->putResourcePolicyAsync([/* ... */]);

Adds or updates a resource-based policy on a web function. A resource-based policy grants permissions to other AWS accounts or services to perform actions on the web function.

Parameter Syntax

$result = $client->putResourcePolicy([
    'policy' => '<string>', // REQUIRED
    'resourceArn' => '<string>', // REQUIRED
    'revisionId' => '<string>',
]);

Parameter Details

Members
policy
Required: Yes
Type: string

The JSON-formatted resource-based policy to attach to the web function.

resourceArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the web function.

revisionId
Type: string

The revision ID of the existing policy. Use this to prevent conflicts when updating a policy concurrently. If you don't specify a value, the update proceeds without checking the current revision.

Result Syntax

[
    'policy' => '<string>',
    'revisionId' => '<string>',
]

Result Details

Members
policy
Required: Yes
Type: string

The JSON-formatted resource-based policy attached to the web function.

revisionId
Required: Yes
Type: string

The revision ID of the policy. Use this value in subsequent PutResourcePolicy or DeleteResourcePolicy requests to prevent conflicts.

Errors

AccessDeniedException:

You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.

ConflictException:

The request conflicts with the current state of the resource. For example, the resource is being modified by another request, you tried to delete a revision that is serving traffic on an endpoint, or the policy revision ID that you specified doesn't match the current policy. Resolve the conflict and try again.

InternalServerException:

The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.

ValidationException:

The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.

ResourceNotFoundException:

The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.

ThrottlingException:

The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.

ServiceQuotaExceededException:

The request would exceed a service quota, such as the maximum number of web functions in your account or the maximum number of revisions or endpoints per web function. Request a quota increase or reduce usage and try again.

TagResource

$result = $client->tagResource([/* ... */]);
$promise = $client->tagResourceAsync([/* ... */]);

Adds tags to a web function. If a tag key already exists, the existing value is overwritten with the new value.

Parameter Syntax

$result = $client->tagResource([
    'resource' => '<string>', // REQUIRED
    'tags' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
resource
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the web function.

tags
Required: Yes
Type: Associative array of custom strings keys (TagKey) to strings

A map of tag keys and values to add to the web function.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

AccessDeniedException:

You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.

ConflictException:

The request conflicts with the current state of the resource. For example, the resource is being modified by another request, you tried to delete a revision that is serving traffic on an endpoint, or the policy revision ID that you specified doesn't match the current policy. Resolve the conflict and try again.

InternalServerException:

The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.

ValidationException:

The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.

ResourceNotFoundException:

The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.

ThrottlingException:

The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.

ServiceQuotaExceededException:

The request would exceed a service quota, such as the maximum number of web functions in your account or the maximum number of revisions or endpoints per web function. Request a quota increase or reduce usage and try again.

UntagResource

$result = $client->untagResource([/* ... */]);
$promise = $client->untagResourceAsync([/* ... */]);

Removes tags from a web function.

Parameter Syntax

$result = $client->untagResource([
    'resource' => '<string>', // REQUIRED
    'tagKeys' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
resource
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the web function.

tagKeys
Required: Yes
Type: Array of strings

A list of tag keys to remove from the web function.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

AccessDeniedException:

You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.

ConflictException:

The request conflicts with the current state of the resource. For example, the resource is being modified by another request, you tried to delete a revision that is serving traffic on an endpoint, or the policy revision ID that you specified doesn't match the current policy. Resolve the conflict and try again.

InternalServerException:

The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.

ValidationException:

The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.

ResourceNotFoundException:

The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.

ThrottlingException:

The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.

UpdateWebFunctionEndpoint

$result = $client->updateWebFunctionEndpoint([/* ... */]);
$promise = $client->updateWebFunctionEndpointAsync([/* ... */]);

Updates the configuration of a web function endpoint. You can modify the authorization type, auto-deployment mode, revision weights, scaling, and throttling settings.

Parameter Syntax

$result = $client->updateWebFunctionEndpoint([
    'authType' => 'ApplicationManaged|IamAuth',
    'autoDeploymentMode' => 'LatestRevision|Disabled',
    'description' => '<string>',
    'endpointName' => '<string>', // REQUIRED
    'functionName' => '<string>', // REQUIRED
    'revisionWeights' => [
        [
            'revisionId' => '<string>', // REQUIRED
            'weight' => <integer>, // REQUIRED
        ],
        // ...
    ],
    'scalingConfig' => [
        'maxEnvironments' => <integer>,
    ],
    'throttleConfig' => [
        'rateLimit' => <integer>,
    ],
]);

Parameter Details

Members
authType
Type: string

The authorization type for the endpoint. Omit this field to keep the current authorization type.

Valid values:

  • ApplicationManaged – Your application handles authorization.

  • IamAuth – Lambda uses IAM to authorize requests, which must be signed with Signature Version 4 (SigV4).

autoDeploymentMode
Type: string

The auto-deployment mode for the endpoint. Omit this field to keep the current auto-deployment mode.

Valid values:

  • LatestRevision – The endpoint automatically serves the newest revision.

  • Disabled – Revision routing stays fixed until you change it.

description
Type: string

A description of the endpoint. Omit this field to keep the current description.

endpointName
Required: Yes
Type: string

The endpoint to update.

You can specify either of the following:

  • The endpoint name, for example my-endpoint.

  • The endpoint ARN.

The length constraint applies only to the full ARN. If you specify only the endpoint name, it is limited to 64 characters in length.

functionName
Required: Yes
Type: string

The web function.

You can specify either of the following:

  • The function name, for example my-function.

  • The function ARN.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

revisionWeights
Type: Array of RevisionWeight structures

A list of revision weights that determine how traffic is distributed across revisions.

scalingConfig
Type: ScalingConfig structure

The scaling configuration for the endpoint. Omit this field to keep the current scaling configuration. To clear a previously set maxEnvironments value, specify an empty object.

throttleConfig
Type: ThrottleConfig structure

The throttling configuration for the endpoint. Omit this field to keep the current throttling configuration. To clear a previously set rateLimit value, specify an empty object.

Result Syntax

[
    'authType' => 'ApplicationManaged|IamAuth',
    'autoDeploymentMode' => 'LatestRevision|Disabled',
    'createdAt' => <DateTime>,
    'description' => '<string>',
    'domainName' => '<string>',
    'endpointArn' => '<string>',
    'endpointName' => '<string>',
    'endpointType' => 'HomeRegion|MultiRegion|PerRegion',
    'functionArn' => '<string>',
    'regionalEndpoints' => [
        '<Region>' => [
            'authType' => 'ApplicationManaged|IamAuth',
            'domainName' => '<string>',
            'revisionWeights' => [
                [
                    'revisionId' => '<string>',
                    'weight' => <integer>,
                ],
                // ...
            ],
            'scalingConfig' => [
                'maxEnvironments' => <integer>,
            ],
            'state' => 'Pending|Active|Failed|Deleting',
            'stateReason' => '<string>',
            'throttleConfig' => [
                'rateLimit' => <integer>,
            ],
            'updateStatus' => 'InProgress|Successful|Failed',
            'updateStatusReason' => '<string>',
        ],
        // ...
    ],
    'regions' => ['<string>', ...],
    'revisionWeights' => [
        [
            'revisionId' => '<string>',
            'weight' => <integer>,
        ],
        // ...
    ],
    'scalingConfig' => [
        'maxEnvironments' => <integer>,
    ],
    'state' => 'Pending|Active|Failed|Deleting',
    'stateReason' => '<string>',
    'throttleConfig' => [
        'rateLimit' => <integer>,
    ],
    'updateStatus' => 'InProgress|Successful|Failed',
    'updateStatusReason' => '<string>',
    'updatedAt' => <DateTime>,
]

Result Details

Members
authType
Required: Yes
Type: string

The authorization type for a web function endpoint.

Valid values:

  • ApplicationManaged – Your application handles authorization.

  • IamAuth – Lambda uses IAM to authorize requests, which must be signed with Signature Version 4 (SigV4).

autoDeploymentMode
Required: Yes
Type: string

The auto-deployment mode for a web function endpoint.

Valid values:

  • LatestRevision – The endpoint automatically serves the newest revision.

  • Disabled – Revision routing stays fixed until you change it.

createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time the endpoint was created.

description
Type: string

The description of the endpoint.

domainName
Required: Yes
Type: string

The domain name assigned to the endpoint.

endpointArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the endpoint.

endpointName
Required: Yes
Type: string

The name of the endpoint.

endpointType
Required: Yes
Type: string

The type of a web function endpoint.

Valid values:

  • HomeRegion – Serves traffic from the Region where you created the web function.

  • MultiRegion – Replicates across the Regions that you choose and routes each request to the nearest one.

  • PerRegion – Creates a separate endpoint in each Region that you choose.

functionArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the web function.

regionalEndpoints
Required: Yes
Type: Associative array of custom strings keys (Region) to RegionalEndpoint structures

The list of regional endpoint configurations.

regions
Required: Yes
Type: Array of strings

The Regions configured for the endpoint.

revisionWeights
Required: Yes
Type: Array of RevisionWeight structures

The traffic distribution across revisions for the endpoint. Each entry maps a revision to a weight from 1 to 100.

scalingConfig
Type: ScalingConfig structure

The scaling configuration for a web function endpoint.

state
Required: Yes
Type: string

The current state of the endpoint.

stateReason
Required: Yes
Type: string

The reason for the current state of the endpoint.

throttleConfig
Type: ThrottleConfig structure

The throttling configuration for a web function endpoint.

updateStatus
Type: string

The status of the most recent update to an endpoint. Possible values:

  • InProgress – The update is in progress.

  • Successful – The update completed successfully.

  • Failed – The update failed.

updateStatusReason
Type: string

The reason for the endpoint's most recent update status.

updatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time the endpoint was last updated.

Errors

AccessDeniedException:

You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.

ConflictException:

The request conflicts with the current state of the resource. For example, the resource is being modified by another request, you tried to delete a revision that is serving traffic on an endpoint, or the policy revision ID that you specified doesn't match the current policy. Resolve the conflict and try again.

InternalServerException:

The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.

ValidationException:

The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.

ResourceNotFoundException:

The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.

ThrottlingException:

The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.

ServiceQuotaExceededException:

The request would exceed a service quota, such as the maximum number of web functions in your account or the maximum number of revisions or endpoints per web function. Request a quota increase or reduce usage and try again.

Shapes

AccessDeniedException

Description

You don't have permission to perform this operation. Check the IAM policies for your identity and any resource-based policy on the web function.

Members
message
Required: Yes
Type: string

A message describing the access denied error.

AccountQuotas

Description

The quotas that apply to web functions in your account in the current AWS Region.

Members
maxEndpointsPerFunction
Required: Yes
Type: int

The maximum number of endpoints that a single web function can have.

maxRevisionsPerFunction
Required: Yes
Type: int

The maximum number of revisions that a single web function can have.

maxTotalArmVCpus
Required: Yes
Type: int

The maximum total number of Arm vCPUs that you can allocate across all of your web functions in the current AWS Region.

maxTotalRateLimit
Required: Yes
Type: int

The maximum number of requests per second allowed across all of your web function endpoints in your account in the current AWS Region.

AccountUsage

Description

Contains your current web function usage for the current AWS Region.

Members
functionCount
Required: Yes
Type: int

The number of web functions in your account in the current AWS Region. This count includes web functions in all states, not only functions in the Active state.

BuildConfig

Description

The build configuration for a web function revision, including code location and runtime settings.

Members
codeConfig
Required: Yes
Type: CodeConfig structure

The code configuration specifying where the deployment artifact is stored.

runtimeConfig
Required: Yes
Type: RuntimeConfig structure

The runtime configuration for the revision.

CodeConfig

Description

The code configuration specifying the location of the deployment artifact.

Members
s3Object
Required: Yes
Type: S3Object structure

The Amazon S3 location of the deployment artifact.

ConflictException

Description

The request conflicts with the current state of the resource. For example, the resource is being modified by another request, you tried to delete a revision that is serving traffic on an endpoint, or the policy revision ID that you specified doesn't match the current policy. Resolve the conflict and try again.

Members
message
Required: Yes
Type: string

A message describing the conflict.

resourceId
Type: string

The identifier of the resource in conflict.

resourceType
Type: string

The type of the resource in conflict.

EndpointConfig

Description

The configuration for a web function endpoint.

Members
authType
Required: Yes
Type: string

The authorization type for the endpoint.

Valid values:

  • ApplicationManaged – Your application handles authorization.

  • IamAuth – Lambda uses IAM to authorize requests, which must be signed with Signature Version 4 (SigV4).

autoDeploymentMode
Type: string

The auto-deployment mode for the endpoint. If you don't specify a value, the default is Disabled, and this default is returned in the response.

Valid values:

  • LatestRevision – The endpoint automatically serves the newest revision.

  • Disabled – Revision routing stays fixed until you change it.

description
Type: string

A description of the endpoint.

endpointName
Required: Yes
Type: string

The name of the endpoint. The name can contain letters, numbers, hyphens (-), and underscores (_), and can't begin or end with a hyphen or an underscore. The name is limited to 64 characters in length.

endpointType
Required: Yes
Type: string

The type of endpoint. Determines how traffic is served and routed across Regions.

Valid values:

  • HomeRegion – Serves traffic from the Region where you created the web function.

  • MultiRegion – Replicates across the Regions that you choose and routes each request to the nearest one.

  • PerRegion – Creates a separate endpoint in each Region that you choose.

regions
Type: Array of strings

The list of Regions for the endpoint. Required when the endpoint type is MultiRegion or PerRegion: specify at least one Region other than the Region where you create the endpoint (the home Region). The home Region is added automatically if you don't include it; specifying only the home Region isn't allowed. When the endpoint type is HomeRegion, omit this field or specify only the home Region.

scalingConfig
Type: ScalingConfig structure

The scaling configuration for the endpoint.

throttleConfig
Type: ThrottleConfig structure

The throttling configuration for the endpoint.

Filter

Description

A filter to apply when listing resources.

Members
name
Required: Yes
Type: string

The name of the filter field.

values
Required: Yes
Type: Array of strings

The values to match for the filter.

FunctionEndpointSummary

Description

A summary of a web function endpoint.

Members
authType
Required: Yes
Type: string

The authorization type for the endpoint.

autoDeploymentMode
Required: Yes
Type: string

The auto-deployment mode for the endpoint.

createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time the endpoint was created.

description
Type: string

A description of the endpoint.

domainName
Required: Yes
Type: string

The domain name of the endpoint.

endpointArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the endpoint.

endpointName
Required: Yes
Type: string

The name of the endpoint.

endpointType
Required: Yes
Type: string

The type of the endpoint.

regions
Required: Yes
Type: Array of strings

The list of Regions for the endpoint.

revisionWeights
Required: Yes
Type: Array of RevisionWeight structures

The revision weights for the endpoint.

scalingConfig
Type: ScalingConfig structure

The scaling configuration for the endpoint. This field is absent if the endpoint has no scaling configuration.

state
Required: Yes
Type: string

The current state of the endpoint.

stateReason
Required: Yes
Type: string

The reason for the current state of the endpoint.

throttleConfig
Type: ThrottleConfig structure

The throttling configuration for the endpoint. This field is absent if the endpoint has no throttling configuration.

updateStatus
Type: string

The status of the most recent update to the endpoint.

updateStatusReason
Type: string

The reason for the current update status of the endpoint.

updatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time the endpoint was last updated.

FunctionRevisionSummary

Description

A summary of a web function revision.

Members
createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time the revision was created.

description
Type: string

A description of the revision.

revisionArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the revision.

revisionId
Required: Yes
Type: string

The identifier of the revision.

state
Required: Yes
Type: string

The current state of the revision.

stateReason
Required: Yes
Type: string

The reason for the current state of the revision.

FunctionSummary

Description

A summary of a web function.

Members
createdAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time the web function was created.

functionArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the web function.

functionName
Required: Yes
Type: string

The name of the web function.

state
Required: Yes
Type: string

The current state of the web function.

stateReason
Required: Yes
Type: string

The reason for the current state of the web function.

updatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time the web function was last updated.

InternalServerException

Description

The request failed because of an internal error in the service. Retry the request. If the error persists, open a support case.

Members
message
Type: string

A message describing the internal error.

LoggingConfig

Description

The logging configuration for a web function revision.

Members
applicationLogLevel
Type: string

The log level for application logs emitted by the web function. If you don't specify a value, the default is INFO, and this default is returned in the response.

logGroup
Type: string

The name of the Amazon CloudWatch Logs log group the web function sends logs to. If you don't specify a value, the default is /aws/lambda/web/{functionName}, and this default is returned in the response.

systemLogLevel
Type: string

The log level for system logs emitted by the Lambda runtime. If you don't specify a value, the default is INFO, and this default is returned in the response.

RegionalEndpoint

Description

Represents the endpoint configuration and state in a specific Region.

Members
authType
Required: Yes
Type: string

The authorization type for the regional endpoint.

domainName
Type: string

The domain name of the regional endpoint.

revisionWeights
Required: Yes
Type: Array of RevisionWeight structures

The revision weights for the regional endpoint.

scalingConfig
Type: ScalingConfig structure

The scaling configuration for the regional endpoint. This field is absent if the endpoint has no scaling configuration.

state
Required: Yes
Type: string

The current state of the regional endpoint.

stateReason
Required: Yes
Type: string

The reason for the current state of the regional endpoint.

throttleConfig
Type: ThrottleConfig structure

The throttling configuration for the regional endpoint. This field is absent if the endpoint has no throttling configuration.

updateStatus
Type: string

The status of the most recent update to the regional endpoint.

updateStatusReason
Type: string

The reason for the current update status of the regional endpoint.

ResourceNotFoundException

Description

The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.

Members
message
Required: Yes
Type: string

A message describing the resource not found error.

resourceId
Type: string

The identifier of the resource that was not found.

resourceType
Type: string

The type of the resource that was not found.

RevisionConfig

Description

The configuration for a web function revision, including code build settings and service configuration.

Members
buildConfig
Required: Yes
Type: BuildConfig structure

The build configuration for the revision.

description
Type: string

A description of the revision.

kmsKeyArn
Type: string

The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) key used to encrypt the revision's code and environment variables.

serviceConfig
Required: Yes
Type: ServiceConfig structure

The service configuration for the revision.

RevisionError

Description

A single error encountered while creating or reading a web function revision. The error describes the affected attribute, an error code, and a human-readable message. This structure is present only when the revision has errors.

Members
attribute
Required: Yes
Type: string

The name of the revision attribute that the error applies to.

errorCode
Required: Yes
Type: string

A short, machine-readable code that identifies the error.

errorMessage
Required: Yes
Type: string

A human-readable message describing the error.

RevisionWeight

Description

Specifies a revision and its traffic weight for an endpoint. You can assign weights to up to two revisions to split traffic for canary or blue-green deployments.

Members
revisionId
Required: Yes
Type: string

The identifier of the revision.

weight
Required: Yes
Type: int

The percentage of traffic to route to this revision. Minimum value of 1, maximum value of 100.

RuntimeConfig

Description

The runtime configuration for a web function revision.

Members
runtime
Required: Yes
Type: string

The runtime identifier for the web function (for example, a Node.js runtime identifier).

S3Object

Description

The Amazon S3 location of a deployment artifact.

Members
bucket
Required: Yes
Type: string

The name of the Amazon S3 bucket.

key
Required: Yes
Type: string

The Amazon S3 object key.

versionId
Type: string

The version ID of the Amazon S3 object.

ScalingConfig

Description

The scaling configuration for a web function endpoint.

Members
maxEnvironments
Type: int

The maximum number of concurrent execution environments for the endpoint. Minimum value of 2, maximum value of 10000. There is no default value. If you don't specify a value, the scaling configuration is absent from the response. On an update, omit scalingConfig to keep the current value, or specify an empty object to clear a previously set value.

ServiceConfig

Description

The service configuration for a web function revision, including execution role, timeout, VPC network access, concurrency, and telemetry settings.

Members
egressNetworkConnectorArn
Type: string

The Amazon Resource Name (ARN) of the Lambda network connector that gives the web function access to resources in your VPC. You must specify the fully qualified ARN, including the connector version, which pins the revision to that version. If the network connector is deleted, invocations of revisions that reference it fail. Revisions that specify a network connector support only HomeRegion endpoints, not MultiRegion or PerRegion.

environmentVariables
Type: Associative array of custom strings keys (EnvironmentVariablesKeyString) to strings

A map of environment variable key-value pairs available to the web function at runtime. Environment variable values are sensitive.

executionRoleArn
Required: Yes
Type: string

The ARN of the IAM role that the web function assumes when it runs. This role provides permissions to access AWS services and resources.

maxConcurrencyPerEnvironment
Type: int

The maximum number of concurrent requests handled per execution environment. Minimum value of 1, maximum value of 128. If you don't specify a value, the default is 64, and this default is returned in the response.

telemetryConfig
Type: TelemetryConfig structure

The telemetry configuration for the web function, including logging settings.

timeoutSeconds
Type: int

The amount of time (in seconds) that Lambda allows the web function to run before stopping it. Minimum value of 3, maximum value of 900. If you don't specify a value, the default is 30, and this default is returned in the response.

ServiceQuotaExceededException

Description

The request would exceed a service quota, such as the maximum number of web functions in your account or the maximum number of revisions or endpoints per web function. Request a quota increase or reduce usage and try again.

Members
message
Required: Yes
Type: string

A message describing the quota that was exceeded.

quotaCode
Type: string

The quota code of the exceeded quota.

resourceId
Type: string

The identifier of the resource that exceeded the quota.

resourceType
Type: string

The type of resource that exceeded the quota.

serviceCode
Type: string

The service code of the service that owns the quota.

TelemetryConfig

Description

The telemetry configuration for a web function revision.

Members
loggingConfig
Type: LoggingConfig structure

The logging configuration for the web function.

ThrottleConfig

Description

The throttling configuration for a web function endpoint.

Members
rateLimit
Type: int

The maximum request rate per second for the endpoint. The value must be one of the following supported values: 0, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, or 10000. The maximum effective value is also bounded by your account-level maximum total rate limit. There is no default value. If you don't specify a value, the throttling configuration is absent from the response. On an update, omit throttleConfig to keep the current value, or specify an empty object to clear a previously set value.

ThrottlingException

Description

The request was denied because it exceeded the request rate that Lambda allows for your account. Reduce the frequency of requests and retry with exponential backoff.

Members
message
Required: Yes
Type: string

A message describing the throttling error.

quotaCode
Type: string

The quota code that was exceeded, if applicable.

retryAfterSeconds
Type: int

The number of seconds to wait before retrying the request.

serviceCode
Type: string

The service code of the throttled service.

ValidationException

Description

The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.

Members
message
Required: Yes
Type: string

A message describing the validation error.