@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/Firehose.ts DELETED
@@ -1,704 +0,0 @@
1
- import { FirehoseClient } from "./FirehoseClient";
2
- import {
3
- CreateDeliveryStreamCommand,
4
- CreateDeliveryStreamCommandInput,
5
- CreateDeliveryStreamCommandOutput,
6
- } from "./commands/CreateDeliveryStreamCommand";
7
- import {
8
- DeleteDeliveryStreamCommand,
9
- DeleteDeliveryStreamCommandInput,
10
- DeleteDeliveryStreamCommandOutput,
11
- } from "./commands/DeleteDeliveryStreamCommand";
12
- import {
13
- DescribeDeliveryStreamCommand,
14
- DescribeDeliveryStreamCommandInput,
15
- DescribeDeliveryStreamCommandOutput,
16
- } from "./commands/DescribeDeliveryStreamCommand";
17
- import {
18
- ListDeliveryStreamsCommand,
19
- ListDeliveryStreamsCommandInput,
20
- ListDeliveryStreamsCommandOutput,
21
- } from "./commands/ListDeliveryStreamsCommand";
22
- import {
23
- ListTagsForDeliveryStreamCommand,
24
- ListTagsForDeliveryStreamCommandInput,
25
- ListTagsForDeliveryStreamCommandOutput,
26
- } from "./commands/ListTagsForDeliveryStreamCommand";
27
- import {
28
- PutRecordBatchCommand,
29
- PutRecordBatchCommandInput,
30
- PutRecordBatchCommandOutput,
31
- } from "./commands/PutRecordBatchCommand";
32
- import { PutRecordCommand, PutRecordCommandInput, PutRecordCommandOutput } from "./commands/PutRecordCommand";
33
- import {
34
- StartDeliveryStreamEncryptionCommand,
35
- StartDeliveryStreamEncryptionCommandInput,
36
- StartDeliveryStreamEncryptionCommandOutput,
37
- } from "./commands/StartDeliveryStreamEncryptionCommand";
38
- import {
39
- StopDeliveryStreamEncryptionCommand,
40
- StopDeliveryStreamEncryptionCommandInput,
41
- StopDeliveryStreamEncryptionCommandOutput,
42
- } from "./commands/StopDeliveryStreamEncryptionCommand";
43
- import {
44
- TagDeliveryStreamCommand,
45
- TagDeliveryStreamCommandInput,
46
- TagDeliveryStreamCommandOutput,
47
- } from "./commands/TagDeliveryStreamCommand";
48
- import {
49
- UntagDeliveryStreamCommand,
50
- UntagDeliveryStreamCommandInput,
51
- UntagDeliveryStreamCommandOutput,
52
- } from "./commands/UntagDeliveryStreamCommand";
53
- import {
54
- UpdateDestinationCommand,
55
- UpdateDestinationCommandInput,
56
- UpdateDestinationCommandOutput,
57
- } from "./commands/UpdateDestinationCommand";
58
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
59
-
60
- /**
61
- * <fullname>Amazon Kinesis Data Firehose API Reference</fullname>
62
- * <p>Amazon Kinesis Data Firehose is a fully managed service that delivers real-time
63
- * streaming data to destinations such as Amazon Simple Storage Service (Amazon S3), Amazon
64
- * Elasticsearch Service (Amazon ES), Amazon Redshift, and Splunk.</p>
65
- */
66
- export class Firehose extends FirehoseClient {
67
- /**
68
- * <p>Creates a Kinesis Data Firehose delivery stream.</p>
69
- *
70
- * <p>By default, you can create up to 50 delivery streams per AWS Region.</p>
71
- * <p>This is an asynchronous operation that immediately returns. The initial status of the
72
- * delivery stream is <code>CREATING</code>. After the delivery stream is created, its status
73
- * is <code>ACTIVE</code> and it now accepts data. If the delivery stream creation fails, the
74
- * status transitions to <code>CREATING_FAILED</code>. Attempts to send data to a delivery
75
- * stream that is not in the <code>ACTIVE</code> state cause an exception. To check the state
76
- * of a delivery stream, use <a>DescribeDeliveryStream</a>.</p>
77
- * <p>If the status of a delivery stream is <code>CREATING_FAILED</code>, this status
78
- * doesn't change, and you can't invoke <code>CreateDeliveryStream</code> again on it.
79
- * However, you can invoke the <a>DeleteDeliveryStream</a> operation to delete
80
- * it.</p>
81
- * <p>A Kinesis Data Firehose delivery stream can be configured to receive records directly
82
- * from providers using <a>PutRecord</a> or <a>PutRecordBatch</a>, or it
83
- * can be configured to use an existing Kinesis stream as its source. To specify a Kinesis
84
- * data stream as input, set the <code>DeliveryStreamType</code> parameter to
85
- * <code>KinesisStreamAsSource</code>, and provide the Kinesis stream Amazon Resource Name
86
- * (ARN) and role ARN in the <code>KinesisStreamSourceConfiguration</code>
87
- * parameter.</p>
88
- * <p>To create a delivery stream with server-side encryption (SSE) enabled, include <a>DeliveryStreamEncryptionConfigurationInput</a> in your request. This is
89
- * optional. You can also invoke <a>StartDeliveryStreamEncryption</a> to turn on
90
- * SSE for an existing delivery stream that doesn't have SSE enabled.</p>
91
- * <p>A delivery stream is configured with a single destination: Amazon S3, Amazon ES,
92
- * Amazon Redshift, or Splunk. You must specify only one of the following destination
93
- * configuration parameters: <code>ExtendedS3DestinationConfiguration</code>,
94
- * <code>S3DestinationConfiguration</code>,
95
- * <code>ElasticsearchDestinationConfiguration</code>,
96
- * <code>RedshiftDestinationConfiguration</code>, or
97
- * <code>SplunkDestinationConfiguration</code>.</p>
98
- * <p>When you specify <code>S3DestinationConfiguration</code>, you can also provide the
99
- * following optional values: BufferingHints, <code>EncryptionConfiguration</code>, and
100
- * <code>CompressionFormat</code>. By default, if no <code>BufferingHints</code> value is
101
- * provided, Kinesis Data Firehose buffers data up to 5 MB or for 5 minutes, whichever
102
- * condition is satisfied first. <code>BufferingHints</code> is a hint, so there are some
103
- * cases where the service cannot adhere to these conditions strictly. For example, record
104
- * boundaries might be such that the size is a little over or under the configured buffering
105
- * size. By default, no encryption is performed. We strongly recommend that you enable
106
- * encryption to ensure secure data storage in Amazon S3.</p>
107
- *
108
- * <p>A few notes about Amazon Redshift as a destination:</p>
109
- * <ul>
110
- * <li>
111
- * <p>An Amazon Redshift destination requires an S3 bucket as intermediate location.
112
- * Kinesis Data Firehose first delivers data to Amazon S3 and then uses
113
- * <code>COPY</code> syntax to load data into an Amazon Redshift table. This is
114
- * specified in the <code>RedshiftDestinationConfiguration.S3Configuration</code>
115
- * parameter.</p>
116
- *
117
- * </li>
118
- * <li>
119
- * <p>The compression formats <code>SNAPPY</code> or <code>ZIP</code> cannot be
120
- * specified in <code>RedshiftDestinationConfiguration.S3Configuration</code> because
121
- * the Amazon Redshift <code>COPY</code> operation that reads from the S3 bucket doesn't
122
- * support these compression formats.</p>
123
- * </li>
124
- * <li>
125
- * <p>We strongly recommend that you use the user name and password you provide
126
- * exclusively with Kinesis Data Firehose, and that the permissions for the account are
127
- * restricted for Amazon Redshift <code>INSERT</code> permissions.</p>
128
- *
129
- * </li>
130
- * </ul>
131
- * <p>Kinesis Data Firehose assumes the IAM role that is configured as part of the
132
- * destination. The role should allow the Kinesis Data Firehose principal to assume the role,
133
- * and the role should have permissions that allow the service to deliver the data. For more
134
- * information, see <a href="https://docs.aws.amazon.com/firehose/latest/dev/controlling-access.html#using-iam-s3">Grant Kinesis Data
135
- * Firehose Access to an Amazon S3 Destination</a> in the <i>Amazon Kinesis Data
136
- * Firehose Developer Guide</i>.</p>
137
- */
138
- public createDeliveryStream(
139
- args: CreateDeliveryStreamCommandInput,
140
- options?: __HttpHandlerOptions
141
- ): Promise<CreateDeliveryStreamCommandOutput>;
142
- public createDeliveryStream(
143
- args: CreateDeliveryStreamCommandInput,
144
- cb: (err: any, data?: CreateDeliveryStreamCommandOutput) => void
145
- ): void;
146
- public createDeliveryStream(
147
- args: CreateDeliveryStreamCommandInput,
148
- options: __HttpHandlerOptions,
149
- cb: (err: any, data?: CreateDeliveryStreamCommandOutput) => void
150
- ): void;
151
- public createDeliveryStream(
152
- args: CreateDeliveryStreamCommandInput,
153
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateDeliveryStreamCommandOutput) => void),
154
- cb?: (err: any, data?: CreateDeliveryStreamCommandOutput) => void
155
- ): Promise<CreateDeliveryStreamCommandOutput> | void {
156
- const command = new CreateDeliveryStreamCommand(args);
157
- if (typeof optionsOrCb === "function") {
158
- this.send(command, optionsOrCb);
159
- } else if (typeof cb === "function") {
160
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
161
- this.send(command, optionsOrCb || {}, cb);
162
- } else {
163
- return this.send(command, optionsOrCb);
164
- }
165
- }
166
-
167
- /**
168
- * <p>Deletes a delivery stream and its data.</p>
169
- * <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:
170
- * <code>ACTIVE</code>, <code>DELETING</code>, <code>CREATING_FAILED</code>, or
171
- * <code>DELETING_FAILED</code>. You can't delete a delivery stream that is in the
172
- * <code>CREATING</code> state. While the deletion request is in process, the delivery
173
- * stream is in the <code>DELETING</code> state.</p>
174
- * <p>While the delivery stream is in the <code>DELETING</code> state, the service might
175
- * continue to accept records, but it doesn't make any guarantees with respect to delivering
176
- * the data. Therefore, as a best practice, first stop any applications that are sending
177
- * records before you delete a delivery stream.</p>
178
- */
179
- public deleteDeliveryStream(
180
- args: DeleteDeliveryStreamCommandInput,
181
- options?: __HttpHandlerOptions
182
- ): Promise<DeleteDeliveryStreamCommandOutput>;
183
- public deleteDeliveryStream(
184
- args: DeleteDeliveryStreamCommandInput,
185
- cb: (err: any, data?: DeleteDeliveryStreamCommandOutput) => void
186
- ): void;
187
- public deleteDeliveryStream(
188
- args: DeleteDeliveryStreamCommandInput,
189
- options: __HttpHandlerOptions,
190
- cb: (err: any, data?: DeleteDeliveryStreamCommandOutput) => void
191
- ): void;
192
- public deleteDeliveryStream(
193
- args: DeleteDeliveryStreamCommandInput,
194
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteDeliveryStreamCommandOutput) => void),
195
- cb?: (err: any, data?: DeleteDeliveryStreamCommandOutput) => void
196
- ): Promise<DeleteDeliveryStreamCommandOutput> | void {
197
- const command = new DeleteDeliveryStreamCommand(args);
198
- if (typeof optionsOrCb === "function") {
199
- this.send(command, optionsOrCb);
200
- } else if (typeof cb === "function") {
201
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
202
- this.send(command, optionsOrCb || {}, cb);
203
- } else {
204
- return this.send(command, optionsOrCb);
205
- }
206
- }
207
-
208
- /**
209
- * <p>Describes the specified delivery stream and its status. For example, after your
210
- * delivery stream is created, call <code>DescribeDeliveryStream</code> to see whether the
211
- * delivery stream is <code>ACTIVE</code> and therefore ready for data to be sent to it. </p>
212
- * <p>If the status of a delivery stream is <code>CREATING_FAILED</code>, this status
213
- * doesn't change, and you can't invoke <a>CreateDeliveryStream</a> again on it.
214
- * However, you can invoke the <a>DeleteDeliveryStream</a> operation to delete it.
215
- * 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>
216
- */
217
- public describeDeliveryStream(
218
- args: DescribeDeliveryStreamCommandInput,
219
- options?: __HttpHandlerOptions
220
- ): Promise<DescribeDeliveryStreamCommandOutput>;
221
- public describeDeliveryStream(
222
- args: DescribeDeliveryStreamCommandInput,
223
- cb: (err: any, data?: DescribeDeliveryStreamCommandOutput) => void
224
- ): void;
225
- public describeDeliveryStream(
226
- args: DescribeDeliveryStreamCommandInput,
227
- options: __HttpHandlerOptions,
228
- cb: (err: any, data?: DescribeDeliveryStreamCommandOutput) => void
229
- ): void;
230
- public describeDeliveryStream(
231
- args: DescribeDeliveryStreamCommandInput,
232
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeDeliveryStreamCommandOutput) => void),
233
- cb?: (err: any, data?: DescribeDeliveryStreamCommandOutput) => void
234
- ): Promise<DescribeDeliveryStreamCommandOutput> | void {
235
- const command = new DescribeDeliveryStreamCommand(args);
236
- if (typeof optionsOrCb === "function") {
237
- this.send(command, optionsOrCb);
238
- } else if (typeof cb === "function") {
239
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
240
- this.send(command, optionsOrCb || {}, cb);
241
- } else {
242
- return this.send(command, optionsOrCb);
243
- }
244
- }
245
-
246
- /**
247
- * <p>Lists your delivery streams in alphabetical order of their names.</p>
248
- * <p>The number of delivery streams might be too large to return using a single call to
249
- * <code>ListDeliveryStreams</code>. You can limit the number of delivery streams returned,
250
- * using the <code>Limit</code> parameter. To determine whether there are more delivery
251
- * streams to list, check the value of <code>HasMoreDeliveryStreams</code> in the output. If
252
- * there are more delivery streams to list, you can request them by calling this operation
253
- * again and setting the <code>ExclusiveStartDeliveryStreamName</code> parameter to the name
254
- * of the last delivery stream returned in the last call.</p>
255
- */
256
- public listDeliveryStreams(
257
- args: ListDeliveryStreamsCommandInput,
258
- options?: __HttpHandlerOptions
259
- ): Promise<ListDeliveryStreamsCommandOutput>;
260
- public listDeliveryStreams(
261
- args: ListDeliveryStreamsCommandInput,
262
- cb: (err: any, data?: ListDeliveryStreamsCommandOutput) => void
263
- ): void;
264
- public listDeliveryStreams(
265
- args: ListDeliveryStreamsCommandInput,
266
- options: __HttpHandlerOptions,
267
- cb: (err: any, data?: ListDeliveryStreamsCommandOutput) => void
268
- ): void;
269
- public listDeliveryStreams(
270
- args: ListDeliveryStreamsCommandInput,
271
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListDeliveryStreamsCommandOutput) => void),
272
- cb?: (err: any, data?: ListDeliveryStreamsCommandOutput) => void
273
- ): Promise<ListDeliveryStreamsCommandOutput> | void {
274
- const command = new ListDeliveryStreamsCommand(args);
275
- if (typeof optionsOrCb === "function") {
276
- this.send(command, optionsOrCb);
277
- } else if (typeof cb === "function") {
278
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
279
- this.send(command, optionsOrCb || {}, cb);
280
- } else {
281
- return this.send(command, optionsOrCb);
282
- }
283
- }
284
-
285
- /**
286
- * <p>Lists the tags for the specified delivery stream. This operation has a limit of five
287
- * transactions per second per account. </p>
288
- */
289
- public listTagsForDeliveryStream(
290
- args: ListTagsForDeliveryStreamCommandInput,
291
- options?: __HttpHandlerOptions
292
- ): Promise<ListTagsForDeliveryStreamCommandOutput>;
293
- public listTagsForDeliveryStream(
294
- args: ListTagsForDeliveryStreamCommandInput,
295
- cb: (err: any, data?: ListTagsForDeliveryStreamCommandOutput) => void
296
- ): void;
297
- public listTagsForDeliveryStream(
298
- args: ListTagsForDeliveryStreamCommandInput,
299
- options: __HttpHandlerOptions,
300
- cb: (err: any, data?: ListTagsForDeliveryStreamCommandOutput) => void
301
- ): void;
302
- public listTagsForDeliveryStream(
303
- args: ListTagsForDeliveryStreamCommandInput,
304
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsForDeliveryStreamCommandOutput) => void),
305
- cb?: (err: any, data?: ListTagsForDeliveryStreamCommandOutput) => void
306
- ): Promise<ListTagsForDeliveryStreamCommandOutput> | void {
307
- const command = new ListTagsForDeliveryStreamCommand(args);
308
- if (typeof optionsOrCb === "function") {
309
- this.send(command, optionsOrCb);
310
- } else if (typeof cb === "function") {
311
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
312
- this.send(command, optionsOrCb || {}, cb);
313
- } else {
314
- return this.send(command, optionsOrCb);
315
- }
316
- }
317
-
318
- /**
319
- * <p>Writes a single data record into an Amazon Kinesis Data Firehose delivery stream. To
320
- * write multiple data records into a delivery stream, use <a>PutRecordBatch</a>.
321
- * Applications using these operations are referred to as producers.</p>
322
- * <p>By default, each delivery stream can take in up to 2,000 transactions per second,
323
- * 5,000 records per second, or 5 MB per second. If you use <a>PutRecord</a> and
324
- * <a>PutRecordBatch</a>, the limits are an aggregate across these two
325
- * operations for each delivery stream. For more information about limits and how to request
326
- * an increase, see <a href="https://docs.aws.amazon.com/firehose/latest/dev/limits.html">Amazon
327
- * Kinesis Data Firehose Limits</a>. </p>
328
- * <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
329
- * KiB in size, and any kind of data. For example, it can be a segment from a log file,
330
- * geographic location data, website clickstream data, and so on.</p>
331
- * <p>Kinesis Data Firehose buffers records before delivering them to the destination. To
332
- * disambiguate the data blobs at the destination, a common solution is to use delimiters in
333
- * the data, such as a newline (<code>\n</code>) or some other character unique within the
334
- * data. This allows the consumer application to parse individual data items when reading the
335
- * data from the destination.</p>
336
- * <p>The <code>PutRecord</code> operation returns a <code>RecordId</code>, which is a
337
- * unique string assigned to each record. Producer applications can use this ID for purposes
338
- * such as auditability and investigation.</p>
339
- * <p>If the <code>PutRecord</code> operation throws a
340
- * <code>ServiceUnavailableException</code>, back off and retry. If the exception persists,
341
- * it is possible that the throughput limits have been exceeded for the delivery stream. </p>
342
- * <p>Data records sent to Kinesis Data Firehose are stored for 24 hours from the time they
343
- * are added to a delivery stream as it tries to send the records to the destination. If the
344
- * destination is unreachable for more than 24 hours, the data is no longer
345
- * available.</p>
346
- *
347
- * <important>
348
- * <p>Don't concatenate two or more base64 strings to form the data fields of your records.
349
- * Instead, concatenate the raw data, then perform base64 encoding.</p>
350
- * </important>
351
- */
352
- public putRecord(args: PutRecordCommandInput, options?: __HttpHandlerOptions): Promise<PutRecordCommandOutput>;
353
- public putRecord(args: PutRecordCommandInput, cb: (err: any, data?: PutRecordCommandOutput) => void): void;
354
- public putRecord(
355
- args: PutRecordCommandInput,
356
- options: __HttpHandlerOptions,
357
- cb: (err: any, data?: PutRecordCommandOutput) => void
358
- ): void;
359
- public putRecord(
360
- args: PutRecordCommandInput,
361
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutRecordCommandOutput) => void),
362
- cb?: (err: any, data?: PutRecordCommandOutput) => void
363
- ): Promise<PutRecordCommandOutput> | void {
364
- const command = new PutRecordCommand(args);
365
- if (typeof optionsOrCb === "function") {
366
- this.send(command, optionsOrCb);
367
- } else if (typeof cb === "function") {
368
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
369
- this.send(command, optionsOrCb || {}, cb);
370
- } else {
371
- return this.send(command, optionsOrCb);
372
- }
373
- }
374
-
375
- /**
376
- * <p>Writes multiple data records into a delivery stream in a single call, which can
377
- * achieve higher throughput per producer than when writing single records. To write single
378
- * data records into a delivery stream, use <a>PutRecord</a>. Applications using
379
- * these operations are referred to as producers.</p>
380
- * <p>For information about service quota, see <a href="https://docs.aws.amazon.com/firehose/latest/dev/limits.html">Amazon Kinesis Data Firehose
381
- * Quota</a>.</p>
382
- * <p>Each <a>PutRecordBatch</a> request supports up to 500 records. Each record
383
- * in the request can be as large as 1,000 KB (before base64 encoding), up to a limit of 4 MB
384
- * for the entire request. These limits cannot be changed.</p>
385
- * <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
386
- * KB in size, and any kind of data. For example, it could be a segment from a log file,
387
- * geographic location data, website clickstream data, and so on.</p>
388
- * <p>Kinesis Data Firehose buffers records before delivering them to the destination. To
389
- * disambiguate the data blobs at the destination, a common solution is to use delimiters in
390
- * the data, such as a newline (<code>\n</code>) or some other character unique within the
391
- * data. This allows the consumer application to parse individual data items when reading the
392
- * data from the destination.</p>
393
- * <p>The <a>PutRecordBatch</a> response includes a count of failed records,
394
- * <code>FailedPutCount</code>, and an array of responses, <code>RequestResponses</code>.
395
- * Even if the <a>PutRecordBatch</a> call succeeds, the value of
396
- * <code>FailedPutCount</code> may be greater than 0, indicating that there are records for
397
- * which the operation didn't succeed. Each entry in the <code>RequestResponses</code> array
398
- * provides additional information about the processed record. It directly correlates with a
399
- * record in the request array using the same ordering, from the top to the bottom. The
400
- * response array always includes the same number of records as the request array.
401
- * <code>RequestResponses</code> includes both successfully and unsuccessfully processed
402
- * records. Kinesis Data Firehose tries to process all records in each <a>PutRecordBatch</a> request. A single record failure does not stop the processing
403
- * of subsequent records. </p>
404
- * <p>A successfully processed record includes a <code>RecordId</code> value, which is
405
- * unique for the record. An unsuccessfully processed record includes <code>ErrorCode</code>
406
- * and <code>ErrorMessage</code> values. <code>ErrorCode</code> reflects the type of error,
407
- * and is one of the following values: <code>ServiceUnavailableException</code> or
408
- * <code>InternalFailure</code>. <code>ErrorMessage</code> provides more detailed
409
- * information about the error.</p>
410
- * <p>If there is an internal server error or a timeout, the write might have completed or
411
- * it might have failed. If <code>FailedPutCount</code> is greater than 0, retry the request,
412
- * resending only those records that might have failed processing. This minimizes the possible
413
- * duplicate records and also reduces the total bytes sent (and corresponding charges). We
414
- * recommend that you handle any duplicates at the destination.</p>
415
- * <p>If <a>PutRecordBatch</a> throws <code>ServiceUnavailableException</code>,
416
- * back off and retry. If the exception persists, it is possible that the throughput limits
417
- * have been exceeded for the delivery stream.</p>
418
- *
419
- * <p>Data records sent to Kinesis Data Firehose are stored for 24 hours from the time they
420
- * are added to a delivery stream as it attempts to send the records to the destination. If
421
- * the destination is unreachable for more than 24 hours, the data is no longer
422
- * available.</p>
423
- * <important>
424
- * <p>Don't concatenate two or more base64 strings to form the data fields of your records.
425
- * Instead, concatenate the raw data, then perform base64 encoding.</p>
426
- * </important>
427
- */
428
- public putRecordBatch(
429
- args: PutRecordBatchCommandInput,
430
- options?: __HttpHandlerOptions
431
- ): Promise<PutRecordBatchCommandOutput>;
432
- public putRecordBatch(
433
- args: PutRecordBatchCommandInput,
434
- cb: (err: any, data?: PutRecordBatchCommandOutput) => void
435
- ): void;
436
- public putRecordBatch(
437
- args: PutRecordBatchCommandInput,
438
- options: __HttpHandlerOptions,
439
- cb: (err: any, data?: PutRecordBatchCommandOutput) => void
440
- ): void;
441
- public putRecordBatch(
442
- args: PutRecordBatchCommandInput,
443
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutRecordBatchCommandOutput) => void),
444
- cb?: (err: any, data?: PutRecordBatchCommandOutput) => void
445
- ): Promise<PutRecordBatchCommandOutput> | void {
446
- const command = new PutRecordBatchCommand(args);
447
- if (typeof optionsOrCb === "function") {
448
- this.send(command, optionsOrCb);
449
- } else if (typeof cb === "function") {
450
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
451
- this.send(command, optionsOrCb || {}, cb);
452
- } else {
453
- return this.send(command, optionsOrCb);
454
- }
455
- }
456
-
457
- /**
458
- * <p>Enables server-side encryption (SSE) for the delivery stream. </p>
459
- * <p>This operation is asynchronous. It returns immediately. When you invoke it, Kinesis Data
460
- * Firehose first sets the encryption status of the stream to <code>ENABLING</code>, and then
461
- * to <code>ENABLED</code>. The encryption status of a delivery stream is the
462
- * <code>Status</code> property in <a>DeliveryStreamEncryptionConfiguration</a>.
463
- * If the operation fails, the encryption status changes to <code>ENABLING_FAILED</code>. You
464
- * can continue to read and write data to your delivery stream while the encryption status is
465
- * <code>ENABLING</code>, but the data is not encrypted. It can take up to 5 seconds after
466
- * the encryption status changes to <code>ENABLED</code> before all records written to the
467
- * delivery stream are encrypted. To find out whether a record or a batch of records was
468
- * encrypted, check the response elements <a>PutRecordOutput$Encrypted</a> and
469
- * <a>PutRecordBatchOutput$Encrypted</a>, respectively.</p>
470
- * <p>To check the encryption status of a delivery stream, use <a>DescribeDeliveryStream</a>.</p>
471
- * <p>Even if encryption is currently enabled for a delivery stream, you can still invoke this
472
- * operation on it to change the ARN of the CMK or both its type and ARN. If you invoke this
473
- * method to change the CMK, and the old CMK is of type <code>CUSTOMER_MANAGED_CMK</code>,
474
- * Kinesis Data Firehose schedules the grant it had on the old CMK for retirement. If the new
475
- * CMK is of type <code>CUSTOMER_MANAGED_CMK</code>, Kinesis Data Firehose creates a grant
476
- * that enables it to use the new CMK to encrypt and decrypt data and to manage the
477
- * grant.</p>
478
- * <p>If a delivery stream already has encryption enabled and then you invoke this operation
479
- * to change the ARN of the CMK or both its type and ARN and you get
480
- * <code>ENABLING_FAILED</code>, this only means that the attempt to change the CMK failed.
481
- * In this case, encryption remains enabled with the old CMK.</p>
482
- * <p>If the encryption status of your delivery stream is <code>ENABLING_FAILED</code>, you
483
- * can invoke this operation again with a valid CMK. The CMK must be enabled and the key
484
- * policy mustn't explicitly deny the permission for Kinesis Data Firehose to invoke KMS
485
- * encrypt and decrypt operations.</p>
486
- * <p>You can enable SSE for a delivery stream only if it's a delivery stream that uses
487
- * <code>DirectPut</code> as its source. </p>
488
- * <p>The <code>StartDeliveryStreamEncryption</code> and
489
- * <code>StopDeliveryStreamEncryption</code> operations have a combined limit of 25 calls
490
- * per delivery stream per 24 hours. For example, you reach the limit if you call
491
- * <code>StartDeliveryStreamEncryption</code> 13 times and
492
- * <code>StopDeliveryStreamEncryption</code> 12 times for the same delivery stream in a
493
- * 24-hour period.</p>
494
- */
495
- public startDeliveryStreamEncryption(
496
- args: StartDeliveryStreamEncryptionCommandInput,
497
- options?: __HttpHandlerOptions
498
- ): Promise<StartDeliveryStreamEncryptionCommandOutput>;
499
- public startDeliveryStreamEncryption(
500
- args: StartDeliveryStreamEncryptionCommandInput,
501
- cb: (err: any, data?: StartDeliveryStreamEncryptionCommandOutput) => void
502
- ): void;
503
- public startDeliveryStreamEncryption(
504
- args: StartDeliveryStreamEncryptionCommandInput,
505
- options: __HttpHandlerOptions,
506
- cb: (err: any, data?: StartDeliveryStreamEncryptionCommandOutput) => void
507
- ): void;
508
- public startDeliveryStreamEncryption(
509
- args: StartDeliveryStreamEncryptionCommandInput,
510
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartDeliveryStreamEncryptionCommandOutput) => void),
511
- cb?: (err: any, data?: StartDeliveryStreamEncryptionCommandOutput) => void
512
- ): Promise<StartDeliveryStreamEncryptionCommandOutput> | void {
513
- const command = new StartDeliveryStreamEncryptionCommand(args);
514
- if (typeof optionsOrCb === "function") {
515
- this.send(command, optionsOrCb);
516
- } else if (typeof cb === "function") {
517
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
518
- this.send(command, optionsOrCb || {}, cb);
519
- } else {
520
- return this.send(command, optionsOrCb);
521
- }
522
- }
523
-
524
- /**
525
- * <p>Disables server-side encryption (SSE) for the delivery stream. </p>
526
- * <p>This operation is asynchronous. It returns immediately. When you invoke it, Kinesis Data
527
- * Firehose first sets the encryption status of the stream to <code>DISABLING</code>, and then
528
- * to <code>DISABLED</code>. You can continue to read and write data to your stream while its
529
- * status is <code>DISABLING</code>. It can take up to 5 seconds after the encryption status
530
- * changes to <code>DISABLED</code> before all records written to the delivery stream are no
531
- * longer subject to encryption. To find out whether a record or a batch of records was
532
- * encrypted, check the response elements <a>PutRecordOutput$Encrypted</a> and
533
- * <a>PutRecordBatchOutput$Encrypted</a>, respectively.</p>
534
- * <p>To check the encryption state of a delivery stream, use <a>DescribeDeliveryStream</a>. </p>
535
- * <p>If SSE is enabled using a customer managed CMK and then you invoke
536
- * <code>StopDeliveryStreamEncryption</code>, Kinesis Data Firehose schedules the related
537
- * KMS grant for retirement and then retires it after it ensures that it is finished
538
- * delivering records to the destination.</p>
539
- * <p>The <code>StartDeliveryStreamEncryption</code> and
540
- * <code>StopDeliveryStreamEncryption</code> operations have a combined limit of 25 calls
541
- * per delivery stream per 24 hours. For example, you reach the limit if you call
542
- * <code>StartDeliveryStreamEncryption</code> 13 times and
543
- * <code>StopDeliveryStreamEncryption</code> 12 times for the same delivery stream in a
544
- * 24-hour period.</p>
545
- */
546
- public stopDeliveryStreamEncryption(
547
- args: StopDeliveryStreamEncryptionCommandInput,
548
- options?: __HttpHandlerOptions
549
- ): Promise<StopDeliveryStreamEncryptionCommandOutput>;
550
- public stopDeliveryStreamEncryption(
551
- args: StopDeliveryStreamEncryptionCommandInput,
552
- cb: (err: any, data?: StopDeliveryStreamEncryptionCommandOutput) => void
553
- ): void;
554
- public stopDeliveryStreamEncryption(
555
- args: StopDeliveryStreamEncryptionCommandInput,
556
- options: __HttpHandlerOptions,
557
- cb: (err: any, data?: StopDeliveryStreamEncryptionCommandOutput) => void
558
- ): void;
559
- public stopDeliveryStreamEncryption(
560
- args: StopDeliveryStreamEncryptionCommandInput,
561
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StopDeliveryStreamEncryptionCommandOutput) => void),
562
- cb?: (err: any, data?: StopDeliveryStreamEncryptionCommandOutput) => void
563
- ): Promise<StopDeliveryStreamEncryptionCommandOutput> | void {
564
- const command = new StopDeliveryStreamEncryptionCommand(args);
565
- if (typeof optionsOrCb === "function") {
566
- this.send(command, optionsOrCb);
567
- } else if (typeof cb === "function") {
568
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
569
- this.send(command, optionsOrCb || {}, cb);
570
- } else {
571
- return this.send(command, optionsOrCb);
572
- }
573
- }
574
-
575
- /**
576
- * <p>Adds or updates tags for the specified delivery stream. A tag is a key-value pair
577
- * that you can define and assign to AWS resources. If you specify a tag that already exists,
578
- * the tag value is replaced with the value that you specify in the request. Tags are
579
- * metadata. For example, you can add friendly names and descriptions or other types of
580
- * information that can help you distinguish the delivery stream. For more information about
581
- * tags, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html">Using Cost Allocation
582
- * Tags</a> in the <i>AWS Billing and Cost Management User Guide</i>. </p>
583
- * <p>Each delivery stream can have up to 50 tags. </p>
584
- * <p>This operation has a limit of five transactions per second per account. </p>
585
- */
586
- public tagDeliveryStream(
587
- args: TagDeliveryStreamCommandInput,
588
- options?: __HttpHandlerOptions
589
- ): Promise<TagDeliveryStreamCommandOutput>;
590
- public tagDeliveryStream(
591
- args: TagDeliveryStreamCommandInput,
592
- cb: (err: any, data?: TagDeliveryStreamCommandOutput) => void
593
- ): void;
594
- public tagDeliveryStream(
595
- args: TagDeliveryStreamCommandInput,
596
- options: __HttpHandlerOptions,
597
- cb: (err: any, data?: TagDeliveryStreamCommandOutput) => void
598
- ): void;
599
- public tagDeliveryStream(
600
- args: TagDeliveryStreamCommandInput,
601
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagDeliveryStreamCommandOutput) => void),
602
- cb?: (err: any, data?: TagDeliveryStreamCommandOutput) => void
603
- ): Promise<TagDeliveryStreamCommandOutput> | void {
604
- const command = new TagDeliveryStreamCommand(args);
605
- if (typeof optionsOrCb === "function") {
606
- this.send(command, optionsOrCb);
607
- } else if (typeof cb === "function") {
608
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
609
- this.send(command, optionsOrCb || {}, cb);
610
- } else {
611
- return this.send(command, optionsOrCb);
612
- }
613
- }
614
-
615
- /**
616
- * <p>Removes tags from the specified delivery stream. Removed tags are deleted, and you
617
- * can't recover them after this operation successfully completes.</p>
618
- * <p>If you specify a tag that doesn't exist, the operation ignores it.</p>
619
- * <p>This operation has a limit of five transactions per second per account. </p>
620
- */
621
- public untagDeliveryStream(
622
- args: UntagDeliveryStreamCommandInput,
623
- options?: __HttpHandlerOptions
624
- ): Promise<UntagDeliveryStreamCommandOutput>;
625
- public untagDeliveryStream(
626
- args: UntagDeliveryStreamCommandInput,
627
- cb: (err: any, data?: UntagDeliveryStreamCommandOutput) => void
628
- ): void;
629
- public untagDeliveryStream(
630
- args: UntagDeliveryStreamCommandInput,
631
- options: __HttpHandlerOptions,
632
- cb: (err: any, data?: UntagDeliveryStreamCommandOutput) => void
633
- ): void;
634
- public untagDeliveryStream(
635
- args: UntagDeliveryStreamCommandInput,
636
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagDeliveryStreamCommandOutput) => void),
637
- cb?: (err: any, data?: UntagDeliveryStreamCommandOutput) => void
638
- ): Promise<UntagDeliveryStreamCommandOutput> | void {
639
- const command = new UntagDeliveryStreamCommand(args);
640
- if (typeof optionsOrCb === "function") {
641
- this.send(command, optionsOrCb);
642
- } else if (typeof cb === "function") {
643
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
644
- this.send(command, optionsOrCb || {}, cb);
645
- } else {
646
- return this.send(command, optionsOrCb);
647
- }
648
- }
649
-
650
- /**
651
- * <p>Updates the specified destination of the specified delivery stream.</p>
652
- *
653
- * <p>Use this operation to change the destination type (for example, to replace the Amazon
654
- * S3 destination with Amazon Redshift) or change the parameters associated with a destination
655
- * (for example, to change the bucket name of the Amazon S3 destination). The update might not
656
- * occur immediately. The target delivery stream remains active while the configurations are
657
- * updated, so data writes to the delivery stream can continue during this process. The
658
- * updated configurations are usually effective within a few minutes.</p>
659
- * <p>Switching between Amazon ES and other services is not supported. For an Amazon ES
660
- * destination, you can only update to another Amazon ES destination.</p>
661
- * <p>If the destination type is the same, Kinesis Data Firehose merges the configuration
662
- * parameters specified with the destination configuration that already exists on the delivery
663
- * stream. If any of the parameters are not specified in the call, the existing values are
664
- * retained. For example, in the Amazon S3 destination, if <a>EncryptionConfiguration</a> is not specified, then the existing
665
- * <code>EncryptionConfiguration</code> is maintained on the destination.</p>
666
- * <p>If the destination type is not the same, for example, changing the destination from
667
- * Amazon S3 to Amazon Redshift, Kinesis Data Firehose does not merge any parameters. In this
668
- * case, all parameters must be specified.</p>
669
- *
670
- * <p>Kinesis Data Firehose uses <code>CurrentDeliveryStreamVersionId</code> to avoid race
671
- * conditions and conflicting merges. This is a required field, and the service updates the
672
- * configuration only if the existing configuration has a version ID that matches. After the
673
- * update is applied successfully, the version ID is updated, and can be retrieved using <a>DescribeDeliveryStream</a>. Use the new version ID to set
674
- * <code>CurrentDeliveryStreamVersionId</code> in the next call.</p>
675
- */
676
- public updateDestination(
677
- args: UpdateDestinationCommandInput,
678
- options?: __HttpHandlerOptions
679
- ): Promise<UpdateDestinationCommandOutput>;
680
- public updateDestination(
681
- args: UpdateDestinationCommandInput,
682
- cb: (err: any, data?: UpdateDestinationCommandOutput) => void
683
- ): void;
684
- public updateDestination(
685
- args: UpdateDestinationCommandInput,
686
- options: __HttpHandlerOptions,
687
- cb: (err: any, data?: UpdateDestinationCommandOutput) => void
688
- ): void;
689
- public updateDestination(
690
- args: UpdateDestinationCommandInput,
691
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateDestinationCommandOutput) => void),
692
- cb?: (err: any, data?: UpdateDestinationCommandOutput) => void
693
- ): Promise<UpdateDestinationCommandOutput> | void {
694
- const command = new UpdateDestinationCommand(args);
695
- if (typeof optionsOrCb === "function") {
696
- this.send(command, optionsOrCb);
697
- } else if (typeof cb === "function") {
698
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
699
- this.send(command, optionsOrCb || {}, cb);
700
- } else {
701
- return this.send(command, optionsOrCb);
702
- }
703
- }
704
- }