AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
Aws::Kinesis::KinesisClient Class Reference

#include <KinesisClient.h>

Inheritance diagram for Aws::Kinesis::KinesisClient:
[legend]

Public Types

 
 
 

Public Types inherited from Aws::Client::AWSJsonClient

 

Public Member Functions

 KinesisClient (const Aws::Kinesis::KinesisClientConfiguration &clientConfiguration=Aws::Kinesis::KinesisClientConfiguration(), std::shared_ptr< KinesisEndpointProviderBase > endpointProvider=nullptr)
 
 KinesisClient (const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< KinesisEndpointProviderBase > endpointProvider=nullptr, const Aws::Kinesis::KinesisClientConfiguration &clientConfiguration=Aws::Kinesis::KinesisClientConfiguration())
 
 KinesisClient (const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< KinesisEndpointProviderBase > endpointProvider=nullptr, const Aws::Kinesis::KinesisClientConfiguration &clientConfiguration=Aws::Kinesis::KinesisClientConfiguration())
 
 KinesisClient (const Aws::Client::ClientConfiguration &clientConfiguration)
 
 KinesisClient (const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
 
 KinesisClient (const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
 
virtual ~KinesisClient ()
 
 
template<typename AddTagsToStreamRequestT = Model::AddTagsToStreamRequest>
Model::AddTagsToStreamOutcomeCallable AddTagsToStreamCallable (const AddTagsToStreamRequestT &request) const
 
template<typename AddTagsToStreamRequestT = Model::AddTagsToStreamRequest>
void AddTagsToStreamAsync (const AddTagsToStreamRequestT &request, const AddTagsToStreamResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
 
template<typename CreateStreamRequestT = Model::CreateStreamRequest>
Model::CreateStreamOutcomeCallable CreateStreamCallable (const CreateStreamRequestT &request) const
 
template<typename CreateStreamRequestT = Model::CreateStreamRequest>
void CreateStreamAsync (const CreateStreamRequestT &request, const CreateStreamResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
 
template<typename DecreaseStreamRetentionPeriodRequestT = Model::DecreaseStreamRetentionPeriodRequest>
Model::DecreaseStreamRetentionPeriodOutcomeCallable DecreaseStreamRetentionPeriodCallable (const DecreaseStreamRetentionPeriodRequestT &request) const
 
template<typename DecreaseStreamRetentionPeriodRequestT = Model::DecreaseStreamRetentionPeriodRequest>
void DecreaseStreamRetentionPeriodAsync (const DecreaseStreamRetentionPeriodRequestT &request, const DecreaseStreamRetentionPeriodResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
 
template<typename DeleteResourcePolicyRequestT = Model::DeleteResourcePolicyRequest>
Model::DeleteResourcePolicyOutcomeCallable DeleteResourcePolicyCallable (const DeleteResourcePolicyRequestT &request) const
 
template<typename DeleteResourcePolicyRequestT = Model::DeleteResourcePolicyRequest>
void DeleteResourcePolicyAsync (const DeleteResourcePolicyRequestT &request, const DeleteResourcePolicyResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
 
template<typename DeleteStreamRequestT = Model::DeleteStreamRequest>
Model::DeleteStreamOutcomeCallable DeleteStreamCallable (const DeleteStreamRequestT &request={}) const
 
template<typename DeleteStreamRequestT = Model::DeleteStreamRequest>
void DeleteStreamAsync (const DeleteStreamResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const DeleteStreamRequestT &request={}) const
 
 
template<typename DeregisterStreamConsumerRequestT = Model::DeregisterStreamConsumerRequest>
Model::DeregisterStreamConsumerOutcomeCallable DeregisterStreamConsumerCallable (const DeregisterStreamConsumerRequestT &request={}) const
 
template<typename DeregisterStreamConsumerRequestT = Model::DeregisterStreamConsumerRequest>
void DeregisterStreamConsumerAsync (const DeregisterStreamConsumerResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const DeregisterStreamConsumerRequestT &request={}) const
 
 
template<typename DescribeLimitsRequestT = Model::DescribeLimitsRequest>
Model::DescribeLimitsOutcomeCallable DescribeLimitsCallable (const DescribeLimitsRequestT &request={}) const
 
template<typename DescribeLimitsRequestT = Model::DescribeLimitsRequest>
void DescribeLimitsAsync (const DescribeLimitsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const DescribeLimitsRequestT &request={}) const
 
 
template<typename DescribeStreamRequestT = Model::DescribeStreamRequest>
Model::DescribeStreamOutcomeCallable DescribeStreamCallable (const DescribeStreamRequestT &request={}) const
 
template<typename DescribeStreamRequestT = Model::DescribeStreamRequest>
void DescribeStreamAsync (const DescribeStreamResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const DescribeStreamRequestT &request={}) const
 
 
template<typename DescribeStreamConsumerRequestT = Model::DescribeStreamConsumerRequest>
Model::DescribeStreamConsumerOutcomeCallable DescribeStreamConsumerCallable (const DescribeStreamConsumerRequestT &request={}) const
 
template<typename DescribeStreamConsumerRequestT = Model::DescribeStreamConsumerRequest>
void DescribeStreamConsumerAsync (const DescribeStreamConsumerResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const DescribeStreamConsumerRequestT &request={}) const
 
 
template<typename DescribeStreamSummaryRequestT = Model::DescribeStreamSummaryRequest>
Model::DescribeStreamSummaryOutcomeCallable DescribeStreamSummaryCallable (const DescribeStreamSummaryRequestT &request={}) const
 
template<typename DescribeStreamSummaryRequestT = Model::DescribeStreamSummaryRequest>
void DescribeStreamSummaryAsync (const DescribeStreamSummaryResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const DescribeStreamSummaryRequestT &request={}) const
 
 
template<typename DisableEnhancedMonitoringRequestT = Model::DisableEnhancedMonitoringRequest>
Model::DisableEnhancedMonitoringOutcomeCallable DisableEnhancedMonitoringCallable (const DisableEnhancedMonitoringRequestT &request) const
 
template<typename DisableEnhancedMonitoringRequestT = Model::DisableEnhancedMonitoringRequest>
void DisableEnhancedMonitoringAsync (const DisableEnhancedMonitoringRequestT &request, const DisableEnhancedMonitoringResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
 
template<typename EnableEnhancedMonitoringRequestT = Model::EnableEnhancedMonitoringRequest>
Model::EnableEnhancedMonitoringOutcomeCallable EnableEnhancedMonitoringCallable (const EnableEnhancedMonitoringRequestT &request) const
 
template<typename EnableEnhancedMonitoringRequestT = Model::EnableEnhancedMonitoringRequest>
void EnableEnhancedMonitoringAsync (const EnableEnhancedMonitoringRequestT &request, const EnableEnhancedMonitoringResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
 
template<typename GetRecordsRequestT = Model::GetRecordsRequest>
Model::GetRecordsOutcomeCallable GetRecordsCallable (const GetRecordsRequestT &request) const
 
template<typename GetRecordsRequestT = Model::GetRecordsRequest>
void GetRecordsAsync (const GetRecordsRequestT &request, const GetRecordsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
 
template<typename GetResourcePolicyRequestT = Model::GetResourcePolicyRequest>
Model::GetResourcePolicyOutcomeCallable GetResourcePolicyCallable (const GetResourcePolicyRequestT &request) const
 
template<typename GetResourcePolicyRequestT = Model::GetResourcePolicyRequest>
void GetResourcePolicyAsync (const GetResourcePolicyRequestT &request, const GetResourcePolicyResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
 
template<typename GetShardIteratorRequestT = Model::GetShardIteratorRequest>
Model::GetShardIteratorOutcomeCallable GetShardIteratorCallable (const GetShardIteratorRequestT &request) const
 
template<typename GetShardIteratorRequestT = Model::GetShardIteratorRequest>
void GetShardIteratorAsync (const GetShardIteratorRequestT &request, const GetShardIteratorResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
 
template<typename IncreaseStreamRetentionPeriodRequestT = Model::IncreaseStreamRetentionPeriodRequest>
Model::IncreaseStreamRetentionPeriodOutcomeCallable IncreaseStreamRetentionPeriodCallable (const IncreaseStreamRetentionPeriodRequestT &request) const
 
template<typename IncreaseStreamRetentionPeriodRequestT = Model::IncreaseStreamRetentionPeriodRequest>
void IncreaseStreamRetentionPeriodAsync (const IncreaseStreamRetentionPeriodRequestT &request, const IncreaseStreamRetentionPeriodResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
 
template<typename ListShardsRequestT = Model::ListShardsRequest>
Model::ListShardsOutcomeCallable ListShardsCallable (const ListShardsRequestT &request={}) const
 
template<typename ListShardsRequestT = Model::ListShardsRequest>
void ListShardsAsync (const ListShardsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const ListShardsRequestT &request={}) const
 
 
template<typename ListStreamConsumersRequestT = Model::ListStreamConsumersRequest>
Model::ListStreamConsumersOutcomeCallable ListStreamConsumersCallable (const ListStreamConsumersRequestT &request) const
 
template<typename ListStreamConsumersRequestT = Model::ListStreamConsumersRequest>
void ListStreamConsumersAsync (const ListStreamConsumersRequestT &request, const ListStreamConsumersResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
 
template<typename ListStreamsRequestT = Model::ListStreamsRequest>
Model::ListStreamsOutcomeCallable ListStreamsCallable (const ListStreamsRequestT &request={}) const
 
template<typename ListStreamsRequestT = Model::ListStreamsRequest>
void ListStreamsAsync (const ListStreamsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const ListStreamsRequestT &request={}) const
 
 
template<typename ListTagsForStreamRequestT = Model::ListTagsForStreamRequest>
Model::ListTagsForStreamOutcomeCallable ListTagsForStreamCallable (const ListTagsForStreamRequestT &request={}) const
 
template<typename ListTagsForStreamRequestT = Model::ListTagsForStreamRequest>
void ListTagsForStreamAsync (const ListTagsForStreamResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const ListTagsForStreamRequestT &request={}) const
 
 
template<typename MergeShardsRequestT = Model::MergeShardsRequest>
Model::MergeShardsOutcomeCallable MergeShardsCallable (const MergeShardsRequestT &request) const
 
template<typename MergeShardsRequestT = Model::MergeShardsRequest>
void MergeShardsAsync (const MergeShardsRequestT &request, const MergeShardsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
 
template<typename PutRecordRequestT = Model::PutRecordRequest>
Model::PutRecordOutcomeCallable PutRecordCallable (const PutRecordRequestT &request) const
 
template<typename PutRecordRequestT = Model::PutRecordRequest>
void PutRecordAsync (const PutRecordRequestT &request, const PutRecordResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
 
template<typename PutRecordsRequestT = Model::PutRecordsRequest>
Model::PutRecordsOutcomeCallable PutRecordsCallable (const PutRecordsRequestT &request) const
 
template<typename PutRecordsRequestT = Model::PutRecordsRequest>
void PutRecordsAsync (const PutRecordsRequestT &request, const PutRecordsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
 
template<typename PutResourcePolicyRequestT = Model::PutResourcePolicyRequest>
Model::PutResourcePolicyOutcomeCallable PutResourcePolicyCallable (const PutResourcePolicyRequestT &request) const
 
template<typename PutResourcePolicyRequestT = Model::PutResourcePolicyRequest>
void PutResourcePolicyAsync (const PutResourcePolicyRequestT &request, const PutResourcePolicyResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
 
template<typename RegisterStreamConsumerRequestT = Model::RegisterStreamConsumerRequest>
Model::RegisterStreamConsumerOutcomeCallable RegisterStreamConsumerCallable (const RegisterStreamConsumerRequestT &request) const
 
template<typename RegisterStreamConsumerRequestT = Model::RegisterStreamConsumerRequest>
void RegisterStreamConsumerAsync (const RegisterStreamConsumerRequestT &request, const RegisterStreamConsumerResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
 
template<typename RemoveTagsFromStreamRequestT = Model::RemoveTagsFromStreamRequest>
Model::RemoveTagsFromStreamOutcomeCallable RemoveTagsFromStreamCallable (const RemoveTagsFromStreamRequestT &request) const
 
template<typename RemoveTagsFromStreamRequestT = Model::RemoveTagsFromStreamRequest>
void RemoveTagsFromStreamAsync (const RemoveTagsFromStreamRequestT &request, const RemoveTagsFromStreamResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
 
template<typename SplitShardRequestT = Model::SplitShardRequest>
Model::SplitShardOutcomeCallable SplitShardCallable (const SplitShardRequestT &request) const
 
template<typename SplitShardRequestT = Model::SplitShardRequest>
void SplitShardAsync (const SplitShardRequestT &request, const SplitShardResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
 
template<typename StartStreamEncryptionRequestT = Model::StartStreamEncryptionRequest>
Model::StartStreamEncryptionOutcomeCallable StartStreamEncryptionCallable (const StartStreamEncryptionRequestT &request) const
 
template<typename StartStreamEncryptionRequestT = Model::StartStreamEncryptionRequest>
void StartStreamEncryptionAsync (const StartStreamEncryptionRequestT &request, const StartStreamEncryptionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
 
template<typename StopStreamEncryptionRequestT = Model::StopStreamEncryptionRequest>
Model::StopStreamEncryptionOutcomeCallable StopStreamEncryptionCallable (const StopStreamEncryptionRequestT &request) const
 
template<typename StopStreamEncryptionRequestT = Model::StopStreamEncryptionRequest>
void StopStreamEncryptionAsync (const StopStreamEncryptionRequestT &request, const StopStreamEncryptionResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
 
template<typename SubscribeToShardRequestT = Model::SubscribeToShardRequest>
Model::SubscribeToShardOutcomeCallable SubscribeToShardCallable (SubscribeToShardRequestT &request) const
 
template<typename SubscribeToShardRequestT = Model::SubscribeToShardRequest>
void SubscribeToShardAsync (SubscribeToShardRequestT &request, const SubscribeToShardResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
 
template<typename UpdateShardCountRequestT = Model::UpdateShardCountRequest>
Model::UpdateShardCountOutcomeCallable UpdateShardCountCallable (const UpdateShardCountRequestT &request) const
 
template<typename UpdateShardCountRequestT = Model::UpdateShardCountRequest>
void UpdateShardCountAsync (const UpdateShardCountRequestT &request, const UpdateShardCountResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
 
template<typename UpdateStreamModeRequestT = Model::UpdateStreamModeRequest>
Model::UpdateStreamModeOutcomeCallable UpdateStreamModeCallable (const UpdateStreamModeRequestT &request) const
 
template<typename UpdateStreamModeRequestT = Model::UpdateStreamModeRequest>
void UpdateStreamModeAsync (const UpdateStreamModeRequestT &request, const UpdateStreamModeResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
void OverrideEndpoint (const Aws::String &endpoint)
 
 

Public Member Functions inherited from Aws::Client::AWSJsonClient

 AWSJsonClient (const Aws::Client::ClientConfiguration &configuration, const std::shared_ptr< Aws::Client::AWSAuthSigner > &signer, const std::shared_ptr< AWSErrorMarshaller > &errorMarshaller)
 
 AWSJsonClient (const Aws::Client::ClientConfiguration &configuration, const std::shared_ptr< Aws::Auth::AWSAuthSignerProvider > &signerProvider, const std::shared_ptr< AWSErrorMarshaller > &errorMarshaller)
 
virtual ~AWSJsonClient ()=default
 

Public Member Functions inherited from Aws::Client::AWSClient

 AWSClient (const Aws::Client::ClientConfiguration &configuration, const std::shared_ptr< Aws::Client::AWSAuthSigner > &signer, const std::shared_ptr< AWSErrorMarshaller > &errorMarshaller)
 
 AWSClient (const Aws::Client::ClientConfiguration &configuration, const std::shared_ptr< Aws::Auth::AWSAuthSignerProvider > &signerProvider, const std::shared_ptr< AWSErrorMarshaller > &errorMarshaller)
 
virtual ~AWSClient ()
 
Aws::String GeneratePresignedUrl (const Aws::Http::URI &uri, Aws::Http::HttpMethod method, long long expirationInSeconds=0, const std::shared_ptr< Aws::Http::ServiceSpecificParameters > serviceSpecificParameter={})
 
Aws::String GeneratePresignedUrl (const Aws::Http::URI &uri, Aws::Http::HttpMethod method, const Aws::Http::HeaderValueCollection &customizedHeaders, long long expirationInSeconds=0, const std::shared_ptr< Aws::Http::ServiceSpecificParameters > serviceSpecificParameter={})
 
Aws::String GeneratePresignedUrl (const Aws::Http::URI &uri, Aws::Http::HttpMethod method, const char *region, long long expirationInSeconds=0, const std::shared_ptr< Aws::Http::ServiceSpecificParameters > serviceSpecificParameter={}) const
 
Aws::String GeneratePresignedUrl (const Aws::Http::URI &uri, Aws::Http::HttpMethod method, const char *region, const Aws::Http::HeaderValueCollection &customizedHeaders, long long expirationInSeconds=0, const std::shared_ptr< Aws::Http::ServiceSpecificParameters > serviceSpecificParameter={})
 
Aws::String GeneratePresignedUrl (const Aws::Http::URI &uri, Aws::Http::HttpMethod method, const char *region, const char *serviceName, long long expirationInSeconds=0, const std::shared_ptr< Aws::Http::ServiceSpecificParameters > serviceSpecificParameter={}) const
 
Aws::String GeneratePresignedUrl (const Aws::Http::URI &uri, Aws::Http::HttpMethod method, const char *region, const char *serviceName, const Aws::Http::HeaderValueCollection &customizedHeaders, long long expirationInSeconds=0, const std::shared_ptr< Aws::Http::ServiceSpecificParameters > serviceSpecificParameter={})
 
Aws::String GeneratePresignedUrl (const Aws::Http::URI &uri, Aws::Http::HttpMethod method, const char *region, const char *serviceName, const char *signerName, long long expirationInSeconds=0, const std::shared_ptr< Aws::Http::ServiceSpecificParameters > serviceSpecificParameter={}) const
 
Aws::String GeneratePresignedUrl (const Aws::Http::URI &uri, Aws::Http::HttpMethod method, const char *region, const char *serviceName, const char *signerName, const Aws::Http::HeaderValueCollection &customizedHeaders, long long expirationInSeconds=0, const std::shared_ptr< Aws::Http::ServiceSpecificParameters > serviceSpecificParameter={})
 
Aws::String GeneratePresignedUrl (const Aws::Endpoint::AWSEndpoint &endpoint, Aws::Http::HttpMethod method=Http::HttpMethod::HTTP_POST, const Aws::Http::HeaderValueCollection &customizedHeaders={}, uint64_t expirationInSeconds=0, const char *signerName=Aws::Auth::SIGV4_SIGNER, const char *signerRegionOverride=nullptr, const char *signerServiceNameOverride=nullptr, const std::shared_ptr< Aws::Http::ServiceSpecificParameters > serviceSpecificParameter={})
 
Aws::String GeneratePresignedUrl (const Aws::AmazonWebServiceRequest &request, const Aws::Http::URI &uri, Aws::Http::HttpMethod method, const Aws::Http::QueryStringParameterCollection &extraParams=Aws::Http::QueryStringParameterCollection(), long long expirationInSeconds=0, const std::shared_ptr< Aws::Http::ServiceSpecificParameters > serviceSpecificParameter={}) const
 
Aws::String GeneratePresignedUrl (const Aws::AmazonWebServiceRequest &request, const Aws::Http::URI &uri, Aws::Http::HttpMethod method, const char *region, const char *serviceName, const char *signerName, const Aws::Http::QueryStringParameterCollection &extraParams=Aws::Http::QueryStringParameterCollection(), long long expirationInSeconds=0, const std::shared_ptr< Aws::Http::ServiceSpecificParameters > serviceSpecificParameter={}) const
 
Aws::String GeneratePresignedUrl (const Aws::AmazonWebServiceRequest &request, const Aws::Http::URI &uri, Aws::Http::HttpMethod method, const char *region, const char *serviceName, const Aws::Http::QueryStringParameterCollection &extraParams=Aws::Http::QueryStringParameterCollection(), long long expirationInSeconds=0, const std::shared_ptr< Aws::Http::ServiceSpecificParameters > serviceSpecificParameter={}) const
 
Aws::String GeneratePresignedUrl (const Aws::AmazonWebServiceRequest &request, const Aws::Http::URI &uri, Aws::Http::HttpMethod method, const char *region, const Aws::Http::QueryStringParameterCollection &extraParams=Aws::Http::QueryStringParameterCollection(), long long expirationInSeconds=0, const std::shared_ptr< Aws::Http::ServiceSpecificParameters > serviceSpecificParameter={}) const
 
const std::shared_ptr< Aws::Http::HttpClient > & GetHttpClient () const
 
 
 
virtual const char * GetServiceClientName () const
 
virtual void SetServiceClientName (const Aws::String &name)
 
void AppendToUserAgent (const Aws::String &valueToAppend)
 
 
 
 
 
void SubmitAsync (OperationFuncT operationFunc, const RequestT &request, const HandlerT &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
void SubmitAsync (OperationFuncT operationFunc, RequestT &request, const HandlerT &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
void SubmitAsync (OperationFuncT operationFunc, const HandlerT &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
 
auto SubmitCallable (OperationFuncT operationFunc, const RequestT &request) const -> std::future< decltype((static_cast< const AwsServiceClientT * >(nullptr) -> *operationFunc)(request))>
 
auto SubmitCallable (OperationFuncT operationFunc, RequestT &request) const -> std::future< decltype((static_cast< const AwsServiceClientT * >(nullptr) -> *operationFunc)(request))>
 
auto SubmitCallable (OperationFuncT operationFunc) const -> std::future< decltype((static_cast< const AwsServiceClientT * >(nullptr) -> *operationFunc)())>
 

Static Public Member Functions

static const char * GetServiceName ()
 
static const char * GetAllocationTag ()
 

Static Public Member Functions inherited from Aws::Client::ClientWithAsyncTemplateMethods< KinesisClient >

static void ShutdownSdkClient (void *pThis, int64_t timeoutMs=-1)
 

Friends

 

Additional Inherited Members

Protected Member Functions inherited from Aws::Client::AWSJsonClient

virtual AWSError< CoreErrorsBuildAWSError (const std::shared_ptr< Aws::Http::HttpResponse > &response) const override
 
JsonOutcome MakeRequest (const Aws::AmazonWebServiceRequest &request, const Aws::Endpoint::AWSEndpoint &endpoint, Http::HttpMethod method=Http::HttpMethod::HTTP_POST, const char *signerName=Aws::Auth::SIGV4_SIGNER, const char *signerRegionOverride=nullptr, const char *signerServiceNameOverride=nullptr) const
 
JsonOutcome MakeRequest (const Aws::Endpoint::AWSEndpoint &endpoint, Http::HttpMethod method=Http::HttpMethod::HTTP_POST, const char *signerName=Aws::Auth::SIGV4_SIGNER, const char *signerRegionOverride=nullptr, const char *signerServiceNameOverride=nullptr) const
 
JsonOutcome MakeRequest (const Aws::Http::URI &uri, const Aws::AmazonWebServiceRequest &request, Http::HttpMethod method=Http::HttpMethod::HTTP_POST, const char *signerName=Aws::Auth::SIGV4_SIGNER, const char *signerRegionOverride=nullptr, const char *signerServiceNameOverride=nullptr) const
 
JsonOutcome MakeRequest (const Aws::Http::URI &uri, Http::HttpMethod method=Http::HttpMethod::HTTP_POST, const char *signerName=Aws::Auth::SIGV4_SIGNER, const char *requestName="", const char *signerRegionOverride=nullptr, const char *signerServiceNameOverride=nullptr) const
 
JsonOutcome MakeEventStreamRequest (std::shared_ptr< Aws::Http::HttpRequest > &request) const
 

Protected Member Functions inherited from Aws::Client::AWSClient

HttpResponseOutcome AttemptExhaustively (const Aws::Http::URI &uri, const Aws::AmazonWebServiceRequest &request, Http::HttpMethod httpMethod, const char *signerName, const char *signerRegionOverride=nullptr, const char *signerServiceNameOverride=nullptr) const
 
HttpResponseOutcome AttemptExhaustively (const Aws::Http::URI &uri, Http::HttpMethod httpMethod, const char *signerName, const char *requestName="", const char *signerRegionOverride=nullptr, const char *signerServiceNameOverride=nullptr) const
 
HttpResponseOutcome AttemptOneRequest (const std::shared_ptr< Http::HttpRequest > &httpRequest, const Aws::AmazonWebServiceRequest &request, const char *signerName, const char *signerRegionOverride=nullptr, const char *signerServiceNameOverride=nullptr) const
 
HttpResponseOutcome AttemptOneRequest (const std::shared_ptr< Http::HttpRequest > &httpRequest, const char *signerName, const char *requestName="", const char *signerRegionOverride=nullptr, const char *signerServiceNameOverride=nullptr) const
 
StreamOutcome MakeRequestWithUnparsedResponse (const Aws::Http::URI &uri, const Aws::AmazonWebServiceRequest &request, Http::HttpMethod method=Http::HttpMethod::HTTP_POST, const char *signerName=Aws::Auth::SIGV4_SIGNER, const char *signerRegionOverride=nullptr, const char *signerServiceNameOverride=nullptr) const
 
StreamOutcome MakeRequestWithUnparsedResponse (const Aws::Http::URI &uri, Http::HttpMethod method=Http::HttpMethod::HTTP_POST, const char *signerName=Aws::Auth::SIGV4_SIGNER, const char *requestName="", const char *signerRegionOverride=nullptr, const char *signerServiceNameOverride=nullptr) const
 
StreamOutcome MakeRequestWithUnparsedResponse (const Aws::AmazonWebServiceRequest &request, const Aws::Endpoint::AWSEndpoint &endpoint, Http::HttpMethod method=Http::HttpMethod::HTTP_POST, const char *signerName=Aws::Auth::SIGV4_SIGNER, const char *signerRegionOverride=nullptr, const char *signerServiceNameOverride=nullptr) const
 
virtual void BuildHttpRequest (const Aws::AmazonWebServiceRequest &request, const std::shared_ptr< Aws::Http::HttpRequest > &httpRequest) const
 
const std::shared_ptr< AWSErrorMarshaller > & GetErrorMarshaller () const
 
Aws::Client::AWSAuthSignerGetSignerByName (const char *name) const
 
 
std::shared_ptr< Aws::Http::HttpRequestBuildAndSignHttpRequest (const Aws::Http::URI &uri, const Aws::AmazonWebServiceRequest &request, Http::HttpMethod method, const char *signerName) const
 
std::shared_ptr< Aws::Http::HttpResponseMakeHttpRequest (std::shared_ptr< Aws::Http::HttpRequest > &request) const
 

Static Protected Member Functions inherited from Aws::Client::AWSClient

static void AppendRecursionDetectionHeader (std::shared_ptr< Aws::Http::HttpRequest > ioRequest)
 
 
static bool DoesResponseGenerateError (const std::shared_ptr< Aws::Http::HttpResponse > &response)
 

Protected Attributes inherited from Aws::Client::AWSClient

 
 
 
std::atomic< bool > m_isInitialized
 
std::atomic< size_t > m_operationsProcessed
 
std::condition_variable m_shutdownSignal
 
std::mutex m_shutdownMutex
 

Detailed Description

<fullname>Amazon Kinesis Data Streams Service API Reference</fullname>

Amazon Kinesis Data Streams is a managed service that scales elastically for real-time processing of streaming big data.

Definition at line 23 of file KinesisClient.h.

Member Typedef Documentation

◆ BASECLASS

Definition at line 26 of file KinesisClient.h.

◆ ClientConfigurationType

Definition at line 30 of file KinesisClient.h.

◆ EndpointProviderType

Definition at line 31 of file KinesisClient.h.

Constructor & Destructor Documentation

◆ KinesisClient() [1/6]

Aws::Kinesis::KinesisClient::KinesisClient ( const Aws::Kinesis::KinesisClientConfiguration clientConfiguration = Aws::Kinesis::KinesisClientConfiguration(),
std::shared_ptr< KinesisEndpointProviderBase endpointProvider = nullptr 
)

Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config is not specified, it will be initialized to default values.

◆ KinesisClient() [2/6]

Aws::Kinesis::KinesisClient::KinesisClient ( const Aws::Auth::AWSCredentials credentials,
std::shared_ptr< KinesisEndpointProviderBase endpointProvider = nullptr,
const Aws::Kinesis::KinesisClientConfiguration clientConfiguration = Aws::Kinesis::KinesisClientConfiguration() 
)

Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config is not specified, it will be initialized to default values.

◆ KinesisClient() [3/6]

Aws::Kinesis::KinesisClient::KinesisClient ( const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &  credentialsProvider,
std::shared_ptr< KinesisEndpointProviderBase endpointProvider = nullptr,
const Aws::Kinesis::KinesisClientConfiguration clientConfiguration = Aws::Kinesis::KinesisClientConfiguration() 
)

Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied, the default http client factory will be used

◆ KinesisClient() [4/6]

Aws::Kinesis::KinesisClient::KinesisClient ( const Aws::Client::ClientConfiguration clientConfiguration)

Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config is not specified, it will be initialized to default values.

◆ KinesisClient() [5/6]

Aws::Kinesis::KinesisClient::KinesisClient ( const Aws::Auth::AWSCredentials credentials,
const Aws::Client::ClientConfiguration clientConfiguration 
)

Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config is not specified, it will be initialized to default values.

◆ KinesisClient() [6/6]

Aws::Kinesis::KinesisClient::KinesisClient ( const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &  credentialsProvider,
const Aws::Client::ClientConfiguration clientConfiguration 
)

Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied, the default http client factory will be used

◆ ~KinesisClient()

virtual Aws::Kinesis::KinesisClient::~KinesisClient ( )
virtual

Member Function Documentation

◆ accessEndpointProvider()

std::shared_ptr< KinesisEndpointProviderBase > & Aws::Kinesis::KinesisClient::accessEndpointProvider ( )

◆ AddTagsToStream()

virtual Model::AddTagsToStreamOutcome Aws::Kinesis::KinesisClient::AddTagsToStream ( const Model::AddTagsToStreamRequest request) const
virtual

Adds or updates tags for the specified Kinesis data stream. You can assign up to 50 tags to a data stream.

When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API.

If tags have already been assigned to the stream, AddTagsToStream overwrites any existing tags that correspond to the specified tag keys.

AddTagsToStream has a limit of five transactions per second per account.

See Also:

AWS API Reference

◆ AddTagsToStreamAsync()

template<typename AddTagsToStreamRequestT = Model::AddTagsToStreamRequest>
void Aws::Kinesis::KinesisClient::AddTagsToStreamAsync ( const AddTagsToStreamRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for AddTagsToStream that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 108 of file KinesisClient.h.

◆ AddTagsToStreamCallable()

template<typename AddTagsToStreamRequestT = Model::AddTagsToStreamRequest>
Model::AddTagsToStreamOutcomeCallable Aws::Kinesis::KinesisClient::AddTagsToStreamCallable ( const AddTagsToStreamRequestT &  request) const
inline

A Callable wrapper for AddTagsToStream that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 99 of file KinesisClient.h.

◆ CreateStream()

virtual Model::CreateStreamOutcome Aws::Kinesis::KinesisClient::CreateStream ( const Model::CreateStreamRequest request) const
virtual

Creates a Kinesis data stream. A stream captures and transports data records that are continuously emitted from different data sources or producers. Scale-out within a stream is explicitly supported by means of shards, which are uniquely identified groups of data records in a stream.

You can create your data stream using either on-demand or provisioned capacity mode. Data streams with an on-demand mode require no capacity planning and automatically scale to handle gigabytes of write and read throughput per minute. With the on-demand mode, Kinesis Data Streams automatically manages the shards in order to provide the necessary throughput. For the data streams with a provisioned mode, you must specify the number of shards for the data stream. Each shard can support reads up to five transactions per second, up to a maximum data read total of 2 MiB per second. Each shard can support writes up to 1,000 records per second, up to a maximum data write total of 1 MiB per second. If the amount of data input increases or decreases, you can add or remove shards.

The stream name identifies the stream. The name is scoped to the Amazon Web Services account used by the application. It is also scoped by Amazon Web Services Region. That is, two streams in two different accounts can have the same name, and two streams in the same account, but in two different Regions, can have the same name.

CreateStream is an asynchronous operation. Upon receiving a CreateStream request, Kinesis Data Streams immediately returns and sets the stream status to CREATING. After the stream is created, Kinesis Data Streams sets the stream status to ACTIVE. You should perform read and write operations only on an ACTIVE stream.

You receive a LimitExceededException when making a CreateStream request when you try to do one of the following:

  • Have more than five streams in the CREATING state at any point in time.

  • Create more shards than are authorized for your account.

For the default shard limit for an Amazon Web Services account, see Amazon Kinesis Data Streams Limits in the Amazon Kinesis Data Streams Developer Guide. To increase this limit, contact Amazon Web Services Support.

You can use DescribeStreamSummary to check the stream status, which is returned in StreamStatus.

CreateStream has a limit of five transactions per second per account.

You can add tags to the stream when making a CreateStream request by setting the Tags parameter. If you pass Tags parameter, in addition to having kinesis:createStream permission, you must also have kinesis:addTagsToStream permission for the stream that will be created. Tags will take effect from the CREATING status of the stream.

See Also:

AWS API Reference

◆ CreateStreamAsync()

template<typename CreateStreamRequestT = Model::CreateStreamRequest>
void Aws::Kinesis::KinesisClient::CreateStreamAsync ( const CreateStreamRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for CreateStream that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 175 of file KinesisClient.h.

◆ CreateStreamCallable()

template<typename CreateStreamRequestT = Model::CreateStreamRequest>
Model::CreateStreamOutcomeCallable Aws::Kinesis::KinesisClient::CreateStreamCallable ( const CreateStreamRequestT &  request) const
inline

A Callable wrapper for CreateStream that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 166 of file KinesisClient.h.

◆ DecreaseStreamRetentionPeriod()

virtual Model::DecreaseStreamRetentionPeriodOutcome Aws::Kinesis::KinesisClient::DecreaseStreamRetentionPeriod ( const Model::DecreaseStreamRetentionPeriodRequest request) const
virtual

Decreases the Kinesis data stream's retention period, which is the length of time data records are accessible after they are added to the stream. The minimum value of a stream's retention period is 24 hours.

When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API.

This operation may result in lost data. For example, if the stream's retention period is 48 hours and is decreased to 24 hours, any data already in the stream that is older than 24 hours is inaccessible.

See Also:

AWS API Reference

◆ DecreaseStreamRetentionPeriodAsync()

template<typename DecreaseStreamRetentionPeriodRequestT = Model::DecreaseStreamRetentionPeriodRequest>
void Aws::Kinesis::KinesisClient::DecreaseStreamRetentionPeriodAsync ( const DecreaseStreamRetentionPeriodRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for DecreaseStreamRetentionPeriod that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 209 of file KinesisClient.h.

◆ DecreaseStreamRetentionPeriodCallable()

template<typename DecreaseStreamRetentionPeriodRequestT = Model::DecreaseStreamRetentionPeriodRequest>
Model::DecreaseStreamRetentionPeriodOutcomeCallable Aws::Kinesis::KinesisClient::DecreaseStreamRetentionPeriodCallable ( const DecreaseStreamRetentionPeriodRequestT &  request) const
inline

A Callable wrapper for DecreaseStreamRetentionPeriod that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 200 of file KinesisClient.h.

◆ DeleteResourcePolicy()

virtual Model::DeleteResourcePolicyOutcome Aws::Kinesis::KinesisClient::DeleteResourcePolicy ( const Model::DeleteResourcePolicyRequest request) const
virtual

Delete a policy for the specified data stream or consumer. Request patterns can be one of the following:

  • Data stream pattern: arn:aws.*:kinesis:.*:\d{12}:.*stream/\S+

  • Consumer pattern: ^(arn):aws.*:kinesis:.*:\d{12}:.*stream\/[a-zA-Z0-9_.-]+\/consumer\/[a-zA-Z0-9_.-]+:[0-9]+

See Also:

AWS API Reference

◆ DeleteResourcePolicyAsync()

template<typename DeleteResourcePolicyRequestT = Model::DeleteResourcePolicyRequest>
void Aws::Kinesis::KinesisClient::DeleteResourcePolicyAsync ( const DeleteResourcePolicyRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for DeleteResourcePolicy that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 239 of file KinesisClient.h.

◆ DeleteResourcePolicyCallable()

template<typename DeleteResourcePolicyRequestT = Model::DeleteResourcePolicyRequest>
Model::DeleteResourcePolicyOutcomeCallable Aws::Kinesis::KinesisClient::DeleteResourcePolicyCallable ( const DeleteResourcePolicyRequestT &  request) const
inline

A Callable wrapper for DeleteResourcePolicy that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 230 of file KinesisClient.h.

◆ DeleteStream()

virtual Model::DeleteStreamOutcome Aws::Kinesis::KinesisClient::DeleteStream ( const Model::DeleteStreamRequest request = {}) const
virtual

Deletes a Kinesis data stream and all its shards and data. You must shut down any applications that are operating on the stream before you delete the stream. If an application attempts to operate on a deleted stream, it receives the exception ResourceNotFoundException.

When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API.

If the stream is in the ACTIVE state, you can delete it. After a DeleteStream request, the specified stream is in the DELETING state until Kinesis Data Streams completes the deletion.

Note: Kinesis Data Streams might continue to accept data read and write operations, such as PutRecord, PutRecords, and GetRecords, on a stream in the DELETING state until the stream deletion is complete.

When you delete a stream, any shards in that stream are also deleted, and any tags are dissociated from the stream.

You can use the DescribeStreamSummary operation to check the state of the stream, which is returned in StreamStatus.

DeleteStream has a limit of five transactions per second per account.

See Also:

AWS API Reference

◆ DeleteStreamAsync()

template<typename DeleteStreamRequestT = Model::DeleteStreamRequest>
void Aws::Kinesis::KinesisClient::DeleteStreamAsync ( const DeleteStreamResponseReceivedHandler handler,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr,
const DeleteStreamRequestT &  request = {} 
) const
inline

An Async wrapper for DeleteStream that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 282 of file KinesisClient.h.

◆ DeleteStreamCallable()

template<typename DeleteStreamRequestT = Model::DeleteStreamRequest>
Model::DeleteStreamOutcomeCallable Aws::Kinesis::KinesisClient::DeleteStreamCallable ( const DeleteStreamRequestT &  request = {}) const
inline

A Callable wrapper for DeleteStream that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 273 of file KinesisClient.h.

◆ DeregisterStreamConsumer()

virtual Model::DeregisterStreamConsumerOutcome Aws::Kinesis::KinesisClient::DeregisterStreamConsumer ( const Model::DeregisterStreamConsumerRequest request = {}) const
virtual

To deregister a consumer, provide its ARN. Alternatively, you can provide the ARN of the data stream and the name you gave the consumer when you registered it. You may also provide all three parameters, as long as they don't conflict with each other. If you don't know the name or ARN of the consumer that you want to deregister, you can use the ListStreamConsumers operation to get a list of the descriptions of all the consumers that are currently registered with a given data stream. The description of a consumer contains its name and ARN.

This operation has a limit of five transactions per second per stream.

See Also:

AWS API Reference

◆ DeregisterStreamConsumerAsync()

template<typename DeregisterStreamConsumerRequestT = Model::DeregisterStreamConsumerRequest>
void Aws::Kinesis::KinesisClient::DeregisterStreamConsumerAsync ( const DeregisterStreamConsumerResponseReceivedHandler handler,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr,
const DeregisterStreamConsumerRequestT &  request = {} 
) const
inline

An Async wrapper for DeregisterStreamConsumer that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 315 of file KinesisClient.h.

◆ DeregisterStreamConsumerCallable()

template<typename DeregisterStreamConsumerRequestT = Model::DeregisterStreamConsumerRequest>
Model::DeregisterStreamConsumerOutcomeCallable Aws::Kinesis::KinesisClient::DeregisterStreamConsumerCallable ( const DeregisterStreamConsumerRequestT &  request = {}) const
inline

A Callable wrapper for DeregisterStreamConsumer that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 306 of file KinesisClient.h.

◆ DescribeLimits()

virtual Model::DescribeLimitsOutcome Aws::Kinesis::KinesisClient::DescribeLimits ( const Model::DescribeLimitsRequest request = {}) const
virtual

Describes the shard limits and usage for the account.

If you update your account limits, the old limits might be returned for a few minutes.

This operation has a limit of one transaction per second per account.

See Also:

AWS API Reference

◆ DescribeLimitsAsync()

template<typename DescribeLimitsRequestT = Model::DescribeLimitsRequest>
void Aws::Kinesis::KinesisClient::DescribeLimitsAsync ( const DescribeLimitsResponseReceivedHandler handler,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr,
const DescribeLimitsRequestT &  request = {} 
) const
inline

An Async wrapper for DescribeLimits that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 343 of file KinesisClient.h.

◆ DescribeLimitsCallable()

template<typename DescribeLimitsRequestT = Model::DescribeLimitsRequest>
Model::DescribeLimitsOutcomeCallable Aws::Kinesis::KinesisClient::DescribeLimitsCallable ( const DescribeLimitsRequestT &  request = {}) const
inline

A Callable wrapper for DescribeLimits that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 334 of file KinesisClient.h.

◆ DescribeStream()

virtual Model::DescribeStreamOutcome Aws::Kinesis::KinesisClient::DescribeStream ( const Model::DescribeStreamRequest request = {}) const
virtual

Describes the specified Kinesis data stream.

This API has been revised. It's highly recommended that you use the DescribeStreamSummary API to get a summarized description of the specified Kinesis data stream and the ListShards API to list the shards in a specified data stream and obtain information about each shard.

When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API.

The information returned includes the stream name, Amazon Resource Name (ARN), creation time, enhanced metric configuration, and shard map. The shard map is an array of shard objects. For each shard object, there is the hash key and sequence number ranges that the shard spans, and the IDs of any earlier shards that played in a role in creating the shard. Every record ingested in the stream is identified by a sequence number, which is assigned when the record is put into the stream.

You can limit the number of shards returned by each call. For more information, see Retrieving Shards from a Stream in the Amazon Kinesis Data Streams Developer Guide.

There are no guarantees about the chronological order shards returned. To process shards in chronological order, use the ID of the parent shard to track the lineage to the oldest shard.

This operation has a limit of 10 transactions per second per account.

See Also:

AWS API Reference

◆ DescribeStreamAsync()

template<typename DescribeStreamRequestT = Model::DescribeStreamRequest>
void Aws::Kinesis::KinesisClient::DescribeStreamAsync ( const DescribeStreamResponseReceivedHandler handler,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr,
const DescribeStreamRequestT &  request = {} 
) const
inline

An Async wrapper for DescribeStream that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 389 of file KinesisClient.h.

◆ DescribeStreamCallable()

template<typename DescribeStreamRequestT = Model::DescribeStreamRequest>
Model::DescribeStreamOutcomeCallable Aws::Kinesis::KinesisClient::DescribeStreamCallable ( const DescribeStreamRequestT &  request = {}) const
inline

A Callable wrapper for DescribeStream that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 380 of file KinesisClient.h.

◆ DescribeStreamConsumer()

virtual Model::DescribeStreamConsumerOutcome Aws::Kinesis::KinesisClient::DescribeStreamConsumer ( const Model::DescribeStreamConsumerRequest request = {}) const
virtual

To get the description of a registered consumer, provide the ARN of the consumer. Alternatively, you can provide the ARN of the data stream and the name you gave the consumer when you registered it. You may also provide all three parameters, as long as they don't conflict with each other. If you don't know the name or ARN of the consumer that you want to describe, you can use the ListStreamConsumers operation to get a list of the descriptions of all the consumers that are currently registered with a given data stream.

This operation has a limit of 20 transactions per second per stream.

When making a cross-account call with DescribeStreamConsumer, make sure to provide the ARN of the consumer.

See Also:

AWS API Reference

◆ DescribeStreamConsumerAsync()

template<typename DescribeStreamConsumerRequestT = Model::DescribeStreamConsumerRequest>
void Aws::Kinesis::KinesisClient::DescribeStreamConsumerAsync ( const DescribeStreamConsumerResponseReceivedHandler handler,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr,
const DescribeStreamConsumerRequestT &  request = {} 
) const
inline

An Async wrapper for DescribeStreamConsumer that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 424 of file KinesisClient.h.

◆ DescribeStreamConsumerCallable()

template<typename DescribeStreamConsumerRequestT = Model::DescribeStreamConsumerRequest>
Model::DescribeStreamConsumerOutcomeCallable Aws::Kinesis::KinesisClient::DescribeStreamConsumerCallable ( const DescribeStreamConsumerRequestT &  request = {}) const
inline

A Callable wrapper for DescribeStreamConsumer that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 415 of file KinesisClient.h.

◆ DescribeStreamSummary()

virtual Model::DescribeStreamSummaryOutcome Aws::Kinesis::KinesisClient::DescribeStreamSummary ( const Model::DescribeStreamSummaryRequest request = {}) const
virtual

Provides a summarized description of the specified Kinesis data stream without the shard list.

When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API.

The information returned includes the stream name, Amazon Resource Name (ARN), status, record retention period, approximate creation time, monitoring, encryption details, and open shard count.

DescribeStreamSummary has a limit of 20 transactions per second per account.

See Also:

AWS API Reference

◆ DescribeStreamSummaryAsync()

template<typename DescribeStreamSummaryRequestT = Model::DescribeStreamSummaryRequest>
void Aws::Kinesis::KinesisClient::DescribeStreamSummaryAsync ( const DescribeStreamSummaryResponseReceivedHandler handler,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr,
const DescribeStreamSummaryRequestT &  request = {} 
) const
inline

An Async wrapper for DescribeStreamSummary that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 457 of file KinesisClient.h.

◆ DescribeStreamSummaryCallable()

template<typename DescribeStreamSummaryRequestT = Model::DescribeStreamSummaryRequest>
Model::DescribeStreamSummaryOutcomeCallable Aws::Kinesis::KinesisClient::DescribeStreamSummaryCallable ( const DescribeStreamSummaryRequestT &  request = {}) const
inline

A Callable wrapper for DescribeStreamSummary that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 448 of file KinesisClient.h.

◆ DisableEnhancedMonitoring()

virtual Model::DisableEnhancedMonitoringOutcome Aws::Kinesis::KinesisClient::DisableEnhancedMonitoring ( const Model::DisableEnhancedMonitoringRequest request) const
virtual

Disables enhanced monitoring.

When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API.

See Also:

AWS API Reference

◆ DisableEnhancedMonitoringAsync()

template<typename DisableEnhancedMonitoringRequestT = Model::DisableEnhancedMonitoringRequest>
void Aws::Kinesis::KinesisClient::DisableEnhancedMonitoringAsync ( const DisableEnhancedMonitoringRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for DisableEnhancedMonitoring that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 485 of file KinesisClient.h.

◆ DisableEnhancedMonitoringCallable()

template<typename DisableEnhancedMonitoringRequestT = Model::DisableEnhancedMonitoringRequest>
Model::DisableEnhancedMonitoringOutcomeCallable Aws::Kinesis::KinesisClient::DisableEnhancedMonitoringCallable ( const DisableEnhancedMonitoringRequestT &  request) const
inline

A Callable wrapper for DisableEnhancedMonitoring that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 476 of file KinesisClient.h.

◆ EnableEnhancedMonitoring()

virtual Model::EnableEnhancedMonitoringOutcome Aws::Kinesis::KinesisClient::EnableEnhancedMonitoring ( const Model::EnableEnhancedMonitoringRequest request) const
virtual

Enables enhanced Kinesis data stream monitoring for shard-level metrics.

When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API.

See Also:

AWS API Reference

◆ EnableEnhancedMonitoringAsync()

template<typename EnableEnhancedMonitoringRequestT = Model::EnableEnhancedMonitoringRequest>
void Aws::Kinesis::KinesisClient::EnableEnhancedMonitoringAsync ( const EnableEnhancedMonitoringRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for EnableEnhancedMonitoring that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 514 of file KinesisClient.h.

◆ EnableEnhancedMonitoringCallable()

template<typename EnableEnhancedMonitoringRequestT = Model::EnableEnhancedMonitoringRequest>
Model::EnableEnhancedMonitoringOutcomeCallable Aws::Kinesis::KinesisClient::EnableEnhancedMonitoringCallable ( const EnableEnhancedMonitoringRequestT &  request) const
inline

A Callable wrapper for EnableEnhancedMonitoring that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 505 of file KinesisClient.h.

◆ GetAllocationTag()

static const char * Aws::Kinesis::KinesisClient::GetAllocationTag ( )
static

◆ GetRecords()

virtual Model::GetRecordsOutcome Aws::Kinesis::KinesisClient::GetRecords ( const Model::GetRecordsRequest request) const
virtual

Gets data records from a Kinesis data stream's shard.

When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API.

Specify a shard iterator using the ShardIterator parameter. The shard iterator specifies the position in the shard from which you want to start reading data records sequentially. If there are no records available in the portion of the shard that the iterator points to, GetRecords returns an empty list. It might take multiple calls to get to a portion of the shard that contains records.

You can scale by provisioning multiple shards per stream while considering service limits (for more information, see Amazon Kinesis Data Streams Limits in the Amazon Kinesis Data Streams Developer Guide). Your application should have one thread per shard, each reading continuously from its stream. To read from a stream continually, call GetRecords in a loop. Use GetShardIterator to get the shard iterator to specify in the first GetRecords call. GetRecords returns a new shard iterator in NextShardIterator. Specify the shard iterator returned in NextShardIterator in subsequent calls to GetRecords. If the shard has been closed, the shard iterator can't return more data and GetRecords returns null in NextShardIterator. You can terminate the loop when the shard is closed, or when the shard iterator reaches the record with the sequence number or other attribute that marks it as the last record to process.

Each data record can be up to 1 MiB in size, and each shard can read up to 2 MiB per second. You can ensure that your calls don't exceed the maximum supported size or throughput by using the Limit parameter to specify the maximum number of records that GetRecords can return. Consider your average record size when determining this limit. The maximum number of records that can be returned per call is 10,000.

The size of the data returned by GetRecords varies depending on the utilization of the shard. It is recommended that consumer applications retrieve records via the GetRecords command using the 5 TPS limit to remain caught up. Retrieving records less frequently can lead to consumer applications falling behind. The maximum size of data that GetRecords can return is 10 MiB. If a call returns this amount of data, subsequent calls made within the next 5 seconds throw ProvisionedThroughputExceededException. If there is insufficient provisioned throughput on the stream, subsequent calls made within the next 1 second throw ProvisionedThroughputExceededException. GetRecords doesn't return any data when it throws an exception. For this reason, we recommend that you wait 1 second between calls to GetRecords. However, it's possible that the application will get exceptions for longer than 1 second.

To detect whether the application is falling behind in processing, you can use the MillisBehindLatest response attribute. You can also monitor the stream using CloudWatch metrics and other mechanisms (see Monitoring in the Amazon Kinesis Data Streams Developer Guide).

Each Amazon Kinesis record includes a value, ApproximateArrivalTimestamp, that is set when a stream successfully receives and stores a record. This is commonly referred to as a server-side time stamp, whereas a client-side time stamp is set when a data producer creates or sends the record to a stream (a data producer is any data source putting data records into a stream, for example with PutRecords). The time stamp has millisecond precision. There are no guarantees about the time stamp accuracy, or that the time stamp is always increasing. For example, records in a shard or across a stream might have time stamps that are out of order.

This operation has a limit of five transactions per second per shard.

See Also:

AWS API Reference

◆ GetRecordsAsync()

template<typename GetRecordsRequestT = Model::GetRecordsRequest>
void Aws::Kinesis::KinesisClient::GetRecordsAsync ( const GetRecordsRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for GetRecords that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 596 of file KinesisClient.h.

◆ GetRecordsCallable()

template<typename GetRecordsRequestT = Model::GetRecordsRequest>
Model::GetRecordsOutcomeCallable Aws::Kinesis::KinesisClient::GetRecordsCallable ( const GetRecordsRequestT &  request) const
inline

A Callable wrapper for GetRecords that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 587 of file KinesisClient.h.

◆ GetResourcePolicy()

virtual Model::GetResourcePolicyOutcome Aws::Kinesis::KinesisClient::GetResourcePolicy ( const Model::GetResourcePolicyRequest request) const
virtual

Returns a policy attached to the specified data stream or consumer. Request patterns can be one of the following:

  • Data stream pattern: arn:aws.*:kinesis:.*:\d{12}:.*stream/\S+

  • Consumer pattern: ^(arn):aws.*:kinesis:.*:\d{12}:.*stream\/[a-zA-Z0-9_.-]+\/consumer\/[a-zA-Z0-9_.-]+:[0-9]+

See Also:

AWS API Reference

◆ GetResourcePolicyAsync()

template<typename GetResourcePolicyRequestT = Model::GetResourcePolicyRequest>
void Aws::Kinesis::KinesisClient::GetResourcePolicyAsync ( const GetResourcePolicyRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for GetResourcePolicy that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 626 of file KinesisClient.h.

◆ GetResourcePolicyCallable()

template<typename GetResourcePolicyRequestT = Model::GetResourcePolicyRequest>
Model::GetResourcePolicyOutcomeCallable Aws::Kinesis::KinesisClient::GetResourcePolicyCallable ( const GetResourcePolicyRequestT &  request) const
inline

A Callable wrapper for GetResourcePolicy that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 617 of file KinesisClient.h.

◆ GetServiceName()

static const char * Aws::Kinesis::KinesisClient::GetServiceName ( )
static

◆ GetShardIterator()

virtual Model::GetShardIteratorOutcome Aws::Kinesis::KinesisClient::GetShardIterator ( const Model::GetShardIteratorRequest request) const
virtual

Gets an Amazon Kinesis shard iterator. A shard iterator expires 5 minutes after it is returned to the requester.

When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API.

A shard iterator specifies the shard position from which to start reading data records sequentially. The position is specified using the sequence number of a data record in a shard. A sequence number is the identifier associated with every record ingested in the stream, and is assigned when a record is put into the stream. Each stream has one or more shards.

You must specify the shard iterator type. For example, you can set the ShardIteratorType parameter to read exactly from the position denoted by a specific sequence number by using the AT_SEQUENCE_NUMBER shard iterator type. Alternatively, the parameter can read right after the sequence number by using the AFTER_SEQUENCE_NUMBER shard iterator type, using sequence numbers returned by earlier calls to PutRecord, PutRecords, GetRecords, or DescribeStream. In the request, you can specify the shard iterator type AT_TIMESTAMP to read records from an arbitrary point in time, TRIM_HORIZON to cause ShardIterator to point to the last untrimmed record in the shard in the system (the oldest data record in the shard), or LATEST so that you always read the most recent data in the shard.

When you read repeatedly from a stream, use a GetShardIterator request to get the first shard iterator for use in your first GetRecords request and for subsequent reads use the shard iterator returned by the GetRecords request in NextShardIterator. A new shard iterator is returned by every GetRecords request in NextShardIterator, which you use in the ShardIterator parameter of the next GetRecords request.

If a GetShardIterator request is made too often, you receive a ProvisionedThroughputExceededException. For more information about throughput limits, see GetRecords, and Streams Limits in the Amazon Kinesis Data Streams Developer Guide.

If the shard is closed, GetShardIterator returns a valid iterator for the last sequence number of the shard. A shard can be closed as a result of using SplitShard or MergeShards.

GetShardIterator has a limit of five transactions per second per account per open shard.

See Also:

AWS API Reference

◆ GetShardIteratorAsync()

template<typename GetShardIteratorRequestT = Model::GetShardIteratorRequest>
void Aws::Kinesis::KinesisClient::GetShardIteratorAsync ( const GetShardIteratorRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for GetShardIterator that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 688 of file KinesisClient.h.

◆ GetShardIteratorCallable()

template<typename GetShardIteratorRequestT = Model::GetShardIteratorRequest>
Model::GetShardIteratorOutcomeCallable Aws::Kinesis::KinesisClient::GetShardIteratorCallable ( const GetShardIteratorRequestT &  request) const
inline

A Callable wrapper for GetShardIterator that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 679 of file KinesisClient.h.

◆ IncreaseStreamRetentionPeriod()

virtual Model::IncreaseStreamRetentionPeriodOutcome Aws::Kinesis::KinesisClient::IncreaseStreamRetentionPeriod ( const Model::IncreaseStreamRetentionPeriodRequest request) const
virtual

Increases the Kinesis data stream's retention period, which is the length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 8760 hours (365 days).

When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API.

If you choose a longer stream retention period, this operation increases the time period during which records that have not yet expired are accessible. However, it does not make previous, expired data (older than the stream's previous retention period) accessible after the operation has been called. For example, if a stream's retention period is set to 24 hours and is increased to 168 hours, any data that is older than 24 hours remains inaccessible to consumer applications.

See Also:

AWS API Reference

◆ IncreaseStreamRetentionPeriodAsync()

template<typename IncreaseStreamRetentionPeriodRequestT = Model::IncreaseStreamRetentionPeriodRequest>
void Aws::Kinesis::KinesisClient::IncreaseStreamRetentionPeriodAsync ( const IncreaseStreamRetentionPeriodRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for IncreaseStreamRetentionPeriod that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 725 of file KinesisClient.h.

◆ IncreaseStreamRetentionPeriodCallable()

template<typename IncreaseStreamRetentionPeriodRequestT = Model::IncreaseStreamRetentionPeriodRequest>
Model::IncreaseStreamRetentionPeriodOutcomeCallable Aws::Kinesis::KinesisClient::IncreaseStreamRetentionPeriodCallable ( const IncreaseStreamRetentionPeriodRequestT &  request) const
inline

A Callable wrapper for IncreaseStreamRetentionPeriod that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 716 of file KinesisClient.h.

◆ ListShards()

virtual Model::ListShardsOutcome Aws::Kinesis::KinesisClient::ListShards ( const Model::ListShardsRequest request = {}) const
virtual

Lists the shards in a stream and provides information about each shard. This operation has a limit of 1000 transactions per second per data stream.

When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API.

This action does not list expired shards. For information about expired shards, see Data Routing, Data Persistence, and Shard State after a Reshard.

This API is a new operation that is used by the Amazon Kinesis Client Library (KCL). If you have a fine-grained IAM policy that only allows specific operations, you must update your policy to allow calls to this API. For more information, see Controlling Access to Amazon Kinesis Data Streams Resources Using IAM.

See Also:

AWS API Reference

◆ ListShardsAsync()

template<typename ListShardsRequestT = Model::ListShardsRequest>
void Aws::Kinesis::KinesisClient::ListShardsAsync ( const ListShardsResponseReceivedHandler handler,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr,
const ListShardsRequestT &  request = {} 
) const
inline

An Async wrapper for ListShards that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 765 of file KinesisClient.h.

◆ ListShardsCallable()

template<typename ListShardsRequestT = Model::ListShardsRequest>
Model::ListShardsOutcomeCallable Aws::Kinesis::KinesisClient::ListShardsCallable ( const ListShardsRequestT &  request = {}) const
inline

A Callable wrapper for ListShards that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 756 of file KinesisClient.h.

◆ ListStreamConsumers()

virtual Model::ListStreamConsumersOutcome Aws::Kinesis::KinesisClient::ListStreamConsumers ( const Model::ListStreamConsumersRequest request) const
virtual

Lists the consumers registered to receive data from a stream using enhanced fan-out, and provides information about each consumer.

This operation has a limit of 5 transactions per second per stream.

See Also:

AWS API Reference

◆ ListStreamConsumersAsync()

template<typename ListStreamConsumersRequestT = Model::ListStreamConsumersRequest>
void Aws::Kinesis::KinesisClient::ListStreamConsumersAsync ( const ListStreamConsumersRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for ListStreamConsumers that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 792 of file KinesisClient.h.

◆ ListStreamConsumersCallable()

template<typename ListStreamConsumersRequestT = Model::ListStreamConsumersRequest>
Model::ListStreamConsumersOutcomeCallable Aws::Kinesis::KinesisClient::ListStreamConsumersCallable ( const ListStreamConsumersRequestT &  request) const
inline

A Callable wrapper for ListStreamConsumers that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 783 of file KinesisClient.h.

◆ ListStreams()

virtual Model::ListStreamsOutcome Aws::Kinesis::KinesisClient::ListStreams ( const Model::ListStreamsRequest request = {}) const
virtual

Lists your Kinesis data streams.

The number of streams may be too large to return from a single call to ListStreams. You can limit the number of returned streams using the Limit parameter. If you do not specify a value for the Limit parameter, Kinesis Data Streams uses the default limit, which is currently 100.

You can detect if there are more streams available to list by using the HasMoreStreams flag from the returned output. If there are more streams available, you can request more streams by using the name of the last stream returned by the ListStreams request in the ExclusiveStartStreamName parameter in a subsequent request to ListStreams. The group of stream names returned by the subsequent request is then added to the list. You can continue this process until all the stream names have been collected in the list.

ListStreams has a limit of five transactions per second per account.

See Also:

AWS API Reference

◆ ListStreamsAsync()

template<typename ListStreamsRequestT = Model::ListStreamsRequest>
void Aws::Kinesis::KinesisClient::ListStreamsAsync ( const ListStreamsResponseReceivedHandler handler,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr,
const ListStreamsRequestT &  request = {} 
) const
inline

An Async wrapper for ListStreams that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 830 of file KinesisClient.h.

◆ ListStreamsCallable()

template<typename ListStreamsRequestT = Model::ListStreamsRequest>
Model::ListStreamsOutcomeCallable Aws::Kinesis::KinesisClient::ListStreamsCallable ( const ListStreamsRequestT &  request = {}) const
inline

A Callable wrapper for ListStreams that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 821 of file KinesisClient.h.

◆ ListTagsForStream()

virtual Model::ListTagsForStreamOutcome Aws::Kinesis::KinesisClient::ListTagsForStream ( const Model::ListTagsForStreamRequest request = {}) const
virtual

Lists the tags for the specified Kinesis data stream. This operation has a limit of five transactions per second per account.

When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API.

See Also:

AWS API Reference

◆ ListTagsForStreamAsync()

template<typename ListTagsForStreamRequestT = Model::ListTagsForStreamRequest>
void Aws::Kinesis::KinesisClient::ListTagsForStreamAsync ( const ListTagsForStreamResponseReceivedHandler handler,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr,
const ListTagsForStreamRequestT &  request = {} 
) const
inline

An Async wrapper for ListTagsForStream that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 860 of file KinesisClient.h.

◆ ListTagsForStreamCallable()

template<typename ListTagsForStreamRequestT = Model::ListTagsForStreamRequest>
Model::ListTagsForStreamOutcomeCallable Aws::Kinesis::KinesisClient::ListTagsForStreamCallable ( const ListTagsForStreamRequestT &  request = {}) const
inline

A Callable wrapper for ListTagsForStream that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 851 of file KinesisClient.h.

◆ MergeShards()

virtual Model::MergeShardsOutcome Aws::Kinesis::KinesisClient::MergeShards ( const Model::MergeShardsRequest request) const
virtual

Merges two adjacent shards in a Kinesis data stream and combines them into a single shard to reduce the stream's capacity to ingest and transport data. This API is only supported for the data streams with the provisioned capacity mode. Two shards are considered adjacent if the union of the hash key ranges for the two shards form a contiguous set with no gaps. For example, if you have two shards, one with a hash key range of 276...381 and the other with a hash key range of 382...454, then you could merge these two shards into a single shard that would have a hash key range of 276...454. After the merge, the single child shard receives data for all hash key values covered by the two parent shards.

When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API.

MergeShards is called when there is a need to reduce the overall capacity of a stream because of excess capacity that is not being used. You must specify the shard to be merged and the adjacent shard for a stream. For more information about merging shards, see Merge Two Shards in the Amazon Kinesis Data Streams Developer Guide.

If the stream is in the ACTIVE state, you can call MergeShards. If a stream is in the CREATING, UPDATING, or DELETING state, MergeShards returns a ResourceInUseException. If the specified stream does not exist, MergeShards returns a ResourceNotFoundException.

You can use DescribeStreamSummary to check the state of the stream, which is returned in StreamStatus.

MergeShards is an asynchronous operation. Upon receiving a MergeShards request, Amazon Kinesis Data Streams immediately returns a response and sets the StreamStatus to UPDATING. After the operation is completed, Kinesis Data Streams sets the StreamStatus to ACTIVE. Read and write operations continue to work while the stream is in the UPDATING state.

You use DescribeStreamSummary and the ListShards APIs to determine the shard IDs that are specified in the MergeShards request.

If you try to operate on too many streams in parallel using CreateStream, DeleteStream, MergeShards, or SplitShard, you receive a LimitExceededException.

MergeShards has a limit of five transactions per second per account.

See Also:

AWS API Reference

◆ MergeShardsAsync()

template<typename MergeShardsRequestT = Model::MergeShardsRequest>
void Aws::Kinesis::KinesisClient::MergeShardsAsync ( const MergeShardsRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for MergeShards that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 922 of file KinesisClient.h.

◆ MergeShardsCallable()

template<typename MergeShardsRequestT = Model::MergeShardsRequest>
Model::MergeShardsOutcomeCallable Aws::Kinesis::KinesisClient::MergeShardsCallable ( const MergeShardsRequestT &  request) const
inline

A Callable wrapper for MergeShards that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 913 of file KinesisClient.h.

◆ OverrideEndpoint()

void Aws::Kinesis::KinesisClient::OverrideEndpoint ( const Aws::String endpoint)

◆ PutRecord()

virtual Model::PutRecordOutcome Aws::Kinesis::KinesisClient::PutRecord ( const Model::PutRecordRequest request) const
virtual

Writes a single data record into an Amazon Kinesis data stream. Call PutRecord to send data into the stream for real-time ingestion and subsequent processing, one record at a time. Each shard can support writes up to 1,000 records per second, up to a maximum data write total of 1 MiB per second.

When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API.

You must specify the name of the stream that captures, stores, and transports the data; a partition key; and the data blob itself.

The data blob can be any type of data; for example, a segment from a log file, geographic/location data, website clickstream data, and so on.

The partition key is used by Kinesis Data Streams to distribute data across shards. Kinesis Data Streams segregates the data records that belong to a stream into multiple shards, using the partition key associated with each data record to determine the shard to which a given data record belongs.

Partition keys are Unicode strings, with a maximum length limit of 256 characters for each key. An MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards using the hash key ranges of the shards. You can override hashing the partition key to determine the shard by explicitly specifying a hash value using the ExplicitHashKey parameter. For more information, see Adding Data to a Stream in the Amazon Kinesis Data Streams Developer Guide.

PutRecord returns the shard ID of where the data record was placed and the sequence number that was assigned to the data record.

Sequence numbers increase over time and are specific to a shard within a stream, not across all shards within a stream. To guarantee strictly increasing ordering, write serially to a shard and use the SequenceNumberForOrdering parameter. For more information, see Adding Data to a Stream in the Amazon Kinesis Data Streams Developer Guide.

After you write a record to a stream, you cannot modify that record or its order within the stream.

If a PutRecord request cannot be processed because of insufficient provisioned throughput on the shard involved in the request, PutRecord throws ProvisionedThroughputExceededException.

By default, data records are accessible for 24 hours from the time that they are added to a stream. You can use IncreaseStreamRetentionPeriod or DecreaseStreamRetentionPeriod to modify this retention period.

See Also:

AWS API Reference

◆ PutRecordAsync()

template<typename PutRecordRequestT = Model::PutRecordRequest>
void Aws::Kinesis::KinesisClient::PutRecordAsync ( const PutRecordRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for PutRecord that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 987 of file KinesisClient.h.

◆ PutRecordCallable()

template<typename PutRecordRequestT = Model::PutRecordRequest>
Model::PutRecordOutcomeCallable Aws::Kinesis::KinesisClient::PutRecordCallable ( const PutRecordRequestT &  request) const
inline

A Callable wrapper for PutRecord that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 978 of file KinesisClient.h.

◆ PutRecords()

virtual Model::PutRecordsOutcome Aws::Kinesis::KinesisClient::PutRecords ( const Model::PutRecordsRequest request) const
virtual

Writes multiple data records into a Kinesis data stream in a single call (also referred to as a PutRecords request). Use this operation to send data into the stream for data ingestion and processing.

When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API.

Each PutRecords request can support up to 500 records. Each record in the request can be as large as 1 MiB, up to a limit of 5 MiB for the entire request, including partition keys. Each shard can support writes up to 1,000 records per second, up to a maximum data write total of 1 MiB per second.

You must specify the name of the stream that captures, stores, and transports the data; and an array of request Records, with each record in the array requiring a partition key and data blob. The record size limit applies to the total size of the partition key and data blob.

The data blob can be any type of data; for example, a segment from a log file, geographic/location data, website clickstream data, and so on.

The partition key is used by Kinesis Data Streams as input to a hash function that maps the partition key and associated data to a specific shard. An MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream. For more information, see Adding Data to a Stream in the Amazon Kinesis Data Streams Developer Guide.

Each record in the Records array may include an optional parameter, ExplicitHashKey, which overrides the partition key to shard mapping. This parameter allows a data producer to determine explicitly the shard where the record is stored. For more information, see Adding Multiple Records with PutRecords in the Amazon Kinesis Data Streams Developer Guide.

The PutRecords response includes an array of response Records. Each record in the response array directly correlates with a record in the request array using natural ordering, from the top to the bottom of the request and response. The response Records array always includes the same number of records as the request array.

The response Records array includes both successfully and unsuccessfully processed records. Kinesis Data Streams attempts to process all records in each PutRecords request. A single record failure does not stop the processing of subsequent records. As a result, PutRecords doesn't guarantee the ordering of records. If you need to read records in the same order they are written to the stream, use PutRecord instead of PutRecords, and write to the same shard.

A successfully processed record includes ShardId and SequenceNumber values. The ShardId parameter identifies the shard in the stream where the record is stored. The SequenceNumber parameter is an identifier assigned to the put record, unique to all records in the stream.

An unsuccessfully processed record includes ErrorCode and ErrorMessage values. ErrorCode reflects the type of error and can be one of the following values: ProvisionedThroughputExceededException or InternalFailure. ErrorMessage provides more detailed information about the ProvisionedThroughputExceededException exception including the account ID, stream name, and shard ID of the record that was throttled. For more information about partially successful responses, see Adding Multiple Records with PutRecords in the Amazon Kinesis Data Streams Developer Guide.

After you write a record to a stream, you cannot modify that record or its order within the stream.

By default, data records are accessible for 24 hours from the time that they are added to a stream. You can use IncreaseStreamRetentionPeriod or DecreaseStreamRetentionPeriod to modify this retention period.

See Also:

AWS API Reference

◆ PutRecordsAsync()

template<typename PutRecordsRequestT = Model::PutRecordsRequest>
void Aws::Kinesis::KinesisClient::PutRecordsAsync ( const PutRecordsRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for PutRecords that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 1073 of file KinesisClient.h.

◆ PutRecordsCallable()

template<typename PutRecordsRequestT = Model::PutRecordsRequest>
Model::PutRecordsOutcomeCallable Aws::Kinesis::KinesisClient::PutRecordsCallable ( const PutRecordsRequestT &  request) const
inline

A Callable wrapper for PutRecords that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 1064 of file KinesisClient.h.

◆ PutResourcePolicy()

virtual Model::PutResourcePolicyOutcome Aws::Kinesis::KinesisClient::PutResourcePolicy ( const Model::PutResourcePolicyRequest request) const
virtual

Attaches a resource-based policy to a data stream or registered consumer. If you are using an identity other than the root user of the Amazon Web Services account that owns the resource, the calling identity must have the PutResourcePolicy permissions on the specified Kinesis Data Streams resource and belong to the owner's account in order to use this operation. If you don't have PutResourcePolicy permissions, Amazon Kinesis Data Streams returns a 403 Access Denied error. If you receive a ResourceNotFoundException, check to see if you passed a valid stream or consumer resource.

Request patterns can be one of the following:

  • Data stream pattern: arn:aws.*:kinesis:.*:\d{12}:.*stream/\S+

  • Consumer pattern: ^(arn):aws.*:kinesis:.*:\d{12}:.*stream\/[a-zA-Z0-9_.-]+\/consumer\/[a-zA-Z0-9_.-]+:[0-9]+

For more information, see Controlling Access to Amazon Kinesis Data Streams Resources Using IAM.

See Also:

AWS API Reference

◆ PutResourcePolicyAsync()

template<typename PutResourcePolicyRequestT = Model::PutResourcePolicyRequest>
void Aws::Kinesis::KinesisClient::PutResourcePolicyAsync ( const PutResourcePolicyRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for PutResourcePolicy that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 1114 of file KinesisClient.h.

◆ PutResourcePolicyCallable()

template<typename PutResourcePolicyRequestT = Model::PutResourcePolicyRequest>
Model::PutResourcePolicyOutcomeCallable Aws::Kinesis::KinesisClient::PutResourcePolicyCallable ( const PutResourcePolicyRequestT &  request) const
inline

A Callable wrapper for PutResourcePolicy that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 1105 of file KinesisClient.h.

◆ RegisterStreamConsumer()

virtual Model::RegisterStreamConsumerOutcome Aws::Kinesis::KinesisClient::RegisterStreamConsumer ( const Model::RegisterStreamConsumerRequest request) const
virtual

Registers a consumer with a Kinesis data stream. When you use this operation, the consumer you register can then call SubscribeToShard to receive data from the stream using enhanced fan-out, at a rate of up to 2 MiB per second for every shard you subscribe to. This rate is unaffected by the total number of consumers that read from the same stream.

You can register up to 20 consumers per stream. A given consumer can only be registered with one stream at a time.

For an example of how to use this operation, see Enhanced Fan-Out Using the Kinesis Data Streams API.

The use of this operation has a limit of five transactions per second per account. Also, only 5 consumers can be created simultaneously. In other words, you cannot have more than 5 consumers in a CREATING status at the same time. Registering a 6th consumer while there are 5 in a CREATING status results in a LimitExceededException.

See Also:

AWS API Reference

◆ RegisterStreamConsumerAsync()

template<typename RegisterStreamConsumerRequestT = Model::RegisterStreamConsumerRequest>
void Aws::Kinesis::KinesisClient::RegisterStreamConsumerAsync ( const RegisterStreamConsumerRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for RegisterStreamConsumer that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 1152 of file KinesisClient.h.

◆ RegisterStreamConsumerCallable()

template<typename RegisterStreamConsumerRequestT = Model::RegisterStreamConsumerRequest>
Model::RegisterStreamConsumerOutcomeCallable Aws::Kinesis::KinesisClient::RegisterStreamConsumerCallable ( const RegisterStreamConsumerRequestT &  request) const
inline

A Callable wrapper for RegisterStreamConsumer that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 1143 of file KinesisClient.h.

◆ RemoveTagsFromStream()

virtual Model::RemoveTagsFromStreamOutcome Aws::Kinesis::KinesisClient::RemoveTagsFromStream ( const Model::RemoveTagsFromStreamRequest request) const
virtual

Removes tags from the specified Kinesis data stream. Removed tags are deleted and cannot be recovered after this operation successfully completes.

When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API.

If you specify a tag that does not exist, it is ignored.

RemoveTagsFromStream has a limit of five transactions per second per account.

See Also:

AWS API Reference

◆ RemoveTagsFromStreamAsync()

template<typename RemoveTagsFromStreamRequestT = Model::RemoveTagsFromStreamRequest>
void Aws::Kinesis::KinesisClient::RemoveTagsFromStreamAsync ( const RemoveTagsFromStreamRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for RemoveTagsFromStream that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 1184 of file KinesisClient.h.

◆ RemoveTagsFromStreamCallable()

template<typename RemoveTagsFromStreamRequestT = Model::RemoveTagsFromStreamRequest>
Model::RemoveTagsFromStreamOutcomeCallable Aws::Kinesis::KinesisClient::RemoveTagsFromStreamCallable ( const RemoveTagsFromStreamRequestT &  request) const
inline

A Callable wrapper for RemoveTagsFromStream that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 1175 of file KinesisClient.h.

◆ SplitShard()

virtual Model::SplitShardOutcome Aws::Kinesis::KinesisClient::SplitShard ( const Model::SplitShardRequest request) const
virtual

Splits a shard into two new shards in the Kinesis data stream, to increase the stream's capacity to ingest and transport data. SplitShard is called when there is a need to increase the overall capacity of a stream because of an expected increase in the volume of data records being ingested. This API is only supported for the data streams with the provisioned capacity mode.

When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API.

You can also use SplitShard when a shard appears to be approaching its maximum utilization; for example, the producers sending data into the specific shard are suddenly sending more than previously anticipated. You can also call SplitShard to increase stream capacity, so that more Kinesis Data Streams applications can simultaneously read data from the stream for real-time processing.

You must specify the shard to be split and the new hash key, which is the position in the shard where the shard gets split in two. In many cases, the new hash key might be the average of the beginning and ending hash key, but it can be any hash key value in the range being mapped into the shard. For more information, see Split a Shard in the Amazon Kinesis Data Streams Developer Guide.

You can use DescribeStreamSummary and the ListShards APIs to determine the shard ID and hash key values for the ShardToSplit and NewStartingHashKey parameters that are specified in the SplitShard request.

SplitShard is an asynchronous operation. Upon receiving a SplitShard request, Kinesis Data Streams immediately returns a response and sets the stream status to UPDATING. After the operation is completed, Kinesis Data Streams sets the stream status to ACTIVE. Read and write operations continue to work while the stream is in the UPDATING state.

You can use DescribeStreamSummary to check the status of the stream, which is returned in StreamStatus. If the stream is in the ACTIVE state, you can call SplitShard.

If the specified stream does not exist, DescribeStreamSummary returns a ResourceNotFoundException. If you try to create more shards than are authorized for your account, you receive a LimitExceededException.

For the default shard limit for an Amazon Web Services account, see Kinesis Data Streams Limits in the Amazon Kinesis Data Streams Developer Guide. To increase this limit, contact Amazon Web Services Support.

If you try to operate on too many streams simultaneously using CreateStream, DeleteStream, MergeShards, and/or SplitShard, you receive a LimitExceededException.

SplitShard has a limit of five transactions per second per account.

See Also:

AWS API Reference

◆ SplitShardAsync()

template<typename SplitShardRequestT = Model::SplitShardRequest>
void Aws::Kinesis::KinesisClient::SplitShardAsync ( const SplitShardRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for SplitShard that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 1254 of file KinesisClient.h.

◆ SplitShardCallable()

template<typename SplitShardRequestT = Model::SplitShardRequest>
Model::SplitShardOutcomeCallable Aws::Kinesis::KinesisClient::SplitShardCallable ( const SplitShardRequestT &  request) const
inline

A Callable wrapper for SplitShard that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 1245 of file KinesisClient.h.

◆ StartStreamEncryption()

virtual Model::StartStreamEncryptionOutcome Aws::Kinesis::KinesisClient::StartStreamEncryption ( const Model::StartStreamEncryptionRequest request) const
virtual

Enables or updates server-side encryption using an Amazon Web Services KMS key for a specified stream.

When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API.

Starting encryption is an asynchronous operation. Upon receiving the request, Kinesis Data Streams returns immediately and sets the status of the stream to UPDATING. After the update is complete, Kinesis Data Streams sets the status of the stream back to ACTIVE. Updating or applying encryption normally takes a few seconds to complete, but it can take minutes. You can continue to read and write data to your stream while its status is UPDATING. Once the status of the stream is ACTIVE, encryption begins for records written to the stream.

API Limits: You can successfully apply a new Amazon Web Services KMS key for server-side encryption 25 times in a rolling 24-hour period.

Note: It can take up to 5 seconds after the stream is in an ACTIVE status before all records written to the stream are encrypted. After you enable encryption, you can verify that encryption is applied by inspecting the API response from PutRecord or PutRecords.

See Also:

AWS API Reference

◆ StartStreamEncryptionAsync()

template<typename StartStreamEncryptionRequestT = Model::StartStreamEncryptionRequest>
void Aws::Kinesis::KinesisClient::StartStreamEncryptionAsync ( const StartStreamEncryptionRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for StartStreamEncryption that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 1297 of file KinesisClient.h.

◆ StartStreamEncryptionCallable()

template<typename StartStreamEncryptionRequestT = Model::StartStreamEncryptionRequest>
Model::StartStreamEncryptionOutcomeCallable Aws::Kinesis::KinesisClient::StartStreamEncryptionCallable ( const StartStreamEncryptionRequestT &  request) const
inline

A Callable wrapper for StartStreamEncryption that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 1288 of file KinesisClient.h.

◆ StopStreamEncryption()

virtual Model::StopStreamEncryptionOutcome Aws::Kinesis::KinesisClient::StopStreamEncryption ( const Model::StopStreamEncryptionRequest request) const
virtual

Disables server-side encryption for a specified stream.

When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API.

Stopping encryption is an asynchronous operation. Upon receiving the request, Kinesis Data Streams returns immediately and sets the status of the stream to UPDATING. After the update is complete, Kinesis Data Streams sets the status of the stream back to ACTIVE. Stopping encryption normally takes a few seconds to complete, but it can take minutes. You can continue to read and write data to your stream while its status is UPDATING. Once the status of the stream is ACTIVE, records written to the stream are no longer encrypted by Kinesis Data Streams.

API Limits: You can successfully disable server-side encryption 25 times in a rolling 24-hour period.

Note: It can take up to 5 seconds after the stream is in an ACTIVE status before all records written to the stream are no longer subject to encryption. After you disabled encryption, you can verify that encryption is not applied by inspecting the API response from PutRecord or PutRecords.

See Also:

AWS API Reference

◆ StopStreamEncryptionAsync()

template<typename StopStreamEncryptionRequestT = Model::StopStreamEncryptionRequest>
void Aws::Kinesis::KinesisClient::StopStreamEncryptionAsync ( const StopStreamEncryptionRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for StopStreamEncryption that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 1339 of file KinesisClient.h.

◆ StopStreamEncryptionCallable()

template<typename StopStreamEncryptionRequestT = Model::StopStreamEncryptionRequest>
Model::StopStreamEncryptionOutcomeCallable Aws::Kinesis::KinesisClient::StopStreamEncryptionCallable ( const StopStreamEncryptionRequestT &  request) const
inline

A Callable wrapper for StopStreamEncryption that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 1330 of file KinesisClient.h.

◆ SubscribeToShard()

virtual Model::SubscribeToShardOutcome Aws::Kinesis::KinesisClient::SubscribeToShard ( Model::SubscribeToShardRequest request) const
virtual

This operation establishes an HTTP/2 connection between the consumer you specify in the ConsumerARN parameter and the shard you specify in the ShardId parameter. After the connection is successfully established, Kinesis Data Streams pushes records from the shard to the consumer over this connection. Before you call this operation, call RegisterStreamConsumer to register the consumer with Kinesis Data Streams.

When the SubscribeToShard call succeeds, your consumer starts receiving events of type SubscribeToShardEvent over the HTTP/2 connection for up to 5 minutes, after which time you need to call SubscribeToShard again to renew the subscription if you want to continue to receive records.

You can make one call to SubscribeToShard per second per registered consumer per shard. For example, if you have a 4000 shard stream and two registered stream consumers, you can make one SubscribeToShard request per second for each combination of shard and registered consumer, allowing you to subscribe both consumers to all 4000 shards in one second.

If you call SubscribeToShard again with the same ConsumerARN and ShardId within 5 seconds of a successful call, you'll get a ResourceInUseException. If you call SubscribeToShard 5 seconds or more after a successful call, the second call takes over the subscription and the previous connection expires or fails with a ResourceInUseException.

For an example of how to use this operation, see Enhanced Fan-Out Using the Kinesis Data Streams API.

See Also:

AWS API Reference

◆ SubscribeToShardAsync()

template<typename SubscribeToShardRequestT = Model::SubscribeToShardRequest>
void Aws::Kinesis::KinesisClient::SubscribeToShardAsync ( SubscribeToShardRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for SubscribeToShard that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 1388 of file KinesisClient.h.

◆ SubscribeToShardCallable()

template<typename SubscribeToShardRequestT = Model::SubscribeToShardRequest>
Model::SubscribeToShardOutcomeCallable Aws::Kinesis::KinesisClient::SubscribeToShardCallable ( SubscribeToShardRequestT &  request) const
inline

A Callable wrapper for SubscribeToShard that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 1379 of file KinesisClient.h.

◆ UpdateShardCount()

virtual Model::UpdateShardCountOutcome Aws::Kinesis::KinesisClient::UpdateShardCount ( const Model::UpdateShardCountRequest request) const
virtual

Updates the shard count of the specified stream to the specified number of shards. This API is only supported for the data streams with the provisioned capacity mode.

When invoking this API, you must use either the StreamARN or the StreamName parameter, or both. It is recommended that you use the StreamARN input parameter when you invoke this API.

Updating the shard count is an asynchronous operation. Upon receiving the request, Kinesis Data Streams returns immediately and sets the status of the stream to UPDATING. After the update is complete, Kinesis Data Streams sets the status of the stream back to ACTIVE. Depending on the size of the stream, the scaling action could take a few minutes to complete. You can continue to read and write data to your stream while its status is UPDATING.

To update the shard count, Kinesis Data Streams performs splits or merges on individual shards. This can cause short-lived shards to be created, in addition to the final shards. These short-lived shards count towards your total shard limit for your account in the Region.

When using this operation, we recommend that you specify a target shard count that is a multiple of 25% (25%, 50%, 75%, 100%). You can specify any target value within your shard limit. However, if you specify a target that isn't a multiple of 25%, the scaling action might take longer to complete.

This operation has the following default limits. By default, you cannot do the following:

  • Scale more than ten times per rolling 24-hour period per stream

  • Scale up to more than double your current shard count for a stream

  • Scale down below half your current shard count for a stream

  • Scale up to more than 10000 shards in a stream

  • Scale a stream with more than 10000 shards down unless the result is less than 10000 shards

  • Scale up to more than the shard limit for your account

  • Make over 10 TPS. TPS over 10 will trigger the LimitExceededException

For the default limits for an Amazon Web Services account, see Streams Limits in the Amazon Kinesis Data Streams Developer Guide. To request an increase in the call rate limit, the shard limit for this API, or your overall shard limit, use the limits form.

See Also:

AWS API Reference

◆ UpdateShardCountAsync()

template<typename UpdateShardCountRequestT = Model::UpdateShardCountRequest>
void Aws::Kinesis::KinesisClient::UpdateShardCountAsync ( const UpdateShardCountRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for UpdateShardCount that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 1447 of file KinesisClient.h.

◆ UpdateShardCountCallable()

template<typename UpdateShardCountRequestT = Model::UpdateShardCountRequest>
Model::UpdateShardCountOutcomeCallable Aws::Kinesis::KinesisClient::UpdateShardCountCallable ( const UpdateShardCountRequestT &  request) const
inline

A Callable wrapper for UpdateShardCount that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 1438 of file KinesisClient.h.

◆ UpdateStreamMode()

virtual Model::UpdateStreamModeOutcome Aws::Kinesis::KinesisClient::UpdateStreamMode ( const Model::UpdateStreamModeRequest request) const
virtual

Updates the capacity mode of the data stream. Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data stream.

See Also:

AWS API Reference

◆ UpdateStreamModeAsync()

template<typename UpdateStreamModeRequestT = Model::UpdateStreamModeRequest>
void Aws::Kinesis::KinesisClient::UpdateStreamModeAsync ( const UpdateStreamModeRequestT &  request,
const std::shared_ptr< const Aws::Client::AsyncCallerContext > &  context = nullptr 
) const
inline

An Async wrapper for UpdateStreamMode that queues the request into a thread executor and triggers associated callback when operation has finished.

Definition at line 1475 of file KinesisClient.h.

◆ UpdateStreamModeCallable()

template<typename UpdateStreamModeRequestT = Model::UpdateStreamModeRequest>
Model::UpdateStreamModeOutcomeCallable Aws::Kinesis::KinesisClient::UpdateStreamModeCallable ( const UpdateStreamModeRequestT &  request) const
inline

A Callable wrapper for UpdateStreamMode that returns a future to the operation so that it can be executed in parallel to other requests.

Definition at line 1466 of file KinesisClient.h.

Friends And Related Symbol Documentation

◆ Aws::Client::ClientWithAsyncTemplateMethods< KinesisClient >

Definition at line 1482 of file KinesisClient.h.


The documentation for this class was generated from the following file: