@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FunctionCode extends Object implements Serializable, Cloneable, StructuredPojo
The code for the Lambda function. You can either specify an object in Amazon S3, upload a .zip file archive deployment package directly, or specify the URI of a container image.
Constructor and Description |
---|
FunctionCode() |
Modifier and Type | Method and Description |
---|---|
FunctionCode |
clone() |
boolean |
equals(Object obj) |
String |
getImageUri()
URI of a container image in the
Amazon ECR registry.
|
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() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setImageUri(String imageUri)
URI of a container image in the
Amazon ECR registry.
|
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.
|
FunctionCode |
withImageUri(String imageUri)
URI of a container image in the
Amazon ECR registry.
|
FunctionCode |
withS3Bucket(String s3Bucket)
An Amazon S3 bucket in the same Amazon Web Services Region as your function.
|
FunctionCode |
withS3Key(String s3Key)
The Amazon S3 key of the deployment package.
|
FunctionCode |
withS3ObjectVersion(String s3ObjectVersion)
For versioned objects, the version of the deployment package object to use.
|
FunctionCode |
withZipFile(ByteBuffer zipFile)
The base64-encoded contents of the deployment package.
|
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.
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.public ByteBuffer getZipFile()
The base64-encoded contents of the deployment package. Amazon Web Services SDK and CLI clients handle the encoding for you.
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 FunctionCode withZipFile(ByteBuffer zipFile)
The base64-encoded contents of the deployment package. Amazon Web Services SDK and CLI clients handle the encoding for you.
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.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.
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.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.
public FunctionCode 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.
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.public void setS3Key(String s3Key)
The Amazon S3 key of the deployment package.
s3Key
- The Amazon S3 key of the deployment package.public String getS3Key()
The Amazon S3 key of the deployment package.
public FunctionCode withS3Key(String s3Key)
The Amazon S3 key of the deployment package.
s3Key
- The Amazon S3 key of the 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 FunctionCode 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.
imageUri
- URI of a container image in
the Amazon ECR registry.public String getImageUri()
URI of a container image in the Amazon ECR registry.
public FunctionCode withImageUri(String imageUri)
URI of a container image in the Amazon ECR registry.
imageUri
- URI of a container image in
the Amazon ECR registry.public String toString()
toString
in class Object
Object.toString()
public FunctionCode clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2023. All rights reserved.