public static interface CreateFunctionRequest.Builder extends LambdaRequest.Builder, SdkPojo, CopyableBuilder<CreateFunctionRequest.Builder,CreateFunctionRequest>
Modifier and Type | Method and Description |
---|---|
CreateFunctionRequest.Builder |
architectures(Architecture... architectures)
The instruction set architecture that the function supports.
|
CreateFunctionRequest.Builder |
architectures(Collection<Architecture> architectures)
The instruction set architecture that the function supports.
|
CreateFunctionRequest.Builder |
architecturesWithStrings(Collection<String> architectures)
The instruction set architecture that the function supports.
|
CreateFunctionRequest.Builder |
architecturesWithStrings(String... architectures)
The instruction set architecture that the function supports.
|
default CreateFunctionRequest.Builder |
code(Consumer<FunctionCode.Builder> code)
The code for the function.
|
CreateFunctionRequest.Builder |
code(FunctionCode code)
The code for the function.
|
CreateFunctionRequest.Builder |
codeSigningConfigArn(String codeSigningConfigArn)
To enable code signing for this function, specify the ARN of a code-signing configuration.
|
default CreateFunctionRequest.Builder |
deadLetterConfig(Consumer<DeadLetterConfig.Builder> deadLetterConfig)
A dead-letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events
when they fail processing.
|
CreateFunctionRequest.Builder |
deadLetterConfig(DeadLetterConfig deadLetterConfig)
A dead-letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events
when they fail processing.
|
CreateFunctionRequest.Builder |
description(String description)
A description of the function.
|
default CreateFunctionRequest.Builder |
environment(Consumer<Environment.Builder> environment)
Environment variables that are accessible from function code during execution.
|
CreateFunctionRequest.Builder |
environment(Environment environment)
Environment variables that are accessible from function code during execution.
|
default CreateFunctionRequest.Builder |
ephemeralStorage(Consumer<EphemeralStorage.Builder> ephemeralStorage)
The size of the function's
/tmp directory in MB. |
CreateFunctionRequest.Builder |
ephemeralStorage(EphemeralStorage ephemeralStorage)
The size of the function's
/tmp directory in MB. |
CreateFunctionRequest.Builder |
fileSystemConfigs(Collection<FileSystemConfig> fileSystemConfigs)
Connection settings for an Amazon EFS file system.
|
CreateFunctionRequest.Builder |
fileSystemConfigs(Consumer<FileSystemConfig.Builder>... fileSystemConfigs)
Connection settings for an Amazon EFS file system.
|
CreateFunctionRequest.Builder |
fileSystemConfigs(FileSystemConfig... fileSystemConfigs)
Connection settings for an Amazon EFS file system.
|
CreateFunctionRequest.Builder |
functionName(String functionName)
The name of the Lambda function.
|
CreateFunctionRequest.Builder |
handler(String handler)
The name of the method within your code that Lambda calls to run your function.
|
default CreateFunctionRequest.Builder |
imageConfig(Consumer<ImageConfig.Builder> imageConfig)
Container image configuration values that override the values in the container image Dockerfile.
|
CreateFunctionRequest.Builder |
imageConfig(ImageConfig imageConfig)
Container image configuration values that override the values in the container image Dockerfile.
|
CreateFunctionRequest.Builder |
kmsKeyArn(String kmsKeyArn)
The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's environment variables.
|
CreateFunctionRequest.Builder |
layers(Collection<String> layers)
A list of function
layers to add to the function's execution environment.
|
CreateFunctionRequest.Builder |
layers(String... layers)
A list of function
layers to add to the function's execution environment.
|
CreateFunctionRequest.Builder |
memorySize(Integer memorySize)
The amount of memory available to the function at runtime.
|
CreateFunctionRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
CreateFunctionRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
CreateFunctionRequest.Builder |
packageType(PackageType packageType)
The type of deployment package.
|
CreateFunctionRequest.Builder |
packageType(String packageType)
The type of deployment package.
|
CreateFunctionRequest.Builder |
publish(Boolean publish)
Set to true to publish the first version of the function during creation.
|
CreateFunctionRequest.Builder |
role(String role)
The Amazon Resource Name (ARN) of the function's execution role.
|
CreateFunctionRequest.Builder |
runtime(Runtime runtime)
The identifier of the function's runtime.
|
CreateFunctionRequest.Builder |
runtime(String runtime)
The identifier of the function's runtime.
|
default CreateFunctionRequest.Builder |
snapStart(Consumer<SnapStart.Builder> snapStart)
The function's SnapStart setting.
|
CreateFunctionRequest.Builder |
snapStart(SnapStart snapStart)
The function's SnapStart setting.
|
CreateFunctionRequest.Builder |
tags(Map<String,String> tags)
A list of tags to apply to the
function.
|
CreateFunctionRequest.Builder |
timeout(Integer timeout)
The amount of time (in seconds) that Lambda allows a function to run before stopping it.
|
default CreateFunctionRequest.Builder |
tracingConfig(Consumer<TracingConfig.Builder> tracingConfig)
|
CreateFunctionRequest.Builder |
tracingConfig(TracingConfig tracingConfig)
|
default CreateFunctionRequest.Builder |
vpcConfig(Consumer<VpcConfig.Builder> vpcConfig)
For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and
subnets in the VPC.
|
CreateFunctionRequest.Builder |
vpcConfig(VpcConfig vpcConfig)
For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and
subnets in the VPC.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
CreateFunctionRequest.Builder functionName(String functionName)
The name of the Lambda function.
Name formats
Function name – my-function
.
Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN – 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
functionName
- The name of the Lambda function.
Name formats
Function name – my-function
.
Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN – 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
CreateFunctionRequest.Builder runtime(String runtime)
The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.
The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.
runtime
- The identifier of the function's runtime. Runtime is
required if the deployment package is a .zip file archive.
The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.
Runtime
,
Runtime
CreateFunctionRequest.Builder runtime(Runtime runtime)
The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.
The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.
runtime
- The identifier of the function's runtime. Runtime is
required if the deployment package is a .zip file archive.
The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.
Runtime
,
Runtime
CreateFunctionRequest.Builder role(String role)
The Amazon Resource Name (ARN) of the function's execution role.
role
- The Amazon Resource Name (ARN) of the function's execution role.CreateFunctionRequest.Builder handler(String handler)
The name of the method within your code that Lambda calls to run your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Lambda programming model.
handler
- The name of the method within your code that Lambda calls to run your function. Handler is required if
the deployment package is a .zip file archive. The format includes the file name. It can also include
namespaces and other qualifiers, depending on the runtime. For more information, see Lambda programming
model.CreateFunctionRequest.Builder code(FunctionCode code)
The code for the function.
code
- The code for the function.default CreateFunctionRequest.Builder code(Consumer<FunctionCode.Builder> code)
The code for the function.
This is a convenience method that creates an instance of theFunctionCode.Builder
avoiding the need
to create one manually via FunctionCode.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to code(FunctionCode)
.
code
- a consumer that will call methods on FunctionCode.Builder
code(FunctionCode)
CreateFunctionRequest.Builder description(String description)
A description of the function.
description
- A description of the function.CreateFunctionRequest.Builder timeout(Integer timeout)
The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds. For more information, see Lambda execution environment.
timeout
- The amount of time (in seconds) that Lambda allows a function to run before stopping it. The default
is 3 seconds. The maximum allowed value is 900 seconds. For more information, see Lambda execution
environment.CreateFunctionRequest.Builder memorySize(Integer memorySize)
The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.
memorySize
- The amount of memory available to the function at runtime. Increasing the function memory also increases its
CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.CreateFunctionRequest.Builder publish(Boolean publish)
Set to true to publish the first version of the function during creation.
publish
- Set to true to publish the first version of the function during creation.CreateFunctionRequest.Builder vpcConfig(VpcConfig vpcConfig)
For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can access resources and the internet only through that VPC. For more information, see Configuring a Lambda function to access resources in a VPC.
vpcConfig
- For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups
and subnets in the VPC. When you connect a function to a VPC, it can access resources and the internet
only through that VPC. For more information, see Configuring a Lambda
function to access resources in a VPC.default CreateFunctionRequest.Builder vpcConfig(Consumer<VpcConfig.Builder> vpcConfig)
For network connectivity to Amazon Web Services resources in a VPC, specify a list of security groups and subnets in the VPC. When you connect a function to a VPC, it can access resources and the internet only through that VPC. For more information, see Configuring a Lambda function to access resources in a VPC.
This is a convenience method that creates an instance of theVpcConfig.Builder
avoiding the need to
create one manually via VpcConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to vpcConfig(VpcConfig)
.
vpcConfig
- a consumer that will call methods on VpcConfig.Builder
vpcConfig(VpcConfig)
CreateFunctionRequest.Builder packageType(String packageType)
The type of deployment package. Set to Image
for container image and set to Zip
for
.zip file archive.
packageType
- The type of deployment package. Set to Image
for container image and set to
Zip
for .zip file archive.PackageType
,
PackageType
CreateFunctionRequest.Builder packageType(PackageType packageType)
The type of deployment package. Set to Image
for container image and set to Zip
for
.zip file archive.
packageType
- The type of deployment package. Set to Image
for container image and set to
Zip
for .zip file archive.PackageType
,
PackageType
CreateFunctionRequest.Builder deadLetterConfig(DeadLetterConfig deadLetterConfig)
A dead-letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see Dead-letter queues.
deadLetterConfig
- A dead-letter queue configuration that specifies the queue or topic where Lambda sends asynchronous
events when they fail processing. For more information, see Dead-letter
queues.default CreateFunctionRequest.Builder deadLetterConfig(Consumer<DeadLetterConfig.Builder> deadLetterConfig)
A dead-letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see Dead-letter queues.
This is a convenience method that creates an instance of theDeadLetterConfig.Builder
avoiding the
need to create one manually via DeadLetterConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to deadLetterConfig(DeadLetterConfig)
.
deadLetterConfig
- a consumer that will call methods on DeadLetterConfig.Builder
deadLetterConfig(DeadLetterConfig)
CreateFunctionRequest.Builder environment(Environment environment)
Environment variables that are accessible from function code during execution.
environment
- Environment variables that are accessible from function code during execution.default CreateFunctionRequest.Builder environment(Consumer<Environment.Builder> environment)
Environment variables that are accessible from function code during execution.
This is a convenience method that creates an instance of theEnvironment.Builder
avoiding the need to
create one manually via Environment.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to environment(Environment)
.
environment
- a consumer that will call methods on Environment.Builder
environment(Environment)
CreateFunctionRequest.Builder kmsKeyArn(String kmsKeyArn)
The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your function's environment variables. When Lambda SnapStart is activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your function using a container image, Lambda also uses this key to encrypt your function when it's deployed. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, Lambda uses a default service key.
kmsKeyArn
- The ARN of the Key Management Service (KMS) customer managed key that's used to encrypt your
function's environment variables. When Lambda SnapStart is
activated, Lambda also uses this key is to encrypt your function's snapshot. If you deploy your
function using a container image, Lambda also uses this key to encrypt your function when it's
deployed. Note that this is not the same key that's used to protect your container image in the Amazon
Elastic Container Registry (Amazon ECR). If you don't provide a customer managed key, Lambda uses a
default service key.CreateFunctionRequest.Builder tracingConfig(TracingConfig tracingConfig)
Set Mode
to Active
to sample and trace a subset of incoming requests with X-Ray.
tracingConfig
- Set Mode
to Active
to sample and trace a subset of incoming requests with X-Ray.default CreateFunctionRequest.Builder tracingConfig(Consumer<TracingConfig.Builder> tracingConfig)
Set Mode
to Active
to sample and trace a subset of incoming requests with X-Ray.
TracingConfig.Builder
avoiding the need
to create one manually via TracingConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to tracingConfig(TracingConfig)
.
tracingConfig
- a consumer that will call methods on TracingConfig.Builder
tracingConfig(TracingConfig)
CreateFunctionRequest.Builder tags(Map<String,String> tags)
A list of tags to apply to the function.
tags
- A list of tags to apply to the
function.CreateFunctionRequest.Builder layers(Collection<String> layers)
A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
layers
- A list of function
layers to add to the function's execution environment. Specify each layer by its ARN, including
the version.CreateFunctionRequest.Builder layers(String... layers)
A list of function layers to add to the function's execution environment. Specify each layer by its ARN, including the version.
layers
- A list of function
layers to add to the function's execution environment. Specify each layer by its ARN, including
the version.CreateFunctionRequest.Builder fileSystemConfigs(Collection<FileSystemConfig> fileSystemConfigs)
Connection settings for an Amazon EFS file system.
fileSystemConfigs
- Connection settings for an Amazon EFS file system.CreateFunctionRequest.Builder fileSystemConfigs(FileSystemConfig... fileSystemConfigs)
Connection settings for an Amazon EFS file system.
fileSystemConfigs
- Connection settings for an Amazon EFS file system.CreateFunctionRequest.Builder fileSystemConfigs(Consumer<FileSystemConfig.Builder>... fileSystemConfigs)
Connection settings for an Amazon EFS file system.
This is a convenience method that creates an instance of theFileSystemConfig.Builder
avoiding the need to create one
manually via FileSystemConfig.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately
and its result is passed to #fileSystemConfigs(List
.
fileSystemConfigs
- a consumer that will call methods on
FileSystemConfig.Builder
#fileSystemConfigs(java.util.Collection)
CreateFunctionRequest.Builder imageConfig(ImageConfig imageConfig)
Container image configuration values that override the values in the container image Dockerfile.
imageConfig
- Container image configuration values that override the values in the container image Dockerfile.default CreateFunctionRequest.Builder imageConfig(Consumer<ImageConfig.Builder> imageConfig)
Container image configuration values that override the values in the container image Dockerfile.
This is a convenience method that creates an instance of theImageConfig.Builder
avoiding the need to
create one manually via ImageConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to imageConfig(ImageConfig)
.
imageConfig
- a consumer that will call methods on ImageConfig.Builder
imageConfig(ImageConfig)
CreateFunctionRequest.Builder codeSigningConfigArn(String codeSigningConfigArn)
To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function.
codeSigningConfigArn
- To enable code signing for this function, specify the ARN of a code-signing configuration. A
code-signing configuration includes a set of signing profiles, which define the trusted publishers for
this function.CreateFunctionRequest.Builder architecturesWithStrings(Collection<String> architectures)
The instruction set architecture that the function supports. Enter a string array with one of the valid
values (arm64 or x86_64). The default value is x86_64
.
architectures
- The instruction set architecture that the function supports. Enter a string array with one of the
valid values (arm64 or x86_64). The default value is x86_64
.CreateFunctionRequest.Builder architecturesWithStrings(String... architectures)
The instruction set architecture that the function supports. Enter a string array with one of the valid
values (arm64 or x86_64). The default value is x86_64
.
architectures
- The instruction set architecture that the function supports. Enter a string array with one of the
valid values (arm64 or x86_64). The default value is x86_64
.CreateFunctionRequest.Builder architectures(Collection<Architecture> architectures)
The instruction set architecture that the function supports. Enter a string array with one of the valid
values (arm64 or x86_64). The default value is x86_64
.
architectures
- The instruction set architecture that the function supports. Enter a string array with one of the
valid values (arm64 or x86_64). The default value is x86_64
.CreateFunctionRequest.Builder architectures(Architecture... architectures)
The instruction set architecture that the function supports. Enter a string array with one of the valid
values (arm64 or x86_64). The default value is x86_64
.
architectures
- The instruction set architecture that the function supports. Enter a string array with one of the
valid values (arm64 or x86_64). The default value is x86_64
.CreateFunctionRequest.Builder ephemeralStorage(EphemeralStorage ephemeralStorage)
The size of the function's /tmp
directory in MB. The default value is 512, but can be any whole
number between 512 and 10,240 MB.
ephemeralStorage
- The size of the function's /tmp
directory in MB. The default value is 512, but can be any
whole number between 512 and 10,240 MB.default CreateFunctionRequest.Builder ephemeralStorage(Consumer<EphemeralStorage.Builder> ephemeralStorage)
The size of the function's /tmp
directory in MB. The default value is 512, but can be any whole
number between 512 and 10,240 MB.
EphemeralStorage.Builder
avoiding the
need to create one manually via EphemeralStorage.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to ephemeralStorage(EphemeralStorage)
.
ephemeralStorage
- a consumer that will call methods on EphemeralStorage.Builder
ephemeralStorage(EphemeralStorage)
CreateFunctionRequest.Builder snapStart(SnapStart snapStart)
The function's SnapStart setting.
snapStart
- The function's SnapStart
setting.default CreateFunctionRequest.Builder snapStart(Consumer<SnapStart.Builder> snapStart)
The function's SnapStart setting.
This is a convenience method that creates an instance of theSnapStart.Builder
avoiding the need to
create one manually via SnapStart.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to snapStart(SnapStart)
.
snapStart
- a consumer that will call methods on SnapStart.Builder
snapStart(SnapStart)
CreateFunctionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration
in interface AwsRequest.Builder
CreateFunctionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration
in interface AwsRequest.Builder
Copyright © 2023. All rights reserved.