function_provisioned_concurrency_config#
Exec module for managing Lambda provisioned concurrency config.
- async idem_aws.exec.aws.lambda_aws.function_provisioned_concurrency_config.get(hub, ctx, name: str, resource_id: str = None, function_name: str = None, qualifier: str = None)[source]#
Get the provisioned concurrency configuration for a function’s alias or version.
- Parameters:
name (str) – An Idem name of the resource.
resource_id (str, Optional) – The Amazon Resource Name (ARN) of the function. If not supplied, the function name and qualifier are required to get the resource.
function_name (str, Optional) – The name of the Lambda function, version, or alias. If not supplied, the function name will be extracted fom the resource_id.
qualifier (str, Optional) – A version number or alias name. If not supplied, the qualifier will be extracted fom the resource_id.
- Returns:
{"result": True|False, "comment": A message List, "ret": None|Dict}
Examples
Calling this exec module function from the cli with resource_id
idem exec aws.lambda_aws.function_provisioned_concurrency_config.get resource_id="resource_id" name="name"
Calling this exec module function from the cli with function_name and qualifier.
idem exec aws.lambda_aws.function_provisioned_concurrency_config.get function_name="function_name" qualifier="qualifier" name="name"
Calling this exec module function from within a state module in pure python
async def state_function(hub, ctx, name, resource_id, **kwargs): ret = await aws.lambda_aws.function_provisioned_concurrency_config.get(ctx, resource_id=resource_id, name=name, **kwargs)
- async idem_aws.exec.aws.lambda_aws.function_provisioned_concurrency_config.list_(hub, ctx, function_name: str)[source]#
Retrieves a list of provisioned concurrency configurations for a function.
- Parameters:
function_name (str) –
- The name of the Lambda function.
- Name formats
Function name - my-function.
Function ARN -
arn:aws:lambda:us-west-2:123456789012:function:my-function
.Partial ARN -
123456789012:function:my-function
.
- Returns:
{"result": True|False, "comment": A message List, "ret": None|Dict}
Examples
Calling this exec module function from the cli with function_name
idem exec aws.lambda_aws.function_provisioned_concurrency_config.list function_name="function_name"
Calling this exec module function from within a state module in pure python
async def state_function(hub, ctx, name, resource_id, **kwargs): ret = await aws.lambda_aws.function_provisioned_concurrency_config.list(ctx, function_name=function_name)