Interface UpdateFunctionCodeRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateFunctionCodeRequest.Builder,UpdateFunctionCodeRequest>
,LambdaRequest.Builder
,SdkBuilder<UpdateFunctionCodeRequest.Builder,UpdateFunctionCodeRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- UpdateFunctionCodeRequest
public static interface UpdateFunctionCodeRequest.Builder extends LambdaRequest.Builder, SdkPojo, CopyableBuilder<UpdateFunctionCodeRequest.Builder,UpdateFunctionCodeRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UpdateFunctionCodeRequest.Builder
architectures(Collection<Architecture> architectures)
The instruction set architecture that the function supports.UpdateFunctionCodeRequest.Builder
architectures(Architecture... architectures)
The instruction set architecture that the function supports.UpdateFunctionCodeRequest.Builder
architecturesWithStrings(String... architectures)
The instruction set architecture that the function supports.UpdateFunctionCodeRequest.Builder
architecturesWithStrings(Collection<String> architectures)
The instruction set architecture that the function supports.UpdateFunctionCodeRequest.Builder
dryRun(Boolean dryRun)
Set to true to validate the request parameters and access permissions without modifying the function code.UpdateFunctionCodeRequest.Builder
functionName(String functionName)
The name or ARN of the Lambda function.UpdateFunctionCodeRequest.Builder
imageUri(String imageUri)
URI of a container image in the Amazon ECR registry.UpdateFunctionCodeRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
UpdateFunctionCodeRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
UpdateFunctionCodeRequest.Builder
publish(Boolean publish)
Set to true to publish a new version of the function after updating the code.UpdateFunctionCodeRequest.Builder
revisionId(String revisionId)
Update the function only if the revision ID matches the ID that's specified.UpdateFunctionCodeRequest.Builder
s3Bucket(String s3Bucket)
An Amazon S3 bucket in the same Amazon Web Services Region as your function.UpdateFunctionCodeRequest.Builder
s3Key(String s3Key)
The Amazon S3 key of the deployment package.UpdateFunctionCodeRequest.Builder
s3ObjectVersion(String s3ObjectVersion)
For versioned objects, the version of the deployment package object to use.UpdateFunctionCodeRequest.Builder
zipFile(SdkBytes zipFile)
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 Detail
-
functionName
UpdateFunctionCodeRequest.Builder functionName(String functionName)
The name or ARN 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 or ARN 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
UpdateFunctionCodeRequest.Builder zipFile(SdkBytes 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
UpdateFunctionCodeRequest.Builder s3Bucket(String 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
UpdateFunctionCodeRequest.Builder s3Key(String 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
UpdateFunctionCodeRequest.Builder s3ObjectVersion(String 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
UpdateFunctionCodeRequest.Builder imageUri(String 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
UpdateFunctionCodeRequest.Builder publish(Boolean 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
UpdateFunctionCodeRequest.Builder dryRun(Boolean 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
UpdateFunctionCodeRequest.Builder revisionId(String 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
UpdateFunctionCodeRequest.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
.- 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
UpdateFunctionCodeRequest.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
.- 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
UpdateFunctionCodeRequest.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
.- 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
UpdateFunctionCodeRequest.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
.- 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)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
UpdateFunctionCodeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-