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