Interface UpdateFunctionCodeRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateFunctionCodeRequest.Builder,
,UpdateFunctionCodeRequest> LambdaRequest.Builder
,SdkBuilder<UpdateFunctionCodeRequest.Builder,
,UpdateFunctionCodeRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateFunctionCodeRequest
-
Method Summary
Modifier and TypeMethodDescriptionarchitectures
(Collection<Architecture> architectures) The instruction set architecture that the function supports.architectures
(Architecture... architectures) The instruction set architecture that the function supports.architecturesWithStrings
(String... architectures) The instruction set architecture that the function supports.architecturesWithStrings
(Collection<String> architectures) The instruction set architecture that the function supports.Set to true to validate the request parameters and access permissions without modifying the function code.functionName
(String functionName) The name of the Lambda function.URI of a container image in the Amazon ECR registry.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Set to true to publish a new version of the function after updating the code.revisionId
(String revisionId) Update the function only if the revision ID matches the ID that's specified.An Amazon S3 bucket in the same Amazon Web Services Region as your function.The Amazon S3 key of the deployment package.s3ObjectVersion
(String s3ObjectVersion) For versioned objects, the version of the deployment package object to use.The base64-encoded contents of the deployment package.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.lambda.model.LambdaRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
zipFile
The base64-encoded contents of the deployment package. Amazon Web Services SDK and CLI clients handle the encoding for you. Use only with a function defined with a .zip file archive deployment package.
- Parameters:
zipFile
- The base64-encoded contents of the deployment package. Amazon Web Services SDK and CLI clients handle the encoding for you. Use only with a function defined with a .zip file archive deployment package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3Bucket
An Amazon S3 bucket in the same Amazon Web Services Region as your function. The bucket can be in a different Amazon Web Services account. Use only with a function defined with a .zip file archive deployment package.
- Parameters:
s3Bucket
- An Amazon S3 bucket in the same Amazon Web Services Region as your function. The bucket can be in a different Amazon Web Services account. Use only with a function defined with a .zip file archive deployment package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3Key
The Amazon S3 key of the deployment package. Use only with a function defined with a .zip file archive deployment package.
- Parameters:
s3Key
- The Amazon S3 key of the deployment package. Use only with a function defined with a .zip file archive deployment package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
s3ObjectVersion
For versioned objects, the version of the deployment package object to use.
- Parameters:
s3ObjectVersion
- For versioned objects, the version of the deployment package object to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageUri
URI of a container image in the Amazon ECR registry. Do not use for a function defined with a .zip file archive.
- Parameters:
imageUri
- URI of a container image in the Amazon ECR registry. Do not use for a function defined with a .zip file archive.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publish
Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately.
- Parameters:
publish
- Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
Set to true to validate the request parameters and access permissions without modifying the function code.
- Parameters:
dryRun
- Set to true to validate the request parameters and access permissions without modifying the function code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
revisionId
Update the function only if the revision ID matches the ID that's specified. Use this option to avoid modifying a function that has changed since you last read it.
- Parameters:
revisionId
- Update the function only if the revision ID matches the ID that's specified. Use this option to avoid modifying a function that has changed since you last read it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
architecturesWithStrings
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
.- Parameters:
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 isx86_64
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
architecturesWithStrings
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
.- Parameters:
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 isx86_64
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
.- Parameters:
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 isx86_64
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
.- Parameters:
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 isx86_64
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateFunctionCodeRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateFunctionCodeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-