AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

This is the response object from the PutProvisionedConcurrencyConfig operation.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.Lambda.Model.PutProvisionedConcurrencyConfigResponse

Namespace: Amazon.Lambda.Model
Assembly: AWSSDK.Lambda.dll
Version: 3.x.y.z

Syntax

C#
public class PutProvisionedConcurrencyConfigResponse : AmazonWebServiceResponse

The PutProvisionedConcurrencyConfigResponse type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property AllocatedProvisionedConcurrentExecutions System.Int32

Gets and sets the property AllocatedProvisionedConcurrentExecutions.

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.

Public Property AvailableProvisionedConcurrentExecutions System.Int32

Gets and sets the property AvailableProvisionedConcurrentExecutions.

The amount of provisioned concurrency available.

Public Property ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property LastModified System.String

Gets and sets the property LastModified.

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

Public Property RequestedProvisionedConcurrentExecutions System.Int32

Gets and sets the property RequestedProvisionedConcurrentExecutions.

The amount of provisioned concurrency requested.

Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property Status Amazon.Lambda.ProvisionedConcurrencyStatusEnum

Gets and sets the property Status.

The status of the allocation process.

Public Property StatusReason System.String

Gets and sets the property StatusReason.

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

Examples

The following example allocates 100 provisioned concurrency for the BLUE alias of the specified function.

To allocate provisioned concurrency


var response = client.PutProvisionedConcurrencyConfig(new PutProvisionedConcurrencyConfigRequest 
{
    FunctionName = "my-function",
    ProvisionedConcurrentExecutions = 100,
    Qualifier = "BLUE"
});

int allocatedProvisionedConcurrentExecutions = response.AllocatedProvisionedConcurrentExecutions;
string lastModified = response.LastModified;
int requestedProvisionedConcurrentExecutions = response.RequestedProvisionedConcurrentExecutions;
string status = response.Status;

            

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5