AWS Classic v5.41.0, May 15 23
AWS Classic v5.41.0, May 15 23
aws.lambda.ProvisionedConcurrencyConfig
Explore with Pulumi AI
Manages a Lambda Provisioned Concurrency Configuration.
Example Usage
Alias Name
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Lambda.ProvisionedConcurrencyConfig("example", new()
{
FunctionName = aws_lambda_alias.Example.Function_name,
ProvisionedConcurrentExecutions = 1,
Qualifier = aws_lambda_alias.Example.Name,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := lambda.NewProvisionedConcurrencyConfig(ctx, "example", &lambda.ProvisionedConcurrencyConfigArgs{
FunctionName: pulumi.Any(aws_lambda_alias.Example.Function_name),
ProvisionedConcurrentExecutions: pulumi.Int(1),
Qualifier: pulumi.Any(aws_lambda_alias.Example.Name),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lambda.ProvisionedConcurrencyConfig;
import com.pulumi.aws.lambda.ProvisionedConcurrencyConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ProvisionedConcurrencyConfig("example", ProvisionedConcurrencyConfigArgs.builder()
.functionName(aws_lambda_alias.example().function_name())
.provisionedConcurrentExecutions(1)
.qualifier(aws_lambda_alias.example().name())
.build());
}
}
import pulumi
import pulumi_aws as aws
example = aws.lambda_.ProvisionedConcurrencyConfig("example",
function_name=aws_lambda_alias["example"]["function_name"],
provisioned_concurrent_executions=1,
qualifier=aws_lambda_alias["example"]["name"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.lambda.ProvisionedConcurrencyConfig("example", {
functionName: aws_lambda_alias.example.function_name,
provisionedConcurrentExecutions: 1,
qualifier: aws_lambda_alias.example.name,
});
resources:
example:
type: aws:lambda:ProvisionedConcurrencyConfig
properties:
functionName: ${aws_lambda_alias.example.function_name}
provisionedConcurrentExecutions: 1
qualifier: ${aws_lambda_alias.example.name}
Function Version
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Lambda.ProvisionedConcurrencyConfig("example", new()
{
FunctionName = aws_lambda_function.Example.Function_name,
ProvisionedConcurrentExecutions = 1,
Qualifier = aws_lambda_function.Example.Version,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := lambda.NewProvisionedConcurrencyConfig(ctx, "example", &lambda.ProvisionedConcurrencyConfigArgs{
FunctionName: pulumi.Any(aws_lambda_function.Example.Function_name),
ProvisionedConcurrentExecutions: pulumi.Int(1),
Qualifier: pulumi.Any(aws_lambda_function.Example.Version),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.lambda.ProvisionedConcurrencyConfig;
import com.pulumi.aws.lambda.ProvisionedConcurrencyConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ProvisionedConcurrencyConfig("example", ProvisionedConcurrencyConfigArgs.builder()
.functionName(aws_lambda_function.example().function_name())
.provisionedConcurrentExecutions(1)
.qualifier(aws_lambda_function.example().version())
.build());
}
}
import pulumi
import pulumi_aws as aws
example = aws.lambda_.ProvisionedConcurrencyConfig("example",
function_name=aws_lambda_function["example"]["function_name"],
provisioned_concurrent_executions=1,
qualifier=aws_lambda_function["example"]["version"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.lambda.ProvisionedConcurrencyConfig("example", {
functionName: aws_lambda_function.example.function_name,
provisionedConcurrentExecutions: 1,
qualifier: aws_lambda_function.example.version,
});
resources:
example:
type: aws:lambda:ProvisionedConcurrencyConfig
properties:
functionName: ${aws_lambda_function.example.function_name}
provisionedConcurrentExecutions: 1
qualifier: ${aws_lambda_function.example.version}
Create ProvisionedConcurrencyConfig Resource
new ProvisionedConcurrencyConfig(name: string, args: ProvisionedConcurrencyConfigArgs, opts?: CustomResourceOptions);
@overload
def ProvisionedConcurrencyConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
function_name: Optional[str] = None,
provisioned_concurrent_executions: Optional[int] = None,
qualifier: Optional[str] = None)
@overload
def ProvisionedConcurrencyConfig(resource_name: str,
args: ProvisionedConcurrencyConfigArgs,
opts: Optional[ResourceOptions] = None)
func NewProvisionedConcurrencyConfig(ctx *Context, name string, args ProvisionedConcurrencyConfigArgs, opts ...ResourceOption) (*ProvisionedConcurrencyConfig, error)
public ProvisionedConcurrencyConfig(string name, ProvisionedConcurrencyConfigArgs args, CustomResourceOptions? opts = null)
public ProvisionedConcurrencyConfig(String name, ProvisionedConcurrencyConfigArgs args)
public ProvisionedConcurrencyConfig(String name, ProvisionedConcurrencyConfigArgs args, CustomResourceOptions options)
type: aws:lambda:ProvisionedConcurrencyConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProvisionedConcurrencyConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ProvisionedConcurrencyConfigArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ProvisionedConcurrencyConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProvisionedConcurrencyConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProvisionedConcurrencyConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ProvisionedConcurrencyConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ProvisionedConcurrencyConfig resource accepts the following input properties:
- Function
Name string Name or Amazon Resource Name (ARN) of the Lambda Function.
- Provisioned
Concurrent intExecutions Amount of capacity to allocate. Must be greater than or equal to
1
.- Qualifier string
Lambda Function version or Lambda Alias name.
- Function
Name string Name or Amazon Resource Name (ARN) of the Lambda Function.
- Provisioned
Concurrent intExecutions Amount of capacity to allocate. Must be greater than or equal to
1
.- Qualifier string
Lambda Function version or Lambda Alias name.
- function
Name String Name or Amazon Resource Name (ARN) of the Lambda Function.
- provisioned
Concurrent IntegerExecutions Amount of capacity to allocate. Must be greater than or equal to
1
.- qualifier String
Lambda Function version or Lambda Alias name.
- function
Name string Name or Amazon Resource Name (ARN) of the Lambda Function.
- provisioned
Concurrent numberExecutions Amount of capacity to allocate. Must be greater than or equal to
1
.- qualifier string
Lambda Function version or Lambda Alias name.
- function_
name str Name or Amazon Resource Name (ARN) of the Lambda Function.
- provisioned_
concurrent_ intexecutions Amount of capacity to allocate. Must be greater than or equal to
1
.- qualifier str
Lambda Function version or Lambda Alias name.
- function
Name String Name or Amazon Resource Name (ARN) of the Lambda Function.
- provisioned
Concurrent NumberExecutions Amount of capacity to allocate. Must be greater than or equal to
1
.- qualifier String
Lambda Function version or Lambda Alias name.
Outputs
All input properties are implicitly available as output properties. Additionally, the ProvisionedConcurrencyConfig resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing ProvisionedConcurrencyConfig Resource
Get an existing ProvisionedConcurrencyConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ProvisionedConcurrencyConfigState, opts?: CustomResourceOptions): ProvisionedConcurrencyConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
function_name: Optional[str] = None,
provisioned_concurrent_executions: Optional[int] = None,
qualifier: Optional[str] = None) -> ProvisionedConcurrencyConfig
func GetProvisionedConcurrencyConfig(ctx *Context, name string, id IDInput, state *ProvisionedConcurrencyConfigState, opts ...ResourceOption) (*ProvisionedConcurrencyConfig, error)
public static ProvisionedConcurrencyConfig Get(string name, Input<string> id, ProvisionedConcurrencyConfigState? state, CustomResourceOptions? opts = null)
public static ProvisionedConcurrencyConfig get(String name, Output<String> id, ProvisionedConcurrencyConfigState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Function
Name string Name or Amazon Resource Name (ARN) of the Lambda Function.
- Provisioned
Concurrent intExecutions Amount of capacity to allocate. Must be greater than or equal to
1
.- Qualifier string
Lambda Function version or Lambda Alias name.
- Function
Name string Name or Amazon Resource Name (ARN) of the Lambda Function.
- Provisioned
Concurrent intExecutions Amount of capacity to allocate. Must be greater than or equal to
1
.- Qualifier string
Lambda Function version or Lambda Alias name.
- function
Name String Name or Amazon Resource Name (ARN) of the Lambda Function.
- provisioned
Concurrent IntegerExecutions Amount of capacity to allocate. Must be greater than or equal to
1
.- qualifier String
Lambda Function version or Lambda Alias name.
- function
Name string Name or Amazon Resource Name (ARN) of the Lambda Function.
- provisioned
Concurrent numberExecutions Amount of capacity to allocate. Must be greater than or equal to
1
.- qualifier string
Lambda Function version or Lambda Alias name.
- function_
name str Name or Amazon Resource Name (ARN) of the Lambda Function.
- provisioned_
concurrent_ intexecutions Amount of capacity to allocate. Must be greater than or equal to
1
.- qualifier str
Lambda Function version or Lambda Alias name.
- function
Name String Name or Amazon Resource Name (ARN) of the Lambda Function.
- provisioned
Concurrent NumberExecutions Amount of capacity to allocate. Must be greater than or equal to
1
.- qualifier String
Lambda Function version or Lambda Alias name.
Import
Lambda Provisioned Concurrency Configs can be imported using the function_name
and qualifier
separated by a colon (:
), e.g.,
$ pulumi import aws:lambda/provisionedConcurrencyConfig:ProvisionedConcurrencyConfig example my_function:production
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.