@aws-sdk/client-amp 3.479.0 → 3.484.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 +11 -11
@@ -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_CreateLoggingConfigurationCommand, se_CreateLoggingConfigurationCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CreateLoggingConfigurationCommand 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, CreateLoggingConfigurationCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmpClient";
26
- const commandName = "CreateLoggingConfigurationCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonPrometheusService",
35
- operation: "CreateLoggingConfiguration",
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_CreateLoggingConfigurationCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateLoggingConfigurationCommand(output, context);
46
- }
7
+ export class CreateLoggingConfigurationCommand 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", "CreateLoggingConfiguration", {})
19
+ .n("AmpClient", "CreateLoggingConfigurationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateLoggingConfigurationCommand)
22
+ .de(de_CreateLoggingConfigurationCommand)
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_CreateRuleGroupsNamespaceCommand, se_CreateRuleGroupsNamespaceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CreateRuleGroupsNamespaceCommand 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, CreateRuleGroupsNamespaceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmpClient";
26
- const commandName = "CreateRuleGroupsNamespaceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonPrometheusService",
35
- operation: "CreateRuleGroupsNamespace",
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_CreateRuleGroupsNamespaceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateRuleGroupsNamespaceCommand(output, context);
46
- }
7
+ export class CreateRuleGroupsNamespaceCommand 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", "CreateRuleGroupsNamespace", {})
19
+ .n("AmpClient", "CreateRuleGroupsNamespaceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateRuleGroupsNamespaceCommand)
22
+ .de(de_CreateRuleGroupsNamespaceCommand)
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_CreateScraperCommand, se_CreateScraperCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CreateScraperCommand 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, CreateScraperCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmpClient";
26
- const commandName = "CreateScraperCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonPrometheusService",
35
- operation: "CreateScraper",
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_CreateScraperCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateScraperCommand(output, context);
46
- }
7
+ export class CreateScraperCommand 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", "CreateScraper", {})
19
+ .n("AmpClient", "CreateScraperCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateScraperCommand)
22
+ .de(de_CreateScraperCommand)
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_CreateWorkspaceCommand, se_CreateWorkspaceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CreateWorkspaceCommand 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, CreateWorkspaceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmpClient";
26
- const commandName = "CreateWorkspaceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonPrometheusService",
35
- operation: "CreateWorkspace",
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_CreateWorkspaceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateWorkspaceCommand(output, context);
46
- }
7
+ export class CreateWorkspaceCommand 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", "CreateWorkspace", {})
19
+ .n("AmpClient", "CreateWorkspaceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateWorkspaceCommand)
22
+ .de(de_CreateWorkspaceCommand)
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_DeleteAlertManagerDefinitionCommand, se_DeleteAlertManagerDefinitionCommand, } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class DeleteAlertManagerDefinitionCommand 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, DeleteAlertManagerDefinitionCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmpClient";
26
- const commandName = "DeleteAlertManagerDefinitionCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonPrometheusService",
35
- operation: "DeleteAlertManagerDefinition",
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_DeleteAlertManagerDefinitionCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteAlertManagerDefinitionCommand(output, context);
46
- }
7
+ export class DeleteAlertManagerDefinitionCommand 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", "DeleteAlertManagerDefinition", {})
19
+ .n("AmpClient", "DeleteAlertManagerDefinitionCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteAlertManagerDefinitionCommand)
22
+ .de(de_DeleteAlertManagerDefinitionCommand)
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_DeleteLoggingConfigurationCommand, se_DeleteLoggingConfigurationCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class DeleteLoggingConfigurationCommand 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, DeleteLoggingConfigurationCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmpClient";
26
- const commandName = "DeleteLoggingConfigurationCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonPrometheusService",
35
- operation: "DeleteLoggingConfiguration",
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_DeleteLoggingConfigurationCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteLoggingConfigurationCommand(output, context);
46
- }
7
+ export class DeleteLoggingConfigurationCommand 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", "DeleteLoggingConfiguration", {})
19
+ .n("AmpClient", "DeleteLoggingConfigurationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteLoggingConfigurationCommand)
22
+ .de(de_DeleteLoggingConfigurationCommand)
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_DeleteRuleGroupsNamespaceCommand, se_DeleteRuleGroupsNamespaceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class DeleteRuleGroupsNamespaceCommand 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, DeleteRuleGroupsNamespaceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmpClient";
26
- const commandName = "DeleteRuleGroupsNamespaceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonPrometheusService",
35
- operation: "DeleteRuleGroupsNamespace",
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_DeleteRuleGroupsNamespaceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteRuleGroupsNamespaceCommand(output, context);
46
- }
7
+ export class DeleteRuleGroupsNamespaceCommand 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", "DeleteRuleGroupsNamespace", {})
19
+ .n("AmpClient", "DeleteRuleGroupsNamespaceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteRuleGroupsNamespaceCommand)
22
+ .de(de_DeleteRuleGroupsNamespaceCommand)
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_DeleteScraperCommand, se_DeleteScraperCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class DeleteScraperCommand 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, DeleteScraperCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmpClient";
26
- const commandName = "DeleteScraperCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonPrometheusService",
35
- operation: "DeleteScraper",
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_DeleteScraperCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteScraperCommand(output, context);
46
- }
7
+ export class DeleteScraperCommand 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", "DeleteScraper", {})
19
+ .n("AmpClient", "DeleteScraperCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteScraperCommand)
22
+ .de(de_DeleteScraperCommand)
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_DeleteWorkspaceCommand, se_DeleteWorkspaceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class DeleteWorkspaceCommand 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, DeleteWorkspaceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmpClient";
26
- const commandName = "DeleteWorkspaceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmazonPrometheusService",
35
- operation: "DeleteWorkspace",
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_DeleteWorkspaceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteWorkspaceCommand(output, context);
46
- }
7
+ export class DeleteWorkspaceCommand 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", "DeleteWorkspace", {})
19
+ .n("AmpClient", "DeleteWorkspaceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteWorkspaceCommand)
22
+ .de(de_DeleteWorkspaceCommand)
23
+ .build() {
47
24
  }