@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
@@ -1,101 +0,0 @@
1
- import { FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FirehoseClient";
2
- import { ListDeliveryStreamsInput, ListDeliveryStreamsOutput } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1ListDeliveryStreamsCommand,
5
- serializeAws_json1_1ListDeliveryStreamsCommand,
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 ListDeliveryStreamsCommandInput extends ListDeliveryStreamsInput {}
21
- export interface ListDeliveryStreamsCommandOutput extends ListDeliveryStreamsOutput, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Lists your delivery streams in alphabetical order of their names.</p>
25
- * <p>The number of delivery streams might be too large to return using a single call to
26
- * <code>ListDeliveryStreams</code>. You can limit the number of delivery streams returned,
27
- * using the <code>Limit</code> parameter. To determine whether there are more delivery
28
- * streams to list, check the value of <code>HasMoreDeliveryStreams</code> in the output. If
29
- * there are more delivery streams to list, you can request them by calling this operation
30
- * again and setting the <code>ExclusiveStartDeliveryStreamName</code> parameter to the name
31
- * of the last delivery stream returned in the last call.</p>
32
- * @example
33
- * Use a bare-bones client and the command you need to make an API call.
34
- * ```javascript
35
- * import { FirehoseClient, ListDeliveryStreamsCommand } from "@aws-sdk/client-firehose"; // ES Modules import
36
- * // const { FirehoseClient, ListDeliveryStreamsCommand } = require("@aws-sdk/client-firehose"); // CommonJS import
37
- * const client = new FirehoseClient(config);
38
- * const command = new ListDeliveryStreamsCommand(input);
39
- * const response = await client.send(command);
40
- * ```
41
- *
42
- * @see {@link ListDeliveryStreamsCommandInput} for command's `input` shape.
43
- * @see {@link ListDeliveryStreamsCommandOutput} for command's `response` shape.
44
- * @see {@link FirehoseClientResolvedConfig | config} for command's `input` shape.
45
- *
46
- */
47
- export class ListDeliveryStreamsCommand extends $Command<
48
- ListDeliveryStreamsCommandInput,
49
- ListDeliveryStreamsCommandOutput,
50
- FirehoseClientResolvedConfig
51
- > {
52
- // Start section: command_properties
53
- // End section: command_properties
54
-
55
- constructor(readonly input: ListDeliveryStreamsCommandInput) {
56
- // Start section: command_constructor
57
- super();
58
- // End section: command_constructor
59
- }
60
-
61
- /**
62
- * @internal
63
- */
64
- resolveMiddleware(
65
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
66
- configuration: FirehoseClientResolvedConfig,
67
- options?: __HttpHandlerOptions
68
- ): Handler<ListDeliveryStreamsCommandInput, ListDeliveryStreamsCommandOutput> {
69
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
70
-
71
- const stack = clientStack.concat(this.middlewareStack);
72
-
73
- const { logger } = configuration;
74
- const clientName = "FirehoseClient";
75
- const commandName = "ListDeliveryStreamsCommand";
76
- const handlerExecutionContext: HandlerExecutionContext = {
77
- logger,
78
- clientName,
79
- commandName,
80
- inputFilterSensitiveLog: ListDeliveryStreamsInput.filterSensitiveLog,
81
- outputFilterSensitiveLog: ListDeliveryStreamsOutput.filterSensitiveLog,
82
- };
83
- const { requestHandler } = configuration;
84
- return stack.resolve(
85
- (request: FinalizeHandlerArguments<any>) =>
86
- requestHandler.handle(request.request as __HttpRequest, options || {}),
87
- handlerExecutionContext
88
- );
89
- }
90
-
91
- private serialize(input: ListDeliveryStreamsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
92
- return serializeAws_json1_1ListDeliveryStreamsCommand(input, context);
93
- }
94
-
95
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListDeliveryStreamsCommandOutput> {
96
- return deserializeAws_json1_1ListDeliveryStreamsCommand(output, context);
97
- }
98
-
99
- // Start section: command_body_extra
100
- // End section: command_body_extra
101
- }
@@ -1,98 +0,0 @@
1
- import { FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FirehoseClient";
2
- import { ListTagsForDeliveryStreamInput, ListTagsForDeliveryStreamOutput } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1ListTagsForDeliveryStreamCommand,
5
- serializeAws_json1_1ListTagsForDeliveryStreamCommand,
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 ListTagsForDeliveryStreamCommandInput extends ListTagsForDeliveryStreamInput {}
21
- export interface ListTagsForDeliveryStreamCommandOutput extends ListTagsForDeliveryStreamOutput, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Lists the tags for the specified delivery stream. This operation has a limit of five
25
- * transactions per second per account. </p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { FirehoseClient, ListTagsForDeliveryStreamCommand } from "@aws-sdk/client-firehose"; // ES Modules import
30
- * // const { FirehoseClient, ListTagsForDeliveryStreamCommand } = require("@aws-sdk/client-firehose"); // CommonJS import
31
- * const client = new FirehoseClient(config);
32
- * const command = new ListTagsForDeliveryStreamCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link ListTagsForDeliveryStreamCommandInput} for command's `input` shape.
37
- * @see {@link ListTagsForDeliveryStreamCommandOutput} for command's `response` shape.
38
- * @see {@link FirehoseClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class ListTagsForDeliveryStreamCommand extends $Command<
42
- ListTagsForDeliveryStreamCommandInput,
43
- ListTagsForDeliveryStreamCommandOutput,
44
- FirehoseClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: ListTagsForDeliveryStreamCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: FirehoseClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<ListTagsForDeliveryStreamCommandInput, ListTagsForDeliveryStreamCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "FirehoseClient";
69
- const commandName = "ListTagsForDeliveryStreamCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: ListTagsForDeliveryStreamInput.filterSensitiveLog,
75
- outputFilterSensitiveLog: ListTagsForDeliveryStreamOutput.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: ListTagsForDeliveryStreamCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1ListTagsForDeliveryStreamCommand(input, context);
87
- }
88
-
89
- private deserialize(
90
- output: __HttpResponse,
91
- context: __SerdeContext
92
- ): Promise<ListTagsForDeliveryStreamCommandOutput> {
93
- return deserializeAws_json1_1ListTagsForDeliveryStreamCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }
@@ -1,144 +0,0 @@
1
- import { FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FirehoseClient";
2
- import { PutRecordBatchInput, PutRecordBatchOutput } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1PutRecordBatchCommand,
5
- serializeAws_json1_1PutRecordBatchCommand,
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 PutRecordBatchCommandInput extends PutRecordBatchInput {}
21
- export interface PutRecordBatchCommandOutput extends PutRecordBatchOutput, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Writes multiple data records into a delivery stream in a single call, which can
25
- * achieve higher throughput per producer than when writing single records. To write single
26
- * data records into a delivery stream, use <a>PutRecord</a>. Applications using
27
- * these operations are referred to as producers.</p>
28
- * <p>For information about service quota, see <a href="https://docs.aws.amazon.com/firehose/latest/dev/limits.html">Amazon Kinesis Data Firehose
29
- * Quota</a>.</p>
30
- * <p>Each <a>PutRecordBatch</a> request supports up to 500 records. Each record
31
- * in the request can be as large as 1,000 KB (before base64 encoding), up to a limit of 4 MB
32
- * for the entire request. These limits cannot be changed.</p>
33
- * <p>You must specify the name of the delivery stream and the data record when using <a>PutRecord</a>. The data record consists of a data blob that can be up to 1,000
34
- * KB in size, and any kind of data. For example, it could be a segment from a log file,
35
- * geographic location data, website clickstream data, and so on.</p>
36
- * <p>Kinesis Data Firehose buffers records before delivering them to the destination. To
37
- * disambiguate the data blobs at the destination, a common solution is to use delimiters in
38
- * the data, such as a newline (<code>\n</code>) or some other character unique within the
39
- * data. This allows the consumer application to parse individual data items when reading the
40
- * data from the destination.</p>
41
- * <p>The <a>PutRecordBatch</a> response includes a count of failed records,
42
- * <code>FailedPutCount</code>, and an array of responses, <code>RequestResponses</code>.
43
- * Even if the <a>PutRecordBatch</a> call succeeds, the value of
44
- * <code>FailedPutCount</code> may be greater than 0, indicating that there are records for
45
- * which the operation didn't succeed. Each entry in the <code>RequestResponses</code> array
46
- * provides additional information about the processed record. It directly correlates with a
47
- * record in the request array using the same ordering, from the top to the bottom. The
48
- * response array always includes the same number of records as the request array.
49
- * <code>RequestResponses</code> includes both successfully and unsuccessfully processed
50
- * records. Kinesis Data Firehose tries to process all records in each <a>PutRecordBatch</a> request. A single record failure does not stop the processing
51
- * of subsequent records. </p>
52
- * <p>A successfully processed record includes a <code>RecordId</code> value, which is
53
- * unique for the record. An unsuccessfully processed record includes <code>ErrorCode</code>
54
- * and <code>ErrorMessage</code> values. <code>ErrorCode</code> reflects the type of error,
55
- * and is one of the following values: <code>ServiceUnavailableException</code> or
56
- * <code>InternalFailure</code>. <code>ErrorMessage</code> provides more detailed
57
- * information about the error.</p>
58
- * <p>If there is an internal server error or a timeout, the write might have completed or
59
- * it might have failed. If <code>FailedPutCount</code> is greater than 0, retry the request,
60
- * resending only those records that might have failed processing. This minimizes the possible
61
- * duplicate records and also reduces the total bytes sent (and corresponding charges). We
62
- * recommend that you handle any duplicates at the destination.</p>
63
- * <p>If <a>PutRecordBatch</a> throws <code>ServiceUnavailableException</code>,
64
- * back off and retry. If the exception persists, it is possible that the throughput limits
65
- * have been exceeded for the delivery stream.</p>
66
- *
67
- * <p>Data records sent to Kinesis Data Firehose are stored for 24 hours from the time they
68
- * are added to a delivery stream as it attempts to send the records to the destination. If
69
- * the destination is unreachable for more than 24 hours, the data is no longer
70
- * available.</p>
71
- * <important>
72
- * <p>Don't concatenate two or more base64 strings to form the data fields of your records.
73
- * Instead, concatenate the raw data, then perform base64 encoding.</p>
74
- * </important>
75
- * @example
76
- * Use a bare-bones client and the command you need to make an API call.
77
- * ```javascript
78
- * import { FirehoseClient, PutRecordBatchCommand } from "@aws-sdk/client-firehose"; // ES Modules import
79
- * // const { FirehoseClient, PutRecordBatchCommand } = require("@aws-sdk/client-firehose"); // CommonJS import
80
- * const client = new FirehoseClient(config);
81
- * const command = new PutRecordBatchCommand(input);
82
- * const response = await client.send(command);
83
- * ```
84
- *
85
- * @see {@link PutRecordBatchCommandInput} for command's `input` shape.
86
- * @see {@link PutRecordBatchCommandOutput} for command's `response` shape.
87
- * @see {@link FirehoseClientResolvedConfig | config} for command's `input` shape.
88
- *
89
- */
90
- export class PutRecordBatchCommand extends $Command<
91
- PutRecordBatchCommandInput,
92
- PutRecordBatchCommandOutput,
93
- FirehoseClientResolvedConfig
94
- > {
95
- // Start section: command_properties
96
- // End section: command_properties
97
-
98
- constructor(readonly input: PutRecordBatchCommandInput) {
99
- // Start section: command_constructor
100
- super();
101
- // End section: command_constructor
102
- }
103
-
104
- /**
105
- * @internal
106
- */
107
- resolveMiddleware(
108
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
109
- configuration: FirehoseClientResolvedConfig,
110
- options?: __HttpHandlerOptions
111
- ): Handler<PutRecordBatchCommandInput, PutRecordBatchCommandOutput> {
112
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
113
-
114
- const stack = clientStack.concat(this.middlewareStack);
115
-
116
- const { logger } = configuration;
117
- const clientName = "FirehoseClient";
118
- const commandName = "PutRecordBatchCommand";
119
- const handlerExecutionContext: HandlerExecutionContext = {
120
- logger,
121
- clientName,
122
- commandName,
123
- inputFilterSensitiveLog: PutRecordBatchInput.filterSensitiveLog,
124
- outputFilterSensitiveLog: PutRecordBatchOutput.filterSensitiveLog,
125
- };
126
- const { requestHandler } = configuration;
127
- return stack.resolve(
128
- (request: FinalizeHandlerArguments<any>) =>
129
- requestHandler.handle(request.request as __HttpRequest, options || {}),
130
- handlerExecutionContext
131
- );
132
- }
133
-
134
- private serialize(input: PutRecordBatchCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
135
- return serializeAws_json1_1PutRecordBatchCommand(input, context);
136
- }
137
-
138
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutRecordBatchCommandOutput> {
139
- return deserializeAws_json1_1PutRecordBatchCommand(output, context);
140
- }
141
-
142
- // Start section: command_body_extra
143
- // End section: command_body_extra
144
- }
@@ -1,122 +0,0 @@
1
- import { FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FirehoseClient";
2
- import { PutRecordInput, PutRecordOutput } from "../models/models_0";
3
- import { deserializeAws_json1_1PutRecordCommand, serializeAws_json1_1PutRecordCommand } from "../protocols/Aws_json1_1";
4
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
6
- import { Command as $Command } from "@aws-sdk/smithy-client";
7
- import {
8
- FinalizeHandlerArguments,
9
- Handler,
10
- HandlerExecutionContext,
11
- MiddlewareStack,
12
- HttpHandlerOptions as __HttpHandlerOptions,
13
- MetadataBearer as __MetadataBearer,
14
- SerdeContext as __SerdeContext,
15
- } from "@aws-sdk/types";
16
-
17
- export interface PutRecordCommandInput extends PutRecordInput {}
18
- export interface PutRecordCommandOutput extends PutRecordOutput, __MetadataBearer {}
19
-
20
- /**
21
- * <p>Writes a single data record into an Amazon Kinesis Data Firehose delivery stream. To
22
- * write multiple data records into a delivery stream, use <a>PutRecordBatch</a>.
23
- * Applications using these operations are referred to as producers.</p>
24
- * <p>By default, each delivery stream can take in up to 2,000 transactions per second,
25
- * 5,000 records per second, or 5 MB per second. If you use <a>PutRecord</a> and
26
- * <a>PutRecordBatch</a>, the limits are an aggregate across these two
27
- * operations for each delivery stream. For more information about limits and how to request
28
- * an increase, see <a href="https://docs.aws.amazon.com/firehose/latest/dev/limits.html">Amazon
29
- * Kinesis Data Firehose Limits</a>. </p>
30
- * <p>You must specify the name of the delivery stream and the data record when using <a>PutRecord</a>. The data record consists of a data blob that can be up to 1,000
31
- * KiB in size, and any kind of data. For example, it can be a segment from a log file,
32
- * geographic location data, website clickstream data, and so on.</p>
33
- * <p>Kinesis Data Firehose buffers records before delivering them to the destination. To
34
- * disambiguate the data blobs at the destination, a common solution is to use delimiters in
35
- * the data, such as a newline (<code>\n</code>) or some other character unique within the
36
- * data. This allows the consumer application to parse individual data items when reading the
37
- * data from the destination.</p>
38
- * <p>The <code>PutRecord</code> operation returns a <code>RecordId</code>, which is a
39
- * unique string assigned to each record. Producer applications can use this ID for purposes
40
- * such as auditability and investigation.</p>
41
- * <p>If the <code>PutRecord</code> operation throws a
42
- * <code>ServiceUnavailableException</code>, back off and retry. If the exception persists,
43
- * it is possible that the throughput limits have been exceeded for the delivery stream. </p>
44
- * <p>Data records sent to Kinesis Data Firehose are stored for 24 hours from the time they
45
- * are added to a delivery stream as it tries to send the records to the destination. If the
46
- * destination is unreachable for more than 24 hours, the data is no longer
47
- * available.</p>
48
- *
49
- * <important>
50
- * <p>Don't concatenate two or more base64 strings to form the data fields of your records.
51
- * Instead, concatenate the raw data, then perform base64 encoding.</p>
52
- * </important>
53
- * @example
54
- * Use a bare-bones client and the command you need to make an API call.
55
- * ```javascript
56
- * import { FirehoseClient, PutRecordCommand } from "@aws-sdk/client-firehose"; // ES Modules import
57
- * // const { FirehoseClient, PutRecordCommand } = require("@aws-sdk/client-firehose"); // CommonJS import
58
- * const client = new FirehoseClient(config);
59
- * const command = new PutRecordCommand(input);
60
- * const response = await client.send(command);
61
- * ```
62
- *
63
- * @see {@link PutRecordCommandInput} for command's `input` shape.
64
- * @see {@link PutRecordCommandOutput} for command's `response` shape.
65
- * @see {@link FirehoseClientResolvedConfig | config} for command's `input` shape.
66
- *
67
- */
68
- export class PutRecordCommand extends $Command<
69
- PutRecordCommandInput,
70
- PutRecordCommandOutput,
71
- FirehoseClientResolvedConfig
72
- > {
73
- // Start section: command_properties
74
- // End section: command_properties
75
-
76
- constructor(readonly input: PutRecordCommandInput) {
77
- // Start section: command_constructor
78
- super();
79
- // End section: command_constructor
80
- }
81
-
82
- /**
83
- * @internal
84
- */
85
- resolveMiddleware(
86
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
87
- configuration: FirehoseClientResolvedConfig,
88
- options?: __HttpHandlerOptions
89
- ): Handler<PutRecordCommandInput, PutRecordCommandOutput> {
90
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
91
-
92
- const stack = clientStack.concat(this.middlewareStack);
93
-
94
- const { logger } = configuration;
95
- const clientName = "FirehoseClient";
96
- const commandName = "PutRecordCommand";
97
- const handlerExecutionContext: HandlerExecutionContext = {
98
- logger,
99
- clientName,
100
- commandName,
101
- inputFilterSensitiveLog: PutRecordInput.filterSensitiveLog,
102
- outputFilterSensitiveLog: PutRecordOutput.filterSensitiveLog,
103
- };
104
- const { requestHandler } = configuration;
105
- return stack.resolve(
106
- (request: FinalizeHandlerArguments<any>) =>
107
- requestHandler.handle(request.request as __HttpRequest, options || {}),
108
- handlerExecutionContext
109
- );
110
- }
111
-
112
- private serialize(input: PutRecordCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
113
- return serializeAws_json1_1PutRecordCommand(input, context);
114
- }
115
-
116
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutRecordCommandOutput> {
117
- return deserializeAws_json1_1PutRecordCommand(output, context);
118
- }
119
-
120
- // Start section: command_body_extra
121
- // End section: command_body_extra
122
- }
@@ -1,134 +0,0 @@
1
- import { FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FirehoseClient";
2
- import { StartDeliveryStreamEncryptionInput, StartDeliveryStreamEncryptionOutput } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1StartDeliveryStreamEncryptionCommand,
5
- serializeAws_json1_1StartDeliveryStreamEncryptionCommand,
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 StartDeliveryStreamEncryptionCommandInput extends StartDeliveryStreamEncryptionInput {}
21
- export interface StartDeliveryStreamEncryptionCommandOutput
22
- extends StartDeliveryStreamEncryptionOutput,
23
- __MetadataBearer {}
24
-
25
- /**
26
- * <p>Enables server-side encryption (SSE) for the delivery stream. </p>
27
- * <p>This operation is asynchronous. It returns immediately. When you invoke it, Kinesis Data
28
- * Firehose first sets the encryption status of the stream to <code>ENABLING</code>, and then
29
- * to <code>ENABLED</code>. The encryption status of a delivery stream is the
30
- * <code>Status</code> property in <a>DeliveryStreamEncryptionConfiguration</a>.
31
- * If the operation fails, the encryption status changes to <code>ENABLING_FAILED</code>. You
32
- * can continue to read and write data to your delivery stream while the encryption status is
33
- * <code>ENABLING</code>, but the data is not encrypted. It can take up to 5 seconds after
34
- * the encryption status changes to <code>ENABLED</code> before all records written to the
35
- * delivery stream are encrypted. To find out whether a record or a batch of records was
36
- * encrypted, check the response elements <a>PutRecordOutput$Encrypted</a> and
37
- * <a>PutRecordBatchOutput$Encrypted</a>, respectively.</p>
38
- * <p>To check the encryption status of a delivery stream, use <a>DescribeDeliveryStream</a>.</p>
39
- * <p>Even if encryption is currently enabled for a delivery stream, you can still invoke this
40
- * operation on it to change the ARN of the CMK or both its type and ARN. If you invoke this
41
- * method to change the CMK, and the old CMK is of type <code>CUSTOMER_MANAGED_CMK</code>,
42
- * Kinesis Data Firehose schedules the grant it had on the old CMK for retirement. If the new
43
- * CMK is of type <code>CUSTOMER_MANAGED_CMK</code>, Kinesis Data Firehose creates a grant
44
- * that enables it to use the new CMK to encrypt and decrypt data and to manage the
45
- * grant.</p>
46
- * <p>If a delivery stream already has encryption enabled and then you invoke this operation
47
- * to change the ARN of the CMK or both its type and ARN and you get
48
- * <code>ENABLING_FAILED</code>, this only means that the attempt to change the CMK failed.
49
- * In this case, encryption remains enabled with the old CMK.</p>
50
- * <p>If the encryption status of your delivery stream is <code>ENABLING_FAILED</code>, you
51
- * can invoke this operation again with a valid CMK. The CMK must be enabled and the key
52
- * policy mustn't explicitly deny the permission for Kinesis Data Firehose to invoke KMS
53
- * encrypt and decrypt operations.</p>
54
- * <p>You can enable SSE for a delivery stream only if it's a delivery stream that uses
55
- * <code>DirectPut</code> as its source. </p>
56
- * <p>The <code>StartDeliveryStreamEncryption</code> and
57
- * <code>StopDeliveryStreamEncryption</code> operations have a combined limit of 25 calls
58
- * per delivery stream per 24 hours. For example, you reach the limit if you call
59
- * <code>StartDeliveryStreamEncryption</code> 13 times and
60
- * <code>StopDeliveryStreamEncryption</code> 12 times for the same delivery stream in a
61
- * 24-hour period.</p>
62
- * @example
63
- * Use a bare-bones client and the command you need to make an API call.
64
- * ```javascript
65
- * import { FirehoseClient, StartDeliveryStreamEncryptionCommand } from "@aws-sdk/client-firehose"; // ES Modules import
66
- * // const { FirehoseClient, StartDeliveryStreamEncryptionCommand } = require("@aws-sdk/client-firehose"); // CommonJS import
67
- * const client = new FirehoseClient(config);
68
- * const command = new StartDeliveryStreamEncryptionCommand(input);
69
- * const response = await client.send(command);
70
- * ```
71
- *
72
- * @see {@link StartDeliveryStreamEncryptionCommandInput} for command's `input` shape.
73
- * @see {@link StartDeliveryStreamEncryptionCommandOutput} for command's `response` shape.
74
- * @see {@link FirehoseClientResolvedConfig | config} for command's `input` shape.
75
- *
76
- */
77
- export class StartDeliveryStreamEncryptionCommand extends $Command<
78
- StartDeliveryStreamEncryptionCommandInput,
79
- StartDeliveryStreamEncryptionCommandOutput,
80
- FirehoseClientResolvedConfig
81
- > {
82
- // Start section: command_properties
83
- // End section: command_properties
84
-
85
- constructor(readonly input: StartDeliveryStreamEncryptionCommandInput) {
86
- // Start section: command_constructor
87
- super();
88
- // End section: command_constructor
89
- }
90
-
91
- /**
92
- * @internal
93
- */
94
- resolveMiddleware(
95
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
96
- configuration: FirehoseClientResolvedConfig,
97
- options?: __HttpHandlerOptions
98
- ): Handler<StartDeliveryStreamEncryptionCommandInput, StartDeliveryStreamEncryptionCommandOutput> {
99
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
100
-
101
- const stack = clientStack.concat(this.middlewareStack);
102
-
103
- const { logger } = configuration;
104
- const clientName = "FirehoseClient";
105
- const commandName = "StartDeliveryStreamEncryptionCommand";
106
- const handlerExecutionContext: HandlerExecutionContext = {
107
- logger,
108
- clientName,
109
- commandName,
110
- inputFilterSensitiveLog: StartDeliveryStreamEncryptionInput.filterSensitiveLog,
111
- outputFilterSensitiveLog: StartDeliveryStreamEncryptionOutput.filterSensitiveLog,
112
- };
113
- const { requestHandler } = configuration;
114
- return stack.resolve(
115
- (request: FinalizeHandlerArguments<any>) =>
116
- requestHandler.handle(request.request as __HttpRequest, options || {}),
117
- handlerExecutionContext
118
- );
119
- }
120
-
121
- private serialize(input: StartDeliveryStreamEncryptionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
122
- return serializeAws_json1_1StartDeliveryStreamEncryptionCommand(input, context);
123
- }
124
-
125
- private deserialize(
126
- output: __HttpResponse,
127
- context: __SerdeContext
128
- ): Promise<StartDeliveryStreamEncryptionCommandOutput> {
129
- return deserializeAws_json1_1StartDeliveryStreamEncryptionCommand(output, context);
130
- }
131
-
132
- // Start section: command_body_extra
133
- // End section: command_body_extra
134
- }