public class UpdateEventSourceMappingRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
UpdateEventSourceMapping operation
.
You can update an event source mapping. This is useful if you want to change the parameters of the existing mapping without losing your position in the stream. You can change which function will receive the stream records, but to change the stream itself, you must create a new mapping.
This operation requires permission for the
lambda:UpdateEventSourceMapping
action.
NOOP
Constructor and Description |
---|
UpdateEventSourceMappingRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateEventSourceMappingRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
Integer |
getBatchSize()
The maximum number of stream records that can be sent to your Lambda
function for a single invocation.
|
Boolean |
getEnabled()
Specifies whether AWS Lambda should actively poll the stream or not.
|
String |
getFunctionName()
The Lambda function to which you want the stream records sent.
|
String |
getUUID()
The event source mapping identifier.
|
int |
hashCode() |
Boolean |
isEnabled()
Specifies whether AWS Lambda should actively poll the stream or not.
|
void |
setBatchSize(Integer batchSize)
The maximum number of stream records that can be sent to your Lambda
function for a single invocation.
|
void |
setEnabled(Boolean enabled)
Specifies whether AWS Lambda should actively poll the stream or not.
|
void |
setFunctionName(String functionName)
The Lambda function to which you want the stream records sent.
|
void |
setUUID(String uUID)
The event source mapping identifier.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateEventSourceMappingRequest |
withBatchSize(Integer batchSize)
The maximum number of stream records that can be sent to your Lambda
function for a single invocation.
|
UpdateEventSourceMappingRequest |
withEnabled(Boolean enabled)
Specifies whether AWS Lambda should actively poll the stream or not.
|
UpdateEventSourceMappingRequest |
withFunctionName(String functionName)
The Lambda function to which you want the stream records sent.
|
UpdateEventSourceMappingRequest |
withUUID(String uUID)
The event source mapping identifier.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public String getUUID()
public void setUUID(String uUID)
uUID
- The event source mapping identifier.public UpdateEventSourceMappingRequest withUUID(String uUID)
Returns a reference to this object so that method calls can be chained together.
uUID
- The event source mapping identifier.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 - 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 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 - 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 Lambda function to which you want the stream records sent. 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 UpdateEventSourceMappingRequest 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 - 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 Lambda function to which you want the stream records sent. 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 Boolean isEnabled()
public void setEnabled(Boolean enabled)
enabled
- Specifies whether AWS Lambda should actively poll the stream or not.
If disabled, AWS Lambda will not poll the stream.public UpdateEventSourceMappingRequest withEnabled(Boolean enabled)
Returns a reference to this object so that method calls can be chained together.
enabled
- Specifies whether AWS Lambda should actively poll the stream or not.
If disabled, AWS Lambda will not poll the stream.public Boolean getEnabled()
public Integer getBatchSize()
Constraints:
Range: 1 - 10000
public void setBatchSize(Integer batchSize)
Constraints:
Range: 1 - 10000
batchSize
- The maximum number of stream records that can be sent to your Lambda
function for a single invocation.public UpdateEventSourceMappingRequest withBatchSize(Integer batchSize)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 10000
batchSize
- The maximum number of stream records that can be sent to your Lambda
function for a single invocation.public String toString()
toString
in class Object
Object.toString()
public UpdateEventSourceMappingRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.