@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) |
Boolean |
getDryRun()
This boolean parameter can be used to test your request to AWS Lambda to update the Lambda function and publish a
version as an atomic operation.
|
String |
getFunctionName()
The existing Lambda function name whose code you want to replace.
|
Boolean |
getPublish()
This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as
an atomic operation.
|
String |
getS3Bucket()
Amazon S3 bucket name where the .zip file containing your deployment package is stored.
|
String |
getS3Key()
The Amazon S3 object (the deployment package) key name you want to upload.
|
String |
getS3ObjectVersion()
The Amazon S3 object (the deployment package) version you want to upload.
|
ByteBuffer |
getZipFile()
The contents of your zip file containing your deployment package.
|
int |
hashCode() |
Boolean |
isDryRun()
This boolean parameter can be used to test your request to AWS Lambda to update the Lambda function and publish a
version as an atomic operation.
|
Boolean |
isPublish()
This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as
an atomic operation.
|
void |
setDryRun(Boolean dryRun)
This boolean parameter can be used to test your request to AWS Lambda to update the Lambda function and publish a
version as an atomic operation.
|
void |
setFunctionName(String functionName)
The existing Lambda function name whose code you want to replace.
|
void |
setPublish(Boolean publish)
This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as
an atomic operation.
|
void |
setS3Bucket(String s3Bucket)
Amazon S3 bucket name where the .zip file containing your deployment package is stored.
|
void |
setS3Key(String s3Key)
The Amazon S3 object (the deployment package) key name you want to upload.
|
void |
setS3ObjectVersion(String s3ObjectVersion)
The Amazon S3 object (the deployment package) version you want to upload.
|
void |
setZipFile(ByteBuffer zipFile)
The contents of your zip file containing your deployment package.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
UpdateFunctionCodeRequest |
withDryRun(Boolean dryRun)
This boolean parameter can be used to test your request to AWS Lambda to update the Lambda function and publish a
version as an atomic operation.
|
UpdateFunctionCodeRequest |
withFunctionName(String functionName)
The existing Lambda function name whose code you want to replace.
|
UpdateFunctionCodeRequest |
withPublish(Boolean publish)
This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as
an atomic operation.
|
UpdateFunctionCodeRequest |
withS3Bucket(String s3Bucket)
Amazon S3 bucket name where the .zip file containing your deployment package is stored.
|
UpdateFunctionCodeRequest |
withS3Key(String s3Key)
The Amazon S3 object (the deployment package) key name you want to upload.
|
UpdateFunctionCodeRequest |
withS3ObjectVersion(String s3ObjectVersion)
The Amazon S3 object (the deployment package) version you want to upload.
|
UpdateFunctionCodeRequest |
withZipFile(ByteBuffer zipFile)
The contents of your zip file containing your 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 existing Lambda function name whose code you want to replace.
You can specify a function name (for example, Thumbnail
) or you can specify Amazon Resource Name
(ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail
). AWS
Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail
). Note that the
length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 characters
in length.
functionName
- The existing Lambda function name whose code you want to replace.
You can specify a function name (for example, Thumbnail
) or you can specify Amazon Resource
Name (ARN) of the function (for example,
arn:aws:lambda:us-west-2:account-id:function:ThumbNail
). AWS Lambda also allows you to
specify a partial ARN (for example, account-id:Thumbnail
). Note that the length constraint
applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length.
public String getFunctionName()
The existing Lambda function name whose code you want to replace.
You can specify a function name (for example, Thumbnail
) or you can specify Amazon Resource Name
(ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail
). AWS
Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail
). Note that the
length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 characters
in length.
You can specify a function name (for example, Thumbnail
) or you can specify Amazon Resource
Name (ARN) of the function (for example,
arn:aws:lambda:us-west-2:account-id:function:ThumbNail
). AWS Lambda also allows you to
specify a partial ARN (for example, account-id:Thumbnail
). Note that the length constraint
applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length.
public UpdateFunctionCodeRequest withFunctionName(String functionName)
The existing Lambda function name whose code you want to replace.
You can specify a function name (for example, Thumbnail
) or you can specify Amazon Resource Name
(ARN) of the function (for example, arn:aws:lambda:us-west-2:account-id:function:ThumbNail
). AWS
Lambda also allows you to specify a partial ARN (for example, account-id:Thumbnail
). Note that the
length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 characters
in length.
functionName
- The existing Lambda function name whose code you want to replace.
You can specify a function name (for example, Thumbnail
) or you can specify Amazon Resource
Name (ARN) of the function (for example,
arn:aws:lambda:us-west-2:account-id:function:ThumbNail
). AWS Lambda also allows you to
specify a partial ARN (for example, account-id:Thumbnail
). Note that the length constraint
applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length.
public void setZipFile(ByteBuffer zipFile)
The contents of your zip file containing your deployment package. If you are using the web API directly, the contents of the zip file must be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the encoding for you. For more information about creating a .zip file, see Execution Permissions in the AWS Lambda Developer Guide.
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 contents of your zip file containing your deployment package. If you are using the web API directly,
the contents of the zip file must be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the
SDKs or CLI will do the encoding for you. For more information about creating a .zip file, see Execution Permissions in the AWS Lambda Developer Guide.public ByteBuffer getZipFile()
The contents of your zip file containing your deployment package. If you are using the web API directly, the contents of the zip file must be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the encoding for you. For more information about creating a .zip file, see Execution Permissions in the AWS Lambda Developer Guide.
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 contents of your zip file containing your deployment package. If you are using the web API directly, the contents of the zip file must be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the SDKs or CLI will do the encoding for you. For more information about creating a .zip file, see Execution Permissions in the AWS Lambda Developer Guide.
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 contents of your zip file containing your deployment package. If you are using the web API directly,
the contents of the zip file must be base64-encoded. If you are using the AWS SDKs or the AWS CLI, the
SDKs or CLI will do the encoding for you. For more information about creating a .zip file, see Execution Permissions in the AWS Lambda Developer Guide.public void setS3Bucket(String s3Bucket)
Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must reside in the same AWS Region where you are creating the Lambda function.
s3Bucket
- Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must
reside in the same AWS Region where you are creating the Lambda function.public String getS3Bucket()
Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must reside in the same AWS Region where you are creating the Lambda function.
public UpdateFunctionCodeRequest withS3Bucket(String s3Bucket)
Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must reside in the same AWS Region where you are creating the Lambda function.
s3Bucket
- Amazon S3 bucket name where the .zip file containing your deployment package is stored. This bucket must
reside in the same AWS Region where you are creating the Lambda function.public void setS3Key(String s3Key)
The Amazon S3 object (the deployment package) key name you want to upload.
s3Key
- The Amazon S3 object (the deployment package) key name you want to upload.public String getS3Key()
The Amazon S3 object (the deployment package) key name you want to upload.
public UpdateFunctionCodeRequest withS3Key(String s3Key)
The Amazon S3 object (the deployment package) key name you want to upload.
s3Key
- The Amazon S3 object (the deployment package) key name you want to upload.public void setS3ObjectVersion(String s3ObjectVersion)
The Amazon S3 object (the deployment package) version you want to upload.
s3ObjectVersion
- The Amazon S3 object (the deployment package) version you want to upload.public String getS3ObjectVersion()
The Amazon S3 object (the deployment package) version you want to upload.
public UpdateFunctionCodeRequest withS3ObjectVersion(String s3ObjectVersion)
The Amazon S3 object (the deployment package) version you want to upload.
s3ObjectVersion
- The Amazon S3 object (the deployment package) version you want to upload.public void setPublish(Boolean publish)
This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation.
publish
- This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a
version as an atomic operation.public Boolean getPublish()
This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation.
public UpdateFunctionCodeRequest withPublish(Boolean publish)
This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation.
publish
- This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a
version as an atomic operation.public Boolean isPublish()
This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation.
public void setDryRun(Boolean dryRun)
This boolean parameter can be used to test your request to AWS Lambda to update the Lambda function and publish a
version as an atomic operation. It will do all necessary computation and validation of your code but will not
upload it or a publish a version. Each time this operation is invoked, the CodeSha256
hash value the
provided code will also be computed and returned in the response.
dryRun
- This boolean parameter can be used to test your request to AWS Lambda to update the Lambda function and
publish a version as an atomic operation. It will do all necessary computation and validation of your code
but will not upload it or a publish a version. Each time this operation is invoked, the
CodeSha256
hash value the provided code will also be computed and returned in the response.public Boolean getDryRun()
This boolean parameter can be used to test your request to AWS Lambda to update the Lambda function and publish a
version as an atomic operation. It will do all necessary computation and validation of your code but will not
upload it or a publish a version. Each time this operation is invoked, the CodeSha256
hash value the
provided code will also be computed and returned in the response.
CodeSha256
hash value the provided code will also be computed and returned in the response.public UpdateFunctionCodeRequest withDryRun(Boolean dryRun)
This boolean parameter can be used to test your request to AWS Lambda to update the Lambda function and publish a
version as an atomic operation. It will do all necessary computation and validation of your code but will not
upload it or a publish a version. Each time this operation is invoked, the CodeSha256
hash value the
provided code will also be computed and returned in the response.
dryRun
- This boolean parameter can be used to test your request to AWS Lambda to update the Lambda function and
publish a version as an atomic operation. It will do all necessary computation and validation of your code
but will not upload it or a publish a version. Each time this operation is invoked, the
CodeSha256
hash value the provided code will also be computed and returned in the response.public Boolean isDryRun()
This boolean parameter can be used to test your request to AWS Lambda to update the Lambda function and publish a
version as an atomic operation. It will do all necessary computation and validation of your code but will not
upload it or a publish a version. Each time this operation is invoked, the CodeSha256
hash value the
provided code will also be computed and returned in the response.
CodeSha256
hash value the provided code will also be computed and returned in the response.public String toString()
toString
in class Object
Object.toString()
public UpdateFunctionCodeRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.