authorizer#

Exec functions for AWS API Gateway v2 Authorizer resources.

async idem_aws.exec.aws.apigatewayv2.authorizer.get(hub, ctx, name: str, resource_id: str, api_id: str) Dict[str, Any][source]#

Gets an Authorizer.

Parameters:
  • name (str) – The name of the Idem state.

  • resource_id (str) – The authorizer identifier.

  • api_id (str) – The API identifier.

Returns:

Returns an Authorizer.

Return type:

Dict[str, Any]

Examples

Call from the CLI:

idem exec aws.apigatewayv2.authorizer.get name="my_resource" resource_id="authorizer_id" api_id="api_id"

Call from code:

async def my_func(hub, ctx, name:str, resource_id:str, api_id: str):
    await hub.exec.aws.apigatewayv2.authorizer.get(ctx, name, resource_id, api_id)

Using in a state:

my_unmanaged_resource:
  exec.run:
    - path: aws.apigatewayv2.authorizer.get
    - kwargs:
        name: my_resource
        resource_id: authorizer_id
        api_id: api_id