@aws-sdk/client-firehose 3.32.0 → 3.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/{dist/cjs → dist-cjs}/Firehose.js +1 -2
  3. package/{dist/cjs → dist-cjs}/FirehoseClient.js +8 -9
  4. package/{dist/cjs → dist-cjs}/commands/CreateDeliveryStreamCommand.js +2 -3
  5. package/{dist/cjs → dist-cjs}/commands/DeleteDeliveryStreamCommand.js +2 -3
  6. package/{dist/cjs → dist-cjs}/commands/DescribeDeliveryStreamCommand.js +2 -3
  7. package/{dist/cjs → dist-cjs}/commands/ListDeliveryStreamsCommand.js +2 -3
  8. package/{dist/cjs → dist-cjs}/commands/ListTagsForDeliveryStreamCommand.js +2 -3
  9. package/{dist/cjs → dist-cjs}/commands/PutRecordBatchCommand.js +2 -3
  10. package/{dist/cjs → dist-cjs}/commands/PutRecordCommand.js +2 -3
  11. package/{dist/cjs → dist-cjs}/commands/StartDeliveryStreamEncryptionCommand.js +2 -3
  12. package/{dist/cjs → dist-cjs}/commands/StopDeliveryStreamEncryptionCommand.js +2 -3
  13. package/{dist/cjs → dist-cjs}/commands/TagDeliveryStreamCommand.js +2 -3
  14. package/{dist/cjs → dist-cjs}/commands/UntagDeliveryStreamCommand.js +2 -3
  15. package/{dist/cjs → dist-cjs}/commands/UpdateDestinationCommand.js +2 -3
  16. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  17. package/{dist/cjs → dist-cjs}/index.js +0 -1
  18. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  19. package/{dist/cjs → dist-cjs}/models/models_0.js +150 -93
  20. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +132 -1
  21. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
  22. package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
  23. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
  24. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
  25. package/{dist/es → dist-es}/Firehose.js +2 -9
  26. package/{dist/es → dist-es}/FirehoseClient.js +2 -14
  27. package/dist-es/commands/CreateDeliveryStreamCommand.js +39 -0
  28. package/dist-es/commands/DeleteDeliveryStreamCommand.js +39 -0
  29. package/{dist/es → dist-es}/commands/DescribeDeliveryStreamCommand.js +4 -36
  30. package/{dist/es → dist-es}/commands/ListDeliveryStreamsCommand.js +4 -37
  31. package/{dist/es → dist-es}/commands/ListTagsForDeliveryStreamCommand.js +4 -31
  32. package/dist-es/commands/PutRecordBatchCommand.js +39 -0
  33. package/dist-es/commands/PutRecordCommand.js +39 -0
  34. package/dist-es/commands/StartDeliveryStreamEncryptionCommand.js +39 -0
  35. package/dist-es/commands/StopDeliveryStreamEncryptionCommand.js +39 -0
  36. package/dist-es/commands/TagDeliveryStreamCommand.js +39 -0
  37. package/{dist/es → dist-es}/commands/UntagDeliveryStreamCommand.js +4 -33
  38. package/dist-es/commands/UpdateDestinationCommand.js +39 -0
  39. package/{dist/es → dist-es}/endpoints.js +1 -2
  40. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  41. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  42. package/{dist/es → dist-es}/models/models_0.js +87 -331
  43. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +349 -256
  44. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  45. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  46. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  47. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  48. package/{dist/types → dist-types}/Firehose.d.ts +2 -2
  49. package/{dist/types → dist-types}/FirehoseClient.d.ts +8 -8
  50. package/{dist/types → dist-types}/commands/CreateDeliveryStreamCommand.d.ts +2 -2
  51. package/{dist/types → dist-types}/commands/DeleteDeliveryStreamCommand.d.ts +2 -2
  52. package/{dist/types → dist-types}/commands/DescribeDeliveryStreamCommand.d.ts +2 -2
  53. package/{dist/types → dist-types}/commands/ListDeliveryStreamsCommand.d.ts +2 -2
  54. package/{dist/types → dist-types}/commands/ListTagsForDeliveryStreamCommand.d.ts +2 -2
  55. package/{dist/types → dist-types}/commands/PutRecordBatchCommand.d.ts +2 -2
  56. package/{dist/types → dist-types}/commands/PutRecordCommand.d.ts +2 -2
  57. package/{dist/types → dist-types}/commands/StartDeliveryStreamEncryptionCommand.d.ts +2 -2
  58. package/{dist/types → dist-types}/commands/StopDeliveryStreamEncryptionCommand.d.ts +2 -2
  59. package/{dist/types → dist-types}/commands/TagDeliveryStreamCommand.d.ts +2 -2
  60. package/{dist/types → dist-types}/commands/UntagDeliveryStreamCommand.d.ts +2 -2
  61. package/{dist/types → dist-types}/commands/UpdateDestinationCommand.d.ts +2 -2
  62. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  63. package/{index.ts → dist-types/index.d.ts} +0 -0
  64. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  65. package/{dist/types → dist-types}/models/models_0.d.ts +524 -397
  66. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
  67. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
  68. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
  69. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
  70. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  71. package/{dist/types → dist-types}/ts3.4/Firehose.d.ts +2 -2
  72. package/{dist/types → dist-types}/ts3.4/FirehoseClient.d.ts +8 -8
  73. package/{dist/types → dist-types}/ts3.4/commands/CreateDeliveryStreamCommand.d.ts +2 -2
  74. package/{dist/types → dist-types}/ts3.4/commands/DeleteDeliveryStreamCommand.d.ts +2 -2
  75. package/{dist/types → dist-types}/ts3.4/commands/DescribeDeliveryStreamCommand.d.ts +2 -2
  76. package/{dist/types → dist-types}/ts3.4/commands/ListDeliveryStreamsCommand.d.ts +2 -2
  77. package/{dist/types → dist-types}/ts3.4/commands/ListTagsForDeliveryStreamCommand.d.ts +2 -2
  78. package/{dist/types → dist-types}/ts3.4/commands/PutRecordBatchCommand.d.ts +2 -2
  79. package/{dist/types → dist-types}/ts3.4/commands/PutRecordCommand.d.ts +2 -2
  80. package/{dist/types → dist-types}/ts3.4/commands/StartDeliveryStreamEncryptionCommand.d.ts +2 -2
  81. package/{dist/types → dist-types}/ts3.4/commands/StopDeliveryStreamEncryptionCommand.d.ts +2 -2
  82. package/{dist/types → dist-types}/ts3.4/commands/TagDeliveryStreamCommand.d.ts +2 -2
  83. package/{dist/types → dist-types}/ts3.4/commands/UntagDeliveryStreamCommand.d.ts +2 -2
  84. package/{dist/types → dist-types}/ts3.4/commands/UpdateDestinationCommand.d.ts +2 -2
  85. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  86. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  87. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  88. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +524 -397
  89. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
  90. package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
  91. package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
  92. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
  93. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  94. package/package.json +52 -49
  95. package/Firehose.ts +0 -704
  96. package/FirehoseClient.ts +0 -298
  97. package/commands/CreateDeliveryStreamCommand.ts +0 -162
  98. package/commands/DeleteDeliveryStreamCommand.ts +0 -103
  99. package/commands/DescribeDeliveryStreamCommand.ts +0 -100
  100. package/commands/ListDeliveryStreamsCommand.ts +0 -101
  101. package/commands/ListTagsForDeliveryStreamCommand.ts +0 -98
  102. package/commands/PutRecordBatchCommand.ts +0 -144
  103. package/commands/PutRecordCommand.ts +0 -122
  104. package/commands/StartDeliveryStreamEncryptionCommand.ts +0 -134
  105. package/commands/StopDeliveryStreamEncryptionCommand.ts +0 -118
  106. package/commands/TagDeliveryStreamCommand.ts +0 -102
  107. package/commands/UntagDeliveryStreamCommand.ts +0 -97
  108. package/commands/UpdateDestinationCommand.ts +0 -117
  109. package/dist/cjs/Firehose.js.map +0 -1
  110. package/dist/cjs/FirehoseClient.js.map +0 -1
  111. package/dist/cjs/commands/CreateDeliveryStreamCommand.js.map +0 -1
  112. package/dist/cjs/commands/DeleteDeliveryStreamCommand.js.map +0 -1
  113. package/dist/cjs/commands/DescribeDeliveryStreamCommand.js.map +0 -1
  114. package/dist/cjs/commands/ListDeliveryStreamsCommand.js.map +0 -1
  115. package/dist/cjs/commands/ListTagsForDeliveryStreamCommand.js.map +0 -1
  116. package/dist/cjs/commands/PutRecordBatchCommand.js.map +0 -1
  117. package/dist/cjs/commands/PutRecordCommand.js.map +0 -1
  118. package/dist/cjs/commands/StartDeliveryStreamEncryptionCommand.js.map +0 -1
  119. package/dist/cjs/commands/StopDeliveryStreamEncryptionCommand.js.map +0 -1
  120. package/dist/cjs/commands/TagDeliveryStreamCommand.js.map +0 -1
  121. package/dist/cjs/commands/UntagDeliveryStreamCommand.js.map +0 -1
  122. package/dist/cjs/commands/UpdateDestinationCommand.js.map +0 -1
  123. package/dist/cjs/endpoints.js.map +0 -1
  124. package/dist/cjs/index.js.map +0 -1
  125. package/dist/cjs/models/index.js.map +0 -1
  126. package/dist/cjs/models/models_0.js.map +0 -1
  127. package/dist/cjs/package.json +0 -91
  128. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  129. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  130. package/dist/cjs/runtimeConfig.js.map +0 -1
  131. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  132. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  133. package/dist/es/Firehose.js.map +0 -1
  134. package/dist/es/FirehoseClient.js.map +0 -1
  135. package/dist/es/commands/CreateDeliveryStreamCommand.js +0 -133
  136. package/dist/es/commands/CreateDeliveryStreamCommand.js.map +0 -1
  137. package/dist/es/commands/DeleteDeliveryStreamCommand.js +0 -74
  138. package/dist/es/commands/DeleteDeliveryStreamCommand.js.map +0 -1
  139. package/dist/es/commands/DescribeDeliveryStreamCommand.js.map +0 -1
  140. package/dist/es/commands/ListDeliveryStreamsCommand.js.map +0 -1
  141. package/dist/es/commands/ListTagsForDeliveryStreamCommand.js.map +0 -1
  142. package/dist/es/commands/PutRecordBatchCommand.js +0 -115
  143. package/dist/es/commands/PutRecordBatchCommand.js.map +0 -1
  144. package/dist/es/commands/PutRecordCommand.js +0 -96
  145. package/dist/es/commands/PutRecordCommand.js.map +0 -1
  146. package/dist/es/commands/StartDeliveryStreamEncryptionCommand.js +0 -100
  147. package/dist/es/commands/StartDeliveryStreamEncryptionCommand.js.map +0 -1
  148. package/dist/es/commands/StopDeliveryStreamEncryptionCommand.js +0 -84
  149. package/dist/es/commands/StopDeliveryStreamEncryptionCommand.js.map +0 -1
  150. package/dist/es/commands/TagDeliveryStreamCommand.js +0 -73
  151. package/dist/es/commands/TagDeliveryStreamCommand.js.map +0 -1
  152. package/dist/es/commands/UntagDeliveryStreamCommand.js.map +0 -1
  153. package/dist/es/commands/UpdateDestinationCommand.js +0 -88
  154. package/dist/es/commands/UpdateDestinationCommand.js.map +0 -1
  155. package/dist/es/endpoints.js.map +0 -1
  156. package/dist/es/index.js +0 -16
  157. package/dist/es/index.js.map +0 -1
  158. package/dist/es/models/index.js +0 -2
  159. package/dist/es/models/index.js.map +0 -1
  160. package/dist/es/models/models_0.js.map +0 -1
  161. package/dist/es/package.json +0 -91
  162. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  163. package/dist/es/runtimeConfig.browser.js.map +0 -1
  164. package/dist/es/runtimeConfig.js.map +0 -1
  165. package/dist/es/runtimeConfig.native.js.map +0 -1
  166. package/dist/es/runtimeConfig.shared.js.map +0 -1
  167. package/endpoints.ts +0 -86
  168. package/jest.config.js +0 -4
  169. package/models/models_0.ts +0 -3952
  170. package/protocols/Aws_json1_1.ts +0 -3513
  171. package/runtimeConfig.browser.ts +0 -40
  172. package/runtimeConfig.native.ts +0 -16
  173. package/runtimeConfig.shared.ts +0 -16
  174. package/runtimeConfig.ts +0 -45
  175. package/tsconfig.es.json +0 -12
  176. package/tsconfig.json +0 -32
package/FirehoseClient.ts DELETED
@@ -1,298 +0,0 @@
1
- import {
2
- CreateDeliveryStreamCommandInput,
3
- CreateDeliveryStreamCommandOutput,
4
- } from "./commands/CreateDeliveryStreamCommand";
5
- import {
6
- DeleteDeliveryStreamCommandInput,
7
- DeleteDeliveryStreamCommandOutput,
8
- } from "./commands/DeleteDeliveryStreamCommand";
9
- import {
10
- DescribeDeliveryStreamCommandInput,
11
- DescribeDeliveryStreamCommandOutput,
12
- } from "./commands/DescribeDeliveryStreamCommand";
13
- import {
14
- ListDeliveryStreamsCommandInput,
15
- ListDeliveryStreamsCommandOutput,
16
- } from "./commands/ListDeliveryStreamsCommand";
17
- import {
18
- ListTagsForDeliveryStreamCommandInput,
19
- ListTagsForDeliveryStreamCommandOutput,
20
- } from "./commands/ListTagsForDeliveryStreamCommand";
21
- import { PutRecordBatchCommandInput, PutRecordBatchCommandOutput } from "./commands/PutRecordBatchCommand";
22
- import { PutRecordCommandInput, PutRecordCommandOutput } from "./commands/PutRecordCommand";
23
- import {
24
- StartDeliveryStreamEncryptionCommandInput,
25
- StartDeliveryStreamEncryptionCommandOutput,
26
- } from "./commands/StartDeliveryStreamEncryptionCommand";
27
- import {
28
- StopDeliveryStreamEncryptionCommandInput,
29
- StopDeliveryStreamEncryptionCommandOutput,
30
- } from "./commands/StopDeliveryStreamEncryptionCommand";
31
- import { TagDeliveryStreamCommandInput, TagDeliveryStreamCommandOutput } from "./commands/TagDeliveryStreamCommand";
32
- import {
33
- UntagDeliveryStreamCommandInput,
34
- UntagDeliveryStreamCommandOutput,
35
- } from "./commands/UntagDeliveryStreamCommand";
36
- import { UpdateDestinationCommandInput, UpdateDestinationCommandOutput } from "./commands/UpdateDestinationCommand";
37
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
38
- import {
39
- EndpointsInputConfig,
40
- EndpointsResolvedConfig,
41
- RegionInputConfig,
42
- RegionResolvedConfig,
43
- resolveEndpointsConfig,
44
- resolveRegionConfig,
45
- } from "@aws-sdk/config-resolver";
46
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
47
- import {
48
- HostHeaderInputConfig,
49
- HostHeaderResolvedConfig,
50
- getHostHeaderPlugin,
51
- resolveHostHeaderConfig,
52
- } from "@aws-sdk/middleware-host-header";
53
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
54
- import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
55
- import {
56
- AwsAuthInputConfig,
57
- AwsAuthResolvedConfig,
58
- getAwsAuthPlugin,
59
- resolveAwsAuthConfig,
60
- } from "@aws-sdk/middleware-signing";
61
- import {
62
- UserAgentInputConfig,
63
- UserAgentResolvedConfig,
64
- getUserAgentPlugin,
65
- resolveUserAgentConfig,
66
- } from "@aws-sdk/middleware-user-agent";
67
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
68
- import {
69
- Client as __Client,
70
- SmithyConfiguration as __SmithyConfiguration,
71
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
72
- } from "@aws-sdk/smithy-client";
73
- import {
74
- Provider,
75
- RegionInfoProvider,
76
- Credentials as __Credentials,
77
- Decoder as __Decoder,
78
- Encoder as __Encoder,
79
- Hash as __Hash,
80
- HashConstructor as __HashConstructor,
81
- HttpHandlerOptions as __HttpHandlerOptions,
82
- Logger as __Logger,
83
- Provider as __Provider,
84
- StreamCollector as __StreamCollector,
85
- UrlParser as __UrlParser,
86
- UserAgent as __UserAgent,
87
- } from "@aws-sdk/types";
88
-
89
- export type ServiceInputTypes =
90
- | CreateDeliveryStreamCommandInput
91
- | DeleteDeliveryStreamCommandInput
92
- | DescribeDeliveryStreamCommandInput
93
- | ListDeliveryStreamsCommandInput
94
- | ListTagsForDeliveryStreamCommandInput
95
- | PutRecordBatchCommandInput
96
- | PutRecordCommandInput
97
- | StartDeliveryStreamEncryptionCommandInput
98
- | StopDeliveryStreamEncryptionCommandInput
99
- | TagDeliveryStreamCommandInput
100
- | UntagDeliveryStreamCommandInput
101
- | UpdateDestinationCommandInput;
102
-
103
- export type ServiceOutputTypes =
104
- | CreateDeliveryStreamCommandOutput
105
- | DeleteDeliveryStreamCommandOutput
106
- | DescribeDeliveryStreamCommandOutput
107
- | ListDeliveryStreamsCommandOutput
108
- | ListTagsForDeliveryStreamCommandOutput
109
- | PutRecordBatchCommandOutput
110
- | PutRecordCommandOutput
111
- | StartDeliveryStreamEncryptionCommandOutput
112
- | StopDeliveryStreamEncryptionCommandOutput
113
- | TagDeliveryStreamCommandOutput
114
- | UntagDeliveryStreamCommandOutput
115
- | UpdateDestinationCommandOutput;
116
-
117
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
118
- /**
119
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
120
- */
121
- requestHandler?: __HttpHandler;
122
-
123
- /**
124
- * A constructor for a class implementing the {@link __Hash} interface
125
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
126
- * @internal
127
- */
128
- sha256?: __HashConstructor;
129
-
130
- /**
131
- * The function that will be used to convert strings into HTTP endpoints.
132
- * @internal
133
- */
134
- urlParser?: __UrlParser;
135
-
136
- /**
137
- * A function that can calculate the length of a request body.
138
- * @internal
139
- */
140
- bodyLengthChecker?: (body: any) => number | undefined;
141
-
142
- /**
143
- * A function that converts a stream into an array of bytes.
144
- * @internal
145
- */
146
- streamCollector?: __StreamCollector;
147
-
148
- /**
149
- * The function that will be used to convert a base64-encoded string to a byte array.
150
- * @internal
151
- */
152
- base64Decoder?: __Decoder;
153
-
154
- /**
155
- * The function that will be used to convert binary data to a base64-encoded string.
156
- * @internal
157
- */
158
- base64Encoder?: __Encoder;
159
-
160
- /**
161
- * The function that will be used to convert a UTF8-encoded string to a byte array.
162
- * @internal
163
- */
164
- utf8Decoder?: __Decoder;
165
-
166
- /**
167
- * The function that will be used to convert binary data to a UTF-8 encoded string.
168
- * @internal
169
- */
170
- utf8Encoder?: __Encoder;
171
-
172
- /**
173
- * The runtime environment.
174
- * @internal
175
- */
176
- runtime?: string;
177
-
178
- /**
179
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
180
- * trait of an operation.
181
- */
182
- disableHostPrefix?: boolean;
183
-
184
- /**
185
- * Value for how many times a request will be made at most in case of retry.
186
- */
187
- maxAttempts?: number | __Provider<number>;
188
-
189
- /**
190
- * Specifies which retry algorithm to use.
191
- */
192
- retryMode?: string | __Provider<string>;
193
-
194
- /**
195
- * Optional logger for logging debug/info/warn/error.
196
- */
197
- logger?: __Logger;
198
-
199
- /**
200
- * Unique service identifier.
201
- * @internal
202
- */
203
- serviceId?: string;
204
-
205
- /**
206
- * The AWS region to which this client will send requests
207
- */
208
- region?: string | __Provider<string>;
209
-
210
- /**
211
- * Default credentials provider; Not available in browser runtime.
212
- * @internal
213
- */
214
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
215
-
216
- /**
217
- * Fetch related hostname, signing name or signing region with given region.
218
- * @internal
219
- */
220
- regionInfoProvider?: RegionInfoProvider;
221
-
222
- /**
223
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
224
- * @internal
225
- */
226
- defaultUserAgentProvider?: Provider<__UserAgent>;
227
- }
228
-
229
- type FirehoseClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
230
- ClientDefaults &
231
- RegionInputConfig &
232
- EndpointsInputConfig &
233
- RetryInputConfig &
234
- HostHeaderInputConfig &
235
- AwsAuthInputConfig &
236
- UserAgentInputConfig;
237
- /**
238
- * The configuration interface of FirehoseClient class constructor that set the region, credentials and other options.
239
- */
240
- export interface FirehoseClientConfig extends FirehoseClientConfigType {}
241
-
242
- type FirehoseClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
243
- Required<ClientDefaults> &
244
- RegionResolvedConfig &
245
- EndpointsResolvedConfig &
246
- RetryResolvedConfig &
247
- HostHeaderResolvedConfig &
248
- AwsAuthResolvedConfig &
249
- UserAgentResolvedConfig;
250
- /**
251
- * The resolved configuration interface of FirehoseClient class. This is resolved and normalized from the {@link FirehoseClientConfig | constructor configuration interface}.
252
- */
253
- export interface FirehoseClientResolvedConfig extends FirehoseClientResolvedConfigType {}
254
-
255
- /**
256
- * <fullname>Amazon Kinesis Data Firehose API Reference</fullname>
257
- * <p>Amazon Kinesis Data Firehose is a fully managed service that delivers real-time
258
- * streaming data to destinations such as Amazon Simple Storage Service (Amazon S3), Amazon
259
- * Elasticsearch Service (Amazon ES), Amazon Redshift, and Splunk.</p>
260
- */
261
- export class FirehoseClient extends __Client<
262
- __HttpHandlerOptions,
263
- ServiceInputTypes,
264
- ServiceOutputTypes,
265
- FirehoseClientResolvedConfig
266
- > {
267
- /**
268
- * The resolved configuration of FirehoseClient class. This is resolved and normalized from the {@link FirehoseClientConfig | constructor configuration interface}.
269
- */
270
- readonly config: FirehoseClientResolvedConfig;
271
-
272
- constructor(configuration: FirehoseClientConfig) {
273
- let _config_0 = __getRuntimeConfig(configuration);
274
- let _config_1 = resolveRegionConfig(_config_0);
275
- let _config_2 = resolveEndpointsConfig(_config_1);
276
- let _config_3 = resolveRetryConfig(_config_2);
277
- let _config_4 = resolveHostHeaderConfig(_config_3);
278
- let _config_5 = resolveAwsAuthConfig(_config_4);
279
- let _config_6 = resolveUserAgentConfig(_config_5);
280
- super(_config_6);
281
- this.config = _config_6;
282
- this.middlewareStack.use(getRetryPlugin(this.config));
283
- this.middlewareStack.use(getContentLengthPlugin(this.config));
284
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
285
- this.middlewareStack.use(getLoggerPlugin(this.config));
286
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
287
- this.middlewareStack.use(getUserAgentPlugin(this.config));
288
- }
289
-
290
- /**
291
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
292
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
293
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
294
- */
295
- destroy(): void {
296
- super.destroy();
297
- }
298
- }
@@ -1,162 +0,0 @@
1
- import { FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FirehoseClient";
2
- import { CreateDeliveryStreamInput, CreateDeliveryStreamOutput } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1CreateDeliveryStreamCommand,
5
- serializeAws_json1_1CreateDeliveryStreamCommand,
6
- } from "../protocols/Aws_json1_1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface CreateDeliveryStreamCommandInput extends CreateDeliveryStreamInput {}
21
- export interface CreateDeliveryStreamCommandOutput extends CreateDeliveryStreamOutput, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Creates a Kinesis Data Firehose delivery stream.</p>
25
- *
26
- * <p>By default, you can create up to 50 delivery streams per AWS Region.</p>
27
- * <p>This is an asynchronous operation that immediately returns. The initial status of the
28
- * delivery stream is <code>CREATING</code>. After the delivery stream is created, its status
29
- * is <code>ACTIVE</code> and it now accepts data. If the delivery stream creation fails, the
30
- * status transitions to <code>CREATING_FAILED</code>. Attempts to send data to a delivery
31
- * stream that is not in the <code>ACTIVE</code> state cause an exception. To check the state
32
- * of a delivery stream, use <a>DescribeDeliveryStream</a>.</p>
33
- * <p>If the status of a delivery stream is <code>CREATING_FAILED</code>, this status
34
- * doesn't change, and you can't invoke <code>CreateDeliveryStream</code> again on it.
35
- * However, you can invoke the <a>DeleteDeliveryStream</a> operation to delete
36
- * it.</p>
37
- * <p>A Kinesis Data Firehose delivery stream can be configured to receive records directly
38
- * from providers using <a>PutRecord</a> or <a>PutRecordBatch</a>, or it
39
- * can be configured to use an existing Kinesis stream as its source. To specify a Kinesis
40
- * data stream as input, set the <code>DeliveryStreamType</code> parameter to
41
- * <code>KinesisStreamAsSource</code>, and provide the Kinesis stream Amazon Resource Name
42
- * (ARN) and role ARN in the <code>KinesisStreamSourceConfiguration</code>
43
- * parameter.</p>
44
- * <p>To create a delivery stream with server-side encryption (SSE) enabled, include <a>DeliveryStreamEncryptionConfigurationInput</a> in your request. This is
45
- * optional. You can also invoke <a>StartDeliveryStreamEncryption</a> to turn on
46
- * SSE for an existing delivery stream that doesn't have SSE enabled.</p>
47
- * <p>A delivery stream is configured with a single destination: Amazon S3, Amazon ES,
48
- * Amazon Redshift, or Splunk. You must specify only one of the following destination
49
- * configuration parameters: <code>ExtendedS3DestinationConfiguration</code>,
50
- * <code>S3DestinationConfiguration</code>,
51
- * <code>ElasticsearchDestinationConfiguration</code>,
52
- * <code>RedshiftDestinationConfiguration</code>, or
53
- * <code>SplunkDestinationConfiguration</code>.</p>
54
- * <p>When you specify <code>S3DestinationConfiguration</code>, you can also provide the
55
- * following optional values: BufferingHints, <code>EncryptionConfiguration</code>, and
56
- * <code>CompressionFormat</code>. By default, if no <code>BufferingHints</code> value is
57
- * provided, Kinesis Data Firehose buffers data up to 5 MB or for 5 minutes, whichever
58
- * condition is satisfied first. <code>BufferingHints</code> is a hint, so there are some
59
- * cases where the service cannot adhere to these conditions strictly. For example, record
60
- * boundaries might be such that the size is a little over or under the configured buffering
61
- * size. By default, no encryption is performed. We strongly recommend that you enable
62
- * encryption to ensure secure data storage in Amazon S3.</p>
63
- *
64
- * <p>A few notes about Amazon Redshift as a destination:</p>
65
- * <ul>
66
- * <li>
67
- * <p>An Amazon Redshift destination requires an S3 bucket as intermediate location.
68
- * Kinesis Data Firehose first delivers data to Amazon S3 and then uses
69
- * <code>COPY</code> syntax to load data into an Amazon Redshift table. This is
70
- * specified in the <code>RedshiftDestinationConfiguration.S3Configuration</code>
71
- * parameter.</p>
72
- *
73
- * </li>
74
- * <li>
75
- * <p>The compression formats <code>SNAPPY</code> or <code>ZIP</code> cannot be
76
- * specified in <code>RedshiftDestinationConfiguration.S3Configuration</code> because
77
- * the Amazon Redshift <code>COPY</code> operation that reads from the S3 bucket doesn't
78
- * support these compression formats.</p>
79
- * </li>
80
- * <li>
81
- * <p>We strongly recommend that you use the user name and password you provide
82
- * exclusively with Kinesis Data Firehose, and that the permissions for the account are
83
- * restricted for Amazon Redshift <code>INSERT</code> permissions.</p>
84
- *
85
- * </li>
86
- * </ul>
87
- * <p>Kinesis Data Firehose assumes the IAM role that is configured as part of the
88
- * destination. The role should allow the Kinesis Data Firehose principal to assume the role,
89
- * and the role should have permissions that allow the service to deliver the data. For more
90
- * information, see <a href="https://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-s3">Grant Kinesis Data
91
- * Firehose Access to an Amazon S3 Destination</a> in the <i>Amazon Kinesis Data
92
- * Firehose Developer Guide</i>.</p>
93
- * @example
94
- * Use a bare-bones client and the command you need to make an API call.
95
- * ```javascript
96
- * import { FirehoseClient, CreateDeliveryStreamCommand } from "@aws-sdk/client-firehose"; // ES Modules import
97
- * // const { FirehoseClient, CreateDeliveryStreamCommand } = require("@aws-sdk/client-firehose"); // CommonJS import
98
- * const client = new FirehoseClient(config);
99
- * const command = new CreateDeliveryStreamCommand(input);
100
- * const response = await client.send(command);
101
- * ```
102
- *
103
- * @see {@link CreateDeliveryStreamCommandInput} for command's `input` shape.
104
- * @see {@link CreateDeliveryStreamCommandOutput} for command's `response` shape.
105
- * @see {@link FirehoseClientResolvedConfig | config} for command's `input` shape.
106
- *
107
- */
108
- export class CreateDeliveryStreamCommand extends $Command<
109
- CreateDeliveryStreamCommandInput,
110
- CreateDeliveryStreamCommandOutput,
111
- FirehoseClientResolvedConfig
112
- > {
113
- // Start section: command_properties
114
- // End section: command_properties
115
-
116
- constructor(readonly input: CreateDeliveryStreamCommandInput) {
117
- // Start section: command_constructor
118
- super();
119
- // End section: command_constructor
120
- }
121
-
122
- /**
123
- * @internal
124
- */
125
- resolveMiddleware(
126
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
127
- configuration: FirehoseClientResolvedConfig,
128
- options?: __HttpHandlerOptions
129
- ): Handler<CreateDeliveryStreamCommandInput, CreateDeliveryStreamCommandOutput> {
130
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
131
-
132
- const stack = clientStack.concat(this.middlewareStack);
133
-
134
- const { logger } = configuration;
135
- const clientName = "FirehoseClient";
136
- const commandName = "CreateDeliveryStreamCommand";
137
- const handlerExecutionContext: HandlerExecutionContext = {
138
- logger,
139
- clientName,
140
- commandName,
141
- inputFilterSensitiveLog: CreateDeliveryStreamInput.filterSensitiveLog,
142
- outputFilterSensitiveLog: CreateDeliveryStreamOutput.filterSensitiveLog,
143
- };
144
- const { requestHandler } = configuration;
145
- return stack.resolve(
146
- (request: FinalizeHandlerArguments<any>) =>
147
- requestHandler.handle(request.request as __HttpRequest, options || {}),
148
- handlerExecutionContext
149
- );
150
- }
151
-
152
- private serialize(input: CreateDeliveryStreamCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
153
- return serializeAws_json1_1CreateDeliveryStreamCommand(input, context);
154
- }
155
-
156
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateDeliveryStreamCommandOutput> {
157
- return deserializeAws_json1_1CreateDeliveryStreamCommand(output, context);
158
- }
159
-
160
- // Start section: command_body_extra
161
- // End section: command_body_extra
162
- }
@@ -1,103 +0,0 @@
1
- import { FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FirehoseClient";
2
- import { DeleteDeliveryStreamInput, DeleteDeliveryStreamOutput } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1DeleteDeliveryStreamCommand,
5
- serializeAws_json1_1DeleteDeliveryStreamCommand,
6
- } from "../protocols/Aws_json1_1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface DeleteDeliveryStreamCommandInput extends DeleteDeliveryStreamInput {}
21
- export interface DeleteDeliveryStreamCommandOutput extends DeleteDeliveryStreamOutput, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Deletes a delivery stream and its data.</p>
25
- * <p>To check the state of a delivery stream, use <a>DescribeDeliveryStream</a>. You can delete a delivery stream only if it is in one of the following states:
26
- * <code>ACTIVE</code>, <code>DELETING</code>, <code>CREATING_FAILED</code>, or
27
- * <code>DELETING_FAILED</code>. You can't delete a delivery stream that is in the
28
- * <code>CREATING</code> state. While the deletion request is in process, the delivery
29
- * stream is in the <code>DELETING</code> state.</p>
30
- * <p>While the delivery stream is in the <code>DELETING</code> state, the service might
31
- * continue to accept records, but it doesn't make any guarantees with respect to delivering
32
- * the data. Therefore, as a best practice, first stop any applications that are sending
33
- * records before you delete a delivery stream.</p>
34
- * @example
35
- * Use a bare-bones client and the command you need to make an API call.
36
- * ```javascript
37
- * import { FirehoseClient, DeleteDeliveryStreamCommand } from "@aws-sdk/client-firehose"; // ES Modules import
38
- * // const { FirehoseClient, DeleteDeliveryStreamCommand } = require("@aws-sdk/client-firehose"); // CommonJS import
39
- * const client = new FirehoseClient(config);
40
- * const command = new DeleteDeliveryStreamCommand(input);
41
- * const response = await client.send(command);
42
- * ```
43
- *
44
- * @see {@link DeleteDeliveryStreamCommandInput} for command's `input` shape.
45
- * @see {@link DeleteDeliveryStreamCommandOutput} for command's `response` shape.
46
- * @see {@link FirehoseClientResolvedConfig | config} for command's `input` shape.
47
- *
48
- */
49
- export class DeleteDeliveryStreamCommand extends $Command<
50
- DeleteDeliveryStreamCommandInput,
51
- DeleteDeliveryStreamCommandOutput,
52
- FirehoseClientResolvedConfig
53
- > {
54
- // Start section: command_properties
55
- // End section: command_properties
56
-
57
- constructor(readonly input: DeleteDeliveryStreamCommandInput) {
58
- // Start section: command_constructor
59
- super();
60
- // End section: command_constructor
61
- }
62
-
63
- /**
64
- * @internal
65
- */
66
- resolveMiddleware(
67
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
68
- configuration: FirehoseClientResolvedConfig,
69
- options?: __HttpHandlerOptions
70
- ): Handler<DeleteDeliveryStreamCommandInput, DeleteDeliveryStreamCommandOutput> {
71
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
72
-
73
- const stack = clientStack.concat(this.middlewareStack);
74
-
75
- const { logger } = configuration;
76
- const clientName = "FirehoseClient";
77
- const commandName = "DeleteDeliveryStreamCommand";
78
- const handlerExecutionContext: HandlerExecutionContext = {
79
- logger,
80
- clientName,
81
- commandName,
82
- inputFilterSensitiveLog: DeleteDeliveryStreamInput.filterSensitiveLog,
83
- outputFilterSensitiveLog: DeleteDeliveryStreamOutput.filterSensitiveLog,
84
- };
85
- const { requestHandler } = configuration;
86
- return stack.resolve(
87
- (request: FinalizeHandlerArguments<any>) =>
88
- requestHandler.handle(request.request as __HttpRequest, options || {}),
89
- handlerExecutionContext
90
- );
91
- }
92
-
93
- private serialize(input: DeleteDeliveryStreamCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
94
- return serializeAws_json1_1DeleteDeliveryStreamCommand(input, context);
95
- }
96
-
97
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteDeliveryStreamCommandOutput> {
98
- return deserializeAws_json1_1DeleteDeliveryStreamCommand(output, context);
99
- }
100
-
101
- // Start section: command_body_extra
102
- // End section: command_body_extra
103
- }
@@ -1,100 +0,0 @@
1
- import { FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FirehoseClient";
2
- import { DescribeDeliveryStreamInput, DescribeDeliveryStreamOutput } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1DescribeDeliveryStreamCommand,
5
- serializeAws_json1_1DescribeDeliveryStreamCommand,
6
- } from "../protocols/Aws_json1_1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface DescribeDeliveryStreamCommandInput extends DescribeDeliveryStreamInput {}
21
- export interface DescribeDeliveryStreamCommandOutput extends DescribeDeliveryStreamOutput, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Describes the specified delivery stream and its status. For example, after your
25
- * delivery stream is created, call <code>DescribeDeliveryStream</code> to see whether the
26
- * delivery stream is <code>ACTIVE</code> and therefore ready for data to be sent to it. </p>
27
- * <p>If the status of a delivery stream is <code>CREATING_FAILED</code>, this status
28
- * doesn't change, and you can't invoke <a>CreateDeliveryStream</a> again on it.
29
- * However, you can invoke the <a>DeleteDeliveryStream</a> operation to delete it.
30
- * If the status is <code>DELETING_FAILED</code>, you can force deletion by invoking <a>DeleteDeliveryStream</a> again but with <a>DeleteDeliveryStreamInput$AllowForceDelete</a> set to true.</p>
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { FirehoseClient, DescribeDeliveryStreamCommand } from "@aws-sdk/client-firehose"; // ES Modules import
35
- * // const { FirehoseClient, DescribeDeliveryStreamCommand } = require("@aws-sdk/client-firehose"); // CommonJS import
36
- * const client = new FirehoseClient(config);
37
- * const command = new DescribeDeliveryStreamCommand(input);
38
- * const response = await client.send(command);
39
- * ```
40
- *
41
- * @see {@link DescribeDeliveryStreamCommandInput} for command's `input` shape.
42
- * @see {@link DescribeDeliveryStreamCommandOutput} for command's `response` shape.
43
- * @see {@link FirehoseClientResolvedConfig | config} for command's `input` shape.
44
- *
45
- */
46
- export class DescribeDeliveryStreamCommand extends $Command<
47
- DescribeDeliveryStreamCommandInput,
48
- DescribeDeliveryStreamCommandOutput,
49
- FirehoseClientResolvedConfig
50
- > {
51
- // Start section: command_properties
52
- // End section: command_properties
53
-
54
- constructor(readonly input: DescribeDeliveryStreamCommandInput) {
55
- // Start section: command_constructor
56
- super();
57
- // End section: command_constructor
58
- }
59
-
60
- /**
61
- * @internal
62
- */
63
- resolveMiddleware(
64
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
65
- configuration: FirehoseClientResolvedConfig,
66
- options?: __HttpHandlerOptions
67
- ): Handler<DescribeDeliveryStreamCommandInput, DescribeDeliveryStreamCommandOutput> {
68
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
69
-
70
- const stack = clientStack.concat(this.middlewareStack);
71
-
72
- const { logger } = configuration;
73
- const clientName = "FirehoseClient";
74
- const commandName = "DescribeDeliveryStreamCommand";
75
- const handlerExecutionContext: HandlerExecutionContext = {
76
- logger,
77
- clientName,
78
- commandName,
79
- inputFilterSensitiveLog: DescribeDeliveryStreamInput.filterSensitiveLog,
80
- outputFilterSensitiveLog: DescribeDeliveryStreamOutput.filterSensitiveLog,
81
- };
82
- const { requestHandler } = configuration;
83
- return stack.resolve(
84
- (request: FinalizeHandlerArguments<any>) =>
85
- requestHandler.handle(request.request as __HttpRequest, options || {}),
86
- handlerExecutionContext
87
- );
88
- }
89
-
90
- private serialize(input: DescribeDeliveryStreamCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
91
- return serializeAws_json1_1DescribeDeliveryStreamCommand(input, context);
92
- }
93
-
94
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeDeliveryStreamCommandOutput> {
95
- return deserializeAws_json1_1DescribeDeliveryStreamCommand(output, context);
96
- }
97
-
98
- // Start section: command_body_extra
99
- // End section: command_body_extra
100
- }