public static interface UpdateFunctionCodeRequest.Builder extends LambdaRequest.Builder, SdkPojo, CopyableBuilder<UpdateFunctionCodeRequest.Builder,UpdateFunctionCodeRequest>
Modifier and Type | Method and Description |
---|---|
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 of the Lambda function.
|
UpdateFunctionCodeRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
UpdateFunctionCodeRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
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)
Only update the function if the revision ID matches the ID that's specified.
|
UpdateFunctionCodeRequest.Builder |
s3Bucket(String s3Bucket)
An Amazon S3 bucket in the same AWS 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.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
UpdateFunctionCodeRequest.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.
UpdateFunctionCodeRequest.Builder zipFile(SdkBytes zipFile)
The base64-encoded contents of the deployment package. AWS SDK and AWS CLI clients handle the encoding for you.
zipFile
- The base64-encoded contents of the deployment package. AWS SDK and AWS CLI clients handle the encoding
for you.UpdateFunctionCodeRequest.Builder s3Bucket(String s3Bucket)
An Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account.
s3Bucket
- An Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS
account.UpdateFunctionCodeRequest.Builder s3Key(String s3Key)
The Amazon S3 key of the deployment package.
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.
s3ObjectVersion
- For versioned objects, the version of the deployment package object to use.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.
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.UpdateFunctionCodeRequest.Builder dryRun(Boolean dryRun)
Set to true to validate the request parameters and access permissions without modifying the function code.
dryRun
- Set to true to validate the request parameters and access permissions without modifying the function
code.UpdateFunctionCodeRequest.Builder revisionId(String revisionId)
Only update the function 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.
revisionId
- Only update the function 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.UpdateFunctionCodeRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration
in interface AwsRequest.Builder
UpdateFunctionCodeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration
in interface AwsRequest.Builder
Copyright © 2020. All rights reserved.