|
1 | 1 | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
2 | 2 | // SPDX-License-Identifier: Apache-2.0 |
3 | 3 |
|
4 | | -/// Amazon Data Firehose client for Flutter. |
5 | | -/// |
6 | | -/// This library provides an offline-capable client for streaming data to |
7 | | -/// Amazon Data Firehose delivery streams. |
8 | | -/// |
9 | | -/// ## Getting Started |
10 | | -/// |
11 | | -/// ```dart |
12 | | -/// import 'package:aws_amazon_firehose/aws_amazon_firehose.dart'; |
13 | | -/// |
14 | | -/// final client = AmazonDataFirehose( |
15 | | -/// region: 'us-east-1', |
16 | | -/// credentialsProvider: AWSCredentialsProvider( |
17 | | -/// AWSCredentials('accessKeyId', 'secretAccessKey'), |
18 | | -/// ), |
19 | | -/// ); |
20 | | -/// |
21 | | -/// // Record data |
22 | | -/// await client.record( |
23 | | -/// data: Uint8List.fromList(utf8.encode('{"event": "click"}')), |
24 | | -/// deliveryStreamName: 'my-delivery-stream', |
25 | | -/// ); |
26 | | -/// |
27 | | -/// // Flush and close when done |
28 | | -/// await client.flush(); |
29 | | -/// await client.close(); |
30 | | -/// ``` |
31 | | -library aws_amazon_firehose; |
| 4 | +/// Amplify Amazon Data Firehose client for Dart. |
| 5 | +library; |
32 | 6 |
|
33 | | -// Re-export credentials types from amplify_core for convenience |
| 7 | +// TODO(v3): Replace with V3 credentials provider type. |
34 | 8 | export 'package:amplify_core/amplify_core.dart' |
35 | 9 | show AWSCredentials, AWSCredentialsProvider; |
36 | 10 |
|
37 | | -// Main client |
38 | | -export 'src/amazon_data_firehose.dart'; |
| 11 | +// Options |
39 | 12 | export 'src/amazon_data_firehose_options.dart'; |
| 13 | +// Main client |
| 14 | +export 'src/amplify_firehose_client.dart'; |
40 | 15 | // Exceptions |
41 | | -export 'src/exception/firehose_exception.dart'; |
| 16 | +export 'src/exception/amplify_firehose_exception.dart'; |
42 | 17 | // Flush strategies |
43 | 18 | export 'src/flush_strategy/flush_strategy.dart'; |
44 | | -export 'src/flush_strategy/interval_flush_strategy.dart'; |
| 19 | +// Return types |
| 20 | +export 'src/model/clear_cache_data.dart'; |
| 21 | +export 'src/model/flush_data.dart'; |
0 commit comments