Class UpdateFunctionCodeRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The existing Lambda function name whose code you want to replace.This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation.Amazon S3 bucket name where the .zip file containing your deployment package is stored.getS3Key()
The Amazon S3 object (the deployment package) key name you want to upload.The Amazon S3 object (the deployment package) version you want to upload.Based64-encoded .zip file containing your packaged source code.int
hashCode()
This boolean parameter can be used to request 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
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) Based64-encoded .zip file containing your packaged source code.toString()
Returns a string representation of this object; useful for testing and debugging.withFunctionName
(String functionName) The existing Lambda function name whose code you want to replace.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.withS3Bucket
(String s3Bucket) Amazon S3 bucket name where the .zip file containing your deployment package is stored.The Amazon S3 object (the deployment package) key name you want to upload.withS3ObjectVersion
(String s3ObjectVersion) The Amazon S3 object (the deployment package) version you want to upload.withZipFile
(ByteBuffer zipFile) Based64-encoded .zip file containing your packaged source code.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
UpdateFunctionCodeRequest
public UpdateFunctionCodeRequest()
-
-
Method Details
-
setFunctionName
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 character in length.- Parameters:
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 character in length.
-
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 character in length.- Returns:
- 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 character in length.
-
withFunctionName
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 character in length.- Parameters:
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 character in length.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setZipFile
Based64-encoded .zip file containing your packaged source code.
AWS SDK for Java performs a Base64 encoding on this field before sending this request to AWS service by default. 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.
- Parameters:
zipFile
- Based64-encoded .zip file containing your packaged source code.
-
getZipFile
Based64-encoded .zip file containing your packaged source code.
ByteBuffer
s are stateful. Calling theirget
methods changes theirposition
. We recommend usingByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independentposition
, and callingget
methods on this rather than directly on the returnedByteBuffer
. Doing so will ensure that anyone else using theByteBuffer
will not be affected by changes to theposition
.- Returns:
- Based64-encoded .zip file containing your packaged source code.
-
withZipFile
Based64-encoded .zip file containing your packaged source code.
- Parameters:
zipFile
- Based64-encoded .zip file containing your packaged source code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setS3Bucket
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.
- Parameters:
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.
-
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.
- Returns:
- 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.
-
withS3Bucket
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setS3Key
The Amazon S3 object (the deployment package) key name you want to upload.
- Parameters:
s3Key
- The Amazon S3 object (the deployment package) key name you want to upload.
-
getS3Key
The Amazon S3 object (the deployment package) key name you want to upload.
- Returns:
- The Amazon S3 object (the deployment package) key name you want to upload.
-
withS3Key
The Amazon S3 object (the deployment package) key name you want to upload.
- Parameters:
s3Key
- The Amazon S3 object (the deployment package) key name you want to upload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setS3ObjectVersion
The Amazon S3 object (the deployment package) version you want to upload.
- Parameters:
s3ObjectVersion
- The Amazon S3 object (the deployment package) version you want to upload.
-
getS3ObjectVersion
The Amazon S3 object (the deployment package) version you want to upload.
- Returns:
- The Amazon S3 object (the deployment package) version you want to upload.
-
withS3ObjectVersion
The Amazon S3 object (the deployment package) version you want to upload.
- Parameters:
s3ObjectVersion
- The Amazon S3 object (the deployment package) version you want to upload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPublish
This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation.
- Parameters:
publish
- This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation.
-
getPublish
This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation.
- Returns:
- This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation.
-
withPublish
This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation.
- Parameters:
publish
- This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isPublish
This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation.
- Returns:
- This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-