@aws-sdk/client-chime-sdk-media-pipelines 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.
Files changed (27) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +18 -12
  3. package/dist-es/ChimeSDKMediaPipelines.js +50 -57
  4. package/dist-es/ChimeSDKMediaPipelinesClient.js +22 -28
  5. package/dist-es/commands/CreateMediaCapturePipelineCommand.js +21 -28
  6. package/dist-es/commands/CreateMediaConcatenationPipelineCommand.js +21 -28
  7. package/dist-es/commands/CreateMediaLiveConnectorPipelineCommand.js +21 -28
  8. package/dist-es/commands/DeleteMediaCapturePipelineCommand.js +22 -29
  9. package/dist-es/commands/DeleteMediaPipelineCommand.js +22 -29
  10. package/dist-es/commands/GetMediaCapturePipelineCommand.js +21 -28
  11. package/dist-es/commands/GetMediaPipelineCommand.js +21 -28
  12. package/dist-es/commands/ListMediaCapturePipelinesCommand.js +21 -28
  13. package/dist-es/commands/ListMediaPipelinesCommand.js +21 -28
  14. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  15. package/dist-es/commands/TagResourceCommand.js +21 -28
  16. package/dist-es/commands/UntagResourceCommand.js +21 -28
  17. package/dist-es/endpoints.js +8 -8
  18. package/dist-es/models/ChimeSDKMediaPipelinesServiceException.js +5 -10
  19. package/dist-es/models/models_0.js +349 -201
  20. package/dist-es/pagination/ListMediaCapturePipelinesPaginator.js +25 -68
  21. package/dist-es/pagination/ListMediaPipelinesPaginator.js +25 -68
  22. package/dist-es/protocols/Aws_restJson1.js +1272 -1586
  23. package/dist-es/runtimeConfig.browser.js +26 -12
  24. package/dist-es/runtimeConfig.js +30 -12
  25. package/dist-es/runtimeConfig.native.js +8 -5
  26. package/dist-es/runtimeConfig.shared.js +8 -11
  27. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,26 @@
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-chime-sdk-media-pipelines
9
+
10
+
11
+
12
+
13
+
14
+ # [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
20
+ * **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
21
+
22
+
23
+
24
+
25
+
6
26
  # [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
7
27
 
8
28
  **Note:** Version bump only for package @aws-sdk/client-chime-sdk-media-pipelines
@@ -287,7 +287,7 @@ exports.deserializeAws_restJson1CreateMediaCapturePipelineCommand = deserializeA
287
287
  const deserializeAws_restJson1CreateMediaCapturePipelineCommandError = async (output, context) => {
288
288
  const parsedOutput = {
289
289
  ...output,
290
- body: await parseBody(output.body, context),
290
+ body: await parseErrorBody(output.body, context),
291
291
  };
292
292
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
293
293
  switch (errorCode) {
@@ -339,7 +339,7 @@ exports.deserializeAws_restJson1CreateMediaConcatenationPipelineCommand = deseri
339
339
  const deserializeAws_restJson1CreateMediaConcatenationPipelineCommandError = async (output, context) => {
340
340
  const parsedOutput = {
341
341
  ...output,
342
- body: await parseBody(output.body, context),
342
+ body: await parseErrorBody(output.body, context),
343
343
  };
344
344
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
345
345
  switch (errorCode) {
@@ -391,7 +391,7 @@ exports.deserializeAws_restJson1CreateMediaLiveConnectorPipelineCommand = deseri
391
391
  const deserializeAws_restJson1CreateMediaLiveConnectorPipelineCommandError = async (output, context) => {
392
392
  const parsedOutput = {
393
393
  ...output,
394
- body: await parseBody(output.body, context),
394
+ body: await parseErrorBody(output.body, context),
395
395
  };
396
396
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
397
397
  switch (errorCode) {
@@ -440,7 +440,7 @@ exports.deserializeAws_restJson1DeleteMediaCapturePipelineCommand = deserializeA
440
440
  const deserializeAws_restJson1DeleteMediaCapturePipelineCommandError = async (output, context) => {
441
441
  const parsedOutput = {
442
442
  ...output,
443
- body: await parseBody(output.body, context),
443
+ body: await parseErrorBody(output.body, context),
444
444
  };
445
445
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
446
446
  switch (errorCode) {
@@ -489,7 +489,7 @@ exports.deserializeAws_restJson1DeleteMediaPipelineCommand = deserializeAws_rest
489
489
  const deserializeAws_restJson1DeleteMediaPipelineCommandError = async (output, context) => {
490
490
  const parsedOutput = {
491
491
  ...output,
492
- body: await parseBody(output.body, context),
492
+ body: await parseErrorBody(output.body, context),
493
493
  };
494
494
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
495
495
  switch (errorCode) {
@@ -541,7 +541,7 @@ exports.deserializeAws_restJson1GetMediaCapturePipelineCommand = deserializeAws_
541
541
  const deserializeAws_restJson1GetMediaCapturePipelineCommandError = async (output, context) => {
542
542
  const parsedOutput = {
543
543
  ...output,
544
- body: await parseBody(output.body, context),
544
+ body: await parseErrorBody(output.body, context),
545
545
  };
546
546
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
547
547
  switch (errorCode) {
@@ -593,7 +593,7 @@ exports.deserializeAws_restJson1GetMediaPipelineCommand = deserializeAws_restJso
593
593
  const deserializeAws_restJson1GetMediaPipelineCommandError = async (output, context) => {
594
594
  const parsedOutput = {
595
595
  ...output,
596
- body: await parseBody(output.body, context),
596
+ body: await parseErrorBody(output.body, context),
597
597
  };
598
598
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
599
599
  switch (errorCode) {
@@ -648,7 +648,7 @@ exports.deserializeAws_restJson1ListMediaCapturePipelinesCommand = deserializeAw
648
648
  const deserializeAws_restJson1ListMediaCapturePipelinesCommandError = async (output, context) => {
649
649
  const parsedOutput = {
650
650
  ...output,
651
- body: await parseBody(output.body, context),
651
+ body: await parseErrorBody(output.body, context),
652
652
  };
653
653
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
654
654
  switch (errorCode) {
@@ -703,7 +703,7 @@ exports.deserializeAws_restJson1ListMediaPipelinesCommand = deserializeAws_restJ
703
703
  const deserializeAws_restJson1ListMediaPipelinesCommandError = async (output, context) => {
704
704
  const parsedOutput = {
705
705
  ...output,
706
- body: await parseBody(output.body, context),
706
+ body: await parseErrorBody(output.body, context),
707
707
  };
708
708
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
709
709
  switch (errorCode) {
@@ -755,7 +755,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
755
755
  const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
756
756
  const parsedOutput = {
757
757
  ...output,
758
- body: await parseBody(output.body, context),
758
+ body: await parseErrorBody(output.body, context),
759
759
  };
760
760
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
761
761
  switch (errorCode) {
@@ -804,7 +804,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
804
804
  const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
805
805
  const parsedOutput = {
806
806
  ...output,
807
- body: await parseBody(output.body, context),
807
+ body: await parseErrorBody(output.body, context),
808
808
  };
809
809
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
810
810
  switch (errorCode) {
@@ -853,7 +853,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
853
853
  const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
854
854
  const parsedOutput = {
855
855
  ...output,
856
- body: await parseBody(output.body, context),
856
+ body: await parseErrorBody(output.body, context),
857
857
  };
858
858
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
859
859
  switch (errorCode) {
@@ -1696,6 +1696,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
1696
1696
  }
1697
1697
  return {};
1698
1698
  });
1699
+ const parseErrorBody = async (errorBody, context) => {
1700
+ var _a;
1701
+ const value = await parseBody(errorBody, context);
1702
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
1703
+ return value;
1704
+ };
1699
1705
  const loadRestJsonErrorCode = (output, data) => {
1700
1706
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1701
1707
  const sanitizeErrorCode = (rawValue) => {
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { ChimeSDKMediaPipelinesClient } from "./ChimeSDKMediaPipelinesClient";
3
2
  import { CreateMediaCapturePipelineCommand, } from "./commands/CreateMediaCapturePipelineCommand";
4
3
  import { CreateMediaConcatenationPipelineCommand, } from "./commands/CreateMediaConcatenationPipelineCommand";
@@ -12,179 +11,173 @@ import { ListMediaPipelinesCommand, } from "./commands/ListMediaPipelinesCommand
12
11
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
13
12
  import { TagResourceCommand } from "./commands/TagResourceCommand";
14
13
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
15
- var ChimeSDKMediaPipelines = (function (_super) {
16
- __extends(ChimeSDKMediaPipelines, _super);
17
- function ChimeSDKMediaPipelines() {
18
- return _super !== null && _super.apply(this, arguments) || this;
19
- }
20
- ChimeSDKMediaPipelines.prototype.createMediaCapturePipeline = function (args, optionsOrCb, cb) {
21
- var command = new CreateMediaCapturePipelineCommand(args);
14
+ export class ChimeSDKMediaPipelines extends ChimeSDKMediaPipelinesClient {
15
+ createMediaCapturePipeline(args, optionsOrCb, cb) {
16
+ const command = new CreateMediaCapturePipelineCommand(args);
22
17
  if (typeof optionsOrCb === "function") {
23
18
  this.send(command, optionsOrCb);
24
19
  }
25
20
  else if (typeof cb === "function") {
26
21
  if (typeof optionsOrCb !== "object")
27
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
22
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
28
23
  this.send(command, optionsOrCb || {}, cb);
29
24
  }
30
25
  else {
31
26
  return this.send(command, optionsOrCb);
32
27
  }
33
- };
34
- ChimeSDKMediaPipelines.prototype.createMediaConcatenationPipeline = function (args, optionsOrCb, cb) {
35
- var command = new CreateMediaConcatenationPipelineCommand(args);
28
+ }
29
+ createMediaConcatenationPipeline(args, optionsOrCb, cb) {
30
+ const command = new CreateMediaConcatenationPipelineCommand(args);
36
31
  if (typeof optionsOrCb === "function") {
37
32
  this.send(command, optionsOrCb);
38
33
  }
39
34
  else if (typeof cb === "function") {
40
35
  if (typeof optionsOrCb !== "object")
41
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
36
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
42
37
  this.send(command, optionsOrCb || {}, cb);
43
38
  }
44
39
  else {
45
40
  return this.send(command, optionsOrCb);
46
41
  }
47
- };
48
- ChimeSDKMediaPipelines.prototype.createMediaLiveConnectorPipeline = function (args, optionsOrCb, cb) {
49
- var command = new CreateMediaLiveConnectorPipelineCommand(args);
42
+ }
43
+ createMediaLiveConnectorPipeline(args, optionsOrCb, cb) {
44
+ const command = new CreateMediaLiveConnectorPipelineCommand(args);
50
45
  if (typeof optionsOrCb === "function") {
51
46
  this.send(command, optionsOrCb);
52
47
  }
53
48
  else if (typeof cb === "function") {
54
49
  if (typeof optionsOrCb !== "object")
55
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
50
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
56
51
  this.send(command, optionsOrCb || {}, cb);
57
52
  }
58
53
  else {
59
54
  return this.send(command, optionsOrCb);
60
55
  }
61
- };
62
- ChimeSDKMediaPipelines.prototype.deleteMediaCapturePipeline = function (args, optionsOrCb, cb) {
63
- var command = new DeleteMediaCapturePipelineCommand(args);
56
+ }
57
+ deleteMediaCapturePipeline(args, optionsOrCb, cb) {
58
+ const command = new DeleteMediaCapturePipelineCommand(args);
64
59
  if (typeof optionsOrCb === "function") {
65
60
  this.send(command, optionsOrCb);
66
61
  }
67
62
  else if (typeof cb === "function") {
68
63
  if (typeof optionsOrCb !== "object")
69
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
64
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
70
65
  this.send(command, optionsOrCb || {}, cb);
71
66
  }
72
67
  else {
73
68
  return this.send(command, optionsOrCb);
74
69
  }
75
- };
76
- ChimeSDKMediaPipelines.prototype.deleteMediaPipeline = function (args, optionsOrCb, cb) {
77
- var command = new DeleteMediaPipelineCommand(args);
70
+ }
71
+ deleteMediaPipeline(args, optionsOrCb, cb) {
72
+ const command = new DeleteMediaPipelineCommand(args);
78
73
  if (typeof optionsOrCb === "function") {
79
74
  this.send(command, optionsOrCb);
80
75
  }
81
76
  else if (typeof cb === "function") {
82
77
  if (typeof optionsOrCb !== "object")
83
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
78
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
84
79
  this.send(command, optionsOrCb || {}, cb);
85
80
  }
86
81
  else {
87
82
  return this.send(command, optionsOrCb);
88
83
  }
89
- };
90
- ChimeSDKMediaPipelines.prototype.getMediaCapturePipeline = function (args, optionsOrCb, cb) {
91
- var command = new GetMediaCapturePipelineCommand(args);
84
+ }
85
+ getMediaCapturePipeline(args, optionsOrCb, cb) {
86
+ const command = new GetMediaCapturePipelineCommand(args);
92
87
  if (typeof optionsOrCb === "function") {
93
88
  this.send(command, optionsOrCb);
94
89
  }
95
90
  else if (typeof cb === "function") {
96
91
  if (typeof optionsOrCb !== "object")
97
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
92
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
98
93
  this.send(command, optionsOrCb || {}, cb);
99
94
  }
100
95
  else {
101
96
  return this.send(command, optionsOrCb);
102
97
  }
103
- };
104
- ChimeSDKMediaPipelines.prototype.getMediaPipeline = function (args, optionsOrCb, cb) {
105
- var command = new GetMediaPipelineCommand(args);
98
+ }
99
+ getMediaPipeline(args, optionsOrCb, cb) {
100
+ const command = new GetMediaPipelineCommand(args);
106
101
  if (typeof optionsOrCb === "function") {
107
102
  this.send(command, optionsOrCb);
108
103
  }
109
104
  else if (typeof cb === "function") {
110
105
  if (typeof optionsOrCb !== "object")
111
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
106
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
112
107
  this.send(command, optionsOrCb || {}, cb);
113
108
  }
114
109
  else {
115
110
  return this.send(command, optionsOrCb);
116
111
  }
117
- };
118
- ChimeSDKMediaPipelines.prototype.listMediaCapturePipelines = function (args, optionsOrCb, cb) {
119
- var command = new ListMediaCapturePipelinesCommand(args);
112
+ }
113
+ listMediaCapturePipelines(args, optionsOrCb, cb) {
114
+ const command = new ListMediaCapturePipelinesCommand(args);
120
115
  if (typeof optionsOrCb === "function") {
121
116
  this.send(command, optionsOrCb);
122
117
  }
123
118
  else if (typeof cb === "function") {
124
119
  if (typeof optionsOrCb !== "object")
125
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
120
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
126
121
  this.send(command, optionsOrCb || {}, cb);
127
122
  }
128
123
  else {
129
124
  return this.send(command, optionsOrCb);
130
125
  }
131
- };
132
- ChimeSDKMediaPipelines.prototype.listMediaPipelines = function (args, optionsOrCb, cb) {
133
- var command = new ListMediaPipelinesCommand(args);
126
+ }
127
+ listMediaPipelines(args, optionsOrCb, cb) {
128
+ const command = new ListMediaPipelinesCommand(args);
134
129
  if (typeof optionsOrCb === "function") {
135
130
  this.send(command, optionsOrCb);
136
131
  }
137
132
  else if (typeof cb === "function") {
138
133
  if (typeof optionsOrCb !== "object")
139
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
134
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
140
135
  this.send(command, optionsOrCb || {}, cb);
141
136
  }
142
137
  else {
143
138
  return this.send(command, optionsOrCb);
144
139
  }
145
- };
146
- ChimeSDKMediaPipelines.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
147
- var command = new ListTagsForResourceCommand(args);
140
+ }
141
+ listTagsForResource(args, optionsOrCb, cb) {
142
+ const command = new ListTagsForResourceCommand(args);
148
143
  if (typeof optionsOrCb === "function") {
149
144
  this.send(command, optionsOrCb);
150
145
  }
151
146
  else if (typeof cb === "function") {
152
147
  if (typeof optionsOrCb !== "object")
153
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
148
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
154
149
  this.send(command, optionsOrCb || {}, cb);
155
150
  }
156
151
  else {
157
152
  return this.send(command, optionsOrCb);
158
153
  }
159
- };
160
- ChimeSDKMediaPipelines.prototype.tagResource = function (args, optionsOrCb, cb) {
161
- var command = new TagResourceCommand(args);
154
+ }
155
+ tagResource(args, optionsOrCb, cb) {
156
+ const command = new TagResourceCommand(args);
162
157
  if (typeof optionsOrCb === "function") {
163
158
  this.send(command, optionsOrCb);
164
159
  }
165
160
  else if (typeof cb === "function") {
166
161
  if (typeof optionsOrCb !== "object")
167
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
162
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
168
163
  this.send(command, optionsOrCb || {}, cb);
169
164
  }
170
165
  else {
171
166
  return this.send(command, optionsOrCb);
172
167
  }
173
- };
174
- ChimeSDKMediaPipelines.prototype.untagResource = function (args, optionsOrCb, cb) {
175
- var command = new UntagResourceCommand(args);
168
+ }
169
+ untagResource(args, optionsOrCb, cb) {
170
+ const command = new UntagResourceCommand(args);
176
171
  if (typeof optionsOrCb === "function") {
177
172
  this.send(command, optionsOrCb);
178
173
  }
179
174
  else if (typeof cb === "function") {
180
175
  if (typeof optionsOrCb !== "object")
181
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
176
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
182
177
  this.send(command, optionsOrCb || {}, cb);
183
178
  }
184
179
  else {
185
180
  return this.send(command, optionsOrCb);
186
181
  }
187
- };
188
- return ChimeSDKMediaPipelines;
189
- }(ChimeSDKMediaPipelinesClient));
190
- export { ChimeSDKMediaPipelines };
182
+ }
183
+ }
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var ChimeSDKMediaPipelinesClient = (function (_super) {
13
- __extends(ChimeSDKMediaPipelinesClient, _super);
14
- function ChimeSDKMediaPipelinesClient(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;
11
+ export class ChimeSDKMediaPipelinesClient 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));
33
29
  }
34
- ChimeSDKMediaPipelinesClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return ChimeSDKMediaPipelinesClient;
38
- }(__Client));
39
- export { ChimeSDKMediaPipelinesClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -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 { CreateMediaCapturePipelineRequestFilterSensitiveLog, CreateMediaCapturePipelineResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateMediaCapturePipelineCommand, serializeAws_restJson1CreateMediaCapturePipelineCommand, } from "../protocols/Aws_restJson1";
6
- var CreateMediaCapturePipelineCommand = (function (_super) {
7
- __extends(CreateMediaCapturePipelineCommand, _super);
8
- function CreateMediaCapturePipelineCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateMediaCapturePipelineCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateMediaCapturePipelineCommand.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 = "ChimeSDKMediaPipelinesClient";
18
- var commandName = "CreateMediaCapturePipelineCommand";
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 = "ChimeSDKMediaPipelinesClient";
15
+ const commandName = "CreateMediaCapturePipelineCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateMediaCapturePipelineRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateMediaCapturePipelineResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateMediaCapturePipelineCommand.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_restJson1CreateMediaCapturePipelineCommand(input, context);
33
- };
34
- CreateMediaCapturePipelineCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateMediaCapturePipelineCommand(output, context);
36
- };
37
- return CreateMediaCapturePipelineCommand;
38
- }($Command));
39
- export { CreateMediaCapturePipelineCommand };
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 { CreateMediaConcatenationPipelineRequestFilterSensitiveLog, CreateMediaConcatenationPipelineResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateMediaConcatenationPipelineCommand, serializeAws_restJson1CreateMediaConcatenationPipelineCommand, } from "../protocols/Aws_restJson1";
6
- var CreateMediaConcatenationPipelineCommand = (function (_super) {
7
- __extends(CreateMediaConcatenationPipelineCommand, _super);
8
- function CreateMediaConcatenationPipelineCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateMediaConcatenationPipelineCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateMediaConcatenationPipelineCommand.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 = "ChimeSDKMediaPipelinesClient";
18
- var commandName = "CreateMediaConcatenationPipelineCommand";
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 = "ChimeSDKMediaPipelinesClient";
15
+ const commandName = "CreateMediaConcatenationPipelineCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateMediaConcatenationPipelineRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateMediaConcatenationPipelineResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateMediaConcatenationPipelineCommand.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_restJson1CreateMediaConcatenationPipelineCommand(input, context);
33
- };
34
- CreateMediaConcatenationPipelineCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateMediaConcatenationPipelineCommand(output, context);
36
- };
37
- return CreateMediaConcatenationPipelineCommand;
38
- }($Command));
39
- export { CreateMediaConcatenationPipelineCommand };
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 { CreateMediaLiveConnectorPipelineRequestFilterSensitiveLog, CreateMediaLiveConnectorPipelineResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateMediaLiveConnectorPipelineCommand, serializeAws_restJson1CreateMediaLiveConnectorPipelineCommand, } from "../protocols/Aws_restJson1";
6
- var CreateMediaLiveConnectorPipelineCommand = (function (_super) {
7
- __extends(CreateMediaLiveConnectorPipelineCommand, _super);
8
- function CreateMediaLiveConnectorPipelineCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateMediaLiveConnectorPipelineCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateMediaLiveConnectorPipelineCommand.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 = "ChimeSDKMediaPipelinesClient";
18
- var commandName = "CreateMediaLiveConnectorPipelineCommand";
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 = "ChimeSDKMediaPipelinesClient";
15
+ const commandName = "CreateMediaLiveConnectorPipelineCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateMediaLiveConnectorPipelineRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateMediaLiveConnectorPipelineResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateMediaLiveConnectorPipelineCommand.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_restJson1CreateMediaLiveConnectorPipelineCommand(input, context);
33
- };
34
- CreateMediaLiveConnectorPipelineCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateMediaLiveConnectorPipelineCommand(output, context);
36
- };
37
- return CreateMediaLiveConnectorPipelineCommand;
38
- }($Command));
39
- export { CreateMediaLiveConnectorPipelineCommand };
31
+ }
32
+ }