@datafire/amazonaws_kinesis
v5.0.0
Published
DataFire integration for Amazon Kinesis
Downloads
7
Readme
@datafire/amazonaws_kinesis
Client library for Amazon Kinesis
Installation and Usage
npm install --save @datafire/amazonaws_kinesis
let amazonaws_kinesis = require('@datafire/amazonaws_kinesis').create({
accessKeyId: "",
secretAccessKey: "",
region: ""
});
amazonaws_kinesis.AddTagsToStream({
"StreamName": "",
"Tags": []
}).then(data => {
console.log(data);
});
Description
Amazon Kinesis Data Streams Service API Reference Amazon Kinesis Data Streams is a managed service that scales elastically for real-time processing of streaming big data.
Actions
AddTagsToStream
amazonaws_kinesis.AddTagsToStream({
"StreamName": "",
"Tags": []
}, context)
Input
- input
object
- StreamName required StreamName
- Tags required TagMap
Output
Output schema unknown
CreateStream
amazonaws_kinesis.CreateStream({
"StreamName": "",
"ShardCount": 0
}, context)
Input
- input
object
- ShardCount required PositiveIntegerObject
- StreamName required StreamName
Output
Output schema unknown
DecreaseStreamRetentionPeriod
amazonaws_kinesis.DecreaseStreamRetentionPeriod({
"StreamName": "",
"RetentionPeriodHours": 0
}, context)
Input
- input
object
- RetentionPeriodHours required RetentionPeriodHours
- StreamName required StreamName
Output
Output schema unknown
DeleteStream
amazonaws_kinesis.DeleteStream({
"StreamName": ""
}, context)
Input
- input
object
- StreamName required StreamName
Output
Output schema unknown
DescribeLimits
amazonaws_kinesis.DescribeLimits({}, context)
Input
- input
object
Output
- output DescribeLimitsOutput
DescribeStream
amazonaws_kinesis.DescribeStream({
"StreamName": ""
}, context)
Input
- input
object
- Limit
string
- ExclusiveStartShardId
string
- ExclusiveStartShardId ShardId
- Limit DescribeStreamInputLimit
- StreamName required StreamName
- Limit
Output
- output DescribeStreamOutput
DescribeStreamSummary
amazonaws_kinesis.DescribeStreamSummary({
"StreamName": ""
}, context)
Input
- input
object
- StreamName required StreamName
Output
- output DescribeStreamSummaryOutput
DisableEnhancedMonitoring
amazonaws_kinesis.DisableEnhancedMonitoring({
"StreamName": "",
"ShardLevelMetrics": []
}, context)
Input
- input
object
- ShardLevelMetrics required MetricsNameList
- StreamName required StreamName
Output
- output EnhancedMonitoringOutput
EnableEnhancedMonitoring
amazonaws_kinesis.EnableEnhancedMonitoring({
"StreamName": "",
"ShardLevelMetrics": []
}, context)
Input
- input
object
- ShardLevelMetrics required MetricsNameList
- StreamName required StreamName
Output
- output EnhancedMonitoringOutput
GetRecords
amazonaws_kinesis.GetRecords({
"ShardIterator": ""
}, context)
Input
- input
object
- Limit GetRecordsInputLimit
- ShardIterator required ShardIterator
Output
- output GetRecordsOutput
GetShardIterator
amazonaws_kinesis.GetShardIterator({
"StreamName": "",
"ShardId": "",
"ShardIteratorType": ""
}, context)
Input
- input
object
- ShardId required ShardId
- ShardIteratorType required ShardIteratorType
- StartingSequenceNumber SequenceNumber
- StreamName required StreamName
- Timestamp Timestamp
Output
- output GetShardIteratorOutput
IncreaseStreamRetentionPeriod
amazonaws_kinesis.IncreaseStreamRetentionPeriod({
"StreamName": "",
"RetentionPeriodHours": 0
}, context)
Input
- input
object
- RetentionPeriodHours required RetentionPeriodHours
- StreamName required StreamName
Output
Output schema unknown
ListShards
amazonaws_kinesis.ListShards({}, context)
Input
- input
object
- ExclusiveStartShardId ShardId
- MaxResults ListShardsInputLimit
- NextToken NextToken
- StreamCreationTimestamp Timestamp
- StreamName StreamName
Output
- output ListShardsOutput
ListStreams
amazonaws_kinesis.ListStreams({}, context)
Input
- input
object
- Limit
string
- ExclusiveStartStreamName
string
- ExclusiveStartStreamName StreamName
- Limit ListStreamsInputLimit
- Limit
Output
- output ListStreamsOutput
ListTagsForStream
amazonaws_kinesis.ListTagsForStream({
"StreamName": ""
}, context)
Input
- input
object
- ExclusiveStartTagKey TagKey
- Limit ListTagsForStreamInputLimit
- StreamName required StreamName
Output
- output ListTagsForStreamOutput
MergeShards
amazonaws_kinesis.MergeShards({
"StreamName": "",
"ShardToMerge": "",
"AdjacentShardToMerge": ""
}, context)
Input
- input
object
- AdjacentShardToMerge required ShardId
- ShardToMerge required ShardId
- StreamName required StreamName
Output
Output schema unknown
PutRecord
amazonaws_kinesis.PutRecord({
"StreamName": "",
"Data": "",
"PartitionKey": ""
}, context)
Input
- input
object
- Data required Data
- ExplicitHashKey HashKey
- PartitionKey required PartitionKey
- SequenceNumberForOrdering SequenceNumber
- StreamName required StreamName
Output
- output PutRecordOutput
PutRecords
amazonaws_kinesis.PutRecords({
"Records": [],
"StreamName": ""
}, context)
Input
- input
object
- Records required PutRecordsRequestEntryList
- StreamName required StreamName
Output
- output PutRecordsOutput
RemoveTagsFromStream
amazonaws_kinesis.RemoveTagsFromStream({
"StreamName": "",
"TagKeys": []
}, context)
Input
- input
object
- StreamName required StreamName
- TagKeys required TagKeyList
Output
Output schema unknown
SplitShard
amazonaws_kinesis.SplitShard({
"StreamName": "",
"ShardToSplit": "",
"NewStartingHashKey": ""
}, context)
Input
- input
object
- NewStartingHashKey required HashKey
- ShardToSplit required ShardId
- StreamName required StreamName
Output
Output schema unknown
StartStreamEncryption
amazonaws_kinesis.StartStreamEncryption({
"StreamName": "",
"EncryptionType": "",
"KeyId": ""
}, context)
Input
- input
object
- EncryptionType required EncryptionType
- KeyId required KeyId
- StreamName required StreamName
Output
Output schema unknown
StopStreamEncryption
amazonaws_kinesis.StopStreamEncryption({
"StreamName": "",
"EncryptionType": "",
"KeyId": ""
}, context)
Input
- input
object
- EncryptionType required EncryptionType
- KeyId required KeyId
- StreamName required StreamName
Output
Output schema unknown
UpdateShardCount
amazonaws_kinesis.UpdateShardCount({
"StreamName": "",
"TargetShardCount": 0,
"ScalingType": ""
}, context)
Input
- input
object
- ScalingType required ScalingType
- StreamName required StreamName
- TargetShardCount required PositiveIntegerObject
Output
- output UpdateShardCountOutput
Definitions
AddTagsToStreamInput
- AddTagsToStreamInput
object
: Represents the input for AddTagsToStream.- StreamName required StreamName
- Tags required TagMap
BooleanObject
- BooleanObject
boolean
CreateStreamInput
- CreateStreamInput
object
: Represents the input for CreateStream.- ShardCount required PositiveIntegerObject
- StreamName required StreamName
Data
- Data
string
DecreaseStreamRetentionPeriodInput
- DecreaseStreamRetentionPeriodInput
object
: Represents the input for DecreaseStreamRetentionPeriod.- RetentionPeriodHours required RetentionPeriodHours
- StreamName required StreamName
DeleteStreamInput
- DeleteStreamInput
object
: Represents the input for DeleteStream.- StreamName required StreamName
DescribeLimitsInput
- DescribeLimitsInput
object
DescribeLimitsOutput
- DescribeLimitsOutput
object
- OpenShardCount required ShardCountObject
- ShardLimit required ShardCountObject
DescribeStreamInput
- DescribeStreamInput
object
: Represents the input for DescribeStream.- ExclusiveStartShardId ShardId
- Limit DescribeStreamInputLimit
- StreamName required StreamName
DescribeStreamInputLimit
- DescribeStreamInputLimit
integer
DescribeStreamOutput
- DescribeStreamOutput
object
: Represents the output for DescribeStream.- StreamDescription required StreamDescription
DescribeStreamSummaryInput
- DescribeStreamSummaryInput
object
- StreamName required StreamName
DescribeStreamSummaryOutput
- DescribeStreamSummaryOutput
object
- StreamDescriptionSummary required StreamDescriptionSummary
DisableEnhancedMonitoringInput
- DisableEnhancedMonitoringInput
object
: Represents the input for DisableEnhancedMonitoring.- ShardLevelMetrics required MetricsNameList
- StreamName required StreamName
EnableEnhancedMonitoringInput
- EnableEnhancedMonitoringInput
object
: Represents the input for EnableEnhancedMonitoring.- ShardLevelMetrics required MetricsNameList
- StreamName required StreamName
EncryptionType
- EncryptionType
string
(values: NONE, KMS)
EnhancedMetrics
- EnhancedMetrics
object
: Represents enhanced metrics types.- ShardLevelMetrics MetricsNameList
EnhancedMonitoringList
- EnhancedMonitoringList
array
- items EnhancedMetrics
EnhancedMonitoringOutput
- EnhancedMonitoringOutput
object
: Represents the output for EnableEnhancedMonitoring and DisableEnhancedMonitoring.- CurrentShardLevelMetrics MetricsNameList
- DesiredShardLevelMetrics MetricsNameList
- StreamName StreamName
ErrorCode
- ErrorCode
string
ErrorMessage
- ErrorMessage
string
ExpiredIteratorException
- ExpiredIteratorException
object
: The provided iterator exceeds the maximum age allowed.- message ErrorMessage
ExpiredNextTokenException
- ExpiredNextTokenException
object
: The pagination token passed to the ListShards operation is expired. For more information, see ListShardsInput$NextToken.- message ErrorMessage
GetRecordsInput
- GetRecordsInput
object
: Represents the input for GetRecords.- Limit GetRecordsInputLimit
- ShardIterator required ShardIterator
GetRecordsInputLimit
- GetRecordsInputLimit
integer
GetRecordsOutput
- GetRecordsOutput
object
: Represents the output for GetRecords.- MillisBehindLatest MillisBehindLatest
- NextShardIterator ShardIterator
- Records required RecordList
GetShardIteratorInput
- GetShardIteratorInput
object
: Represents the input for GetShardIterator.- ShardId required ShardId
- ShardIteratorType required ShardIteratorType
- StartingSequenceNumber SequenceNumber
- StreamName required StreamName
- Timestamp Timestamp
GetShardIteratorOutput
- GetShardIteratorOutput
object
: Represents the output for GetShardIterator.- ShardIterator ShardIterator
HashKey
- HashKey
string
HashKeyRange
- HashKeyRange
object
: The range of possible hash key values for the shard, which is a set of ordered contiguous positive integers.
IncreaseStreamRetentionPeriodInput
- IncreaseStreamRetentionPeriodInput
object
: Represents the input for IncreaseStreamRetentionPeriod.- RetentionPeriodHours required RetentionPeriodHours
- StreamName required StreamName
InvalidArgumentException
- InvalidArgumentException
object
: A specified parameter exceeds its restrictions, is not supported, or can't be used. For more information, see the returned message.- message ErrorMessage
KMSAccessDeniedException
- KMSAccessDeniedException
object
: The ciphertext references a key that doesn't exist or that you don't have access to.- message ErrorMessage
KMSDisabledException
- KMSDisabledException
object
: The request was rejected because the specified customer master key (CMK) isn't enabled.- message ErrorMessage
KMSInvalidStateException
- KMSInvalidStateException
object
: The request was rejected because the state of the specified resource isn't valid for this request. For more information, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.- message ErrorMessage
KMSNotFoundException
- KMSNotFoundException
object
: The request was rejected because the specified entity or resource can't be found.- message ErrorMessage
KMSOptInRequired
- KMSOptInRequired
object
: The AWS access key ID needs a subscription for the service.- message ErrorMessage
KMSThrottlingException
- KMSThrottlingException
object
: The request was denied due to request throttling. For more information about throttling, see Limits in the AWS Key Management Service Developer Guide.- message ErrorMessage
KeyId
- KeyId
string
LimitExceededException
- LimitExceededException
object
: The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed.- message ErrorMessage
ListShardsInput
- ListShardsInput
object
- ExclusiveStartShardId ShardId
- MaxResults ListShardsInputLimit
- NextToken NextToken
- StreamCreationTimestamp Timestamp
- StreamName StreamName
ListShardsInputLimit
- ListShardsInputLimit
integer
ListShardsOutput
ListStreamsInput
- ListStreamsInput
object
: Represents the input for ListStreams.- ExclusiveStartStreamName StreamName
- Limit ListStreamsInputLimit
ListStreamsInputLimit
- ListStreamsInputLimit
integer
ListStreamsOutput
- ListStreamsOutput
object
: Represents the output for ListStreams.- HasMoreStreams required BooleanObject
- StreamNames required StreamNameList
ListTagsForStreamInput
- ListTagsForStreamInput
object
: Represents the input for ListTagsForStream.- ExclusiveStartTagKey TagKey
- Limit ListTagsForStreamInputLimit
- StreamName required StreamName
ListTagsForStreamInputLimit
- ListTagsForStreamInputLimit
integer
ListTagsForStreamOutput
- ListTagsForStreamOutput
object
: Represents the output for ListTagsForStream.- HasMoreTags required BooleanObject
- Tags required TagList
MergeShardsInput
- MergeShardsInput
object
: Represents the input for MergeShards.- AdjacentShardToMerge required ShardId
- ShardToMerge required ShardId
- StreamName required StreamName
MetricsName
- MetricsName
string
(values: IncomingBytes, IncomingRecords, OutgoingBytes, OutgoingRecords, WriteProvisionedThroughputExceeded, ReadProvisionedThroughputExceeded, IteratorAgeMilliseconds, ALL)
MetricsNameList
- MetricsNameList
array
- items MetricsName
MillisBehindLatest
- MillisBehindLatest
integer
NextToken
- NextToken
string
PartitionKey
- PartitionKey
string
PositiveIntegerObject
- PositiveIntegerObject
integer
ProvisionedThroughputExceededException
- ProvisionedThroughputExceededException
object
: The request rate for the stream is too high, or the requested data is too large for the available throughput. Reduce the frequency or size of your requests. For more information, see Streams Limits in the Amazon Kinesis Data Streams Developer Guide, and Error Retries and Exponential Backoff in AWS in the AWS General Reference.- message ErrorMessage
PutRecordInput
- PutRecordInput
object
: Represents the input for PutRecord.- Data required Data
- ExplicitHashKey HashKey
- PartitionKey required PartitionKey
- SequenceNumberForOrdering SequenceNumber
- StreamName required StreamName
PutRecordOutput
- PutRecordOutput
object
: Represents the output for PutRecord.- EncryptionType EncryptionType
- SequenceNumber required SequenceNumber
- ShardId required ShardId
PutRecordsInput
- PutRecordsInput
object
: A PutRecords request.- Records required PutRecordsRequestEntryList
- StreamName required StreamName
PutRecordsOutput
- PutRecordsOutput
object
: PutRecords results.- EncryptionType EncryptionType
- FailedRecordCount PositiveIntegerObject
- Records required PutRecordsResultEntryList
PutRecordsRequestEntry
- PutRecordsRequestEntry
object
: Represents the output for PutRecords.- Data required Data
- ExplicitHashKey HashKey
- PartitionKey required PartitionKey
PutRecordsRequestEntryList
- PutRecordsRequestEntryList
array
- items PutRecordsRequestEntry
PutRecordsResultEntry
- PutRecordsResultEntry
object
: Represents the result of an individual record from a PutRecords request. A record that is successfully added to a stream includes SequenceNumber and ShardId in the result. A record that fails to be added to the stream includes ErrorCode and ErrorMessage in the result.- ErrorCode ErrorCode
- ErrorMessage ErrorMessage
- SequenceNumber SequenceNumber
- ShardId ShardId
PutRecordsResultEntryList
- PutRecordsResultEntryList
array
- items PutRecordsResultEntry
Record
- Record
object
: The unit of data of the Kinesis data stream, which is composed of a sequence number, a partition key, and a data blob.- ApproximateArrivalTimestamp Timestamp
- Data required Data
- EncryptionType EncryptionType
- PartitionKey required PartitionKey
- SequenceNumber required SequenceNumber
RecordList
- RecordList
array
- items Record
RemoveTagsFromStreamInput
- RemoveTagsFromStreamInput
object
: Represents the input for RemoveTagsFromStream.- StreamName required StreamName
- TagKeys required TagKeyList
ResourceInUseException
- ResourceInUseException
object
: The resource is not available for this operation. For successful operation, the resource must be in the ACTIVE state.- message ErrorMessage
ResourceNotFoundException
- ResourceNotFoundException
object
: The requested resource could not be found. The stream might not be specified correctly.- message ErrorMessage
RetentionPeriodHours
- RetentionPeriodHours
integer
ScalingType
- ScalingType
string
(values: UNIFORM_SCALING)
SequenceNumber
- SequenceNumber
string
SequenceNumberRange
- SequenceNumberRange
object
: The range of possible sequence numbers for the shard.- EndingSequenceNumber SequenceNumber
- StartingSequenceNumber required SequenceNumber
Shard
- Shard
object
: A uniquely identified group of data records in a Kinesis data stream.- AdjacentParentShardId ShardId
- HashKeyRange required HashKeyRange
- ParentShardId ShardId
- SequenceNumberRange required SequenceNumberRange
- ShardId required ShardId
ShardCountObject
- ShardCountObject
integer
ShardId
- ShardId
string
ShardIterator
- ShardIterator
string
ShardIteratorType
- ShardIteratorType
string
(values: AT_SEQUENCE_NUMBER, AFTER_SEQUENCE_NUMBER, TRIM_HORIZON, LATEST, AT_TIMESTAMP)
ShardList
- ShardList
array
- items Shard
SplitShardInput
- SplitShardInput
object
: Represents the input for SplitShard.- NewStartingHashKey required HashKey
- ShardToSplit required ShardId
- StreamName required StreamName
StartStreamEncryptionInput
- StartStreamEncryptionInput
object
- EncryptionType required EncryptionType
- KeyId required KeyId
- StreamName required StreamName
StopStreamEncryptionInput
- StopStreamEncryptionInput
object
- EncryptionType required EncryptionType
- KeyId required KeyId
- StreamName required StreamName
StreamARN
- StreamARN
string
StreamDescription
- StreamDescription
object
: Represents the output for DescribeStream.- EncryptionType EncryptionType
- EnhancedMonitoring required EnhancedMonitoringList
- HasMoreShards required BooleanObject
- KeyId KeyId
- RetentionPeriodHours required RetentionPeriodHours
- Shards required ShardList
- StreamARN required StreamARN
- StreamCreationTimestamp required Timestamp
- StreamName required StreamName
- StreamStatus required StreamStatus
StreamDescriptionSummary
- StreamDescriptionSummary
object
: Represents the output for DescribeStreamSummary- EncryptionType EncryptionType
- EnhancedMonitoring required EnhancedMonitoringList
- KeyId KeyId
- OpenShardCount required ShardCountObject
- RetentionPeriodHours required PositiveIntegerObject
- StreamARN required StreamARN
- StreamCreationTimestamp required Timestamp
- StreamName required StreamName
- StreamStatus required StreamStatus
StreamName
- StreamName
string
StreamNameList
- StreamNameList
array
- items StreamName
StreamStatus
- StreamStatus
string
(values: CREATING, DELETING, ACTIVE, UPDATING)
Tag
- Tag
object
: Metadata assigned to the stream, consisting of a key-value pair.
TagKey
- TagKey
string
TagKeyList
- TagKeyList
array
- items TagKey
TagList
- TagList
array
- items Tag
TagMap
TagValue
- TagValue
string
Timestamp
- Timestamp
string
UpdateShardCountInput
- UpdateShardCountInput
object
- ScalingType required ScalingType
- StreamName required StreamName
- TargetShardCount required PositiveIntegerObject
UpdateShardCountOutput
- UpdateShardCountOutput
object
- CurrentShardCount PositiveIntegerObject
- StreamName StreamName
- TargetShardCount PositiveIntegerObject