@aws-sdk/client-firehose 3.927.0 → 3.929.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/dist-cjs/index.js +1653 -960
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/FirehoseClient.js +2 -0
- package/dist-es/commands/CreateDeliveryStreamCommand.js +3 -10
- package/dist-es/commands/DeleteDeliveryStreamCommand.js +3 -9
- package/dist-es/commands/DescribeDeliveryStreamCommand.js +3 -10
- package/dist-es/commands/ListDeliveryStreamsCommand.js +3 -9
- package/dist-es/commands/ListTagsForDeliveryStreamCommand.js +3 -9
- package/dist-es/commands/PutRecordBatchCommand.js +3 -9
- package/dist-es/commands/PutRecordCommand.js +3 -9
- package/dist-es/commands/StartDeliveryStreamEncryptionCommand.js +3 -9
- package/dist-es/commands/StopDeliveryStreamEncryptionCommand.js +3 -9
- package/dist-es/commands/TagDeliveryStreamCommand.js +3 -9
- package/dist-es/commands/UntagDeliveryStreamCommand.js +3 -9
- package/dist-es/commands/UpdateDestinationCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -164
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +1615 -0
- package/dist-types/FirehoseClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -80
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +189 -0
- package/dist-types/ts3.4/FirehoseClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -60
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +195 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -673
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -110
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -149
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
7
|
const url_parser_1 = require("@smithy/url-parser");
|
|
7
8
|
const util_base64_1 = require("@smithy/util-base64");
|
|
@@ -25,6 +26,12 @@ const getRuntimeConfig = (config) => {
|
|
|
25
26
|
},
|
|
26
27
|
],
|
|
27
28
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
29
|
+
protocol: config?.protocol ??
|
|
30
|
+
new protocols_1.AwsJson1_1Protocol({
|
|
31
|
+
defaultNamespace: "com.amazonaws.firehose",
|
|
32
|
+
serviceTarget: "Firehose_20150804",
|
|
33
|
+
awsQueryCompatible: false,
|
|
34
|
+
}),
|
|
28
35
|
serviceId: config?.serviceId ?? "Firehose",
|
|
29
36
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
30
37
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
|
|
|
4
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
6
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
7
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
9
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
10
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
@@ -28,6 +29,7 @@ export class FirehoseClient extends __Client {
|
|
|
28
29
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
29
30
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
30
31
|
this.config = _config_8;
|
|
32
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
31
33
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
34
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
33
35
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_CreateDeliveryStreamCommand, se_CreateDeliveryStreamCommand } from "../protocols/Aws_json1_1";
|
|
4
|
+
import { CreateDeliveryStream } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class CreateDeliveryStreamCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("Firehose_20150804", "CreateDeliveryStream", {})
|
|
18
13
|
.n("FirehoseClient", "CreateDeliveryStreamCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_CreateDeliveryStreamCommand)
|
|
21
|
-
.de(de_CreateDeliveryStreamCommand)
|
|
14
|
+
.sc(CreateDeliveryStream)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { DeleteDeliveryStream } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class DeleteDeliveryStreamCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("Firehose_20150804", "DeleteDeliveryStream", {})
|
|
17
13
|
.n("FirehoseClient", "DeleteDeliveryStreamCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_DeleteDeliveryStreamCommand)
|
|
20
|
-
.de(de_DeleteDeliveryStreamCommand)
|
|
14
|
+
.sc(DeleteDeliveryStream)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_DescribeDeliveryStreamCommand, se_DescribeDeliveryStreamCommand } from "../protocols/Aws_json1_1";
|
|
4
|
+
import { DescribeDeliveryStream } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class DescribeDeliveryStreamCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("Firehose_20150804", "DescribeDeliveryStream", {})
|
|
18
13
|
.n("FirehoseClient", "DescribeDeliveryStreamCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_DescribeDeliveryStreamCommand)
|
|
21
|
-
.de(de_DescribeDeliveryStreamCommand)
|
|
14
|
+
.sc(DescribeDeliveryStream)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { ListDeliveryStreams } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ListDeliveryStreamsCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("Firehose_20150804", "ListDeliveryStreams", {})
|
|
17
13
|
.n("FirehoseClient", "ListDeliveryStreamsCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ListDeliveryStreamsCommand)
|
|
20
|
-
.de(de_ListDeliveryStreamsCommand)
|
|
14
|
+
.sc(ListDeliveryStreams)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { ListTagsForDeliveryStream } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ListTagsForDeliveryStreamCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("Firehose_20150804", "ListTagsForDeliveryStream", {})
|
|
17
13
|
.n("FirehoseClient", "ListTagsForDeliveryStreamCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ListTagsForDeliveryStreamCommand)
|
|
20
|
-
.de(de_ListTagsForDeliveryStreamCommand)
|
|
14
|
+
.sc(ListTagsForDeliveryStream)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { PutRecordBatch } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class PutRecordBatchCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("Firehose_20150804", "PutRecordBatch", {})
|
|
17
13
|
.n("FirehoseClient", "PutRecordBatchCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_PutRecordBatchCommand)
|
|
20
|
-
.de(de_PutRecordBatchCommand)
|
|
14
|
+
.sc(PutRecordBatch)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { PutRecord } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class PutRecordCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("Firehose_20150804", "PutRecord", {})
|
|
17
13
|
.n("FirehoseClient", "PutRecordCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_PutRecordCommand)
|
|
20
|
-
.de(de_PutRecordCommand)
|
|
14
|
+
.sc(PutRecord)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { StartDeliveryStreamEncryption } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class StartDeliveryStreamEncryptionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("Firehose_20150804", "StartDeliveryStreamEncryption", {})
|
|
17
13
|
.n("FirehoseClient", "StartDeliveryStreamEncryptionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_StartDeliveryStreamEncryptionCommand)
|
|
20
|
-
.de(de_StartDeliveryStreamEncryptionCommand)
|
|
14
|
+
.sc(StartDeliveryStreamEncryption)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { StopDeliveryStreamEncryption } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class StopDeliveryStreamEncryptionCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("Firehose_20150804", "StopDeliveryStreamEncryption", {})
|
|
17
13
|
.n("FirehoseClient", "StopDeliveryStreamEncryptionCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_StopDeliveryStreamEncryptionCommand)
|
|
20
|
-
.de(de_StopDeliveryStreamEncryptionCommand)
|
|
14
|
+
.sc(StopDeliveryStreamEncryption)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { TagDeliveryStream } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class TagDeliveryStreamCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("Firehose_20150804", "TagDeliveryStream", {})
|
|
17
13
|
.n("FirehoseClient", "TagDeliveryStreamCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_TagDeliveryStreamCommand)
|
|
20
|
-
.de(de_TagDeliveryStreamCommand)
|
|
14
|
+
.sc(TagDeliveryStream)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UntagDeliveryStream } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UntagDeliveryStreamCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("Firehose_20150804", "UntagDeliveryStream", {})
|
|
17
13
|
.n("FirehoseClient", "UntagDeliveryStreamCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UntagDeliveryStreamCommand)
|
|
20
|
-
.de(de_UntagDeliveryStreamCommand)
|
|
14
|
+
.sc(UntagDeliveryStream)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
6
|
-
import { de_UpdateDestinationCommand, se_UpdateDestinationCommand } from "../protocols/Aws_json1_1";
|
|
4
|
+
import { UpdateDestination } from "../schemas/schemas_0";
|
|
7
5
|
export { $Command };
|
|
8
6
|
export class UpdateDestinationCommand extends $Command
|
|
9
7
|
.classBuilder()
|
|
10
8
|
.ep(commonParams)
|
|
11
9
|
.m(function (Command, cs, config, o) {
|
|
12
|
-
return [
|
|
13
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
16
11
|
})
|
|
17
12
|
.s("Firehose_20150804", "UpdateDestination", {})
|
|
18
13
|
.n("FirehoseClient", "UpdateDestinationCommand")
|
|
19
|
-
.
|
|
20
|
-
.ser(se_UpdateDestinationCommand)
|
|
21
|
-
.de(de_UpdateDestinationCommand)
|
|
14
|
+
.sc(UpdateDestination)
|
|
22
15
|
.build() {
|
|
23
16
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
import { FirehoseServiceException as __BaseException } from "./FirehoseServiceException";
|
|
3
2
|
export const ProcessorParameterName = {
|
|
4
3
|
BUFFER_INTERVAL_IN_SECONDS: "BufferIntervalInSeconds",
|
|
@@ -281,166 +280,3 @@ export class ServiceUnavailableException extends __BaseException {
|
|
|
281
280
|
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
282
281
|
}
|
|
283
282
|
}
|
|
284
|
-
export const HttpEndpointConfigurationFilterSensitiveLog = (obj) => ({
|
|
285
|
-
...obj,
|
|
286
|
-
...(obj.Url && { Url: SENSITIVE_STRING }),
|
|
287
|
-
...(obj.AccessKey && { AccessKey: SENSITIVE_STRING }),
|
|
288
|
-
});
|
|
289
|
-
export const HttpEndpointCommonAttributeFilterSensitiveLog = (obj) => ({
|
|
290
|
-
...obj,
|
|
291
|
-
...(obj.AttributeName && { AttributeName: SENSITIVE_STRING }),
|
|
292
|
-
...(obj.AttributeValue && { AttributeValue: SENSITIVE_STRING }),
|
|
293
|
-
});
|
|
294
|
-
export const HttpEndpointRequestConfigurationFilterSensitiveLog = (obj) => ({
|
|
295
|
-
...obj,
|
|
296
|
-
...(obj.CommonAttributes && {
|
|
297
|
-
CommonAttributes: obj.CommonAttributes.map((item) => HttpEndpointCommonAttributeFilterSensitiveLog(item)),
|
|
298
|
-
}),
|
|
299
|
-
});
|
|
300
|
-
export const HttpEndpointDestinationConfigurationFilterSensitiveLog = (obj) => ({
|
|
301
|
-
...obj,
|
|
302
|
-
...(obj.EndpointConfiguration && {
|
|
303
|
-
EndpointConfiguration: HttpEndpointConfigurationFilterSensitiveLog(obj.EndpointConfiguration),
|
|
304
|
-
}),
|
|
305
|
-
...(obj.RequestConfiguration && {
|
|
306
|
-
RequestConfiguration: HttpEndpointRequestConfigurationFilterSensitiveLog(obj.RequestConfiguration),
|
|
307
|
-
}),
|
|
308
|
-
});
|
|
309
|
-
export const RedshiftDestinationConfigurationFilterSensitiveLog = (obj) => ({
|
|
310
|
-
...obj,
|
|
311
|
-
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
312
|
-
...(obj.Password && { Password: SENSITIVE_STRING }),
|
|
313
|
-
});
|
|
314
|
-
export const SnowflakeRoleConfigurationFilterSensitiveLog = (obj) => ({
|
|
315
|
-
...obj,
|
|
316
|
-
...(obj.SnowflakeRole && { SnowflakeRole: SENSITIVE_STRING }),
|
|
317
|
-
});
|
|
318
|
-
export const SnowflakeVpcConfigurationFilterSensitiveLog = (obj) => ({
|
|
319
|
-
...obj,
|
|
320
|
-
...(obj.PrivateLinkVpceId && { PrivateLinkVpceId: SENSITIVE_STRING }),
|
|
321
|
-
});
|
|
322
|
-
export const SnowflakeDestinationConfigurationFilterSensitiveLog = (obj) => ({
|
|
323
|
-
...obj,
|
|
324
|
-
...(obj.AccountUrl && { AccountUrl: SENSITIVE_STRING }),
|
|
325
|
-
...(obj.PrivateKey && { PrivateKey: SENSITIVE_STRING }),
|
|
326
|
-
...(obj.KeyPassphrase && { KeyPassphrase: SENSITIVE_STRING }),
|
|
327
|
-
...(obj.User && { User: SENSITIVE_STRING }),
|
|
328
|
-
...(obj.Database && { Database: SENSITIVE_STRING }),
|
|
329
|
-
...(obj.Schema && { Schema: SENSITIVE_STRING }),
|
|
330
|
-
...(obj.Table && { Table: SENSITIVE_STRING }),
|
|
331
|
-
...(obj.SnowflakeRoleConfiguration && {
|
|
332
|
-
SnowflakeRoleConfiguration: SnowflakeRoleConfigurationFilterSensitiveLog(obj.SnowflakeRoleConfiguration),
|
|
333
|
-
}),
|
|
334
|
-
...(obj.MetaDataColumnName && { MetaDataColumnName: SENSITIVE_STRING }),
|
|
335
|
-
...(obj.ContentColumnName && { ContentColumnName: SENSITIVE_STRING }),
|
|
336
|
-
...(obj.SnowflakeVpcConfiguration && {
|
|
337
|
-
SnowflakeVpcConfiguration: SnowflakeVpcConfigurationFilterSensitiveLog(obj.SnowflakeVpcConfiguration),
|
|
338
|
-
}),
|
|
339
|
-
});
|
|
340
|
-
export const CreateDeliveryStreamInputFilterSensitiveLog = (obj) => ({
|
|
341
|
-
...obj,
|
|
342
|
-
...(obj.RedshiftDestinationConfiguration && {
|
|
343
|
-
RedshiftDestinationConfiguration: RedshiftDestinationConfigurationFilterSensitiveLog(obj.RedshiftDestinationConfiguration),
|
|
344
|
-
}),
|
|
345
|
-
...(obj.HttpEndpointDestinationConfiguration && {
|
|
346
|
-
HttpEndpointDestinationConfiguration: HttpEndpointDestinationConfigurationFilterSensitiveLog(obj.HttpEndpointDestinationConfiguration),
|
|
347
|
-
}),
|
|
348
|
-
...(obj.SnowflakeDestinationConfiguration && {
|
|
349
|
-
SnowflakeDestinationConfiguration: SnowflakeDestinationConfigurationFilterSensitiveLog(obj.SnowflakeDestinationConfiguration),
|
|
350
|
-
}),
|
|
351
|
-
});
|
|
352
|
-
export const HttpEndpointDescriptionFilterSensitiveLog = (obj) => ({
|
|
353
|
-
...obj,
|
|
354
|
-
...(obj.Url && { Url: SENSITIVE_STRING }),
|
|
355
|
-
});
|
|
356
|
-
export const HttpEndpointDestinationDescriptionFilterSensitiveLog = (obj) => ({
|
|
357
|
-
...obj,
|
|
358
|
-
...(obj.EndpointConfiguration && {
|
|
359
|
-
EndpointConfiguration: HttpEndpointDescriptionFilterSensitiveLog(obj.EndpointConfiguration),
|
|
360
|
-
}),
|
|
361
|
-
...(obj.RequestConfiguration && {
|
|
362
|
-
RequestConfiguration: HttpEndpointRequestConfigurationFilterSensitiveLog(obj.RequestConfiguration),
|
|
363
|
-
}),
|
|
364
|
-
});
|
|
365
|
-
export const RedshiftDestinationDescriptionFilterSensitiveLog = (obj) => ({
|
|
366
|
-
...obj,
|
|
367
|
-
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
368
|
-
});
|
|
369
|
-
export const SnowflakeDestinationDescriptionFilterSensitiveLog = (obj) => ({
|
|
370
|
-
...obj,
|
|
371
|
-
...(obj.AccountUrl && { AccountUrl: SENSITIVE_STRING }),
|
|
372
|
-
...(obj.User && { User: SENSITIVE_STRING }),
|
|
373
|
-
...(obj.Database && { Database: SENSITIVE_STRING }),
|
|
374
|
-
...(obj.Schema && { Schema: SENSITIVE_STRING }),
|
|
375
|
-
...(obj.Table && { Table: SENSITIVE_STRING }),
|
|
376
|
-
...(obj.SnowflakeRoleConfiguration && {
|
|
377
|
-
SnowflakeRoleConfiguration: SnowflakeRoleConfigurationFilterSensitiveLog(obj.SnowflakeRoleConfiguration),
|
|
378
|
-
}),
|
|
379
|
-
...(obj.MetaDataColumnName && { MetaDataColumnName: SENSITIVE_STRING }),
|
|
380
|
-
...(obj.ContentColumnName && { ContentColumnName: SENSITIVE_STRING }),
|
|
381
|
-
...(obj.SnowflakeVpcConfiguration && {
|
|
382
|
-
SnowflakeVpcConfiguration: SnowflakeVpcConfigurationFilterSensitiveLog(obj.SnowflakeVpcConfiguration),
|
|
383
|
-
}),
|
|
384
|
-
});
|
|
385
|
-
export const DestinationDescriptionFilterSensitiveLog = (obj) => ({
|
|
386
|
-
...obj,
|
|
387
|
-
...(obj.RedshiftDestinationDescription && {
|
|
388
|
-
RedshiftDestinationDescription: RedshiftDestinationDescriptionFilterSensitiveLog(obj.RedshiftDestinationDescription),
|
|
389
|
-
}),
|
|
390
|
-
...(obj.HttpEndpointDestinationDescription && {
|
|
391
|
-
HttpEndpointDestinationDescription: HttpEndpointDestinationDescriptionFilterSensitiveLog(obj.HttpEndpointDestinationDescription),
|
|
392
|
-
}),
|
|
393
|
-
...(obj.SnowflakeDestinationDescription && {
|
|
394
|
-
SnowflakeDestinationDescription: SnowflakeDestinationDescriptionFilterSensitiveLog(obj.SnowflakeDestinationDescription),
|
|
395
|
-
}),
|
|
396
|
-
});
|
|
397
|
-
export const DeliveryStreamDescriptionFilterSensitiveLog = (obj) => ({
|
|
398
|
-
...obj,
|
|
399
|
-
...(obj.Destinations && {
|
|
400
|
-
Destinations: obj.Destinations.map((item) => DestinationDescriptionFilterSensitiveLog(item)),
|
|
401
|
-
}),
|
|
402
|
-
});
|
|
403
|
-
export const DescribeDeliveryStreamOutputFilterSensitiveLog = (obj) => ({
|
|
404
|
-
...obj,
|
|
405
|
-
});
|
|
406
|
-
export const HttpEndpointDestinationUpdateFilterSensitiveLog = (obj) => ({
|
|
407
|
-
...obj,
|
|
408
|
-
...(obj.EndpointConfiguration && {
|
|
409
|
-
EndpointConfiguration: HttpEndpointConfigurationFilterSensitiveLog(obj.EndpointConfiguration),
|
|
410
|
-
}),
|
|
411
|
-
...(obj.RequestConfiguration && {
|
|
412
|
-
RequestConfiguration: HttpEndpointRequestConfigurationFilterSensitiveLog(obj.RequestConfiguration),
|
|
413
|
-
}),
|
|
414
|
-
});
|
|
415
|
-
export const RedshiftDestinationUpdateFilterSensitiveLog = (obj) => ({
|
|
416
|
-
...obj,
|
|
417
|
-
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
418
|
-
...(obj.Password && { Password: SENSITIVE_STRING }),
|
|
419
|
-
});
|
|
420
|
-
export const SnowflakeDestinationUpdateFilterSensitiveLog = (obj) => ({
|
|
421
|
-
...obj,
|
|
422
|
-
...(obj.AccountUrl && { AccountUrl: SENSITIVE_STRING }),
|
|
423
|
-
...(obj.PrivateKey && { PrivateKey: SENSITIVE_STRING }),
|
|
424
|
-
...(obj.KeyPassphrase && { KeyPassphrase: SENSITIVE_STRING }),
|
|
425
|
-
...(obj.User && { User: SENSITIVE_STRING }),
|
|
426
|
-
...(obj.Database && { Database: SENSITIVE_STRING }),
|
|
427
|
-
...(obj.Schema && { Schema: SENSITIVE_STRING }),
|
|
428
|
-
...(obj.Table && { Table: SENSITIVE_STRING }),
|
|
429
|
-
...(obj.SnowflakeRoleConfiguration && {
|
|
430
|
-
SnowflakeRoleConfiguration: SnowflakeRoleConfigurationFilterSensitiveLog(obj.SnowflakeRoleConfiguration),
|
|
431
|
-
}),
|
|
432
|
-
...(obj.MetaDataColumnName && { MetaDataColumnName: SENSITIVE_STRING }),
|
|
433
|
-
...(obj.ContentColumnName && { ContentColumnName: SENSITIVE_STRING }),
|
|
434
|
-
});
|
|
435
|
-
export const UpdateDestinationInputFilterSensitiveLog = (obj) => ({
|
|
436
|
-
...obj,
|
|
437
|
-
...(obj.RedshiftDestinationUpdate && {
|
|
438
|
-
RedshiftDestinationUpdate: RedshiftDestinationUpdateFilterSensitiveLog(obj.RedshiftDestinationUpdate),
|
|
439
|
-
}),
|
|
440
|
-
...(obj.HttpEndpointDestinationUpdate && {
|
|
441
|
-
HttpEndpointDestinationUpdate: HttpEndpointDestinationUpdateFilterSensitiveLog(obj.HttpEndpointDestinationUpdate),
|
|
442
|
-
}),
|
|
443
|
-
...(obj.SnowflakeDestinationUpdate && {
|
|
444
|
-
SnowflakeDestinationUpdate: SnowflakeDestinationUpdateFilterSensitiveLog(obj.SnowflakeDestinationUpdate),
|
|
445
|
-
}),
|
|
446
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ??
|
|
27
|
+
new AwsJson1_1Protocol({
|
|
28
|
+
defaultNamespace: "com.amazonaws.firehose",
|
|
29
|
+
serviceTarget: "Firehose_20150804",
|
|
30
|
+
awsQueryCompatible: false,
|
|
31
|
+
}),
|
|
25
32
|
serviceId: config?.serviceId ?? "Firehose",
|
|
26
33
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
34
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|