update_authorizer
async
¶
update_authorizer(
authorizer_name: AuthorizerName,
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
authorizer_function_arn: Optional[AuthorizerFunctionArn] = None,
token_key_name: Optional[TokenKeyName] = None,
token_signing_public_keys: Optional[PublicKeyMap] = None,
status: Optional[AuthorizerStatus] = None,
enable_caching_for_http: Optional[EnableCachingForHttp] = None,
) -> UpdateAuthorizerResponse
Updates an authorizer.
Requires permission to access the UpdateAuthorizer action.
Parameters:
-
authorizer_name(AuthorizerName) –The authorizer name.
-
authorizer_function_arn(Optional[AuthorizerFunctionArn], default:None) –The ARN of the authorizer's Lambda function.
-
token_key_name(Optional[TokenKeyName], default:None) –The key used to extract the token from the HTTP headers.
-
token_signing_public_keys(Optional[PublicKeyMap], default:None) –The public keys used to verify the token signature.
-
status(Optional[AuthorizerStatus], default:None) –The status of the update authorizer request.
-
enable_caching_for_http(Optional[EnableCachingForHttp], default:None) –When
true, the result from the authorizer’s Lambda function is cached for the time specified inrefreshAfterInSeconds. The cached result is used while the device reuses the same HTTP connection.
Raises:
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
LimitExceededException–A limit has been exceeded.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The rate exceeds the limit.
-
UnauthorizedException–You are not authorized to perform this operation.
-
UnknownServiceError–The service returned an error code this client does not model.