CreateWebFunctionEndpointRequest
¶
Source code in docs_src/capo_lambda_web/types/create_web_function_endpoint_request.py
auth_type
instance-attribute
¶
auth_type: AuthType
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).
auto_deployment_mode
instance-attribute
¶
auto_deployment_mode: NotRequired[AutoDeploymentMode]
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
instance-attribute
¶
description: NotRequired[Description]
A description of the endpoint.
endpoint_name
instance-attribute
¶
endpoint_name: EndpointName
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.
endpoint_type
instance-attribute
¶
endpoint_type: EndpointType
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.
function_name
instance-attribute
¶
function_name: FunctionName
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
instance-attribute
¶
regions: NotRequired[RegionList]
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.
revision_weights
instance-attribute
¶
revision_weights: NotRequired[RevisionWeightList]
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.
scaling_config
instance-attribute
¶
scaling_config: NotRequired[ScalingConfig]
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.
throttle_config
instance-attribute
¶
throttle_config: NotRequired[ThrottleConfig]
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.