public static interface PublishVersionRequest.Builder extends LambdaRequest.Builder, SdkPojo, CopyableBuilder<PublishVersionRequest.Builder,PublishVersionRequest>
Modifier and Type | Method and Description |
---|---|
PublishVersionRequest.Builder |
codeSha256(String codeSha256)
Only publish a version if the hash value matches the value that's specified.
|
PublishVersionRequest.Builder |
description(String description)
A description for the version to override the description in the function configuration.
|
PublishVersionRequest.Builder |
functionName(String functionName)
The name of the Lambda function.
|
PublishVersionRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
PublishVersionRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
PublishVersionRequest.Builder |
revisionId(String revisionId)
Only update the function if the revision ID matches the ID that's specified.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
copy
applyMutation, build
PublishVersionRequest.Builder functionName(String functionName)
The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
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 - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
PublishVersionRequest.Builder codeSha256(String codeSha256)
Only publish a version if the hash value matches the value that's specified. Use this option to avoid publishing a version if the function code has changed since you last updated it. You can get the hash for the version that you uploaded from the output of UpdateFunctionCode.
codeSha256
- Only publish a version if the hash value matches the value that's specified. Use this option to avoid
publishing a version if the function code has changed since you last updated it. You can get the hash
for the version that you uploaded from the output of UpdateFunctionCode.PublishVersionRequest.Builder description(String description)
A description for the version to override the description in the function configuration.
description
- A description for the version to override the description in the function configuration.PublishVersionRequest.Builder revisionId(String revisionId)
Only update the function if the revision ID matches the ID that's specified. Use this option to avoid publishing a version if the function configuration has changed since you last updated it.
revisionId
- Only update the function if the revision ID matches the ID that's specified. Use this option to avoid
publishing a version if the function configuration has changed since you last updated it.PublishVersionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.PublishVersionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.