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 GetProvisionedConcurrencyConfig operation.

Inheritance Hierarchy

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

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

Syntax

C#
public class GetProvisionedConcurrencyConfigResponse : AmazonWebServiceResponse

The GetProvisionedConcurrencyConfigResponse 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 returns details for the provisioned concurrency configuration for the BLUE alias of the specified function.

To get a provisioned concurrency configuration


var client = new AmazonLambdaClient();
var response = client.AddLayerVersionPermission(new AddLayerVersionPermissionRequest 
{
    Action = "lambda:GetLayerVersion",
    LayerName = "my-layer",
    Principal = "223456789012",
    StatementId = "xaccount",
    VersionNumber = 1
});

string revisionId = response.RevisionId;
string statement = response.Statement;

            

The following example displays details for the provisioned concurrency configuration for the BLUE alias of the specified function.

To view a provisioned concurrency configuration


var client = new AmazonLambdaClient();
var response = client.AddPermission(new AddPermissionRequest 
{
    Action = "lambda:InvokeFunction",
    FunctionName = "my-function",
    Principal = "223456789012",
    StatementId = "xaccount"
});

string statement = response.Statement;

            

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