Examples of using
Lambda authorizer
in English and their translations into Spanish
{-}
Colloquial
Official
Create a custom Lambda authorizer of the token type.
Elija un autorizador de Lambda personalizado del tipo de token.
Control a Lambda Function of a Lambda Authorizer.
Control de una función de Lambdade un autorizador de Lambda.
You must have created a Lambda authorizer to have this choice displayed in the drop-down menu.
Debe haber creado un autorizador de Lambda para que esta opción se muestre en el menú desplegable.
The following shows example output from the example Lambda authorizer.
El siguiente ejemplo muestra la salida del ejemplo de autorizador de Lambda.
For requests using a Lambda authorizer, you can pass$context.
Para las solicitudes que utilizan un autorizador de Lambda, puede pasar$context.
For more information, see Output from an Amazon API Gateway Lambda Authorizer.
Para obtener más información, consulte Salida deun autorizador de Lambdade Amazon API Gateway.
Create an API Gateway Lambda AuthorizerLambda Function.
Creación de una función de Lambda del autorizadorde Lambda de API Gateway.
The next procedure shows how to configure an API method to use the Lambda authorizer.
El procedimiento siguiente muestra cómo configurar un método de API para que use el autorizador de Lambda.
A Lambda authorizer uses bearer token authentication strategies, such as OAuth or SAMI.
Un autorizador de Lambda utiliza estrategias de autenticación de token al portador como OAuth o SAML.
The following example sets the type of a Lambda authorizer using OAuth 2.
El siguiente ejemplo establece el tipo deun autorizador de Lambda mediante OAuth 2.
Having configured the Lambda authorizer(formerly known as the custom authorizer) and deployed the API, you should test the API with the Lambda authorizer enabled.
Después de configurar el autorizador de Lambda(que anteriormente se denominaba autorizador personalizado); e implementar la API, debe probar la API con el autorizador de Lambda habilitado.
Here is an example of an IAM policy to control a cross-account Lambda authorizer function.
A continuación se muestra un ejemplo de política de IAM para controlar una función de autorizador de Lambda entre cuentas.
For information on how to create a Lambda authorizer, see Use API Gateway Lambda Authorizers.
Para obtener más información sobre cómo crear un autorizador de Lambda, consulte Uso de autorizadores de Lambda de API Gateway.
The API client must include a header of this name to send the authorization token to the Lambda authorizer.
El cliente de la API debe incluir un encabezado con este nombre para enviar el token de autorización al autorizador de Lambda.
You can do this by using IAM permissions, a Lambda authorizer, or an Amazon Cognito user pool.
Puede hacerlo utilizando permisos de IAM, un autorizador de Lambda o un grupo de usuarios de Amazon Cognito.
For more informationon the authorization response, see Output from an Amazon API Gateway Lambda Authorizer.
Para obtener más información sobrela respuesta de autorización, consulte Salida deun autorizador de Lambdade Amazon API Gateway.
In this section,we show how to configure a cross-account Lambda authorizer function using the Amazon API Gateway console.
En esta sección,mostraremos cómo configurar una función de autorizador de Lambda entre cuentas mediante la consola de Amazon API Gateway.
For more information aboutthe authorizer's output format, see Output from an Amazon API Gateway Lambda Authorizer.
Para obtener más información acerca del formatode salida del autorizador, consulte Salida de un autorizador de Lambdade Amazon API Gateway.
When a client calls your API,API Gateway verifies whether a Lambda authorizer is configured for the API method.
Cuando un cliente llama a la API,API Gateway verifica si se ha configurado algún autorizador de Lambda para el método de la API.
A Lambda authorizer function's output must include the principal identifier( principalId) and a policy document( policyDocument) containing a list of policy statements.
La salida de una función de autorizador de Lambda debe incluir el identificador principal( principalId) y un documento de política( policyDocument) que contenga una lista de instrucciones de política.
Set up API methods to require an API key and enable the Lambda authorizer on the methods as well.
Configure los métodos de la API para que exijan una clave de API y habilite el autorizador de Lambda en los métodos.
The response shows that the API Gateway Lambda authorizer returns a 403 Forbidden response without authorizing the call to access the HTTP endpoint.
La respuesta muestra que el autorizador de Lambdade API Gateway devuelve una respuesta 403 Forbidden que no autoriza a la llamada para que tenga acceso al punto de enlace HTTP.
In Name, type a header name that matches the Token Source name you specified when you created the Lambda authorizer for the API.
En Name(Nombre), escriba un nombre de encabezado que coincida con el nombre de Token Source(Origen del token) que especificó al crear el autorizador de Lambda para la API.
In addition to returning an IAM policy, the Lambda authorizer function must also return the caller's principal identifier.
Además de devolver una política de IAM, la función del autorizador de Lambda también debe devolver el identificador principal del intermediario.
The stringified value of the specified key-value pair of the context map returned from an API Gateway Lambda authorizerLambda function.
El valor en forma de cadena del par de clave-valor especificado del mapa context devuelto por la función de Lambda del autorizador de Lambda de API Gateway.
In production code,you should follow the API Gateway Lambda Authorizer blueprint to implement your authorizer Lambda function.
En el código de producción,debe seguir el proyecto Autorizador de Lambdade API Gateway para implementar la función de Lambda del autorizador..
In the code editor of the Lambda console,enter the following Node. js code as an example of the API Gateway Lambda authorizer of the TOKEN type.
En el editor de código de la consola de Lambda,escriba el siguiente código de Node. js como ejemplo deautorizador de Lambdade API Gateway del tipo TOKEN.
An Amazon API Gateway Lambda authorizer(formerly known as a custom authorizer) is a Lambda function that you provide to control access to your API methods.
Un autorizador de Lambdade Amazon API Gateway(que anteriormente se denominaba autorizador personalizado) es una función de Lambda que se proporciona para controlar el acceso a los métodos de la API.
Use an AWS Lambda function from a different AWS account as a Lambda authorizer function or as an API integration backend.
Utilice una función AWS Lambda de otra cuenta de AWS como una función de autorizador Lambda o un backend de integración de la API.
These instructions assume that you already have an API Gateway API in one AWS account and a Lambda authorizer function in another account.
En estas instrucciones, se presupone que ya dispone de una API de API Gateway en una cuenta de AWS y de una función de autorizador de Lambda en otra cuenta.
Results: 69,
Time: 0.0501
How to use "lambda authorizer" in a sentence
A Lambda authorizer uses bearer token authentication.
Next, THUB is validated by AWS Lambda authorizer function.
API Gateway checks whether a Lambda authorizer is configured for the method.
See Configure a Lambda Authorizer Using the AWS CLI or an AWS SDK.
What is an Amazon API Gateway Lambda Authorizer exactly, and what can it do?
Create the Lambda authorizer function in the Lambda console as described in Create an API Gateway Lambda Authorizer Function in the Lambda Console.
This service is integrated with Amazon Cognito and AWS Lambda authorizer to protect unauthorized use of service.
AUTHORIZER for receiving the API key from the UsageIdentifierKey from a Lambda authorizer (formerly known as a custom authorizer).
For the example Lambda authorizer functions in this section, which don't call other services, you can use the built-in AWSLambdaBasicExecutionRole.
Español
Dansk
Deutsch
Français
हिंदी
Italiano
Nederlands
Português
Русский
Tagalog
عربى
Български
বাংলা
Český
Ελληνικά
Suomi
עִברִית
Hrvatski
Magyar
Bahasa indonesia
日本語
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Norsk
Polski
Română
Slovenský
Slovenski
Српски
Svenska
தமிழ்
తెలుగు
ไทย
Turkce
Українська
اردو
Tiếng việt
中文