@aws-sdk/client-outposts 3.185.0 → 3.188.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 (44) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/Outposts.js +106 -113
  3. package/dist-es/OutpostsClient.js +22 -28
  4. package/dist-es/commands/CancelOrderCommand.js +21 -28
  5. package/dist-es/commands/CreateOrderCommand.js +21 -28
  6. package/dist-es/commands/CreateOutpostCommand.js +21 -28
  7. package/dist-es/commands/CreateSiteCommand.js +21 -28
  8. package/dist-es/commands/DeleteOutpostCommand.js +21 -28
  9. package/dist-es/commands/DeleteSiteCommand.js +21 -28
  10. package/dist-es/commands/GetCatalogItemCommand.js +21 -28
  11. package/dist-es/commands/GetConnectionCommand.js +21 -28
  12. package/dist-es/commands/GetOrderCommand.js +21 -28
  13. package/dist-es/commands/GetOutpostCommand.js +21 -28
  14. package/dist-es/commands/GetOutpostInstanceTypesCommand.js +21 -28
  15. package/dist-es/commands/GetSiteAddressCommand.js +21 -28
  16. package/dist-es/commands/GetSiteCommand.js +21 -28
  17. package/dist-es/commands/ListAssetsCommand.js +21 -28
  18. package/dist-es/commands/ListCatalogItemsCommand.js +21 -28
  19. package/dist-es/commands/ListOrdersCommand.js +21 -28
  20. package/dist-es/commands/ListOutpostsCommand.js +21 -28
  21. package/dist-es/commands/ListSitesCommand.js +21 -28
  22. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  23. package/dist-es/commands/StartConnectionCommand.js +21 -28
  24. package/dist-es/commands/TagResourceCommand.js +21 -28
  25. package/dist-es/commands/UntagResourceCommand.js +21 -28
  26. package/dist-es/commands/UpdateOutpostCommand.js +21 -28
  27. package/dist-es/commands/UpdateSiteAddressCommand.js +21 -28
  28. package/dist-es/commands/UpdateSiteCommand.js +21 -28
  29. package/dist-es/commands/UpdateSiteRackPhysicalPropertiesCommand.js +21 -28
  30. package/dist-es/endpoints.js +8 -8
  31. package/dist-es/models/OutpostsServiceException.js +5 -10
  32. package/dist-es/models/models_0.js +281 -144
  33. package/dist-es/pagination/GetOutpostInstanceTypesPaginator.js +25 -68
  34. package/dist-es/pagination/ListAssetsPaginator.js +25 -68
  35. package/dist-es/pagination/ListCatalogItemsPaginator.js +25 -68
  36. package/dist-es/pagination/ListOrdersPaginator.js +25 -68
  37. package/dist-es/pagination/ListOutpostsPaginator.js +25 -68
  38. package/dist-es/pagination/ListSitesPaginator.js +25 -68
  39. package/dist-es/protocols/Aws_restJson1.js +1874 -2642
  40. package/dist-es/runtimeConfig.browser.js +26 -12
  41. package/dist-es/runtimeConfig.js +30 -12
  42. package/dist-es/runtimeConfig.native.js +8 -5
  43. package/dist-es/runtimeConfig.shared.js +8 -11
  44. package/package.json +33 -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 { CreateOrderInputFilterSensitiveLog, CreateOrderOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateOrderCommand, serializeAws_restJson1CreateOrderCommand, } from "../protocols/Aws_restJson1";
6
- var CreateOrderCommand = (function (_super) {
7
- __extends(CreateOrderCommand, _super);
8
- function CreateOrderCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateOrderCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateOrderCommand.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 = "OutpostsClient";
18
- var commandName = "CreateOrderCommand";
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 = "OutpostsClient";
15
+ const commandName = "CreateOrderCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateOrderInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateOrderOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateOrderCommand.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_restJson1CreateOrderCommand(input, context);
33
- };
34
- CreateOrderCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateOrderCommand(output, context);
36
- };
37
- return CreateOrderCommand;
38
- }($Command));
39
- export { CreateOrderCommand };
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 { CreateOutpostInputFilterSensitiveLog, CreateOutpostOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateOutpostCommand, serializeAws_restJson1CreateOutpostCommand, } from "../protocols/Aws_restJson1";
6
- var CreateOutpostCommand = (function (_super) {
7
- __extends(CreateOutpostCommand, _super);
8
- function CreateOutpostCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateOutpostCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateOutpostCommand.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 = "OutpostsClient";
18
- var commandName = "CreateOutpostCommand";
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 = "OutpostsClient";
15
+ const commandName = "CreateOutpostCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateOutpostInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateOutpostOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateOutpostCommand.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_restJson1CreateOutpostCommand(input, context);
33
- };
34
- CreateOutpostCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateOutpostCommand(output, context);
36
- };
37
- return CreateOutpostCommand;
38
- }($Command));
39
- export { CreateOutpostCommand };
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 { CreateSiteInputFilterSensitiveLog, CreateSiteOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateSiteCommand, serializeAws_restJson1CreateSiteCommand, } from "../protocols/Aws_restJson1";
6
- var CreateSiteCommand = (function (_super) {
7
- __extends(CreateSiteCommand, _super);
8
- function CreateSiteCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateSiteCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateSiteCommand.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 = "OutpostsClient";
18
- var commandName = "CreateSiteCommand";
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 = "OutpostsClient";
15
+ const commandName = "CreateSiteCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateSiteInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateSiteOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateSiteCommand.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_restJson1CreateSiteCommand(input, context);
33
- };
34
- CreateSiteCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateSiteCommand(output, context);
36
- };
37
- return CreateSiteCommand;
38
- }($Command));
39
- export { CreateSiteCommand };
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 { DeleteOutpostInputFilterSensitiveLog, DeleteOutpostOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteOutpostCommand, serializeAws_restJson1DeleteOutpostCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteOutpostCommand = (function (_super) {
7
- __extends(DeleteOutpostCommand, _super);
8
- function DeleteOutpostCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteOutpostCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteOutpostCommand.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 = "OutpostsClient";
18
- var commandName = "DeleteOutpostCommand";
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 = "OutpostsClient";
15
+ const commandName = "DeleteOutpostCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteOutpostInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteOutpostOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteOutpostCommand.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_restJson1DeleteOutpostCommand(input, context);
33
- };
34
- DeleteOutpostCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteOutpostCommand(output, context);
36
- };
37
- return DeleteOutpostCommand;
38
- }($Command));
39
- export { DeleteOutpostCommand };
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 { DeleteSiteInputFilterSensitiveLog, DeleteSiteOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteSiteCommand, serializeAws_restJson1DeleteSiteCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteSiteCommand = (function (_super) {
7
- __extends(DeleteSiteCommand, _super);
8
- function DeleteSiteCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteSiteCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteSiteCommand.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 = "OutpostsClient";
18
- var commandName = "DeleteSiteCommand";
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 = "OutpostsClient";
15
+ const commandName = "DeleteSiteCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteSiteInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteSiteOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteSiteCommand.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_restJson1DeleteSiteCommand(input, context);
33
- };
34
- DeleteSiteCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteSiteCommand(output, context);
36
- };
37
- return DeleteSiteCommand;
38
- }($Command));
39
- export { DeleteSiteCommand };
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 { GetCatalogItemInputFilterSensitiveLog, GetCatalogItemOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetCatalogItemCommand, serializeAws_restJson1GetCatalogItemCommand, } from "../protocols/Aws_restJson1";
6
- var GetCatalogItemCommand = (function (_super) {
7
- __extends(GetCatalogItemCommand, _super);
8
- function GetCatalogItemCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetCatalogItemCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetCatalogItemCommand.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 = "OutpostsClient";
18
- var commandName = "GetCatalogItemCommand";
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 = "OutpostsClient";
15
+ const commandName = "GetCatalogItemCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetCatalogItemInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetCatalogItemOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetCatalogItemCommand.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_restJson1GetCatalogItemCommand(input, context);
33
- };
34
- GetCatalogItemCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetCatalogItemCommand(output, context);
36
- };
37
- return GetCatalogItemCommand;
38
- }($Command));
39
- export { GetCatalogItemCommand };
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 { GetConnectionRequestFilterSensitiveLog, GetConnectionResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetConnectionCommand, serializeAws_restJson1GetConnectionCommand, } from "../protocols/Aws_restJson1";
6
- var GetConnectionCommand = (function (_super) {
7
- __extends(GetConnectionCommand, _super);
8
- function GetConnectionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetConnectionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetConnectionCommand.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 = "OutpostsClient";
18
- var commandName = "GetConnectionCommand";
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 = "OutpostsClient";
15
+ const commandName = "GetConnectionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetConnectionRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetConnectionResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetConnectionCommand.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_restJson1GetConnectionCommand(input, context);
33
- };
34
- GetConnectionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetConnectionCommand(output, context);
36
- };
37
- return GetConnectionCommand;
38
- }($Command));
39
- export { GetConnectionCommand };
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 { GetOrderInputFilterSensitiveLog, GetOrderOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetOrderCommand, serializeAws_restJson1GetOrderCommand, } from "../protocols/Aws_restJson1";
6
- var GetOrderCommand = (function (_super) {
7
- __extends(GetOrderCommand, _super);
8
- function GetOrderCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetOrderCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetOrderCommand.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 = "OutpostsClient";
18
- var commandName = "GetOrderCommand";
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 = "OutpostsClient";
15
+ const commandName = "GetOrderCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetOrderInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetOrderOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetOrderCommand.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_restJson1GetOrderCommand(input, context);
33
- };
34
- GetOrderCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetOrderCommand(output, context);
36
- };
37
- return GetOrderCommand;
38
- }($Command));
39
- export { GetOrderCommand };
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 { GetOutpostInputFilterSensitiveLog, GetOutpostOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetOutpostCommand, serializeAws_restJson1GetOutpostCommand, } from "../protocols/Aws_restJson1";
6
- var GetOutpostCommand = (function (_super) {
7
- __extends(GetOutpostCommand, _super);
8
- function GetOutpostCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetOutpostCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetOutpostCommand.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 = "OutpostsClient";
18
- var commandName = "GetOutpostCommand";
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 = "OutpostsClient";
15
+ const commandName = "GetOutpostCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetOutpostInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetOutpostOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetOutpostCommand.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_restJson1GetOutpostCommand(input, context);
33
- };
34
- GetOutpostCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetOutpostCommand(output, context);
36
- };
37
- return GetOutpostCommand;
38
- }($Command));
39
- export { GetOutpostCommand };
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 { GetOutpostInstanceTypesInputFilterSensitiveLog, GetOutpostInstanceTypesOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetOutpostInstanceTypesCommand, serializeAws_restJson1GetOutpostInstanceTypesCommand, } from "../protocols/Aws_restJson1";
6
- var GetOutpostInstanceTypesCommand = (function (_super) {
7
- __extends(GetOutpostInstanceTypesCommand, _super);
8
- function GetOutpostInstanceTypesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetOutpostInstanceTypesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetOutpostInstanceTypesCommand.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 = "OutpostsClient";
18
- var commandName = "GetOutpostInstanceTypesCommand";
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 = "OutpostsClient";
15
+ const commandName = "GetOutpostInstanceTypesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetOutpostInstanceTypesInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetOutpostInstanceTypesOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetOutpostInstanceTypesCommand.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_restJson1GetOutpostInstanceTypesCommand(input, context);
33
- };
34
- GetOutpostInstanceTypesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetOutpostInstanceTypesCommand(output, context);
36
- };
37
- return GetOutpostInstanceTypesCommand;
38
- }($Command));
39
- export { GetOutpostInstanceTypesCommand };
31
+ }
32
+ }