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.
If you are using the versioning feature, note this API will always update the $LATEST version of your Lambda function. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases .
This operation requires permission for the
lambda:UpdateFunctionCode
action.
NOOP
Constructor and Description |
---|
UpdateFunctionCodeRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateFunctionCodeRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
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()
Based64-encoded .zip file containing your packaged source code.
|
int |
hashCode() |
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 |
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)
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 |
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)
Based64-encoded .zip file containing your packaged source code.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public String getFunctionName()
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.
Constraints:
Length: 1 - 140
Pattern: (arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?
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.
public void setFunctionName(String functionName)
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.
Constraints:
Length: 1 - 140
Pattern: (arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?
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.
public UpdateFunctionCodeRequest withFunctionName(String functionName)
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 a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 140
Pattern: (arn:aws:lambda:)?([a-z]{2}-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\$LATEST|[a-zA-Z0-9-_]+))?
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.
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 Boolean isPublish()
public void setPublish(Boolean publish)
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 UpdateFunctionCodeRequest withPublish(Boolean publish)
Returns a reference to this object so that method calls can be chained together.
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()
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.