Class ProvisionedConcurrencyConfig
Manages a Lambda Provisioned Concurrency Configuration.
Example Usage
Alias Name
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Lambda.ProvisionedConcurrencyConfig("example", new Aws.Lambda.ProvisionedConcurrencyConfigArgs
{
FunctionName = aws_lambda_alias.Example.Function_name,
ProvisionedConcurrentExecutions = 1,
Qualifier = aws_lambda_alias.Example.Name,
});
}
}
Function Version
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Lambda.ProvisionedConcurrencyConfig("example", new Aws.Lambda.ProvisionedConcurrencyConfigArgs
{
FunctionName = aws_lambda_function.Example.Function_name,
ProvisionedConcurrentExecutions = 1,
Qualifier = aws_lambda_function.Example.Version,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Lambda
Assembly: Pulumi.Aws.dll
Syntax
public class ProvisionedConcurrencyConfig : CustomResource
Constructors
View SourceProvisionedConcurrencyConfig(String, ProvisionedConcurrencyConfigArgs, CustomResourceOptions)
Create a ProvisionedConcurrencyConfig resource with the given unique name, arguments, and options.
Declaration
public ProvisionedConcurrencyConfig(string name, ProvisionedConcurrencyConfigArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ProvisionedConcurrencyConfigArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceFunctionName
Name or Amazon Resource Name (ARN) of the Lambda Function.
Declaration
public Output<string> FunctionName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ProvisionedConcurrentExecutions
Amount of capacity to allocate. Must be greater than or equal to 1.
Declaration
public Output<int> ProvisionedConcurrentExecutions { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
Qualifier
Lambda Function version or Lambda Alias name.
Declaration
public Output<string> Qualifier { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ProvisionedConcurrencyConfigState, CustomResourceOptions)
Get an existing ProvisionedConcurrencyConfig resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ProvisionedConcurrencyConfig Get(string name, Input<string> id, ProvisionedConcurrencyConfigState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ProvisionedConcurrencyConfigState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ProvisionedConcurrencyConfig |