@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
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListWorkspacesCommand, se_ListWorkspacesCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListWorkspacesCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListWorkspacesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmpClient";
26
- const commandName = "ListWorkspacesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonPrometheusService",
35
- operation: "ListWorkspaces",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListWorkspacesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListWorkspacesCommand(output, context);
46
- }
7
+ export class ListWorkspacesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonPrometheusService", "ListWorkspaces", {})
19
+ .n("AmpClient", "ListWorkspacesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListWorkspacesCommand)
22
+ .de(de_ListWorkspacesCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_PutAlertManagerDefinitionCommand, se_PutAlertManagerDefinitionCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class PutAlertManagerDefinitionCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, PutAlertManagerDefinitionCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmpClient";
26
- const commandName = "PutAlertManagerDefinitionCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonPrometheusService",
35
- operation: "PutAlertManagerDefinition",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_PutAlertManagerDefinitionCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_PutAlertManagerDefinitionCommand(output, context);
46
- }
7
+ export class PutAlertManagerDefinitionCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonPrometheusService", "PutAlertManagerDefinition", {})
19
+ .n("AmpClient", "PutAlertManagerDefinitionCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_PutAlertManagerDefinitionCommand)
22
+ .de(de_PutAlertManagerDefinitionCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_PutRuleGroupsNamespaceCommand, se_PutRuleGroupsNamespaceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class PutRuleGroupsNamespaceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, PutRuleGroupsNamespaceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmpClient";
26
- const commandName = "PutRuleGroupsNamespaceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonPrometheusService",
35
- operation: "PutRuleGroupsNamespace",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_PutRuleGroupsNamespaceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_PutRuleGroupsNamespaceCommand(output, context);
46
- }
7
+ export class PutRuleGroupsNamespaceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonPrometheusService", "PutRuleGroupsNamespace", {})
19
+ .n("AmpClient", "PutRuleGroupsNamespaceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_PutRuleGroupsNamespaceCommand)
22
+ .de(de_PutRuleGroupsNamespaceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class TagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmpClient";
26
- const commandName = "TagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonPrometheusService",
35
- operation: "TagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_TagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_TagResourceCommand(output, context);
46
- }
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonPrometheusService", "TagResource", {})
19
+ .n("AmpClient", "TagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_TagResourceCommand)
22
+ .de(de_TagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UntagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmpClient";
26
- const commandName = "UntagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonPrometheusService",
35
- operation: "UntagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UntagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UntagResourceCommand(output, context);
46
- }
7
+ export class UntagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonPrometheusService", "UntagResource", {})
19
+ .n("AmpClient", "UntagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UntagResourceCommand)
22
+ .de(de_UntagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateLoggingConfigurationCommand, se_UpdateLoggingConfigurationCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateLoggingConfigurationCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateLoggingConfigurationCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmpClient";
26
- const commandName = "UpdateLoggingConfigurationCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonPrometheusService",
35
- operation: "UpdateLoggingConfiguration",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateLoggingConfigurationCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateLoggingConfigurationCommand(output, context);
46
- }
7
+ export class UpdateLoggingConfigurationCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonPrometheusService", "UpdateLoggingConfiguration", {})
19
+ .n("AmpClient", "UpdateLoggingConfigurationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateLoggingConfigurationCommand)
22
+ .de(de_UpdateLoggingConfigurationCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateWorkspaceAliasCommand, se_UpdateWorkspaceAliasCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateWorkspaceAliasCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateWorkspaceAliasCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmpClient";
26
- const commandName = "UpdateWorkspaceAliasCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonPrometheusService",
35
- operation: "UpdateWorkspaceAlias",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateWorkspaceAliasCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateWorkspaceAliasCommand(output, context);
46
- }
7
+ export class UpdateWorkspaceAliasCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonPrometheusService", "UpdateWorkspaceAlias", {})
19
+ .n("AmpClient", "UpdateWorkspaceAliasCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateWorkspaceAliasCommand)
22
+ .de(de_UpdateWorkspaceAliasCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "aps",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
5
4
  import { CreateAlertManagerDefinitionRequest, CreateAlertManagerDefinitionResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateAlertManagerDefinitionCommandInput extends CreateAlertMan
21
20
  */
22
21
  export interface CreateAlertManagerDefinitionCommandOutput extends CreateAlertManagerDefinitionResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateAlertManagerDefinitionCommand_base: {
24
+ new (input: CreateAlertManagerDefinitionCommandInput): import("@smithy/smithy-client").CommandImpl<CreateAlertManagerDefinitionCommandInput, CreateAlertManagerDefinitionCommandOutput, AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * Create an alert manager definition.
@@ -77,23 +80,5 @@ export interface CreateAlertManagerDefinitionCommandOutput extends CreateAlertMa
77
80
  * <p>Base exception class for all service exceptions from Amp service.</p>
78
81
  *
79
82
  */
80
- export declare class CreateAlertManagerDefinitionCommand extends $Command<CreateAlertManagerDefinitionCommandInput, CreateAlertManagerDefinitionCommandOutput, AmpClientResolvedConfig> {
81
- readonly input: CreateAlertManagerDefinitionCommandInput;
82
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
83
- /**
84
- * @public
85
- */
86
- constructor(input: CreateAlertManagerDefinitionCommandInput);
87
- /**
88
- * @internal
89
- */
90
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmpClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateAlertManagerDefinitionCommandInput, CreateAlertManagerDefinitionCommandOutput>;
91
- /**
92
- * @internal
93
- */
94
- private serialize;
95
- /**
96
- * @internal
97
- */
98
- private deserialize;
83
+ export declare class CreateAlertManagerDefinitionCommand extends CreateAlertManagerDefinitionCommand_base {
99
84
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
5
4
  import { CreateLoggingConfigurationRequest, CreateLoggingConfigurationResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateLoggingConfigurationCommandInput extends CreateLoggingCon
21
20
  */
22
21
  export interface CreateLoggingConfigurationCommandOutput extends CreateLoggingConfigurationResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateLoggingConfigurationCommand_base: {
24
+ new (input: CreateLoggingConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<CreateLoggingConfigurationCommandInput, CreateLoggingConfigurationCommandOutput, AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * Create logging configuration.
@@ -68,23 +71,5 @@ export interface CreateLoggingConfigurationCommandOutput extends CreateLoggingCo
68
71
  * <p>Base exception class for all service exceptions from Amp service.</p>
69
72
  *
70
73
  */
71
- export declare class CreateLoggingConfigurationCommand extends $Command<CreateLoggingConfigurationCommandInput, CreateLoggingConfigurationCommandOutput, AmpClientResolvedConfig> {
72
- readonly input: CreateLoggingConfigurationCommandInput;
73
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
74
- /**
75
- * @public
76
- */
77
- constructor(input: CreateLoggingConfigurationCommandInput);
78
- /**
79
- * @internal
80
- */
81
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmpClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateLoggingConfigurationCommandInput, CreateLoggingConfigurationCommandOutput>;
82
- /**
83
- * @internal
84
- */
85
- private serialize;
86
- /**
87
- * @internal
88
- */
89
- private deserialize;
74
+ export declare class CreateLoggingConfigurationCommand extends CreateLoggingConfigurationCommand_base {
90
75
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmpClient";
5
4
  import { CreateRuleGroupsNamespaceRequest, CreateRuleGroupsNamespaceResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateRuleGroupsNamespaceCommandInput extends CreateRuleGroupsN
21
20
  */
22
21
  export interface CreateRuleGroupsNamespaceCommandOutput extends CreateRuleGroupsNamespaceResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateRuleGroupsNamespaceCommand_base: {
24
+ new (input: CreateRuleGroupsNamespaceCommandInput): import("@smithy/smithy-client").CommandImpl<CreateRuleGroupsNamespaceCommandInput, CreateRuleGroupsNamespaceCommandOutput, AmpClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * Create a rule group namespace.
@@ -86,23 +89,5 @@ export interface CreateRuleGroupsNamespaceCommandOutput extends CreateRuleGroups
86
89
  * <p>Base exception class for all service exceptions from Amp service.</p>
87
90
  *
88
91
  */
89
- export declare class CreateRuleGroupsNamespaceCommand extends $Command<CreateRuleGroupsNamespaceCommandInput, CreateRuleGroupsNamespaceCommandOutput, AmpClientResolvedConfig> {
90
- readonly input: CreateRuleGroupsNamespaceCommandInput;
91
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
92
- /**
93
- * @public
94
- */
95
- constructor(input: CreateRuleGroupsNamespaceCommandInput);
96
- /**
97
- * @internal
98
- */
99
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmpClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateRuleGroupsNamespaceCommandInput, CreateRuleGroupsNamespaceCommandOutput>;
100
- /**
101
- * @internal
102
- */
103
- private serialize;
104
- /**
105
- * @internal
106
- */
107
- private deserialize;
92
+ export declare class CreateRuleGroupsNamespaceCommand extends CreateRuleGroupsNamespaceCommand_base {
108
93
  }