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.
Namespace: Amazon.Lambda.Model
Assembly: AWSSDK.Lambda.dll
Version: 3.x.y.z
public class GetProvisionedConcurrencyConfigResponse : AmazonWebServiceResponse
The GetProvisionedConcurrencyConfigResponse type exposes the following members
| Name | Description | |
|---|---|---|
|
GetProvisionedConcurrencyConfigResponse() |
| Name | Type | Description | |
|---|---|---|---|
|
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. |
|
AvailableProvisionedConcurrentExecutions | System.Int32 |
Gets and sets the property AvailableProvisionedConcurrentExecutions. The amount of provisioned concurrency available. |
|
ContentLength | System.Int64 | Inherited from Amazon.Runtime.AmazonWebServiceResponse. |
|
HttpStatusCode | System.Net.HttpStatusCode | Inherited from Amazon.Runtime.AmazonWebServiceResponse. |
|
LastModified | System.String |
Gets and sets the property LastModified. The date and time that a user last updated the configuration, in ISO 8601 format. |
|
RequestedProvisionedConcurrentExecutions | System.Int32 |
Gets and sets the property RequestedProvisionedConcurrentExecutions. The amount of provisioned concurrency requested. |
|
ResponseMetadata | Amazon.Runtime.ResponseMetadata | Inherited from Amazon.Runtime.AmazonWebServiceResponse. |
|
Status | Amazon.Lambda.ProvisionedConcurrencyStatusEnum |
Gets and sets the property Status. The status of the allocation process. |
|
StatusReason | System.String |
Gets and sets the property StatusReason. For failed allocations, the reason that provisioned concurrency could not be allocated. |
The following example returns details for the provisioned concurrency configuration for the BLUE alias of the specified function.
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.
var client = new AmazonLambdaClient();
var response = client.AddPermission(new AddPermissionRequest
{
Action = "lambda:InvokeFunction",
FunctionName = "my-function",
Principal = "223456789012",
StatementId = "xaccount"
});
string statement = response.Statement;
.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