update_web_function_endpoint
¶
update_web_function_endpoint(
function_name: FunctionName,
endpoint_name: EndpointName,
*,
config_overrides: Optional[LambdaWebClientConfig] = None,
description: Optional[Description] = None,
auth_type: Optional[AuthType] = None,
auto_deployment_mode: Optional[AutoDeploymentMode] = None,
revision_weights: Optional[RevisionWeightList] = None,
scaling_config: Optional[ScalingConfig] = None,
throttle_config: Optional[ThrottleConfig] = None,
) -> UpdateWebFunctionEndpointResponse
Updates the configuration of a web function endpoint. You can modify the authorization type, auto-deployment mode, revision weights, scaling, and throttling settings.
Parameters:
-
function_name(FunctionName) –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.
-
-
endpoint_name(EndpointName) –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.
-
-
description(Optional[Description], default:None) –A description of the endpoint. Omit this field to keep the current description.
-
auth_type(Optional[AuthType], default:None) –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).
-
-
auto_deployment_mode(Optional[AutoDeploymentMode], default:None) –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.
-
-
revision_weights(Optional[RevisionWeightList], default:None) –A list of revision weights that determine how traffic is distributed across revisions.
-
scaling_config(Optional[ScalingConfig], default:None) –The scaling configuration for the endpoint. Omit this field to keep the current scaling configuration. To clear a previously set
maxEnvironmentsvalue, specify an empty object. -
throttle_config(Optional[ThrottleConfig], default:None) –The throttling configuration for the endpoint. Omit this field to keep the current throttling configuration. To clear a previously set
rateLimitvalue, specify an empty object.
Raises:
-
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.
-
ResourceNotFoundException–The specified web function, revision, endpoint, or resource-based policy doesn't exist. Verify the resource identifier and try again.
-
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.
-
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.
-
ValidationException–The request failed validation because a parameter was missing, malformed, or outside the allowed range. Check the request parameters and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lambda_web/_services/lambda_web.py
961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 | |