@aws-sdk/client-pinpoint-sms-voice 3.183.0 → 3.185.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 CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-pinpoint-sms-voice
@@ -729,10 +729,10 @@ const deserializeAws_restJson1SnsDestination = (output, context) => {
729
729
  };
730
730
  };
731
731
  const deserializeMetadata = (output) => {
732
- var _a;
732
+ var _a, _b;
733
733
  return ({
734
734
  httpStatusCode: output.statusCode,
735
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
735
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
736
736
  extendedRequestId: output.headers["x-amz-id-2"],
737
737
  cfId: output.headers["x-amz-cf-id"],
738
738
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { CreateConfigurationSetCommand, } from "./commands/CreateConfigurationSetCommand";
2
3
  import { CreateConfigurationSetEventDestinationCommand, } from "./commands/CreateConfigurationSetEventDestinationCommand";
3
4
  import { DeleteConfigurationSetCommand, } from "./commands/DeleteConfigurationSetCommand";
@@ -7,117 +8,123 @@ import { ListConfigurationSetsCommand, } from "./commands/ListConfigurationSetsC
7
8
  import { SendVoiceMessageCommand, } from "./commands/SendVoiceMessageCommand";
8
9
  import { UpdateConfigurationSetEventDestinationCommand, } from "./commands/UpdateConfigurationSetEventDestinationCommand";
9
10
  import { PinpointSMSVoiceClient } from "./PinpointSMSVoiceClient";
10
- export class PinpointSMSVoice extends PinpointSMSVoiceClient {
11
- createConfigurationSet(args, optionsOrCb, cb) {
12
- const command = new CreateConfigurationSetCommand(args);
11
+ var PinpointSMSVoice = (function (_super) {
12
+ __extends(PinpointSMSVoice, _super);
13
+ function PinpointSMSVoice() {
14
+ return _super !== null && _super.apply(this, arguments) || this;
15
+ }
16
+ PinpointSMSVoice.prototype.createConfigurationSet = function (args, optionsOrCb, cb) {
17
+ var command = new CreateConfigurationSetCommand(args);
13
18
  if (typeof optionsOrCb === "function") {
14
19
  this.send(command, optionsOrCb);
15
20
  }
16
21
  else if (typeof cb === "function") {
17
22
  if (typeof optionsOrCb !== "object")
18
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
23
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
19
24
  this.send(command, optionsOrCb || {}, cb);
20
25
  }
21
26
  else {
22
27
  return this.send(command, optionsOrCb);
23
28
  }
24
- }
25
- createConfigurationSetEventDestination(args, optionsOrCb, cb) {
26
- const command = new CreateConfigurationSetEventDestinationCommand(args);
29
+ };
30
+ PinpointSMSVoice.prototype.createConfigurationSetEventDestination = function (args, optionsOrCb, cb) {
31
+ var command = new CreateConfigurationSetEventDestinationCommand(args);
27
32
  if (typeof optionsOrCb === "function") {
28
33
  this.send(command, optionsOrCb);
29
34
  }
30
35
  else if (typeof cb === "function") {
31
36
  if (typeof optionsOrCb !== "object")
32
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
37
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
33
38
  this.send(command, optionsOrCb || {}, cb);
34
39
  }
35
40
  else {
36
41
  return this.send(command, optionsOrCb);
37
42
  }
38
- }
39
- deleteConfigurationSet(args, optionsOrCb, cb) {
40
- const command = new DeleteConfigurationSetCommand(args);
43
+ };
44
+ PinpointSMSVoice.prototype.deleteConfigurationSet = function (args, optionsOrCb, cb) {
45
+ var command = new DeleteConfigurationSetCommand(args);
41
46
  if (typeof optionsOrCb === "function") {
42
47
  this.send(command, optionsOrCb);
43
48
  }
44
49
  else if (typeof cb === "function") {
45
50
  if (typeof optionsOrCb !== "object")
46
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
51
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
47
52
  this.send(command, optionsOrCb || {}, cb);
48
53
  }
49
54
  else {
50
55
  return this.send(command, optionsOrCb);
51
56
  }
52
- }
53
- deleteConfigurationSetEventDestination(args, optionsOrCb, cb) {
54
- const command = new DeleteConfigurationSetEventDestinationCommand(args);
57
+ };
58
+ PinpointSMSVoice.prototype.deleteConfigurationSetEventDestination = function (args, optionsOrCb, cb) {
59
+ var command = new DeleteConfigurationSetEventDestinationCommand(args);
55
60
  if (typeof optionsOrCb === "function") {
56
61
  this.send(command, optionsOrCb);
57
62
  }
58
63
  else if (typeof cb === "function") {
59
64
  if (typeof optionsOrCb !== "object")
60
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
65
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
61
66
  this.send(command, optionsOrCb || {}, cb);
62
67
  }
63
68
  else {
64
69
  return this.send(command, optionsOrCb);
65
70
  }
66
- }
67
- getConfigurationSetEventDestinations(args, optionsOrCb, cb) {
68
- const command = new GetConfigurationSetEventDestinationsCommand(args);
71
+ };
72
+ PinpointSMSVoice.prototype.getConfigurationSetEventDestinations = function (args, optionsOrCb, cb) {
73
+ var command = new GetConfigurationSetEventDestinationsCommand(args);
69
74
  if (typeof optionsOrCb === "function") {
70
75
  this.send(command, optionsOrCb);
71
76
  }
72
77
  else if (typeof cb === "function") {
73
78
  if (typeof optionsOrCb !== "object")
74
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
79
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
75
80
  this.send(command, optionsOrCb || {}, cb);
76
81
  }
77
82
  else {
78
83
  return this.send(command, optionsOrCb);
79
84
  }
80
- }
81
- listConfigurationSets(args, optionsOrCb, cb) {
82
- const command = new ListConfigurationSetsCommand(args);
85
+ };
86
+ PinpointSMSVoice.prototype.listConfigurationSets = function (args, optionsOrCb, cb) {
87
+ var command = new ListConfigurationSetsCommand(args);
83
88
  if (typeof optionsOrCb === "function") {
84
89
  this.send(command, optionsOrCb);
85
90
  }
86
91
  else if (typeof cb === "function") {
87
92
  if (typeof optionsOrCb !== "object")
88
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
93
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
89
94
  this.send(command, optionsOrCb || {}, cb);
90
95
  }
91
96
  else {
92
97
  return this.send(command, optionsOrCb);
93
98
  }
94
- }
95
- sendVoiceMessage(args, optionsOrCb, cb) {
96
- const command = new SendVoiceMessageCommand(args);
99
+ };
100
+ PinpointSMSVoice.prototype.sendVoiceMessage = function (args, optionsOrCb, cb) {
101
+ var command = new SendVoiceMessageCommand(args);
97
102
  if (typeof optionsOrCb === "function") {
98
103
  this.send(command, optionsOrCb);
99
104
  }
100
105
  else if (typeof cb === "function") {
101
106
  if (typeof optionsOrCb !== "object")
102
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
107
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
103
108
  this.send(command, optionsOrCb || {}, cb);
104
109
  }
105
110
  else {
106
111
  return this.send(command, optionsOrCb);
107
112
  }
108
- }
109
- updateConfigurationSetEventDestination(args, optionsOrCb, cb) {
110
- const command = new UpdateConfigurationSetEventDestinationCommand(args);
113
+ };
114
+ PinpointSMSVoice.prototype.updateConfigurationSetEventDestination = function (args, optionsOrCb, cb) {
115
+ var command = new UpdateConfigurationSetEventDestinationCommand(args);
111
116
  if (typeof optionsOrCb === "function") {
112
117
  this.send(command, optionsOrCb);
113
118
  }
114
119
  else if (typeof cb === "function") {
115
120
  if (typeof optionsOrCb !== "object")
116
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
121
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
117
122
  this.send(command, optionsOrCb || {}, cb);
118
123
  }
119
124
  else {
120
125
  return this.send(command, optionsOrCb);
121
126
  }
122
- }
123
- }
127
+ };
128
+ return PinpointSMSVoice;
129
+ }(PinpointSMSVoiceClient));
130
+ export { PinpointSMSVoice };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class PinpointSMSVoiceClient extends __Client {
12
- constructor(configuration) {
13
- const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
22
- this.middlewareStack.use(getRetryPlugin(this.config));
23
- this.middlewareStack.use(getContentLengthPlugin(this.config));
24
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
- this.middlewareStack.use(getLoggerPlugin(this.config));
26
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
- this.middlewareStack.use(getUserAgentPlugin(this.config));
12
+ var PinpointSMSVoiceClient = (function (_super) {
13
+ __extends(PinpointSMSVoiceClient, _super);
14
+ function PinpointSMSVoiceClient(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ return _this;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ PinpointSMSVoiceClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return PinpointSMSVoiceClient;
38
+ }(__Client));
39
+ export { PinpointSMSVoiceClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateConfigurationSetRequestFilterSensitiveLog, CreateConfigurationSetResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateConfigurationSetCommand, serializeAws_restJson1CreateConfigurationSetCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateConfigurationSetCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateConfigurationSetCommand = (function (_super) {
7
+ __extends(CreateConfigurationSetCommand, _super);
8
+ function CreateConfigurationSetCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateConfigurationSetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "PinpointSMSVoiceClient";
15
- const commandName = "CreateConfigurationSetCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "PinpointSMSVoiceClient";
18
+ var commandName = "CreateConfigurationSetCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateConfigurationSetRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateConfigurationSetResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateConfigurationSetCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateConfigurationSetCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateConfigurationSetCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateConfigurationSetCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateConfigurationSetCommand;
38
+ }($Command));
39
+ export { CreateConfigurationSetCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateConfigurationSetEventDestinationRequestFilterSensitiveLog, CreateConfigurationSetEventDestinationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateConfigurationSetEventDestinationCommand, serializeAws_restJson1CreateConfigurationSetEventDestinationCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateConfigurationSetEventDestinationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateConfigurationSetEventDestinationCommand = (function (_super) {
7
+ __extends(CreateConfigurationSetEventDestinationCommand, _super);
8
+ function CreateConfigurationSetEventDestinationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateConfigurationSetEventDestinationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "PinpointSMSVoiceClient";
15
- const commandName = "CreateConfigurationSetEventDestinationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "PinpointSMSVoiceClient";
18
+ var commandName = "CreateConfigurationSetEventDestinationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateConfigurationSetEventDestinationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateConfigurationSetEventDestinationResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateConfigurationSetEventDestinationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateConfigurationSetEventDestinationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateConfigurationSetEventDestinationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateConfigurationSetEventDestinationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateConfigurationSetEventDestinationCommand;
38
+ }($Command));
39
+ export { CreateConfigurationSetEventDestinationCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteConfigurationSetRequestFilterSensitiveLog, DeleteConfigurationSetResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteConfigurationSetCommand, serializeAws_restJson1DeleteConfigurationSetCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteConfigurationSetCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteConfigurationSetCommand = (function (_super) {
7
+ __extends(DeleteConfigurationSetCommand, _super);
8
+ function DeleteConfigurationSetCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteConfigurationSetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "PinpointSMSVoiceClient";
15
- const commandName = "DeleteConfigurationSetCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "PinpointSMSVoiceClient";
18
+ var commandName = "DeleteConfigurationSetCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteConfigurationSetRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeleteConfigurationSetResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteConfigurationSetCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DeleteConfigurationSetCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteConfigurationSetCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteConfigurationSetCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteConfigurationSetCommand;
38
+ }($Command));
39
+ export { DeleteConfigurationSetCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteConfigurationSetEventDestinationRequestFilterSensitiveLog, DeleteConfigurationSetEventDestinationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteConfigurationSetEventDestinationCommand, serializeAws_restJson1DeleteConfigurationSetEventDestinationCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteConfigurationSetEventDestinationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteConfigurationSetEventDestinationCommand = (function (_super) {
7
+ __extends(DeleteConfigurationSetEventDestinationCommand, _super);
8
+ function DeleteConfigurationSetEventDestinationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteConfigurationSetEventDestinationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "PinpointSMSVoiceClient";
15
- const commandName = "DeleteConfigurationSetEventDestinationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "PinpointSMSVoiceClient";
18
+ var commandName = "DeleteConfigurationSetEventDestinationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteConfigurationSetEventDestinationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeleteConfigurationSetEventDestinationResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteConfigurationSetEventDestinationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DeleteConfigurationSetEventDestinationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteConfigurationSetEventDestinationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteConfigurationSetEventDestinationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteConfigurationSetEventDestinationCommand;
38
+ }($Command));
39
+ export { DeleteConfigurationSetEventDestinationCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetConfigurationSetEventDestinationsRequestFilterSensitiveLog, GetConfigurationSetEventDestinationsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1GetConfigurationSetEventDestinationsCommand, serializeAws_restJson1GetConfigurationSetEventDestinationsCommand, } from "../protocols/Aws_restJson1";
5
- export class GetConfigurationSetEventDestinationsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetConfigurationSetEventDestinationsCommand = (function (_super) {
7
+ __extends(GetConfigurationSetEventDestinationsCommand, _super);
8
+ function GetConfigurationSetEventDestinationsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetConfigurationSetEventDestinationsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "PinpointSMSVoiceClient";
15
- const commandName = "GetConfigurationSetEventDestinationsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "PinpointSMSVoiceClient";
18
+ var commandName = "GetConfigurationSetEventDestinationsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetConfigurationSetEventDestinationsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetConfigurationSetEventDestinationsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetConfigurationSetEventDestinationsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1GetConfigurationSetEventDestinationsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetConfigurationSetEventDestinationsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1GetConfigurationSetEventDestinationsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetConfigurationSetEventDestinationsCommand;
38
+ }($Command));
39
+ export { GetConfigurationSetEventDestinationsCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListConfigurationSetsRequestFilterSensitiveLog, ListConfigurationSetsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1ListConfigurationSetsCommand, serializeAws_restJson1ListConfigurationSetsCommand, } from "../protocols/Aws_restJson1";
5
- export class ListConfigurationSetsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListConfigurationSetsCommand = (function (_super) {
7
+ __extends(ListConfigurationSetsCommand, _super);
8
+ function ListConfigurationSetsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListConfigurationSetsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "PinpointSMSVoiceClient";
15
- const commandName = "ListConfigurationSetsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "PinpointSMSVoiceClient";
18
+ var commandName = "ListConfigurationSetsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListConfigurationSetsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListConfigurationSetsResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListConfigurationSetsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1ListConfigurationSetsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListConfigurationSetsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1ListConfigurationSetsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListConfigurationSetsCommand;
38
+ }($Command));
39
+ export { ListConfigurationSetsCommand };