Skip to content

put_provisioned_concurrency_config

Operation

put_provisioned_concurrency_config

put_provisioned_concurrency_config(request: PutProvisionedConcurrencyConfigInput | PutProvisionedConcurrencyConfigInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[PutProvisionedConcurrencyConfigInputDict]) -> PutProvisionedConcurrencyConfigOutput

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

Parameters:

Name Type Description Default
request PutProvisionedConcurrencyConfigInput | PutProvisionedConcurrencyConfigInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[PutProvisionedConcurrencyConfigInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
PutProvisionedConcurrencyConfigOutput

An instance of PutProvisionedConcurrencyConfigOutput.

put_provisioned_concurrency_config async

put_provisioned_concurrency_config(request: PutProvisionedConcurrencyConfigInput | PutProvisionedConcurrencyConfigInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[PutProvisionedConcurrencyConfigInputDict]) -> PutProvisionedConcurrencyConfigOutput

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

Parameters:

Name Type Description Default
request PutProvisionedConcurrencyConfigInput | PutProvisionedConcurrencyConfigInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[PutProvisionedConcurrencyConfigInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
PutProvisionedConcurrencyConfigOutput

An instance of PutProvisionedConcurrencyConfigOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

PutProvisionedConcurrencyConfigInputDict

Bases: TypedDict

Dictionary form of PutProvisionedConcurrencyConfigInput.

Attributes

function_name instance-attribute
function_name: Required[str]

The name or ARN 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.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

provisioned_concurrent_executions instance-attribute
provisioned_concurrent_executions: Required[int]

The amount of provisioned concurrency to allocate for the version or alias.

qualifier instance-attribute
qualifier: Required[str]

The version number or alias name.

PutProvisionedConcurrencyConfigInput dataclass

Bases: _SerdeShape

Dataclass for PutProvisionedConcurrencyConfigInput structure.

Attributes

function_name class-attribute instance-attribute
function_name: str | None = ...

The name or ARN 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.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

provisioned_concurrent_executions class-attribute instance-attribute
provisioned_concurrent_executions: int | None = ...

The amount of provisioned concurrency to allocate for the version or alias.

qualifier class-attribute instance-attribute
qualifier: str | None = ...

The version number or alias name.

Output

PutProvisionedConcurrencyConfigOutput dataclass

Bases: _SerdeShape

Dataclass for PutProvisionedConcurrencyConfigOutput structure.

Attributes

allocated_provisioned_concurrent_executions class-attribute instance-attribute
allocated_provisioned_concurrent_executions: int | None = ...

The amount of provisioned concurrency allocated. When a weighted alias is used during linear and canary deployments, this value fluctuates depending on the amount of concurrency that is provisioned for the function versions.

available_provisioned_concurrent_executions class-attribute instance-attribute
available_provisioned_concurrent_executions: int | None = ...

The amount of provisioned concurrency available.

last_modified class-attribute instance-attribute
last_modified: str | None = ...

The date and time that a user last updated the configuration, in ISO 8601 format.

requested_provisioned_concurrent_executions class-attribute instance-attribute
requested_provisioned_concurrent_executions: int | None = ...

The amount of provisioned concurrency requested.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

status class-attribute instance-attribute
status: str | None = ...

The status of the allocation process.

status_reason class-attribute instance-attribute
status_reason: str | None = ...

For failed allocations, the reason that provisioned concurrency could not be allocated.