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.
|
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 |
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 |
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 toString()
toString
in class Object
Object.toString()
public UpdateFunctionCodeRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2015. All rights reserved.