function_provisioned_concurrency_config#

State module for managing Lambda provisioned concurrency config.

async idem_aws.states.aws.lambda_aws.function_provisioned_concurrency_config.present(hub, ctx, name: str, function_name: str, qualifier: str, provisioned_concurrent_executions: int, resource_id: str = None) Dict[str, Any][source]#

Adds a provisioned concurrency configuration to a function’s alias or version.

Parameters:
  • name (str) – An Idem name of the resource.

  • function_name (str) –

    The name of the Lambda function. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
    Name formats:
    • Function name - my-function.

    • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function .

    • Partial ARN - 123456789012:function:my-function .

  • qualifier (str) – A version number or alias name. Defaults to None.

  • provisioned_concurrent_executions (int) – The amount of provisioned concurrency to allocate for the version or alias.

  • resource_id (str, Optional) – The Amazon Resource Name (ARN) of the function. Defaults to None.

Returns:

Dict[str, Any]

Examples

function_provisioned_concurrency_config-01234672f3336db8:
  aws.lambda_aws.function_provisioned_concurrency_config.present:
    - name: value
    - function_name: value
    - qualifier: value
    - provisioned_concurrent_executions: int
async idem_aws.states.aws.lambda_aws.function_provisioned_concurrency_config.absent(hub, ctx, name: str, resource_id: str = None) Dict[str, Any][source]#

Deletes the provisioned concurrency configuration for a function.

Parameters:
  • name (str) – An Idem name of the resource.

  • resource_id (str, Optional) – The Amazon Resource Name (ARN) of the function. Idem automatically considers this resource being absent if this field is not specified.

Returns:

Dict[str, Any]

Examples

function_provisioned_concurrency_config-01234672f3336db8:
  aws.lambda_aws.function_provisioned_concurrency_config.absent:
    - name: value
    - resource_id: value
async idem_aws.states.aws.lambda_aws.function_provisioned_concurrency_config.describe(hub, ctx) Dict[str, Dict[str, Any]][source]#

Retrieves a list of provisioned concurrency configurations for a function.

Returns:

Dict[str, Any]

Examples

$ idem describe aws.lambda_aws.function_provisioned_concurrency_config