@Generated(value="software.amazon.awssdk:codegen") public final class PublishVersionRequest extends LambdaRequest implements ToCopyableBuilder<PublishVersionRequest.Builder,PublishVersionRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
PublishVersionRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static PublishVersionRequest.Builder |
builder() |
String |
codeSha256()
The SHA256 hash of the deployment package you want to publish.
|
String |
description()
The description for the version you are publishing.
|
boolean |
equals(Object obj) |
String |
functionName()
The name of the lambda function.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
revisionId()
An optional value you can use to ensure you are updating the latest update of the function version or alias.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PublishVersionRequest.Builder> |
serializableBuilderClass() |
PublishVersionRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public 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.
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.
public String codeSha256()
The SHA256 hash of the deployment package you want to publish. This provides validation on the code you are publishing. If you provide this parameter, the value must match the SHA256 of the $LATEST version for the publication to succeed. You can use the DryRun parameter of UpdateFunctionCode to verify the hash value that will be returned before publishing your new version.
public String description()
The description for the version you are publishing. If not provided, AWS Lambda copies the description from the $LATEST version.
public String revisionId()
An optional value you can use to ensure you are updating the latest update of the function version or alias. If
the RevisionID
you pass doesn't match the latest RevisionId
of the function or alias,
it will fail with an error message, advising you retrieve the latest function version or alias
RevisionID
using either GetFunction or GetAlias.
RevisionID
you pass doesn't match the latest RevisionId
of the
function or alias, it will fail with an error message, advising you retrieve the latest function version
or alias RevisionID
using either GetFunction or GetAlias.public PublishVersionRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<PublishVersionRequest.Builder,PublishVersionRequest>
toBuilder
in class LambdaRequest
public static PublishVersionRequest.Builder builder()
public static Class<? extends PublishVersionRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.