@aws-sdk/client-firehose 3.180.0 → 3.183.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.
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListDeliveryStreamsInputFilterSensitiveLog, ListDeliveryStreamsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListDeliveryStreamsCommand, serializeAws_json1_1ListDeliveryStreamsCommand, } from "../protocols/Aws_json1_1";
6
- var ListDeliveryStreamsCommand = (function (_super) {
7
- __extends(ListDeliveryStreamsCommand, _super);
8
- function ListDeliveryStreamsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListDeliveryStreamsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListDeliveryStreamsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "FirehoseClient";
18
- var commandName = "ListDeliveryStreamsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "FirehoseClient";
15
+ const commandName = "ListDeliveryStreamsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListDeliveryStreamsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListDeliveryStreamsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListDeliveryStreamsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListDeliveryStreamsCommand(input, context);
33
- };
34
- ListDeliveryStreamsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListDeliveryStreamsCommand(output, context);
36
- };
37
- return ListDeliveryStreamsCommand;
38
- }($Command));
39
- export { ListDeliveryStreamsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListTagsForDeliveryStreamInputFilterSensitiveLog, ListTagsForDeliveryStreamOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListTagsForDeliveryStreamCommand, serializeAws_json1_1ListTagsForDeliveryStreamCommand, } from "../protocols/Aws_json1_1";
6
- var ListTagsForDeliveryStreamCommand = (function (_super) {
7
- __extends(ListTagsForDeliveryStreamCommand, _super);
8
- function ListTagsForDeliveryStreamCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTagsForDeliveryStreamCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTagsForDeliveryStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "FirehoseClient";
18
- var commandName = "ListTagsForDeliveryStreamCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "FirehoseClient";
15
+ const commandName = "ListTagsForDeliveryStreamCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTagsForDeliveryStreamInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTagsForDeliveryStreamOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTagsForDeliveryStreamCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListTagsForDeliveryStreamCommand(input, context);
33
- };
34
- ListTagsForDeliveryStreamCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListTagsForDeliveryStreamCommand(output, context);
36
- };
37
- return ListTagsForDeliveryStreamCommand;
38
- }($Command));
39
- export { ListTagsForDeliveryStreamCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { PutRecordBatchInputFilterSensitiveLog, PutRecordBatchOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1PutRecordBatchCommand, serializeAws_json1_1PutRecordBatchCommand, } from "../protocols/Aws_json1_1";
6
- var PutRecordBatchCommand = (function (_super) {
7
- __extends(PutRecordBatchCommand, _super);
8
- function PutRecordBatchCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutRecordBatchCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutRecordBatchCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "FirehoseClient";
18
- var commandName = "PutRecordBatchCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "FirehoseClient";
15
+ const commandName = "PutRecordBatchCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutRecordBatchInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutRecordBatchOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutRecordBatchCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1PutRecordBatchCommand(input, context);
33
- };
34
- PutRecordBatchCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1PutRecordBatchCommand(output, context);
36
- };
37
- return PutRecordBatchCommand;
38
- }($Command));
39
- export { PutRecordBatchCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { PutRecordInputFilterSensitiveLog, PutRecordOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1PutRecordCommand, serializeAws_json1_1PutRecordCommand } from "../protocols/Aws_json1_1";
6
- var PutRecordCommand = (function (_super) {
7
- __extends(PutRecordCommand, _super);
8
- function PutRecordCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutRecordCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutRecordCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "FirehoseClient";
18
- var commandName = "PutRecordCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "FirehoseClient";
15
+ const commandName = "PutRecordCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutRecordInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutRecordOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutRecordCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1PutRecordCommand(input, context);
33
- };
34
- PutRecordCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1PutRecordCommand(output, context);
36
- };
37
- return PutRecordCommand;
38
- }($Command));
39
- export { PutRecordCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { StartDeliveryStreamEncryptionInputFilterSensitiveLog, StartDeliveryStreamEncryptionOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1StartDeliveryStreamEncryptionCommand, serializeAws_json1_1StartDeliveryStreamEncryptionCommand, } from "../protocols/Aws_json1_1";
6
- var StartDeliveryStreamEncryptionCommand = (function (_super) {
7
- __extends(StartDeliveryStreamEncryptionCommand, _super);
8
- function StartDeliveryStreamEncryptionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StartDeliveryStreamEncryptionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StartDeliveryStreamEncryptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "FirehoseClient";
18
- var commandName = "StartDeliveryStreamEncryptionCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "FirehoseClient";
15
+ const commandName = "StartDeliveryStreamEncryptionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StartDeliveryStreamEncryptionInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StartDeliveryStreamEncryptionOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StartDeliveryStreamEncryptionCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1StartDeliveryStreamEncryptionCommand(input, context);
33
- };
34
- StartDeliveryStreamEncryptionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1StartDeliveryStreamEncryptionCommand(output, context);
36
- };
37
- return StartDeliveryStreamEncryptionCommand;
38
- }($Command));
39
- export { StartDeliveryStreamEncryptionCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { StopDeliveryStreamEncryptionInputFilterSensitiveLog, StopDeliveryStreamEncryptionOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1StopDeliveryStreamEncryptionCommand, serializeAws_json1_1StopDeliveryStreamEncryptionCommand, } from "../protocols/Aws_json1_1";
6
- var StopDeliveryStreamEncryptionCommand = (function (_super) {
7
- __extends(StopDeliveryStreamEncryptionCommand, _super);
8
- function StopDeliveryStreamEncryptionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class StopDeliveryStreamEncryptionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- StopDeliveryStreamEncryptionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "FirehoseClient";
18
- var commandName = "StopDeliveryStreamEncryptionCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "FirehoseClient";
15
+ const commandName = "StopDeliveryStreamEncryptionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: StopDeliveryStreamEncryptionInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: StopDeliveryStreamEncryptionOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- StopDeliveryStreamEncryptionCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1StopDeliveryStreamEncryptionCommand(input, context);
33
- };
34
- StopDeliveryStreamEncryptionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1StopDeliveryStreamEncryptionCommand(output, context);
36
- };
37
- return StopDeliveryStreamEncryptionCommand;
38
- }($Command));
39
- export { StopDeliveryStreamEncryptionCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { TagDeliveryStreamInputFilterSensitiveLog, TagDeliveryStreamOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1TagDeliveryStreamCommand, serializeAws_json1_1TagDeliveryStreamCommand, } from "../protocols/Aws_json1_1";
6
- var TagDeliveryStreamCommand = (function (_super) {
7
- __extends(TagDeliveryStreamCommand, _super);
8
- function TagDeliveryStreamCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class TagDeliveryStreamCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- TagDeliveryStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "FirehoseClient";
18
- var commandName = "TagDeliveryStreamCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "FirehoseClient";
15
+ const commandName = "TagDeliveryStreamCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: TagDeliveryStreamInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: TagDeliveryStreamOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- TagDeliveryStreamCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1TagDeliveryStreamCommand(input, context);
33
- };
34
- TagDeliveryStreamCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1TagDeliveryStreamCommand(output, context);
36
- };
37
- return TagDeliveryStreamCommand;
38
- }($Command));
39
- export { TagDeliveryStreamCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UntagDeliveryStreamInputFilterSensitiveLog, UntagDeliveryStreamOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UntagDeliveryStreamCommand, serializeAws_json1_1UntagDeliveryStreamCommand, } from "../protocols/Aws_json1_1";
6
- var UntagDeliveryStreamCommand = (function (_super) {
7
- __extends(UntagDeliveryStreamCommand, _super);
8
- function UntagDeliveryStreamCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UntagDeliveryStreamCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UntagDeliveryStreamCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "FirehoseClient";
18
- var commandName = "UntagDeliveryStreamCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "FirehoseClient";
15
+ const commandName = "UntagDeliveryStreamCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UntagDeliveryStreamInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UntagDeliveryStreamOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UntagDeliveryStreamCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UntagDeliveryStreamCommand(input, context);
33
- };
34
- UntagDeliveryStreamCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UntagDeliveryStreamCommand(output, context);
36
- };
37
- return UntagDeliveryStreamCommand;
38
- }($Command));
39
- export { UntagDeliveryStreamCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UpdateDestinationInputFilterSensitiveLog, UpdateDestinationOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateDestinationCommand, serializeAws_json1_1UpdateDestinationCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateDestinationCommand = (function (_super) {
7
- __extends(UpdateDestinationCommand, _super);
8
- function UpdateDestinationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateDestinationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateDestinationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "FirehoseClient";
18
- var commandName = "UpdateDestinationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "FirehoseClient";
15
+ const commandName = "UpdateDestinationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateDestinationInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: UpdateDestinationOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UpdateDestinationCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UpdateDestinationCommand(input, context);
33
- };
34
- UpdateDestinationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateDestinationCommand(output, context);
36
- };
37
- return UpdateDestinationCommand;
38
- }($Command));
39
- export { UpdateDestinationCommand };
31
+ }
32
+ }
@@ -1,6 +1,5 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {
2
+ const regionHash = {
4
3
  "cn-north-1": {
5
4
  variants: [
6
5
  {
@@ -66,7 +65,7 @@ var regionHash = {
66
65
  ],
67
66
  },
68
67
  };
69
- var partitionHash = {
68
+ const partitionHash = {
70
69
  aws: {
71
70
  regions: [
72
71
  "af-south-1",
@@ -190,8 +189,9 @@ var partitionHash = {
190
189
  ],
191
190
  },
192
191
  };
193
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
194
- return __generator(this, function (_a) {
195
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "firehose", regionHash: regionHash, partitionHash: partitionHash }))];
196
- });
197
- }); };
192
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
193
+ ...options,
194
+ signingService: "firehose",
195
+ regionHash,
196
+ partitionHash,
197
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var FirehoseServiceException = (function (_super) {
4
- __extends(FirehoseServiceException, _super);
5
- function FirehoseServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, FirehoseServiceException.prototype);
8
- return _this;
2
+ export class FirehoseServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, FirehoseServiceException.prototype);
9
6
  }
10
- return FirehoseServiceException;
11
- }(__ServiceException));
12
- export { FirehoseServiceException };
7
+ }