public class UpdateFunctionCodeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
UpdateFunctionCode operation
.
Updates the code for the specified Lambda function. This operation must only be used on an existing Lambda function and cannot be used to update the function configuration.
This operation requires permission for the
lambda:UpdateFunctionCode
action.
NOOP
Constructor and Description |
---|
UpdateFunctionCodeRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateFunctionCodeRequest |
clone() |
boolean |
equals(Object obj) |
String |
getFunctionName()
The existing Lambda function name whose code you want to replace.
|
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()
Based64-encoded .zip file containing your packaged source code.
|
int |
hashCode() |
void |
setFunctionName(String functionName)
The existing Lambda function name whose code you want to replace.
|
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)
Based64-encoded .zip file containing your packaged source code.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateFunctionCodeRequest |
withFunctionName(String functionName)
The existing Lambda function name whose code you want to replace.
|
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)
Based64-encoded .zip file containing your packaged source code.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getFunctionName()
You can specify an unqualified 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 only the account ID qualifier (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.
Constraints:
Length: 1 - 111
Pattern: (arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)
You can specify an unqualified 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 only the account ID qualifier (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.
public void setFunctionName(String functionName)
You can specify an unqualified 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 only the account ID qualifier (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.
Constraints:
Length: 1 - 111
Pattern: (arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)
functionName
- The existing Lambda function name whose code you want to replace. You can specify an unqualified 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 only the account ID qualifier (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.
public UpdateFunctionCodeRequest withFunctionName(String functionName)
You can specify an unqualified 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 only the account ID qualifier (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 a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 111
Pattern: (arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)
functionName
- The existing Lambda function name whose code you want to replace. You can specify an unqualified 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 only the account ID qualifier (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.
public ByteBuffer getZipFile()
public void setZipFile(ByteBuffer zipFile)
zipFile
- Based64-encoded .zip file containing your packaged source code.public UpdateFunctionCodeRequest withZipFile(ByteBuffer zipFile)
Returns a reference to this object so that method calls can be chained together.
zipFile
- Based64-encoded .zip file containing your packaged source code.public String getS3Bucket()
Constraints:
Length: 3 - 63
Pattern: ^[0-9A-Za-z\.\-_]*(?
public void setS3Bucket(String s3Bucket)
Constraints:
Length: 3 - 63
Pattern: ^[0-9A-Za-z\.\-_]*(?
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 UpdateFunctionCodeRequest withS3Bucket(String s3Bucket)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 3 - 63
Pattern: ^[0-9A-Za-z\.\-_]*(?
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 getS3Key()
Constraints:
Length: 1 - 1024
public void setS3Key(String s3Key)
Constraints:
Length: 1 - 1024
s3Key
- The Amazon S3 object (the deployment package) key name you want to
upload.public UpdateFunctionCodeRequest withS3Key(String s3Key)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
s3Key
- The Amazon S3 object (the deployment package) key name you want to
upload.public String getS3ObjectVersion()
Constraints:
Length: 1 - 1024
public void setS3ObjectVersion(String s3ObjectVersion)
Constraints:
Length: 1 - 1024
s3ObjectVersion
- The Amazon S3 object (the deployment package) version you want to
upload.public UpdateFunctionCodeRequest withS3ObjectVersion(String s3ObjectVersion)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
s3ObjectVersion
- The Amazon S3 object (the deployment package) version you want to
upload.public String toString()
toString
in class Object
Object.toString()
public UpdateFunctionCodeRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2015. All rights reserved.