AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DynamoDBStreamsClient.h
1
6#pragma once
7#include <aws/dynamodbstreams/DynamoDBStreams_EXPORTS.h>
8#include <aws/core/client/ClientConfiguration.h>
9#include <aws/core/client/AWSClient.h>
10#include <aws/core/client/AWSClientAsyncCRTP.h>
11#include <aws/core/utils/json/JsonSerializer.h>
12#include <aws/dynamodbstreams/DynamoDBStreamsServiceClientModel.h>
13
14namespace Aws
15{
16namespace DynamoDBStreams
17{
26 class AWS_DYNAMODBSTREAMS_API DynamoDBStreamsClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<DynamoDBStreamsClient>
27 {
28 public:
30 static const char* GetServiceName();
31 static const char* GetAllocationTag();
32
35
41 std::shared_ptr<DynamoDBStreamsEndpointProviderBase> endpointProvider = nullptr);
42
48 std::shared_ptr<DynamoDBStreamsEndpointProviderBase> endpointProvider = nullptr,
50
55 DynamoDBStreamsClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
56 std::shared_ptr<DynamoDBStreamsEndpointProviderBase> endpointProvider = nullptr,
58
59
60 /* Legacy constructors due deprecation */
66
72 const Aws::Client::ClientConfiguration& clientConfiguration);
73
78 DynamoDBStreamsClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
79 const Aws::Client::ClientConfiguration& clientConfiguration);
80
81 /* End of legacy constructors due deprecation */
83
100
104 template<typename DescribeStreamRequestT = Model::DescribeStreamRequest>
105 Model::DescribeStreamOutcomeCallable DescribeStreamCallable(const DescribeStreamRequestT& request) const
106 {
107 return SubmitCallable(&DynamoDBStreamsClient::DescribeStream, request);
108 }
109
113 template<typename DescribeStreamRequestT = Model::DescribeStreamRequest>
114 void DescribeStreamAsync(const DescribeStreamRequestT& request, const DescribeStreamResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
115 {
116 return SubmitAsync(&DynamoDBStreamsClient::DescribeStream, request, handler, context);
117 }
118
133
137 template<typename GetRecordsRequestT = Model::GetRecordsRequest>
138 Model::GetRecordsOutcomeCallable GetRecordsCallable(const GetRecordsRequestT& request) const
139 {
140 return SubmitCallable(&DynamoDBStreamsClient::GetRecords, request);
141 }
142
146 template<typename GetRecordsRequestT = Model::GetRecordsRequest>
147 void GetRecordsAsync(const GetRecordsRequestT& request, const GetRecordsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
148 {
149 return SubmitAsync(&DynamoDBStreamsClient::GetRecords, request, handler, context);
150 }
151
162
166 template<typename GetShardIteratorRequestT = Model::GetShardIteratorRequest>
167 Model::GetShardIteratorOutcomeCallable GetShardIteratorCallable(const GetShardIteratorRequestT& request) const
168 {
169 return SubmitCallable(&DynamoDBStreamsClient::GetShardIterator, request);
170 }
171
175 template<typename GetShardIteratorRequestT = Model::GetShardIteratorRequest>
176 void GetShardIteratorAsync(const GetShardIteratorRequestT& request, const GetShardIteratorResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const
177 {
178 return SubmitAsync(&DynamoDBStreamsClient::GetShardIterator, request, handler, context);
179 }
180
191
195 template<typename ListStreamsRequestT = Model::ListStreamsRequest>
196 Model::ListStreamsOutcomeCallable ListStreamsCallable(const ListStreamsRequestT& request = {}) const
197 {
198 return SubmitCallable(&DynamoDBStreamsClient::ListStreams, request);
199 }
200
204 template<typename ListStreamsRequestT = Model::ListStreamsRequest>
205 void ListStreamsAsync(const ListStreamsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr, const ListStreamsRequestT& request = {}) const
206 {
207 return SubmitAsync(&DynamoDBStreamsClient::ListStreams, request, handler, context);
208 }
209
210
211 void OverrideEndpoint(const Aws::String& endpoint);
212 std::shared_ptr<DynamoDBStreamsEndpointProviderBase>& accessEndpointProvider();
213 private:
215 void init(const DynamoDBStreamsClientConfiguration& clientConfiguration);
216
217 DynamoDBStreamsClientConfiguration m_clientConfiguration;
218 std::shared_ptr<DynamoDBStreamsEndpointProviderBase> m_endpointProvider;
219 };
220
221} // namespace DynamoDBStreams
222} // namespace Aws
void ListStreamsAsync(const ListStreamsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr, const ListStreamsRequestT &request={}) const
Model::DescribeStreamOutcomeCallable DescribeStreamCallable(const DescribeStreamRequestT &request) const
virtual Model::GetRecordsOutcome GetRecords(const Model::GetRecordsRequest &request) const
DynamoDBStreamsEndpointProvider EndpointProviderType
virtual Model::ListStreamsOutcome ListStreams(const Model::ListStreamsRequest &request={}) const
DynamoDBStreamsClientConfiguration ClientConfigurationType
DynamoDBStreamsClient(const Aws::DynamoDBStreams::DynamoDBStreamsClientConfiguration &clientConfiguration=Aws::DynamoDBStreams::DynamoDBStreamsClientConfiguration(), std::shared_ptr< DynamoDBStreamsEndpointProviderBase > endpointProvider=nullptr)
void GetRecordsAsync(const GetRecordsRequestT &request, const GetRecordsResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::ListStreamsOutcomeCallable ListStreamsCallable(const ListStreamsRequestT &request={}) const
virtual Model::GetShardIteratorOutcome GetShardIterator(const Model::GetShardIteratorRequest &request) const
DynamoDBStreamsClient(const Aws::Auth::AWSCredentials &credentials, const Aws::Client::ClientConfiguration &clientConfiguration)
DynamoDBStreamsClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, std::shared_ptr< DynamoDBStreamsEndpointProviderBase > endpointProvider=nullptr, const Aws::DynamoDBStreams::DynamoDBStreamsClientConfiguration &clientConfiguration=Aws::DynamoDBStreams::DynamoDBStreamsClientConfiguration())
void DescribeStreamAsync(const DescribeStreamRequestT &request, const DescribeStreamResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
DynamoDBStreamsClient(const std::shared_ptr< Aws::Auth::AWSCredentialsProvider > &credentialsProvider, const Aws::Client::ClientConfiguration &clientConfiguration)
DynamoDBStreamsClient(const Aws::Auth::AWSCredentials &credentials, std::shared_ptr< DynamoDBStreamsEndpointProviderBase > endpointProvider=nullptr, const Aws::DynamoDBStreams::DynamoDBStreamsClientConfiguration &clientConfiguration=Aws::DynamoDBStreams::DynamoDBStreamsClientConfiguration())
Model::GetRecordsOutcomeCallable GetRecordsCallable(const GetRecordsRequestT &request) const
void GetShardIteratorAsync(const GetShardIteratorRequestT &request, const GetShardIteratorResponseReceivedHandler &handler, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &context=nullptr) const
Model::GetShardIteratorOutcomeCallable GetShardIteratorCallable(const GetShardIteratorRequestT &request) const
virtual Model::DescribeStreamOutcome DescribeStream(const Model::DescribeStreamRequest &request) const
void OverrideEndpoint(const Aws::String &endpoint)
DynamoDBStreamsClient(const Aws::Client::ClientConfiguration &clientConfiguration)
std::shared_ptr< DynamoDBStreamsEndpointProviderBase > & accessEndpointProvider()
std::future< GetShardIteratorOutcome > GetShardIteratorOutcomeCallable
std::future< ListStreamsOutcome > ListStreamsOutcomeCallable
std::future< DescribeStreamOutcome > DescribeStreamOutcomeCallable
std::future< GetRecordsOutcome > GetRecordsOutcomeCallable
std::function< void(const DynamoDBStreamsClient *, const Model::ListStreamsRequest &, const Model::ListStreamsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > ListStreamsResponseReceivedHandler
std::function< void(const DynamoDBStreamsClient *, const Model::GetShardIteratorRequest &, const Model::GetShardIteratorOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetShardIteratorResponseReceivedHandler
std::function< void(const DynamoDBStreamsClient *, const Model::GetRecordsRequest &, const Model::GetRecordsOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > GetRecordsResponseReceivedHandler
std::function< void(const DynamoDBStreamsClient *, const Model::DescribeStreamRequest &, const Model::DescribeStreamOutcome &, const std::shared_ptr< const Aws::Client::AsyncCallerContext > &) > DescribeStreamResponseReceivedHandler
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String