@aws-sdk/client-amp 3.479.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/CreateAlertManagerDefinitionCommand.js +18 -41
  2. package/dist-cjs/commands/CreateLoggingConfigurationCommand.js +18 -41
  3. package/dist-cjs/commands/CreateRuleGroupsNamespaceCommand.js +18 -41
  4. package/dist-cjs/commands/CreateScraperCommand.js +18 -41
  5. package/dist-cjs/commands/CreateWorkspaceCommand.js +18 -41
  6. package/dist-cjs/commands/DeleteAlertManagerDefinitionCommand.js +18 -41
  7. package/dist-cjs/commands/DeleteLoggingConfigurationCommand.js +18 -41
  8. package/dist-cjs/commands/DeleteRuleGroupsNamespaceCommand.js +18 -41
  9. package/dist-cjs/commands/DeleteScraperCommand.js +18 -41
  10. package/dist-cjs/commands/DeleteWorkspaceCommand.js +18 -41
  11. package/dist-cjs/commands/DescribeAlertManagerDefinitionCommand.js +18 -41
  12. package/dist-cjs/commands/DescribeLoggingConfigurationCommand.js +18 -41
  13. package/dist-cjs/commands/DescribeRuleGroupsNamespaceCommand.js +18 -41
  14. package/dist-cjs/commands/DescribeScraperCommand.js +18 -41
  15. package/dist-cjs/commands/DescribeWorkspaceCommand.js +18 -41
  16. package/dist-cjs/commands/GetDefaultScraperConfigurationCommand.js +18 -41
  17. package/dist-cjs/commands/ListRuleGroupsNamespacesCommand.js +18 -41
  18. package/dist-cjs/commands/ListScrapersCommand.js +18 -41
  19. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  20. package/dist-cjs/commands/ListWorkspacesCommand.js +18 -41
  21. package/dist-cjs/commands/PutAlertManagerDefinitionCommand.js +18 -41
  22. package/dist-cjs/commands/PutRuleGroupsNamespaceCommand.js +18 -41
  23. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  24. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  25. package/dist-cjs/commands/UpdateLoggingConfigurationCommand.js +18 -41
  26. package/dist-cjs/commands/UpdateWorkspaceAliasCommand.js +18 -41
  27. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  28. package/dist-es/commands/CreateAlertManagerDefinitionCommand.js +18 -41
  29. package/dist-es/commands/CreateLoggingConfigurationCommand.js +18 -41
  30. package/dist-es/commands/CreateRuleGroupsNamespaceCommand.js +18 -41
  31. package/dist-es/commands/CreateScraperCommand.js +18 -41
  32. package/dist-es/commands/CreateWorkspaceCommand.js +18 -41
  33. package/dist-es/commands/DeleteAlertManagerDefinitionCommand.js +18 -41
  34. package/dist-es/commands/DeleteLoggingConfigurationCommand.js +18 -41
  35. package/dist-es/commands/DeleteRuleGroupsNamespaceCommand.js +18 -41
  36. package/dist-es/commands/DeleteScraperCommand.js +18 -41
  37. package/dist-es/commands/DeleteWorkspaceCommand.js +18 -41
  38. package/dist-es/commands/DescribeAlertManagerDefinitionCommand.js +18 -41
  39. package/dist-es/commands/DescribeLoggingConfigurationCommand.js +18 -41
  40. package/dist-es/commands/DescribeRuleGroupsNamespaceCommand.js +18 -41
  41. package/dist-es/commands/DescribeScraperCommand.js +18 -41
  42. package/dist-es/commands/DescribeWorkspaceCommand.js +18 -41
  43. package/dist-es/commands/GetDefaultScraperConfigurationCommand.js +18 -41
  44. package/dist-es/commands/ListRuleGroupsNamespacesCommand.js +18 -41
  45. package/dist-es/commands/ListScrapersCommand.js +18 -41
  46. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  47. package/dist-es/commands/ListWorkspacesCommand.js +18 -41
  48. package/dist-es/commands/PutAlertManagerDefinitionCommand.js +18 -41
  49. package/dist-es/commands/PutRuleGroupsNamespaceCommand.js +18 -41
  50. package/dist-es/commands/TagResourceCommand.js +18 -41
  51. package/dist-es/commands/UntagResourceCommand.js +18 -41
  52. package/dist-es/commands/UpdateLoggingConfigurationCommand.js +18 -41
  53. package/dist-es/commands/UpdateWorkspaceAliasCommand.js +18 -41
  54. package/dist-es/endpoint/EndpointParameters.js +6 -0
  55. package/dist-types/commands/CreateAlertManagerDefinitionCommand.d.ts +6 -21
  56. package/dist-types/commands/CreateLoggingConfigurationCommand.d.ts +6 -21
  57. package/dist-types/commands/CreateRuleGroupsNamespaceCommand.d.ts +6 -21
  58. package/dist-types/commands/CreateScraperCommand.d.ts +6 -21
  59. package/dist-types/commands/CreateWorkspaceCommand.d.ts +6 -21
  60. package/dist-types/commands/DeleteAlertManagerDefinitionCommand.d.ts +6 -21
  61. package/dist-types/commands/DeleteLoggingConfigurationCommand.d.ts +6 -21
  62. package/dist-types/commands/DeleteRuleGroupsNamespaceCommand.d.ts +6 -21
  63. package/dist-types/commands/DeleteScraperCommand.d.ts +6 -21
  64. package/dist-types/commands/DeleteWorkspaceCommand.d.ts +6 -21
  65. package/dist-types/commands/DescribeAlertManagerDefinitionCommand.d.ts +6 -21
  66. package/dist-types/commands/DescribeLoggingConfigurationCommand.d.ts +6 -21
  67. package/dist-types/commands/DescribeRuleGroupsNamespaceCommand.d.ts +6 -21
  68. package/dist-types/commands/DescribeScraperCommand.d.ts +6 -21
  69. package/dist-types/commands/DescribeWorkspaceCommand.d.ts +6 -21
  70. package/dist-types/commands/GetDefaultScraperConfigurationCommand.d.ts +6 -21
  71. package/dist-types/commands/ListRuleGroupsNamespacesCommand.d.ts +6 -21
  72. package/dist-types/commands/ListScrapersCommand.d.ts +6 -21
  73. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  74. package/dist-types/commands/ListWorkspacesCommand.d.ts +6 -21
  75. package/dist-types/commands/PutAlertManagerDefinitionCommand.d.ts +6 -21
  76. package/dist-types/commands/PutRuleGroupsNamespaceCommand.d.ts +6 -21
  77. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  78. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  79. package/dist-types/commands/UpdateLoggingConfigurationCommand.d.ts +6 -21
  80. package/dist-types/commands/UpdateWorkspaceAliasCommand.d.ts +6 -21
  81. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  82. package/dist-types/ts3.4/commands/CreateAlertManagerDefinitionCommand.d.ts +12 -24
  83. package/dist-types/ts3.4/commands/CreateLoggingConfigurationCommand.d.ts +12 -24
  84. package/dist-types/ts3.4/commands/CreateRuleGroupsNamespaceCommand.d.ts +12 -24
  85. package/dist-types/ts3.4/commands/CreateScraperCommand.d.ts +14 -23
  86. package/dist-types/ts3.4/commands/CreateWorkspaceCommand.d.ts +14 -23
  87. package/dist-types/ts3.4/commands/DeleteAlertManagerDefinitionCommand.d.ts +12 -24
  88. package/dist-types/ts3.4/commands/DeleteLoggingConfigurationCommand.d.ts +12 -24
  89. package/dist-types/ts3.4/commands/DeleteRuleGroupsNamespaceCommand.d.ts +12 -24
  90. package/dist-types/ts3.4/commands/DeleteScraperCommand.d.ts +14 -23
  91. package/dist-types/ts3.4/commands/DeleteWorkspaceCommand.d.ts +14 -23
  92. package/dist-types/ts3.4/commands/DescribeAlertManagerDefinitionCommand.d.ts +12 -24
  93. package/dist-types/ts3.4/commands/DescribeLoggingConfigurationCommand.d.ts +12 -24
  94. package/dist-types/ts3.4/commands/DescribeRuleGroupsNamespaceCommand.d.ts +12 -24
  95. package/dist-types/ts3.4/commands/DescribeScraperCommand.d.ts +14 -23
  96. package/dist-types/ts3.4/commands/DescribeWorkspaceCommand.d.ts +14 -23
  97. package/dist-types/ts3.4/commands/GetDefaultScraperConfigurationCommand.d.ts +12 -24
  98. package/dist-types/ts3.4/commands/ListRuleGroupsNamespacesCommand.d.ts +12 -24
  99. package/dist-types/ts3.4/commands/ListScrapersCommand.d.ts +14 -23
  100. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  101. package/dist-types/ts3.4/commands/ListWorkspacesCommand.d.ts +14 -23
  102. package/dist-types/ts3.4/commands/PutAlertManagerDefinitionCommand.d.ts +12 -24
  103. package/dist-types/ts3.4/commands/PutRuleGroupsNamespaceCommand.d.ts +12 -24
  104. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  105. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  106. package/dist-types/ts3.4/commands/UpdateLoggingConfigurationCommand.d.ts +12 -24
  107. package/dist-types/ts3.4/commands/UpdateWorkspaceAliasCommand.d.ts +12 -24
  108. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  109. package/package.json +9 -9
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class DeleteWorkspaceCommand extends smithy_client_1.Command {
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
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteWorkspaceCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "DeleteWorkspaceCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "DeleteWorkspace",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_DeleteWorkspaceCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_DeleteWorkspaceCommand)(output, context);
49
- }
10
+ class DeleteWorkspaceCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AmazonPrometheusService", "DeleteWorkspace", {})
22
+ .n("AmpClient", "DeleteWorkspaceCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_DeleteWorkspaceCommand)
25
+ .de(Aws_restJson1_1.de_DeleteWorkspaceCommand)
26
+ .build() {
50
27
  }
51
28
  exports.DeleteWorkspaceCommand = DeleteWorkspaceCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class DescribeAlertManagerDefinitionCommand extends smithy_client_1.Command {
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
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeAlertManagerDefinitionCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "DescribeAlertManagerDefinitionCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "DescribeAlertManagerDefinition",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_DescribeAlertManagerDefinitionCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_DescribeAlertManagerDefinitionCommand)(output, context);
49
- }
10
+ class DescribeAlertManagerDefinitionCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AmazonPrometheusService", "DescribeAlertManagerDefinition", {})
22
+ .n("AmpClient", "DescribeAlertManagerDefinitionCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_DescribeAlertManagerDefinitionCommand)
25
+ .de(Aws_restJson1_1.de_DescribeAlertManagerDefinitionCommand)
26
+ .build() {
50
27
  }
51
28
  exports.DescribeAlertManagerDefinitionCommand = DescribeAlertManagerDefinitionCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class DescribeLoggingConfigurationCommand extends smithy_client_1.Command {
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
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeLoggingConfigurationCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "DescribeLoggingConfigurationCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "DescribeLoggingConfiguration",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_DescribeLoggingConfigurationCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_DescribeLoggingConfigurationCommand)(output, context);
49
- }
10
+ class DescribeLoggingConfigurationCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AmazonPrometheusService", "DescribeLoggingConfiguration", {})
22
+ .n("AmpClient", "DescribeLoggingConfigurationCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_DescribeLoggingConfigurationCommand)
25
+ .de(Aws_restJson1_1.de_DescribeLoggingConfigurationCommand)
26
+ .build() {
50
27
  }
51
28
  exports.DescribeLoggingConfigurationCommand = DescribeLoggingConfigurationCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class DescribeRuleGroupsNamespaceCommand extends smithy_client_1.Command {
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
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeRuleGroupsNamespaceCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "DescribeRuleGroupsNamespaceCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "DescribeRuleGroupsNamespace",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_DescribeRuleGroupsNamespaceCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_DescribeRuleGroupsNamespaceCommand)(output, context);
49
- }
10
+ class DescribeRuleGroupsNamespaceCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AmazonPrometheusService", "DescribeRuleGroupsNamespace", {})
22
+ .n("AmpClient", "DescribeRuleGroupsNamespaceCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_DescribeRuleGroupsNamespaceCommand)
25
+ .de(Aws_restJson1_1.de_DescribeRuleGroupsNamespaceCommand)
26
+ .build() {
50
27
  }
51
28
  exports.DescribeRuleGroupsNamespaceCommand = DescribeRuleGroupsNamespaceCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class DescribeScraperCommand extends smithy_client_1.Command {
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
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeScraperCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "DescribeScraperCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "DescribeScraper",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_DescribeScraperCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_DescribeScraperCommand)(output, context);
49
- }
10
+ class DescribeScraperCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AmazonPrometheusService", "DescribeScraper", {})
22
+ .n("AmpClient", "DescribeScraperCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_DescribeScraperCommand)
25
+ .de(Aws_restJson1_1.de_DescribeScraperCommand)
26
+ .build() {
50
27
  }
51
28
  exports.DescribeScraperCommand = DescribeScraperCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class DescribeWorkspaceCommand extends smithy_client_1.Command {
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
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeWorkspaceCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "DescribeWorkspaceCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "DescribeWorkspace",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_DescribeWorkspaceCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_DescribeWorkspaceCommand)(output, context);
49
- }
10
+ class DescribeWorkspaceCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AmazonPrometheusService", "DescribeWorkspace", {})
22
+ .n("AmpClient", "DescribeWorkspaceCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_DescribeWorkspaceCommand)
25
+ .de(Aws_restJson1_1.de_DescribeWorkspaceCommand)
26
+ .build() {
50
27
  }
51
28
  exports.DescribeWorkspaceCommand = DescribeWorkspaceCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class GetDefaultScraperConfigurationCommand extends smithy_client_1.Command {
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
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetDefaultScraperConfigurationCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "GetDefaultScraperConfigurationCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "GetDefaultScraperConfiguration",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_GetDefaultScraperConfigurationCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_GetDefaultScraperConfigurationCommand)(output, context);
49
- }
10
+ class GetDefaultScraperConfigurationCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AmazonPrometheusService", "GetDefaultScraperConfiguration", {})
22
+ .n("AmpClient", "GetDefaultScraperConfigurationCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_GetDefaultScraperConfigurationCommand)
25
+ .de(Aws_restJson1_1.de_GetDefaultScraperConfigurationCommand)
26
+ .build() {
50
27
  }
51
28
  exports.GetDefaultScraperConfigurationCommand = GetDefaultScraperConfigurationCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class ListRuleGroupsNamespacesCommand extends smithy_client_1.Command {
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
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListRuleGroupsNamespacesCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "ListRuleGroupsNamespacesCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "ListRuleGroupsNamespaces",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_ListRuleGroupsNamespacesCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_ListRuleGroupsNamespacesCommand)(output, context);
49
- }
10
+ class ListRuleGroupsNamespacesCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AmazonPrometheusService", "ListRuleGroupsNamespaces", {})
22
+ .n("AmpClient", "ListRuleGroupsNamespacesCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_ListRuleGroupsNamespacesCommand)
25
+ .de(Aws_restJson1_1.de_ListRuleGroupsNamespacesCommand)
26
+ .build() {
50
27
  }
51
28
  exports.ListRuleGroupsNamespacesCommand = ListRuleGroupsNamespacesCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class ListScrapersCommand extends smithy_client_1.Command {
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
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListScrapersCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "ListScrapersCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "ListScrapers",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_ListScrapersCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_ListScrapersCommand)(output, context);
49
- }
10
+ class ListScrapersCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AmazonPrometheusService", "ListScrapers", {})
22
+ .n("AmpClient", "ListScrapersCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_ListScrapersCommand)
25
+ .de(Aws_restJson1_1.de_ListScrapersCommand)
26
+ .build() {
50
27
  }
51
28
  exports.ListScrapersCommand = ListScrapersCommand;