@aws-sdk/client-outposts 3.478.0 → 3.481.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 (109) hide show
  1. package/dist-cjs/commands/CancelOrderCommand.js +18 -41
  2. package/dist-cjs/commands/CreateOrderCommand.js +18 -41
  3. package/dist-cjs/commands/CreateOutpostCommand.js +18 -41
  4. package/dist-cjs/commands/CreateSiteCommand.js +18 -41
  5. package/dist-cjs/commands/DeleteOutpostCommand.js +18 -41
  6. package/dist-cjs/commands/DeleteSiteCommand.js +18 -41
  7. package/dist-cjs/commands/GetCatalogItemCommand.js +18 -41
  8. package/dist-cjs/commands/GetConnectionCommand.js +18 -41
  9. package/dist-cjs/commands/GetOrderCommand.js +18 -41
  10. package/dist-cjs/commands/GetOutpostCommand.js +18 -41
  11. package/dist-cjs/commands/GetOutpostInstanceTypesCommand.js +18 -41
  12. package/dist-cjs/commands/GetSiteAddressCommand.js +18 -41
  13. package/dist-cjs/commands/GetSiteCommand.js +18 -41
  14. package/dist-cjs/commands/ListAssetsCommand.js +18 -41
  15. package/dist-cjs/commands/ListCatalogItemsCommand.js +18 -41
  16. package/dist-cjs/commands/ListOrdersCommand.js +18 -41
  17. package/dist-cjs/commands/ListOutpostsCommand.js +18 -41
  18. package/dist-cjs/commands/ListSitesCommand.js +18 -41
  19. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  20. package/dist-cjs/commands/StartConnectionCommand.js +18 -41
  21. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  22. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  23. package/dist-cjs/commands/UpdateOutpostCommand.js +18 -41
  24. package/dist-cjs/commands/UpdateSiteAddressCommand.js +18 -41
  25. package/dist-cjs/commands/UpdateSiteCommand.js +18 -41
  26. package/dist-cjs/commands/UpdateSiteRackPhysicalPropertiesCommand.js +18 -41
  27. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  28. package/dist-es/commands/CancelOrderCommand.js +18 -41
  29. package/dist-es/commands/CreateOrderCommand.js +18 -41
  30. package/dist-es/commands/CreateOutpostCommand.js +18 -41
  31. package/dist-es/commands/CreateSiteCommand.js +18 -41
  32. package/dist-es/commands/DeleteOutpostCommand.js +18 -41
  33. package/dist-es/commands/DeleteSiteCommand.js +18 -41
  34. package/dist-es/commands/GetCatalogItemCommand.js +18 -41
  35. package/dist-es/commands/GetConnectionCommand.js +18 -41
  36. package/dist-es/commands/GetOrderCommand.js +18 -41
  37. package/dist-es/commands/GetOutpostCommand.js +18 -41
  38. package/dist-es/commands/GetOutpostInstanceTypesCommand.js +18 -41
  39. package/dist-es/commands/GetSiteAddressCommand.js +18 -41
  40. package/dist-es/commands/GetSiteCommand.js +18 -41
  41. package/dist-es/commands/ListAssetsCommand.js +18 -41
  42. package/dist-es/commands/ListCatalogItemsCommand.js +18 -41
  43. package/dist-es/commands/ListOrdersCommand.js +18 -41
  44. package/dist-es/commands/ListOutpostsCommand.js +18 -41
  45. package/dist-es/commands/ListSitesCommand.js +18 -41
  46. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  47. package/dist-es/commands/StartConnectionCommand.js +18 -41
  48. package/dist-es/commands/TagResourceCommand.js +18 -41
  49. package/dist-es/commands/UntagResourceCommand.js +18 -41
  50. package/dist-es/commands/UpdateOutpostCommand.js +18 -41
  51. package/dist-es/commands/UpdateSiteAddressCommand.js +18 -41
  52. package/dist-es/commands/UpdateSiteCommand.js +18 -41
  53. package/dist-es/commands/UpdateSiteRackPhysicalPropertiesCommand.js +18 -41
  54. package/dist-es/endpoint/EndpointParameters.js +6 -0
  55. package/dist-types/commands/CancelOrderCommand.d.ts +6 -21
  56. package/dist-types/commands/CreateOrderCommand.d.ts +6 -21
  57. package/dist-types/commands/CreateOutpostCommand.d.ts +6 -21
  58. package/dist-types/commands/CreateSiteCommand.d.ts +6 -21
  59. package/dist-types/commands/DeleteOutpostCommand.d.ts +6 -21
  60. package/dist-types/commands/DeleteSiteCommand.d.ts +6 -21
  61. package/dist-types/commands/GetCatalogItemCommand.d.ts +6 -21
  62. package/dist-types/commands/GetConnectionCommand.d.ts +6 -21
  63. package/dist-types/commands/GetOrderCommand.d.ts +6 -21
  64. package/dist-types/commands/GetOutpostCommand.d.ts +6 -21
  65. package/dist-types/commands/GetOutpostInstanceTypesCommand.d.ts +6 -21
  66. package/dist-types/commands/GetSiteAddressCommand.d.ts +6 -21
  67. package/dist-types/commands/GetSiteCommand.d.ts +6 -21
  68. package/dist-types/commands/ListAssetsCommand.d.ts +6 -21
  69. package/dist-types/commands/ListCatalogItemsCommand.d.ts +6 -21
  70. package/dist-types/commands/ListOrdersCommand.d.ts +6 -21
  71. package/dist-types/commands/ListOutpostsCommand.d.ts +6 -21
  72. package/dist-types/commands/ListSitesCommand.d.ts +6 -21
  73. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  74. package/dist-types/commands/StartConnectionCommand.d.ts +6 -21
  75. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  76. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  77. package/dist-types/commands/UpdateOutpostCommand.d.ts +6 -21
  78. package/dist-types/commands/UpdateSiteAddressCommand.d.ts +6 -21
  79. package/dist-types/commands/UpdateSiteCommand.d.ts +6 -21
  80. package/dist-types/commands/UpdateSiteRackPhysicalPropertiesCommand.d.ts +6 -21
  81. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  82. package/dist-types/ts3.4/commands/CancelOrderCommand.d.ts +14 -23
  83. package/dist-types/ts3.4/commands/CreateOrderCommand.d.ts +14 -23
  84. package/dist-types/ts3.4/commands/CreateOutpostCommand.d.ts +14 -23
  85. package/dist-types/ts3.4/commands/CreateSiteCommand.d.ts +14 -23
  86. package/dist-types/ts3.4/commands/DeleteOutpostCommand.d.ts +14 -23
  87. package/dist-types/ts3.4/commands/DeleteSiteCommand.d.ts +14 -23
  88. package/dist-types/ts3.4/commands/GetCatalogItemCommand.d.ts +14 -23
  89. package/dist-types/ts3.4/commands/GetConnectionCommand.d.ts +14 -23
  90. package/dist-types/ts3.4/commands/GetOrderCommand.d.ts +14 -23
  91. package/dist-types/ts3.4/commands/GetOutpostCommand.d.ts +14 -23
  92. package/dist-types/ts3.4/commands/GetOutpostInstanceTypesCommand.d.ts +12 -24
  93. package/dist-types/ts3.4/commands/GetSiteAddressCommand.d.ts +14 -23
  94. package/dist-types/ts3.4/commands/GetSiteCommand.d.ts +12 -23
  95. package/dist-types/ts3.4/commands/ListAssetsCommand.d.ts +14 -23
  96. package/dist-types/ts3.4/commands/ListCatalogItemsCommand.d.ts +14 -23
  97. package/dist-types/ts3.4/commands/ListOrdersCommand.d.ts +14 -23
  98. package/dist-types/ts3.4/commands/ListOutpostsCommand.d.ts +14 -23
  99. package/dist-types/ts3.4/commands/ListSitesCommand.d.ts +14 -23
  100. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  101. package/dist-types/ts3.4/commands/StartConnectionCommand.d.ts +14 -23
  102. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  103. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  104. package/dist-types/ts3.4/commands/UpdateOutpostCommand.d.ts +14 -23
  105. package/dist-types/ts3.4/commands/UpdateSiteAddressCommand.d.ts +14 -23
  106. package/dist-types/ts3.4/commands/UpdateSiteCommand.d.ts +14 -23
  107. package/dist-types/ts3.4/commands/UpdateSiteRackPhysicalPropertiesCommand.d.ts +12 -24
  108. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  109. package/package.json +9 -9
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_StartConnectionCommand, se_StartConnectionCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class StartConnectionCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, StartConnectionCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "OutpostsClient";
26
- const commandName = "StartConnectionCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "OutpostsOlafService",
35
- operation: "StartConnection",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_StartConnectionCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_StartConnectionCommand(output, context);
46
- }
7
+ export class StartConnectionCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("OutpostsOlafService", "StartConnection", {})
19
+ .n("OutpostsClient", "StartConnectionCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_StartConnectionCommand)
22
+ .de(de_StartConnectionCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class TagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "OutpostsClient";
26
- const commandName = "TagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "OutpostsOlafService",
35
- operation: "TagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_TagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_TagResourceCommand(output, context);
46
- }
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("OutpostsOlafService", "TagResource", {})
19
+ .n("OutpostsClient", "TagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_TagResourceCommand)
22
+ .de(de_TagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UntagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "OutpostsClient";
26
- const commandName = "UntagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "OutpostsOlafService",
35
- operation: "UntagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UntagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UntagResourceCommand(output, context);
46
- }
7
+ export class UntagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("OutpostsOlafService", "UntagResource", {})
19
+ .n("OutpostsClient", "UntagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UntagResourceCommand)
22
+ .de(de_UntagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateOutpostCommand, se_UpdateOutpostCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateOutpostCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateOutpostCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "OutpostsClient";
26
- const commandName = "UpdateOutpostCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "OutpostsOlafService",
35
- operation: "UpdateOutpost",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateOutpostCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateOutpostCommand(output, context);
46
- }
7
+ export class UpdateOutpostCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("OutpostsOlafService", "UpdateOutpost", {})
19
+ .n("OutpostsClient", "UpdateOutpostCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateOutpostCommand)
22
+ .de(de_UpdateOutpostCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateSiteAddressCommand, se_UpdateSiteAddressCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateSiteAddressCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateSiteAddressCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "OutpostsClient";
26
- const commandName = "UpdateSiteAddressCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "OutpostsOlafService",
35
- operation: "UpdateSiteAddress",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateSiteAddressCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateSiteAddressCommand(output, context);
46
- }
7
+ export class UpdateSiteAddressCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("OutpostsOlafService", "UpdateSiteAddress", {})
19
+ .n("OutpostsClient", "UpdateSiteAddressCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateSiteAddressCommand)
22
+ .de(de_UpdateSiteAddressCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateSiteCommand, se_UpdateSiteCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateSiteCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateSiteCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "OutpostsClient";
26
- const commandName = "UpdateSiteCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "OutpostsOlafService",
35
- operation: "UpdateSite",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateSiteCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateSiteCommand(output, context);
46
- }
7
+ export class UpdateSiteCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("OutpostsOlafService", "UpdateSite", {})
19
+ .n("OutpostsClient", "UpdateSiteCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateSiteCommand)
22
+ .de(de_UpdateSiteCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateSiteRackPhysicalPropertiesCommand, se_UpdateSiteRackPhysicalPropertiesCommand, } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateSiteRackPhysicalPropertiesCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateSiteRackPhysicalPropertiesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "OutpostsClient";
26
- const commandName = "UpdateSiteRackPhysicalPropertiesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "OutpostsOlafService",
35
- operation: "UpdateSiteRackPhysicalProperties",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateSiteRackPhysicalPropertiesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateSiteRackPhysicalPropertiesCommand(output, context);
46
- }
7
+ export class UpdateSiteRackPhysicalPropertiesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("OutpostsOlafService", "UpdateSiteRackPhysicalProperties", {})
19
+ .n("OutpostsClient", "UpdateSiteRackPhysicalPropertiesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateSiteRackPhysicalPropertiesCommand)
22
+ .de(de_UpdateSiteRackPhysicalPropertiesCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "outposts",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CancelOrderInput, CancelOrderOutput } from "../models/models_0";
5
4
  import { OutpostsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OutpostsClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CancelOrderCommandInput extends CancelOrderInput {
21
20
  */
22
21
  export interface CancelOrderCommandOutput extends CancelOrderOutput, __MetadataBearer {
23
22
  }
23
+ declare const CancelOrderCommand_base: {
24
+ new (input: CancelOrderCommandInput): import("@smithy/smithy-client").CommandImpl<CancelOrderCommandInput, CancelOrderCommandOutput, OutpostsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Cancels the specified order for an Outpost.</p>
@@ -64,23 +67,5 @@ export interface CancelOrderCommandOutput extends CancelOrderOutput, __MetadataB
64
67
  * <p>Base exception class for all service exceptions from Outposts service.</p>
65
68
  *
66
69
  */
67
- export declare class CancelOrderCommand extends $Command<CancelOrderCommandInput, CancelOrderCommandOutput, OutpostsClientResolvedConfig> {
68
- readonly input: CancelOrderCommandInput;
69
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
70
- /**
71
- * @public
72
- */
73
- constructor(input: CancelOrderCommandInput);
74
- /**
75
- * @internal
76
- */
77
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OutpostsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CancelOrderCommandInput, CancelOrderCommandOutput>;
78
- /**
79
- * @internal
80
- */
81
- private serialize;
82
- /**
83
- * @internal
84
- */
85
- private deserialize;
70
+ export declare class CancelOrderCommand extends CancelOrderCommand_base {
86
71
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CreateOrderInput, CreateOrderOutput } from "../models/models_0";
5
4
  import { OutpostsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OutpostsClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateOrderCommandInput extends CreateOrderInput {
21
20
  */
22
21
  export interface CreateOrderCommandOutput extends CreateOrderOutput, __MetadataBearer {
23
22
  }
23
+ declare const CreateOrderCommand_base: {
24
+ new (input: CreateOrderCommandInput): import("@smithy/smithy-client").CommandImpl<CreateOrderCommandInput, CreateOrderCommandOutput, OutpostsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates an order for an Outpost.</p>
@@ -108,23 +111,5 @@ export interface CreateOrderCommandOutput extends CreateOrderOutput, __MetadataB
108
111
  * <p>Base exception class for all service exceptions from Outposts service.</p>
109
112
  *
110
113
  */
111
- export declare class CreateOrderCommand extends $Command<CreateOrderCommandInput, CreateOrderCommandOutput, OutpostsClientResolvedConfig> {
112
- readonly input: CreateOrderCommandInput;
113
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
114
- /**
115
- * @public
116
- */
117
- constructor(input: CreateOrderCommandInput);
118
- /**
119
- * @internal
120
- */
121
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OutpostsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateOrderCommandInput, CreateOrderCommandOutput>;
122
- /**
123
- * @internal
124
- */
125
- private serialize;
126
- /**
127
- * @internal
128
- */
129
- private deserialize;
114
+ export declare class CreateOrderCommand extends CreateOrderCommand_base {
130
115
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CreateOutpostInput, CreateOutpostOutput } from "../models/models_0";
5
4
  import { OutpostsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OutpostsClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateOutpostCommandInput extends CreateOutpostInput {
21
20
  */
22
21
  export interface CreateOutpostCommandOutput extends CreateOutpostOutput, __MetadataBearer {
23
22
  }
23
+ declare const CreateOutpostCommand_base: {
24
+ new (input: CreateOutpostCommandInput): import("@smithy/smithy-client").CommandImpl<CreateOutpostCommandInput, CreateOutpostCommandOutput, OutpostsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates an Outpost.</p>
@@ -93,23 +96,5 @@ export interface CreateOutpostCommandOutput extends CreateOutpostOutput, __Metad
93
96
  * <p>Base exception class for all service exceptions from Outposts service.</p>
94
97
  *
95
98
  */
96
- export declare class CreateOutpostCommand extends $Command<CreateOutpostCommandInput, CreateOutpostCommandOutput, OutpostsClientResolvedConfig> {
97
- readonly input: CreateOutpostCommandInput;
98
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
99
- /**
100
- * @public
101
- */
102
- constructor(input: CreateOutpostCommandInput);
103
- /**
104
- * @internal
105
- */
106
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OutpostsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateOutpostCommandInput, CreateOutpostCommandOutput>;
107
- /**
108
- * @internal
109
- */
110
- private serialize;
111
- /**
112
- * @internal
113
- */
114
- private deserialize;
99
+ export declare class CreateOutpostCommand extends CreateOutpostCommand_base {
115
100
  }