aws apigateway test-invoke-authorizer
Simulate the execution of an Authorizer in your RestApi with headers, parameters, and an incoming request body. Use Lambda Function as Authorizer Use Cognito User Pool as Authorizer
Options
| Name | Description |
|---|---|
--rest-api-id <string> | [Required] The string identifier of the associated RestApi |
--authorizer-id <string> | [Required] Specifies a test invoke authorizer request's Authorizer ID |
--headers <map> | [Required] A key-value map of headers to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, should be specified |
--multi-value-headers <map> | [Optional] The headers as a map from string to list of values to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, may be specified |
--path-with-query-string <string> | [Optional] The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters |
--body <string> | [Optional] The simulated request body of an incoming invocation request |
--stage-variables <map> | A key-value map of stage variables to simulate an invocation on a deployed Stage |
--additional-context <map> | [Optional] A key-value map of additional context variables |
--cli-input-json <string> | Performs service operation based on the JSON string provided. The JSON string follows the format provided by ``--generate-cli-skeleton``. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally |
--generate-cli-skeleton <string> | Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value ``input``, prints a sample input JSON that can be used as an argument for ``--cli-input-json``. If provided with the value ``output``, it validates the command inputs and returns a sample output JSON for that command |