Exemples d'utilisation de
Lambda authorizer
en Anglais et leurs traductions en Français
{-}
Colloquial
Official
An Amazon API Gateway Lambda authorizer(formerly known as a custom authorizer)
Un mécanisme d'autorisation Lambda Amazon API Gateway(anciennement appelé mécanisme d'autorisation personnalisée)
Before creating an API Gateway Lambda authorizer, you must first create the AWS Lambda function that implements the logic to authorize
Avant de créer un mécanisme d'autorisation Lambda API Gateway, vous devez créer la fonction AWS Lambda qui implémente la logique permettant d'autoriser
When creating the Lambda function for your API Gateway Lambda authorizer, you assign an execution role for the Lambda function if it calls other AWS services.
Lorsque vous créez la fonction Lambda de votre mécanisme d'autorisation Lambda API Gateway, vous devez attribuer un rôle d'exécution à la fonction Lambda si elle appelle d'autres services AWS.
set the authorizer-id input property to the id property value of a Lambda authorizer that already exists.
définissez la propriété d'entrée authorizer-id sur la valeur de propriété id d'un mécanisme d'autorisation Lambda qui existe déjà.
you can use IAM roles and policies, a Lambda authorizer(formerly known as a custom authorizer),
vous pouvez utiliser des rôles et des stratégies IAM, un mécanisme d'autorisation Lambda(anciennement appelé mécanisme d'autorisation personnalisée)
you should test the API with the Lambda authorizer enabled.
vous devez tester l'API avec le mécanisme d'autorisation Lambda activé.
In Name, type a header name that matches the Token Source name you specified when you created the Lambda authorizer for the API.
Dans Name(Nom), saisissez un nom d'en-tête qui correspond au nom de Token Source(Source de jeton) que vous avez spécifié lorsque vous avez créé le mécanisme d'autorisation Lambda pour l'API.
create-authorizer to control the Lambda function used in your Lambda authorizer, you can create the following IAM policy.
create-authorizer pour contrôler la fonction Lambda utilisée dans votre mécanisme d'autorisation Lambda, vous pouvez créer la stratégie IAM suivante.
A Lambda authorizer function's output must include the principal identifier( principalId)
La sortie de la fonction du mécanisme d'autorisation Lambda doit inclure l'identifiant principal( principalId)
see Configure Cross-Account Lambda Authorizer Using the API Gateway Console
consultez Configuration du mécanisme d'autorisation Lambda entre comptes à l'aide de la console API Gateway
including IAM roles and policies, or a Lambda function-based Lambda authorizer CUSTOM.
un mécanisme d'autorisation Lambda basé sur une fonction Lambda CUSTOM.
Gateway Lambda Authorizer and verify the result by examining the output compatible with Output from an Amazon API Gateway Lambda Authorizer.
puis vérifiez le résultat en examinant la sortie par rapport à Données de sortie d'un mécanisme d'autorisation Lambda Amazon API Gateway.
A Lambda authorizer uses bearer token authentication strategies, such as OAuth or SAMI.
Le mécanisme d'automatisation Lambda utilise des stratégies d'authentification par jeton de porteur, par exemple OAuth ou SAML.
The API client must include a header of this name to send the authorization token to the Lambda authorizer.
Le client d'API doit inclure un en-tête portant ce nom pour envoyer le jeton d'autorisation au mécanisme d'autorisation Lambda.
API Gateway passes the context object from a Lambda authorizer directly to the backend Lambda function as part of the input event.
API Gateway transmet directement l'objet context depuis un mécanisme d'autorisation Lambda vers la fonction Lambda du backend via l'entrée event.
The principal user identification associated with the token sent by the client and returned from an API Gateway Lambda authorizer(formerly known as a custom authorizer) Lambda function.
Identifiant utilisateur principal associé au jeton envoyé par le client et retourné par une fonction Lambda du mécanismed'autorisationLambda API Gateway anciennement appelé mécanisme d'autorisation personnalisée.
API Gateway passes the required request parameters to the authorizer Lambda function as part of the event object.
API Gateway transmet les paramètres de demande requis à la fonction Lambda du mécanisme d'autorisation dans l'objet event.
A customer authorizer Lambda function now returns the caller's principal identifier.
Une fonction Lambda du mécanisme d'autorisation personnalisée retourne désormais l'identifiant principal de l'appelant.
IAM Policy for Cross-Account Lambda Authorizer.
Stratégie IAM pour le mécanisme d'autorisation Lambda entre comptes.
The following shows example output from the example Lambda authorizer.
Notre exemple de mécanisme d'autorisation Lambda renvoie l'exemple de sortie suivant.
English
Dansk
Deutsch
Español
Italiano
Nederlands
Svenska
عربى
Български
বাংলা
Český
Ελληνικά
Suomi
עִברִית
हिंदी
Hrvatski
Magyar
Bahasa indonesia
日本語
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Norsk
Polski
Português
Română
Русский
Slovenský
Slovenski
Српски
தமிழ்
తెలుగు
ไทย
Tagalog
Turkce
Українська
اردو
Tiếng việt
中文