Class CreateEventSourceMappingRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.lambda.model.CreateEventSourceMappingRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class CreateEventSourceMappingRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateEventSourceMappingRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateEventSourceMappingRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)IntegergetBatchSize()The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function.BooleangetEnabled()Indicates whether AWS Lambda should begin polling the event source.StringgetEventSourceArn()The Amazon Resource Name (ARN) of the Amazon Kinesis or the Amazon DynamoDB stream that is the event source.StringgetFunctionName()The Lambda function to invoke when AWS Lambda detects an event on the stream.StringgetStartingPosition()The position in the stream where AWS Lambda should start reading.inthashCode()BooleanisEnabled()Indicates whether AWS Lambda should begin polling the event source.voidsetBatchSize(Integer batchSize)The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function.voidsetEnabled(Boolean enabled)Indicates whether AWS Lambda should begin polling the event source.voidsetEventSourceArn(String eventSourceArn)The Amazon Resource Name (ARN) of the Amazon Kinesis or the Amazon DynamoDB stream that is the event source.voidsetFunctionName(String functionName)The Lambda function to invoke when AWS Lambda detects an event on the stream.voidsetStartingPosition(EventSourcePosition startingPosition)The position in the stream where AWS Lambda should start reading.voidsetStartingPosition(String startingPosition)The position in the stream where AWS Lambda should start reading.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateEventSourceMappingRequestwithBatchSize(Integer batchSize)The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function.CreateEventSourceMappingRequestwithEnabled(Boolean enabled)Indicates whether AWS Lambda should begin polling the event source.CreateEventSourceMappingRequestwithEventSourceArn(String eventSourceArn)The Amazon Resource Name (ARN) of the Amazon Kinesis or the Amazon DynamoDB stream that is the event source.CreateEventSourceMappingRequestwithFunctionName(String functionName)The Lambda function to invoke when AWS Lambda detects an event on the stream.CreateEventSourceMappingRequestwithStartingPosition(EventSourcePosition startingPosition)The position in the stream where AWS Lambda should start reading.CreateEventSourceMappingRequestwithStartingPosition(String startingPosition)The position in the stream where AWS Lambda should start reading.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setEventSourceArn
public void setEventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the Amazon Kinesis or the Amazon DynamoDB stream that is the event source. Any record added to this stream could cause AWS Lambda to invoke your Lambda function, it depends on the
BatchSize. AWS Lambda POSTs the Amazon Kinesis event, containing records, to your Lambda function as JSON.- Parameters:
eventSourceArn- The Amazon Resource Name (ARN) of the Amazon Kinesis or the Amazon DynamoDB stream that is the event source. Any record added to this stream could cause AWS Lambda to invoke your Lambda function, it depends on theBatchSize. AWS Lambda POSTs the Amazon Kinesis event, containing records, to your Lambda function as JSON.
-
getEventSourceArn
public String getEventSourceArn()
The Amazon Resource Name (ARN) of the Amazon Kinesis or the Amazon DynamoDB stream that is the event source. Any record added to this stream could cause AWS Lambda to invoke your Lambda function, it depends on the
BatchSize. AWS Lambda POSTs the Amazon Kinesis event, containing records, to your Lambda function as JSON.- Returns:
- The Amazon Resource Name (ARN) of the Amazon Kinesis or the
Amazon DynamoDB stream that is the event source. Any record added
to this stream could cause AWS Lambda to invoke your Lambda
function, it depends on the
BatchSize. AWS Lambda POSTs the Amazon Kinesis event, containing records, to your Lambda function as JSON.
-
withEventSourceArn
public CreateEventSourceMappingRequest withEventSourceArn(String eventSourceArn)
The Amazon Resource Name (ARN) of the Amazon Kinesis or the Amazon DynamoDB stream that is the event source. Any record added to this stream could cause AWS Lambda to invoke your Lambda function, it depends on the
BatchSize. AWS Lambda POSTs the Amazon Kinesis event, containing records, to your Lambda function as JSON.- Parameters:
eventSourceArn- The Amazon Resource Name (ARN) of the Amazon Kinesis or the Amazon DynamoDB stream that is the event source. Any record added to this stream could cause AWS Lambda to invoke your Lambda function, it depends on theBatchSize. AWS Lambda POSTs the Amazon Kinesis event, containing records, to your Lambda function as JSON.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFunctionName
public void setFunctionName(String functionName)
The Lambda function to invoke when AWS Lambda detects an event on the stream.
You can specify the 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).If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). For more information about versioning, see AWS Lambda Function Versioning and Aliases
AWS Lambda also allows you to specify only the function name with 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.
- Parameters:
functionName- The Lambda function to invoke when AWS Lambda detects an event on the stream.You can specify the 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).If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). For more information about versioning, see AWS Lambda Function Versioning and Aliases
AWS Lambda also allows you to specify only the function name with 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.
-
getFunctionName
public String getFunctionName()
The Lambda function to invoke when AWS Lambda detects an event on the stream.
You can specify the 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).If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). For more information about versioning, see AWS Lambda Function Versioning and Aliases
AWS Lambda also allows you to specify only the function name with 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:
- The Lambda function to invoke when AWS Lambda detects an event on
the stream.
You can specify the 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).If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). For more information about versioning, see AWS Lambda Function Versioning and Aliases
AWS Lambda also allows you to specify only the function name with 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.
-
withFunctionName
public CreateEventSourceMappingRequest withFunctionName(String functionName)
The Lambda function to invoke when AWS Lambda detects an event on the stream.
You can specify the 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).If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). For more information about versioning, see AWS Lambda Function Versioning and Aliases
AWS Lambda also allows you to specify only the function name with 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.
- Parameters:
functionName- The Lambda function to invoke when AWS Lambda detects an event on the stream.You can specify the 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).If you are using versioning, you can also provide a qualified function ARN (ARN that is qualified with function version or alias name as suffix). For more information about versioning, see AWS Lambda Function Versioning and Aliases
AWS Lambda also allows you to specify only the function name with 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:
- Returns a reference to this object so that method calls can be chained together.
-
setEnabled
public void setEnabled(Boolean enabled)
Indicates whether AWS Lambda should begin polling the event source. By default,
Enabledis true.- Parameters:
enabled- Indicates whether AWS Lambda should begin polling the event source. By default,Enabledis true.
-
getEnabled
public Boolean getEnabled()
Indicates whether AWS Lambda should begin polling the event source. By default,
Enabledis true.- Returns:
- Indicates whether AWS Lambda should begin polling the event
source. By default,
Enabledis true.
-
withEnabled
public CreateEventSourceMappingRequest withEnabled(Boolean enabled)
Indicates whether AWS Lambda should begin polling the event source. By default,
Enabledis true.- Parameters:
enabled- Indicates whether AWS Lambda should begin polling the event source. By default,Enabledis true.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEnabled
public Boolean isEnabled()
Indicates whether AWS Lambda should begin polling the event source. By default,
Enabledis true.- Returns:
- Indicates whether AWS Lambda should begin polling the event
source. By default,
Enabledis true.
-
setBatchSize
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 is 100 records.
- Parameters:
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 is 100 records.
-
getBatchSize
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 is 100 records.
- Returns:
- 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 is 100 records.
-
withBatchSize
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 is 100 records.
- Parameters:
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 is 100 records.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStartingPosition
public void setStartingPosition(String startingPosition)
The position in the stream where AWS Lambda should start reading. For more information, go to ShardIteratorType in the Amazon Kinesis API Reference.
- Parameters:
startingPosition- The position in the stream where AWS Lambda should start reading. For more information, go to ShardIteratorType in the Amazon Kinesis API Reference.- See Also:
EventSourcePosition
-
getStartingPosition
public String getStartingPosition()
The position in the stream where AWS Lambda should start reading. For more information, go to ShardIteratorType in the Amazon Kinesis API Reference.
- Returns:
- The position in the stream where AWS Lambda should start reading. For more information, go to ShardIteratorType in the Amazon Kinesis API Reference.
- See Also:
EventSourcePosition
-
withStartingPosition
public CreateEventSourceMappingRequest withStartingPosition(String startingPosition)
The position in the stream where AWS Lambda should start reading. For more information, go to ShardIteratorType in the Amazon Kinesis API Reference.
- Parameters:
startingPosition- The position in the stream where AWS Lambda should start reading. For more information, go to ShardIteratorType in the Amazon Kinesis API Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EventSourcePosition
-
setStartingPosition
public void setStartingPosition(EventSourcePosition startingPosition)
The position in the stream where AWS Lambda should start reading. For more information, go to ShardIteratorType in the Amazon Kinesis API Reference.
- Parameters:
startingPosition- The position in the stream where AWS Lambda should start reading. For more information, go to ShardIteratorType in the Amazon Kinesis API Reference.- See Also:
EventSourcePosition
-
withStartingPosition
public CreateEventSourceMappingRequest withStartingPosition(EventSourcePosition startingPosition)
The position in the stream where AWS Lambda should start reading. For more information, go to ShardIteratorType in the Amazon Kinesis API Reference.
- Parameters:
startingPosition- The position in the stream where AWS Lambda should start reading. For more information, go to ShardIteratorType in the Amazon Kinesis API Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EventSourcePosition
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateEventSourceMappingRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-