@aws-sdk/client-simspaceweaver 3.220.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 (139) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +216 -0
  3. package/dist-cjs/SimSpaceWeaver.js +232 -0
  4. package/dist-cjs/SimSpaceWeaverClient.js +40 -0
  5. package/dist-cjs/commands/DeleteAppCommand.js +46 -0
  6. package/dist-cjs/commands/DeleteSimulationCommand.js +46 -0
  7. package/dist-cjs/commands/DescribeAppCommand.js +46 -0
  8. package/dist-cjs/commands/DescribeSimulationCommand.js +46 -0
  9. package/dist-cjs/commands/ListAppsCommand.js +46 -0
  10. package/dist-cjs/commands/ListSimulationsCommand.js +46 -0
  11. package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
  12. package/dist-cjs/commands/StartAppCommand.js +46 -0
  13. package/dist-cjs/commands/StartClockCommand.js +46 -0
  14. package/dist-cjs/commands/StartSimulationCommand.js +46 -0
  15. package/dist-cjs/commands/StopAppCommand.js +46 -0
  16. package/dist-cjs/commands/StopClockCommand.js +46 -0
  17. package/dist-cjs/commands/StopSimulationCommand.js +46 -0
  18. package/dist-cjs/commands/TagResourceCommand.js +46 -0
  19. package/dist-cjs/commands/UntagResourceCommand.js +46 -0
  20. package/dist-cjs/commands/index.js +18 -0
  21. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  22. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  23. package/dist-cjs/endpoint/ruleset.js +312 -0
  24. package/dist-cjs/index.js +11 -0
  25. package/dist-cjs/models/SimSpaceWeaverServiceException.js +11 -0
  26. package/dist-cjs/models/index.js +4 -0
  27. package/dist-cjs/models/models_0.js +328 -0
  28. package/dist-cjs/pagination/Interfaces.js +2 -0
  29. package/dist-cjs/pagination/ListAppsPaginator.js +36 -0
  30. package/dist-cjs/pagination/ListSimulationsPaginator.js +36 -0
  31. package/dist-cjs/pagination/index.js +6 -0
  32. package/dist-cjs/protocols/Aws_restJson1.js +1384 -0
  33. package/dist-cjs/runtimeConfig.browser.js +42 -0
  34. package/dist-cjs/runtimeConfig.js +50 -0
  35. package/dist-cjs/runtimeConfig.native.js +15 -0
  36. package/dist-cjs/runtimeConfig.shared.js +18 -0
  37. package/dist-es/SimSpaceWeaver.js +228 -0
  38. package/dist-es/SimSpaceWeaverClient.js +36 -0
  39. package/dist-es/commands/DeleteAppCommand.js +42 -0
  40. package/dist-es/commands/DeleteSimulationCommand.js +42 -0
  41. package/dist-es/commands/DescribeAppCommand.js +42 -0
  42. package/dist-es/commands/DescribeSimulationCommand.js +42 -0
  43. package/dist-es/commands/ListAppsCommand.js +42 -0
  44. package/dist-es/commands/ListSimulationsCommand.js +42 -0
  45. package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
  46. package/dist-es/commands/StartAppCommand.js +42 -0
  47. package/dist-es/commands/StartClockCommand.js +42 -0
  48. package/dist-es/commands/StartSimulationCommand.js +42 -0
  49. package/dist-es/commands/StopAppCommand.js +42 -0
  50. package/dist-es/commands/StopClockCommand.js +42 -0
  51. package/dist-es/commands/StopSimulationCommand.js +42 -0
  52. package/dist-es/commands/TagResourceCommand.js +42 -0
  53. package/dist-es/commands/UntagResourceCommand.js +42 -0
  54. package/dist-es/commands/index.js +15 -0
  55. package/dist-es/endpoint/EndpointParameters.js +8 -0
  56. package/dist-es/endpoint/endpointResolver.js +8 -0
  57. package/dist-es/endpoint/ruleset.js +309 -0
  58. package/dist-es/index.js +6 -0
  59. package/dist-es/models/SimSpaceWeaverServiceException.js +7 -0
  60. package/dist-es/models/index.js +1 -0
  61. package/dist-es/models/models_0.js +275 -0
  62. package/dist-es/pagination/Interfaces.js +1 -0
  63. package/dist-es/pagination/ListAppsPaginator.js +32 -0
  64. package/dist-es/pagination/ListSimulationsPaginator.js +32 -0
  65. package/dist-es/pagination/index.js +3 -0
  66. package/dist-es/protocols/Aws_restJson1.js +1351 -0
  67. package/dist-es/runtimeConfig.browser.js +37 -0
  68. package/dist-es/runtimeConfig.js +45 -0
  69. package/dist-es/runtimeConfig.native.js +11 -0
  70. package/dist-es/runtimeConfig.shared.js +14 -0
  71. package/dist-types/SimSpaceWeaver.d.ts +134 -0
  72. package/dist-types/SimSpaceWeaverClient.d.ts +167 -0
  73. package/dist-types/commands/DeleteAppCommand.d.ts +37 -0
  74. package/dist-types/commands/DeleteSimulationCommand.d.ts +41 -0
  75. package/dist-types/commands/DescribeAppCommand.d.ts +37 -0
  76. package/dist-types/commands/DescribeSimulationCommand.d.ts +37 -0
  77. package/dist-types/commands/ListAppsCommand.d.ts +37 -0
  78. package/dist-types/commands/ListSimulationsCommand.d.ts +37 -0
  79. package/dist-types/commands/ListTagsForResourceCommand.d.ts +37 -0
  80. package/dist-types/commands/StartAppCommand.d.ts +37 -0
  81. package/dist-types/commands/StartClockCommand.d.ts +37 -0
  82. package/dist-types/commands/StartSimulationCommand.d.ts +37 -0
  83. package/dist-types/commands/StopAppCommand.d.ts +37 -0
  84. package/dist-types/commands/StopClockCommand.d.ts +37 -0
  85. package/dist-types/commands/StopSimulationCommand.d.ts +42 -0
  86. package/dist-types/commands/TagResourceCommand.d.ts +38 -0
  87. package/dist-types/commands/UntagResourceCommand.d.ts +38 -0
  88. package/dist-types/commands/index.d.ts +15 -0
  89. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  90. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  91. package/dist-types/endpoint/ruleset.d.ts +2 -0
  92. package/dist-types/index.d.ts +6 -0
  93. package/dist-types/models/SimSpaceWeaverServiceException.d.ts +10 -0
  94. package/dist-types/models/index.d.ts +1 -0
  95. package/dist-types/models/models_0.d.ts +911 -0
  96. package/dist-types/pagination/Interfaces.d.ts +6 -0
  97. package/dist-types/pagination/ListAppsPaginator.d.ts +4 -0
  98. package/dist-types/pagination/ListSimulationsPaginator.d.ts +4 -0
  99. package/dist-types/pagination/index.d.ts +3 -0
  100. package/dist-types/protocols/Aws_restJson1.d.ts +47 -0
  101. package/dist-types/runtimeConfig.browser.d.ts +42 -0
  102. package/dist-types/runtimeConfig.d.ts +42 -0
  103. package/dist-types/runtimeConfig.native.d.ts +41 -0
  104. package/dist-types/runtimeConfig.shared.d.ts +16 -0
  105. package/dist-types/ts3.4/SimSpaceWeaver.d.ts +259 -0
  106. package/dist-types/ts3.4/SimSpaceWeaverClient.d.ts +202 -0
  107. package/dist-types/ts3.4/commands/DeleteAppCommand.d.ts +34 -0
  108. package/dist-types/ts3.4/commands/DeleteSimulationCommand.d.ts +37 -0
  109. package/dist-types/ts3.4/commands/DescribeAppCommand.d.ts +34 -0
  110. package/dist-types/ts3.4/commands/DescribeSimulationCommand.d.ts +38 -0
  111. package/dist-types/ts3.4/commands/ListAppsCommand.d.ts +34 -0
  112. package/dist-types/ts3.4/commands/ListSimulationsCommand.d.ts +37 -0
  113. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
  114. package/dist-types/ts3.4/commands/StartAppCommand.d.ts +34 -0
  115. package/dist-types/ts3.4/commands/StartClockCommand.d.ts +34 -0
  116. package/dist-types/ts3.4/commands/StartSimulationCommand.d.ts +37 -0
  117. package/dist-types/ts3.4/commands/StopAppCommand.d.ts +32 -0
  118. package/dist-types/ts3.4/commands/StopClockCommand.d.ts +34 -0
  119. package/dist-types/ts3.4/commands/StopSimulationCommand.d.ts +34 -0
  120. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
  121. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +34 -0
  122. package/dist-types/ts3.4/commands/index.d.ts +15 -0
  123. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
  124. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  125. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  126. package/dist-types/ts3.4/index.d.ts +6 -0
  127. package/dist-types/ts3.4/models/SimSpaceWeaverServiceException.d.ts +7 -0
  128. package/dist-types/ts3.4/models/index.d.ts +1 -0
  129. package/dist-types/ts3.4/models/models_0.d.ts +395 -0
  130. package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
  131. package/dist-types/ts3.4/pagination/ListAppsPaginator.d.ts +11 -0
  132. package/dist-types/ts3.4/pagination/ListSimulationsPaginator.d.ts +11 -0
  133. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  134. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +185 -0
  135. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +88 -0
  136. package/dist-types/ts3.4/runtimeConfig.d.ts +88 -0
  137. package/dist-types/ts3.4/runtimeConfig.native.d.ts +77 -0
  138. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +16 -0
  139. package/package.json +103 -0
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListTagsForResourceInputFilterSensitiveLog, ListTagsForResourceOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1";
6
+ export class ListTagsForResourceCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SimSpaceWeaverClient";
25
+ const commandName = "ListTagsForResourceCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ListTagsForResourceInputFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ListTagsForResourceOutputFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1ListTagsForResourceCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { StartAppInputFilterSensitiveLog, StartAppOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1StartAppCommand, serializeAws_restJson1StartAppCommand, } from "../protocols/Aws_restJson1";
6
+ export class StartAppCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, StartAppCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SimSpaceWeaverClient";
25
+ const commandName = "StartAppCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: StartAppInputFilterSensitiveLog,
31
+ outputFilterSensitiveLog: StartAppOutputFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1StartAppCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1StartAppCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { StartClockInputFilterSensitiveLog, StartClockOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1StartClockCommand, serializeAws_restJson1StartClockCommand, } from "../protocols/Aws_restJson1";
6
+ export class StartClockCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, StartClockCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SimSpaceWeaverClient";
25
+ const commandName = "StartClockCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: StartClockInputFilterSensitiveLog,
31
+ outputFilterSensitiveLog: StartClockOutputFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1StartClockCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1StartClockCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { StartSimulationInputFilterSensitiveLog, StartSimulationOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1StartSimulationCommand, serializeAws_restJson1StartSimulationCommand, } from "../protocols/Aws_restJson1";
6
+ export class StartSimulationCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, StartSimulationCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SimSpaceWeaverClient";
25
+ const commandName = "StartSimulationCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: StartSimulationInputFilterSensitiveLog,
31
+ outputFilterSensitiveLog: StartSimulationOutputFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1StartSimulationCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1StartSimulationCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { StopAppInputFilterSensitiveLog, StopAppOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1StopAppCommand, serializeAws_restJson1StopAppCommand, } from "../protocols/Aws_restJson1";
6
+ export class StopAppCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, StopAppCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SimSpaceWeaverClient";
25
+ const commandName = "StopAppCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: StopAppInputFilterSensitiveLog,
31
+ outputFilterSensitiveLog: StopAppOutputFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1StopAppCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1StopAppCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { StopClockInputFilterSensitiveLog, StopClockOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1StopClockCommand, serializeAws_restJson1StopClockCommand, } from "../protocols/Aws_restJson1";
6
+ export class StopClockCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, StopClockCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SimSpaceWeaverClient";
25
+ const commandName = "StopClockCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: StopClockInputFilterSensitiveLog,
31
+ outputFilterSensitiveLog: StopClockOutputFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1StopClockCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1StopClockCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { StopSimulationInputFilterSensitiveLog, StopSimulationOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1StopSimulationCommand, serializeAws_restJson1StopSimulationCommand, } from "../protocols/Aws_restJson1";
6
+ export class StopSimulationCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, StopSimulationCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SimSpaceWeaverClient";
25
+ const commandName = "StopSimulationCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: StopSimulationInputFilterSensitiveLog,
31
+ outputFilterSensitiveLog: StopSimulationOutputFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1StopSimulationCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1StopSimulationCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { TagResourceInputFilterSensitiveLog, TagResourceOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1TagResourceCommand, serializeAws_restJson1TagResourceCommand, } from "../protocols/Aws_restJson1";
6
+ export class TagResourceCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SimSpaceWeaverClient";
25
+ const commandName = "TagResourceCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: TagResourceInputFilterSensitiveLog,
31
+ outputFilterSensitiveLog: TagResourceOutputFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1TagResourceCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1TagResourceCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UntagResourceInputFilterSensitiveLog, UntagResourceOutputFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UntagResourceCommand, } from "../protocols/Aws_restJson1";
6
+ export class UntagResourceCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SimSpaceWeaverClient";
25
+ const commandName = "UntagResourceCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: UntagResourceInputFilterSensitiveLog,
31
+ outputFilterSensitiveLog: UntagResourceOutputFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1UntagResourceCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1UntagResourceCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,15 @@
1
+ export * from "./DeleteAppCommand";
2
+ export * from "./DeleteSimulationCommand";
3
+ export * from "./DescribeAppCommand";
4
+ export * from "./DescribeSimulationCommand";
5
+ export * from "./ListAppsCommand";
6
+ export * from "./ListSimulationsCommand";
7
+ export * from "./ListTagsForResourceCommand";
8
+ export * from "./StartAppCommand";
9
+ export * from "./StartClockCommand";
10
+ export * from "./StartSimulationCommand";
11
+ export * from "./StopAppCommand";
12
+ export * from "./StopClockCommand";
13
+ export * from "./StopSimulationCommand";
14
+ export * from "./TagResourceCommand";
15
+ export * from "./UntagResourceCommand";
@@ -0,0 +1,8 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return {
3
+ ...options,
4
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
5
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
6
+ defaultSigningName: "simspaceweaver",
7
+ };
8
+ };
@@ -0,0 +1,8 @@
1
+ import { resolveEndpoint } from "@aws-sdk/util-endpoints";
2
+ import { ruleSet } from "./ruleset";
3
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
+ return resolveEndpoint(ruleSet, {
5
+ endpointParams: endpointParams,
6
+ logger: context.logger,
7
+ });
8
+ };