@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateFunctionCodeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateFunctionCodeRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateFunctionCodeRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<String> |
getArchitectures()
The instruction set architecture that the function supports.
|
Boolean |
getDryRun()
Set to true to validate the request parameters and access permissions without modifying the function code.
|
String |
getFunctionName()
The name or ARN of the Lambda function.
|
String |
getImageUri()
URI of a container image in the Amazon ECR registry.
|
Boolean |
getPublish()
Set to true to publish a new version of the function after updating the code.
|
String |
getRevisionId()
Update the function only if the revision ID matches the ID that's specified.
|
String |
getS3Bucket()
An Amazon S3 bucket in the same Amazon Web Services Region as your function.
|
String |
getS3Key()
The Amazon S3 key of the deployment package.
|
String |
getS3ObjectVersion()
For versioned objects, the version of the deployment package object to use.
|
ByteBuffer |
getZipFile()
The base64-encoded contents of the deployment package.
|
int |
hashCode() |
Boolean |
isDryRun()
Set to true to validate the request parameters and access permissions without modifying the function code.
|
Boolean |
isPublish()
Set to true to publish a new version of the function after updating the code.
|
void |
setArchitectures(Collection<String> architectures)
The instruction set architecture that the function supports.
|
void |
setDryRun(Boolean dryRun)
Set to true to validate the request parameters and access permissions without modifying the function code.
|
void |
setFunctionName(String functionName)
The name or ARN of the Lambda function.
|
void |
setImageUri(String imageUri)
URI of a container image in the Amazon ECR registry.
|
void |
setPublish(Boolean publish)
Set to true to publish a new version of the function after updating the code.
|
void |
setRevisionId(String revisionId)
Update the function only if the revision ID matches the ID that's specified.
|
void |
setS3Bucket(String s3Bucket)
An Amazon S3 bucket in the same Amazon Web Services Region as your function.
|
void |
setS3Key(String s3Key)
The Amazon S3 key of the deployment package.
|
void |
setS3ObjectVersion(String s3ObjectVersion)
For versioned objects, the version of the deployment package object to use.
|
void |
setZipFile(ByteBuffer zipFile)
The base64-encoded contents of the deployment package.
|
String |
toString()
Returns a string representation of this object.
|
UpdateFunctionCodeRequest |
withArchitectures(Architecture... architectures)
The instruction set architecture that the function supports.
|
UpdateFunctionCodeRequest |
withArchitectures(Collection<String> architectures)
The instruction set architecture that the function supports.
|
UpdateFunctionCodeRequest |
withArchitectures(String... architectures)
The instruction set architecture that the function supports.
|
UpdateFunctionCodeRequest |
withDryRun(Boolean dryRun)
Set to true to validate the request parameters and access permissions without modifying the function code.
|
UpdateFunctionCodeRequest |
withFunctionName(String functionName)
The name or ARN of the Lambda function.
|
UpdateFunctionCodeRequest |
withImageUri(String imageUri)
URI of a container image in the Amazon ECR registry.
|
UpdateFunctionCodeRequest |
withPublish(Boolean publish)
Set to true to publish a new version of the function after updating the code.
|
UpdateFunctionCodeRequest |
withRevisionId(String revisionId)
Update the function only if the revision ID matches the ID that's specified.
|
UpdateFunctionCodeRequest |
withS3Bucket(String s3Bucket)
An Amazon S3 bucket in the same Amazon Web Services Region as your function.
|
UpdateFunctionCodeRequest |
withS3Key(String s3Key)
The Amazon S3 key of the deployment package.
|
UpdateFunctionCodeRequest |
withS3ObjectVersion(String s3ObjectVersion)
For versioned objects, the version of the deployment package object to use.
|
UpdateFunctionCodeRequest |
withZipFile(ByteBuffer zipFile)
The base64-encoded contents of the deployment package.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setFunctionName(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.
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.
public String getFunctionName()
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.
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.
public UpdateFunctionCodeRequest withFunctionName(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.
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.
public void setZipFile(ByteBuffer 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.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
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.public ByteBuffer getZipFile()
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.
ByteBuffer
s are stateful. Calling their get
methods changes their position
. We recommend
using ByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independent
position
, and calling get
methods on this rather than directly on the returned ByteBuffer
.
Doing so will ensure that anyone else using the ByteBuffer
will not be affected by changes to the
position
.
public UpdateFunctionCodeRequest withZipFile(ByteBuffer 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.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
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.public void setS3Bucket(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.
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.public String getS3Bucket()
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.
public UpdateFunctionCodeRequest withS3Bucket(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.
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.public void setS3Key(String s3Key)
The Amazon S3 key of the deployment package. Use only with a function defined with a .zip file archive deployment package.
s3Key
- The Amazon S3 key of the deployment package. Use only with a function defined with a .zip file archive
deployment package.public String getS3Key()
The Amazon S3 key of the deployment package. Use only with a function defined with a .zip file archive deployment package.
public UpdateFunctionCodeRequest withS3Key(String s3Key)
The Amazon S3 key of the deployment package. Use only with a function defined with a .zip file archive deployment package.
s3Key
- The Amazon S3 key of the deployment package. Use only with a function defined with a .zip file archive
deployment package.public void setS3ObjectVersion(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.public String getS3ObjectVersion()
For versioned objects, the version of the deployment package object to use.
public UpdateFunctionCodeRequest withS3ObjectVersion(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.public void setImageUri(String imageUri)
URI of a container image in the Amazon ECR registry. Do not use for a function defined with a .zip file archive.
imageUri
- URI of a container image in the Amazon ECR registry. Do not use for a function defined with a .zip file
archive.public String getImageUri()
URI of a container image in the Amazon ECR registry. Do not use for a function defined with a .zip file archive.
public UpdateFunctionCodeRequest withImageUri(String imageUri)
URI of a container image in the Amazon ECR registry. Do not use for a function defined with a .zip file archive.
imageUri
- URI of a container image in the Amazon ECR registry. Do not use for a function defined with a .zip file
archive.public void setPublish(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.public Boolean getPublish()
Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately.
public UpdateFunctionCodeRequest withPublish(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.public Boolean isPublish()
Set to true to publish a new version of the function after updating the code. This has the same effect as calling PublishVersion separately.
public void setDryRun(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.public Boolean getDryRun()
Set to true to validate the request parameters and access permissions without modifying the function code.
public UpdateFunctionCodeRequest withDryRun(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.public Boolean isDryRun()
Set to true to validate the request parameters and access permissions without modifying the function code.
public void setRevisionId(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.
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.public String getRevisionId()
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.
public UpdateFunctionCodeRequest withRevisionId(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.
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.public List<String> getArchitectures()
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
.
x86_64
.Architecture
public void setArchitectures(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
.
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
.Architecture
public UpdateFunctionCodeRequest withArchitectures(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
.
NOTE: This method appends the values to the existing list (if any). Use
setArchitectures(java.util.Collection)
or withArchitectures(java.util.Collection)
if you want
to override the existing values.
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
.Architecture
public UpdateFunctionCodeRequest withArchitectures(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
.
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
.Architecture
public UpdateFunctionCodeRequest withArchitectures(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
.
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
.Architecture
public String toString()
toString
in class Object
Object.toString()
public UpdateFunctionCodeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()