@aws-sdk/client-amp 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 (113) 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-cjs/protocols/Aws_restJson1.js +4 -0
  29. package/dist-es/commands/CreateAlertManagerDefinitionCommand.js +18 -41
  30. package/dist-es/commands/CreateLoggingConfigurationCommand.js +18 -41
  31. package/dist-es/commands/CreateRuleGroupsNamespaceCommand.js +18 -41
  32. package/dist-es/commands/CreateScraperCommand.js +18 -41
  33. package/dist-es/commands/CreateWorkspaceCommand.js +18 -41
  34. package/dist-es/commands/DeleteAlertManagerDefinitionCommand.js +18 -41
  35. package/dist-es/commands/DeleteLoggingConfigurationCommand.js +18 -41
  36. package/dist-es/commands/DeleteRuleGroupsNamespaceCommand.js +18 -41
  37. package/dist-es/commands/DeleteScraperCommand.js +18 -41
  38. package/dist-es/commands/DeleteWorkspaceCommand.js +18 -41
  39. package/dist-es/commands/DescribeAlertManagerDefinitionCommand.js +18 -41
  40. package/dist-es/commands/DescribeLoggingConfigurationCommand.js +18 -41
  41. package/dist-es/commands/DescribeRuleGroupsNamespaceCommand.js +18 -41
  42. package/dist-es/commands/DescribeScraperCommand.js +18 -41
  43. package/dist-es/commands/DescribeWorkspaceCommand.js +18 -41
  44. package/dist-es/commands/GetDefaultScraperConfigurationCommand.js +18 -41
  45. package/dist-es/commands/ListRuleGroupsNamespacesCommand.js +18 -41
  46. package/dist-es/commands/ListScrapersCommand.js +18 -41
  47. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  48. package/dist-es/commands/ListWorkspacesCommand.js +18 -41
  49. package/dist-es/commands/PutAlertManagerDefinitionCommand.js +18 -41
  50. package/dist-es/commands/PutRuleGroupsNamespaceCommand.js +18 -41
  51. package/dist-es/commands/TagResourceCommand.js +18 -41
  52. package/dist-es/commands/UntagResourceCommand.js +18 -41
  53. package/dist-es/commands/UpdateLoggingConfigurationCommand.js +18 -41
  54. package/dist-es/commands/UpdateWorkspaceAliasCommand.js +18 -41
  55. package/dist-es/endpoint/EndpointParameters.js +6 -0
  56. package/dist-es/protocols/Aws_restJson1.js +4 -0
  57. package/dist-types/commands/CreateAlertManagerDefinitionCommand.d.ts +6 -21
  58. package/dist-types/commands/CreateLoggingConfigurationCommand.d.ts +6 -21
  59. package/dist-types/commands/CreateRuleGroupsNamespaceCommand.d.ts +6 -21
  60. package/dist-types/commands/CreateScraperCommand.d.ts +6 -21
  61. package/dist-types/commands/CreateWorkspaceCommand.d.ts +8 -21
  62. package/dist-types/commands/DeleteAlertManagerDefinitionCommand.d.ts +6 -21
  63. package/dist-types/commands/DeleteLoggingConfigurationCommand.d.ts +6 -21
  64. package/dist-types/commands/DeleteRuleGroupsNamespaceCommand.d.ts +6 -21
  65. package/dist-types/commands/DeleteScraperCommand.d.ts +6 -21
  66. package/dist-types/commands/DeleteWorkspaceCommand.d.ts +6 -21
  67. package/dist-types/commands/DescribeAlertManagerDefinitionCommand.d.ts +6 -21
  68. package/dist-types/commands/DescribeLoggingConfigurationCommand.d.ts +6 -21
  69. package/dist-types/commands/DescribeRuleGroupsNamespaceCommand.d.ts +6 -21
  70. package/dist-types/commands/DescribeScraperCommand.d.ts +6 -21
  71. package/dist-types/commands/DescribeWorkspaceCommand.d.ts +7 -21
  72. package/dist-types/commands/GetDefaultScraperConfigurationCommand.d.ts +6 -21
  73. package/dist-types/commands/ListRuleGroupsNamespacesCommand.d.ts +6 -21
  74. package/dist-types/commands/ListScrapersCommand.d.ts +6 -21
  75. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  76. package/dist-types/commands/ListWorkspacesCommand.d.ts +7 -21
  77. package/dist-types/commands/PutAlertManagerDefinitionCommand.d.ts +6 -21
  78. package/dist-types/commands/PutRuleGroupsNamespaceCommand.d.ts +6 -21
  79. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  80. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  81. package/dist-types/commands/UpdateLoggingConfigurationCommand.d.ts +6 -21
  82. package/dist-types/commands/UpdateWorkspaceAliasCommand.d.ts +6 -21
  83. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  84. package/dist-types/models/models_0.d.ts +20 -0
  85. package/dist-types/ts3.4/commands/CreateAlertManagerDefinitionCommand.d.ts +12 -24
  86. package/dist-types/ts3.4/commands/CreateLoggingConfigurationCommand.d.ts +12 -24
  87. package/dist-types/ts3.4/commands/CreateRuleGroupsNamespaceCommand.d.ts +12 -24
  88. package/dist-types/ts3.4/commands/CreateScraperCommand.d.ts +14 -23
  89. package/dist-types/ts3.4/commands/CreateWorkspaceCommand.d.ts +14 -23
  90. package/dist-types/ts3.4/commands/DeleteAlertManagerDefinitionCommand.d.ts +12 -24
  91. package/dist-types/ts3.4/commands/DeleteLoggingConfigurationCommand.d.ts +12 -24
  92. package/dist-types/ts3.4/commands/DeleteRuleGroupsNamespaceCommand.d.ts +12 -24
  93. package/dist-types/ts3.4/commands/DeleteScraperCommand.d.ts +14 -23
  94. package/dist-types/ts3.4/commands/DeleteWorkspaceCommand.d.ts +14 -23
  95. package/dist-types/ts3.4/commands/DescribeAlertManagerDefinitionCommand.d.ts +12 -24
  96. package/dist-types/ts3.4/commands/DescribeLoggingConfigurationCommand.d.ts +12 -24
  97. package/dist-types/ts3.4/commands/DescribeRuleGroupsNamespaceCommand.d.ts +12 -24
  98. package/dist-types/ts3.4/commands/DescribeScraperCommand.d.ts +14 -23
  99. package/dist-types/ts3.4/commands/DescribeWorkspaceCommand.d.ts +14 -23
  100. package/dist-types/ts3.4/commands/GetDefaultScraperConfigurationCommand.d.ts +12 -24
  101. package/dist-types/ts3.4/commands/ListRuleGroupsNamespacesCommand.d.ts +12 -24
  102. package/dist-types/ts3.4/commands/ListScrapersCommand.d.ts +14 -23
  103. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  104. package/dist-types/ts3.4/commands/ListWorkspacesCommand.d.ts +14 -23
  105. package/dist-types/ts3.4/commands/PutAlertManagerDefinitionCommand.d.ts +12 -24
  106. package/dist-types/ts3.4/commands/PutRuleGroupsNamespaceCommand.d.ts +12 -24
  107. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  108. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  109. package/dist-types/ts3.4/commands/UpdateLoggingConfigurationCommand.d.ts +12 -24
  110. package/dist-types/ts3.4/commands/UpdateWorkspaceAliasCommand.d.ts +12 -24
  111. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  112. package/dist-types/ts3.4/models/models_0.d.ts +4 -0
  113. 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 CreateAlertManagerDefinitionCommand 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, CreateAlertManagerDefinitionCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "CreateAlertManagerDefinitionCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "CreateAlertManagerDefinition",
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_CreateAlertManagerDefinitionCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_CreateAlertManagerDefinitionCommand)(output, context);
49
- }
10
+ class CreateAlertManagerDefinitionCommand 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", "CreateAlertManagerDefinition", {})
22
+ .n("AmpClient", "CreateAlertManagerDefinitionCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_CreateAlertManagerDefinitionCommand)
25
+ .de(Aws_restJson1_1.de_CreateAlertManagerDefinitionCommand)
26
+ .build() {
50
27
  }
51
28
  exports.CreateAlertManagerDefinitionCommand = CreateAlertManagerDefinitionCommand;
@@ -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 CreateLoggingConfigurationCommand 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, CreateLoggingConfigurationCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "CreateLoggingConfigurationCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "CreateLoggingConfiguration",
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_CreateLoggingConfigurationCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_CreateLoggingConfigurationCommand)(output, context);
49
- }
10
+ class CreateLoggingConfigurationCommand 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", "CreateLoggingConfiguration", {})
22
+ .n("AmpClient", "CreateLoggingConfigurationCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_CreateLoggingConfigurationCommand)
25
+ .de(Aws_restJson1_1.de_CreateLoggingConfigurationCommand)
26
+ .build() {
50
27
  }
51
28
  exports.CreateLoggingConfigurationCommand = CreateLoggingConfigurationCommand;
@@ -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 CreateRuleGroupsNamespaceCommand 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, CreateRuleGroupsNamespaceCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "CreateRuleGroupsNamespaceCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "CreateRuleGroupsNamespace",
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_CreateRuleGroupsNamespaceCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_CreateRuleGroupsNamespaceCommand)(output, context);
49
- }
10
+ class CreateRuleGroupsNamespaceCommand 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", "CreateRuleGroupsNamespace", {})
22
+ .n("AmpClient", "CreateRuleGroupsNamespaceCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_CreateRuleGroupsNamespaceCommand)
25
+ .de(Aws_restJson1_1.de_CreateRuleGroupsNamespaceCommand)
26
+ .build() {
50
27
  }
51
28
  exports.CreateRuleGroupsNamespaceCommand = CreateRuleGroupsNamespaceCommand;
@@ -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 CreateScraperCommand 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, CreateScraperCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "CreateScraperCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "CreateScraper",
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_CreateScraperCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_CreateScraperCommand)(output, context);
49
- }
10
+ class CreateScraperCommand 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", "CreateScraper", {})
22
+ .n("AmpClient", "CreateScraperCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_CreateScraperCommand)
25
+ .de(Aws_restJson1_1.de_CreateScraperCommand)
26
+ .build() {
50
27
  }
51
28
  exports.CreateScraperCommand = CreateScraperCommand;
@@ -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 CreateWorkspaceCommand 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, CreateWorkspaceCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "CreateWorkspaceCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "CreateWorkspace",
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_CreateWorkspaceCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_CreateWorkspaceCommand)(output, context);
49
- }
10
+ class CreateWorkspaceCommand 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", "CreateWorkspace", {})
22
+ .n("AmpClient", "CreateWorkspaceCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_CreateWorkspaceCommand)
25
+ .de(Aws_restJson1_1.de_CreateWorkspaceCommand)
26
+ .build() {
50
27
  }
51
28
  exports.CreateWorkspaceCommand = CreateWorkspaceCommand;
@@ -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 DeleteAlertManagerDefinitionCommand 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, DeleteAlertManagerDefinitionCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "DeleteAlertManagerDefinitionCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "DeleteAlertManagerDefinition",
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_DeleteAlertManagerDefinitionCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_DeleteAlertManagerDefinitionCommand)(output, context);
49
- }
10
+ class DeleteAlertManagerDefinitionCommand 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", "DeleteAlertManagerDefinition", {})
22
+ .n("AmpClient", "DeleteAlertManagerDefinitionCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_DeleteAlertManagerDefinitionCommand)
25
+ .de(Aws_restJson1_1.de_DeleteAlertManagerDefinitionCommand)
26
+ .build() {
50
27
  }
51
28
  exports.DeleteAlertManagerDefinitionCommand = DeleteAlertManagerDefinitionCommand;
@@ -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 DeleteLoggingConfigurationCommand 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, DeleteLoggingConfigurationCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "DeleteLoggingConfigurationCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "DeleteLoggingConfiguration",
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_DeleteLoggingConfigurationCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_DeleteLoggingConfigurationCommand)(output, context);
49
- }
10
+ class DeleteLoggingConfigurationCommand 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", "DeleteLoggingConfiguration", {})
22
+ .n("AmpClient", "DeleteLoggingConfigurationCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_DeleteLoggingConfigurationCommand)
25
+ .de(Aws_restJson1_1.de_DeleteLoggingConfigurationCommand)
26
+ .build() {
50
27
  }
51
28
  exports.DeleteLoggingConfigurationCommand = DeleteLoggingConfigurationCommand;
@@ -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 DeleteRuleGroupsNamespaceCommand 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, DeleteRuleGroupsNamespaceCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "DeleteRuleGroupsNamespaceCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "DeleteRuleGroupsNamespace",
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_DeleteRuleGroupsNamespaceCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_DeleteRuleGroupsNamespaceCommand)(output, context);
49
- }
10
+ class DeleteRuleGroupsNamespaceCommand 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", "DeleteRuleGroupsNamespace", {})
22
+ .n("AmpClient", "DeleteRuleGroupsNamespaceCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_DeleteRuleGroupsNamespaceCommand)
25
+ .de(Aws_restJson1_1.de_DeleteRuleGroupsNamespaceCommand)
26
+ .build() {
50
27
  }
51
28
  exports.DeleteRuleGroupsNamespaceCommand = DeleteRuleGroupsNamespaceCommand;
@@ -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 DeleteScraperCommand 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, DeleteScraperCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "DeleteScraperCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "DeleteScraper",
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_DeleteScraperCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_DeleteScraperCommand)(output, context);
49
- }
10
+ class DeleteScraperCommand 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", "DeleteScraper", {})
22
+ .n("AmpClient", "DeleteScraperCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_DeleteScraperCommand)
25
+ .de(Aws_restJson1_1.de_DeleteScraperCommand)
26
+ .build() {
50
27
  }
51
28
  exports.DeleteScraperCommand = DeleteScraperCommand;