@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateEventSourceMappingRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateEventSourceMappingRequest() |
Modifier and Type | Method and Description |
---|---|
CreateEventSourceMappingRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Integer |
getBatchSize()
The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your
function.
|
Boolean |
getEnabled()
Set to false to disable the event source upon creation.
|
String |
getEventSourceArn()
The Amazon Resource Name (ARN) of the event source.
|
String |
getFunctionName()
The name of the lambda function.
|
String |
getStartingPosition()
The position in the DynamoDB or Kinesis stream where AWS Lambda should start reading.
|
Date |
getStartingPositionTimestamp()
The timestamp of the data record from which to start reading.
|
int |
hashCode() |
Boolean |
isEnabled()
Set to false to disable the event source upon creation.
|
void |
setBatchSize(Integer batchSize)
The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your
function.
|
void |
setEnabled(Boolean enabled)
Set to false to disable the event source upon creation.
|
void |
setEventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the event source.
|
void |
setFunctionName(String functionName)
The name of the lambda function.
|
void |
setStartingPosition(EventSourcePosition startingPosition)
The position in the DynamoDB or Kinesis stream where AWS Lambda should start reading.
|
void |
setStartingPosition(String startingPosition)
The position in the DynamoDB or Kinesis stream where AWS Lambda should start reading.
|
void |
setStartingPositionTimestamp(Date startingPositionTimestamp)
The timestamp of the data record from which to start reading.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CreateEventSourceMappingRequest |
withBatchSize(Integer batchSize)
The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your
function.
|
CreateEventSourceMappingRequest |
withEnabled(Boolean enabled)
Set to false to disable the event source upon creation.
|
CreateEventSourceMappingRequest |
withEventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the event source.
|
CreateEventSourceMappingRequest |
withFunctionName(String functionName)
The name of the lambda function.
|
CreateEventSourceMappingRequest |
withStartingPosition(EventSourcePosition startingPosition)
The position in the DynamoDB or Kinesis stream where AWS Lambda should start reading.
|
CreateEventSourceMappingRequest |
withStartingPosition(String startingPosition)
The position in the DynamoDB or Kinesis stream where AWS Lambda should start reading.
|
CreateEventSourceMappingRequest |
withStartingPositionTimestamp(Date startingPositionTimestamp)
The timestamp of the data record from which to start reading.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setEventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the event source.
eventSourceArn
- The Amazon Resource Name (ARN) of the event source.public String getEventSourceArn()
The Amazon Resource Name (ARN) of the event source.
public CreateEventSourceMappingRequest withEventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the event source.
eventSourceArn
- The Amazon Resource Name (ARN) of the event source.public void setFunctionName(String functionName)
The name of the lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
functionName
- The name of the lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
public String getFunctionName()
The name of the lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
public CreateEventSourceMappingRequest withFunctionName(String functionName)
The name of the lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
functionName
- The name of the lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
public void setEnabled(Boolean enabled)
Set to false to disable the event source upon creation.
enabled
- Set to false to disable the event source upon creation.public Boolean getEnabled()
Set to false to disable the event source upon creation.
public CreateEventSourceMappingRequest withEnabled(Boolean enabled)
Set to false to disable the event source upon creation.
enabled
- Set to false to disable the event source upon creation.public Boolean isEnabled()
Set to false to disable the event source upon creation.
public void setBatchSize(Integer batchSize)
The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records. The default for Amazon Kinesis and Amazon DynamoDB is 100 records. Both the default and maximum for Amazon SQS are 10 messages.
batchSize
- The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking
your function. Your function receives an event with all the retrieved records. The default for Amazon
Kinesis and Amazon DynamoDB is 100 records. Both the default and maximum for Amazon SQS are 10 messages.public Integer getBatchSize()
The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records. The default for Amazon Kinesis and Amazon DynamoDB is 100 records. Both the default and maximum for Amazon SQS are 10 messages.
public CreateEventSourceMappingRequest withBatchSize(Integer batchSize)
The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records. The default for Amazon Kinesis and Amazon DynamoDB is 100 records. Both the default and maximum for Amazon SQS are 10 messages.
batchSize
- The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking
your function. Your function receives an event with all the retrieved records. The default for Amazon
Kinesis and Amazon DynamoDB is 100 records. Both the default and maximum for Amazon SQS are 10 messages.public void setStartingPosition(String startingPosition)
The position in the DynamoDB or Kinesis stream where AWS Lambda should start reading. For more information, see
GetShardIterator in the Amazon Kinesis API Reference Guide or GetShardIterator in the Amazon DynamoDB API Reference Guide. The AT_TIMESTAMP
value is
supported only for Kinesis
streams.
startingPosition
- The position in the DynamoDB or Kinesis stream where AWS Lambda should start reading. For more
information, see GetShardIterator in the Amazon Kinesis API Reference Guide or GetShardIterator in the Amazon DynamoDB API Reference Guide. The AT_TIMESTAMP
value is supported only for Kinesis streams.EventSourcePosition
public String getStartingPosition()
The position in the DynamoDB or Kinesis stream where AWS Lambda should start reading. For more information, see
GetShardIterator in the Amazon Kinesis API Reference Guide or GetShardIterator in the Amazon DynamoDB API Reference Guide. The AT_TIMESTAMP
value is
supported only for Kinesis
streams.
AT_TIMESTAMP
value is supported only for Kinesis streams.EventSourcePosition
public CreateEventSourceMappingRequest withStartingPosition(String startingPosition)
The position in the DynamoDB or Kinesis stream where AWS Lambda should start reading. For more information, see
GetShardIterator in the Amazon Kinesis API Reference Guide or GetShardIterator in the Amazon DynamoDB API Reference Guide. The AT_TIMESTAMP
value is
supported only for Kinesis
streams.
startingPosition
- The position in the DynamoDB or Kinesis stream where AWS Lambda should start reading. For more
information, see GetShardIterator in the Amazon Kinesis API Reference Guide or GetShardIterator in the Amazon DynamoDB API Reference Guide. The AT_TIMESTAMP
value is supported only for Kinesis streams.EventSourcePosition
public void setStartingPosition(EventSourcePosition startingPosition)
The position in the DynamoDB or Kinesis stream where AWS Lambda should start reading. For more information, see
GetShardIterator in the Amazon Kinesis API Reference Guide or GetShardIterator in the Amazon DynamoDB API Reference Guide. The AT_TIMESTAMP
value is
supported only for Kinesis
streams.
startingPosition
- The position in the DynamoDB or Kinesis stream where AWS Lambda should start reading. For more
information, see GetShardIterator in the Amazon Kinesis API Reference Guide or GetShardIterator in the Amazon DynamoDB API Reference Guide. The AT_TIMESTAMP
value is supported only for Kinesis streams.EventSourcePosition
public CreateEventSourceMappingRequest withStartingPosition(EventSourcePosition startingPosition)
The position in the DynamoDB or Kinesis stream where AWS Lambda should start reading. For more information, see
GetShardIterator in the Amazon Kinesis API Reference Guide or GetShardIterator in the Amazon DynamoDB API Reference Guide. The AT_TIMESTAMP
value is
supported only for Kinesis
streams.
startingPosition
- The position in the DynamoDB or Kinesis stream where AWS Lambda should start reading. For more
information, see GetShardIterator in the Amazon Kinesis API Reference Guide or GetShardIterator in the Amazon DynamoDB API Reference Guide. The AT_TIMESTAMP
value is supported only for Kinesis streams.EventSourcePosition
public void setStartingPositionTimestamp(Date startingPositionTimestamp)
The timestamp of the data record from which to start reading. Used with shard iterator type AT_TIMESTAMP. If a record with this exact timestamp does not exist, the iterator returned is for the next (later) record. If the timestamp is older than the current trim horizon, the iterator returned is for the oldest untrimmed data record (TRIM_HORIZON). Valid only for Kinesis streams.
startingPositionTimestamp
- The timestamp of the data record from which to start reading. Used with shard iterator type AT_TIMESTAMP. If a record with this exact timestamp does not exist, the iterator
returned is for the next (later) record. If the timestamp is older than the current trim horizon, the
iterator returned is for the oldest untrimmed data record (TRIM_HORIZON). Valid only for Kinesis streams.public Date getStartingPositionTimestamp()
The timestamp of the data record from which to start reading. Used with shard iterator type AT_TIMESTAMP. If a record with this exact timestamp does not exist, the iterator returned is for the next (later) record. If the timestamp is older than the current trim horizon, the iterator returned is for the oldest untrimmed data record (TRIM_HORIZON). Valid only for Kinesis streams.
public CreateEventSourceMappingRequest withStartingPositionTimestamp(Date startingPositionTimestamp)
The timestamp of the data record from which to start reading. Used with shard iterator type AT_TIMESTAMP. If a record with this exact timestamp does not exist, the iterator returned is for the next (later) record. If the timestamp is older than the current trim horizon, the iterator returned is for the oldest untrimmed data record (TRIM_HORIZON). Valid only for Kinesis streams.
startingPositionTimestamp
- The timestamp of the data record from which to start reading. Used with shard iterator type AT_TIMESTAMP. If a record with this exact timestamp does not exist, the iterator
returned is for the next (later) record. If the timestamp is older than the current trim horizon, the
iterator returned is for the oldest untrimmed data record (TRIM_HORIZON). Valid only for Kinesis streams.public String toString()
toString
in class Object
Object.toString()
public CreateEventSourceMappingRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.