@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 ListTagsForResourceCommand 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, ListTagsForResourceCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "ListTagsForResourceCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "ListTagsForResource",
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_ListTagsForResourceCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_ListTagsForResourceCommand)(output, context);
49
- }
10
+ class ListTagsForResourceCommand 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", "ListTagsForResource", {})
22
+ .n("AmpClient", "ListTagsForResourceCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_ListTagsForResourceCommand)
25
+ .de(Aws_restJson1_1.de_ListTagsForResourceCommand)
26
+ .build() {
50
27
  }
51
28
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
@@ -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 ListWorkspacesCommand 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, ListWorkspacesCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "ListWorkspacesCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "ListWorkspaces",
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_ListWorkspacesCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_ListWorkspacesCommand)(output, context);
49
- }
10
+ class ListWorkspacesCommand 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", "ListWorkspaces", {})
22
+ .n("AmpClient", "ListWorkspacesCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_ListWorkspacesCommand)
25
+ .de(Aws_restJson1_1.de_ListWorkspacesCommand)
26
+ .build() {
50
27
  }
51
28
  exports.ListWorkspacesCommand = ListWorkspacesCommand;
@@ -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 PutAlertManagerDefinitionCommand 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, PutAlertManagerDefinitionCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "PutAlertManagerDefinitionCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "PutAlertManagerDefinition",
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_PutAlertManagerDefinitionCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_PutAlertManagerDefinitionCommand)(output, context);
49
- }
10
+ class PutAlertManagerDefinitionCommand 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", "PutAlertManagerDefinition", {})
22
+ .n("AmpClient", "PutAlertManagerDefinitionCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_PutAlertManagerDefinitionCommand)
25
+ .de(Aws_restJson1_1.de_PutAlertManagerDefinitionCommand)
26
+ .build() {
50
27
  }
51
28
  exports.PutAlertManagerDefinitionCommand = PutAlertManagerDefinitionCommand;
@@ -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 PutRuleGroupsNamespaceCommand 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, PutRuleGroupsNamespaceCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "PutRuleGroupsNamespaceCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "PutRuleGroupsNamespace",
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_PutRuleGroupsNamespaceCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_PutRuleGroupsNamespaceCommand)(output, context);
49
- }
10
+ class PutRuleGroupsNamespaceCommand 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", "PutRuleGroupsNamespace", {})
22
+ .n("AmpClient", "PutRuleGroupsNamespaceCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_PutRuleGroupsNamespaceCommand)
25
+ .de(Aws_restJson1_1.de_PutRuleGroupsNamespaceCommand)
26
+ .build() {
50
27
  }
51
28
  exports.PutRuleGroupsNamespaceCommand = PutRuleGroupsNamespaceCommand;
@@ -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 TagResourceCommand 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, TagResourceCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "TagResourceCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "TagResource",
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_TagResourceCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_TagResourceCommand)(output, context);
49
- }
10
+ class TagResourceCommand 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", "TagResource", {})
22
+ .n("AmpClient", "TagResourceCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_TagResourceCommand)
25
+ .de(Aws_restJson1_1.de_TagResourceCommand)
26
+ .build() {
50
27
  }
51
28
  exports.TagResourceCommand = TagResourceCommand;
@@ -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 UntagResourceCommand 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, UntagResourceCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "UntagResourceCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "UntagResource",
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_UntagResourceCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_UntagResourceCommand)(output, context);
49
- }
10
+ class UntagResourceCommand 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", "UntagResource", {})
22
+ .n("AmpClient", "UntagResourceCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_UntagResourceCommand)
25
+ .de(Aws_restJson1_1.de_UntagResourceCommand)
26
+ .build() {
50
27
  }
51
28
  exports.UntagResourceCommand = UntagResourceCommand;
@@ -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 UpdateLoggingConfigurationCommand 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, UpdateLoggingConfigurationCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "UpdateLoggingConfigurationCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "UpdateLoggingConfiguration",
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_UpdateLoggingConfigurationCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_UpdateLoggingConfigurationCommand)(output, context);
49
- }
10
+ class UpdateLoggingConfigurationCommand 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", "UpdateLoggingConfiguration", {})
22
+ .n("AmpClient", "UpdateLoggingConfigurationCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_UpdateLoggingConfigurationCommand)
25
+ .de(Aws_restJson1_1.de_UpdateLoggingConfigurationCommand)
26
+ .build() {
50
27
  }
51
28
  exports.UpdateLoggingConfigurationCommand = UpdateLoggingConfigurationCommand;
@@ -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 UpdateWorkspaceAliasCommand 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, UpdateWorkspaceAliasCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "AmpClient";
29
- const commandName = "UpdateWorkspaceAliasCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AmazonPrometheusService",
38
- operation: "UpdateWorkspaceAlias",
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_UpdateWorkspaceAliasCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_UpdateWorkspaceAliasCommand)(output, context);
49
- }
10
+ class UpdateWorkspaceAliasCommand 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", "UpdateWorkspaceAlias", {})
22
+ .n("AmpClient", "UpdateWorkspaceAliasCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_UpdateWorkspaceAliasCommand)
25
+ .de(Aws_restJson1_1.de_UpdateWorkspaceAliasCommand)
26
+ .build() {
50
27
  }
51
28
  exports.UpdateWorkspaceAliasCommand = UpdateWorkspaceAliasCommand;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveClientEndpointParameters = void 0;
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
5
  return {
6
6
  ...options,
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
10
10
  };
11
11
  };
12
12
  exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
13
+ exports.commonParams = {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
@@ -87,6 +87,7 @@ const se_CreateWorkspaceCommand = async (input, context) => {
87
87
  body = JSON.stringify((0, smithy_client_1.take)(input, {
88
88
  alias: [],
89
89
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
90
+ kmsKeyArn: [],
90
91
  tags: (_) => (0, smithy_client_1._json)(_),
91
92
  }));
92
93
  b.m("POST").h(headers).b(body);
@@ -586,6 +587,7 @@ const de_CreateWorkspaceCommand = async (output, context) => {
586
587
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
587
588
  const doc = (0, smithy_client_1.take)(data, {
588
589
  arn: smithy_client_1.expectString,
590
+ kmsKeyArn: smithy_client_1.expectString,
589
591
  status: smithy_client_1._json,
590
592
  tags: smithy_client_1._json,
591
593
  workspaceId: smithy_client_1.expectString,
@@ -1800,6 +1802,7 @@ const de_WorkspaceDescription = (output, context) => {
1800
1802
  alias: smithy_client_1.expectString,
1801
1803
  arn: smithy_client_1.expectString,
1802
1804
  createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1805
+ kmsKeyArn: smithy_client_1.expectString,
1803
1806
  prometheusEndpoint: smithy_client_1.expectString,
1804
1807
  status: smithy_client_1._json,
1805
1808
  tags: smithy_client_1._json,
@@ -1811,6 +1814,7 @@ const de_WorkspaceSummary = (output, context) => {
1811
1814
  alias: smithy_client_1.expectString,
1812
1815
  arn: smithy_client_1.expectString,
1813
1816
  createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1817
+ kmsKeyArn: smithy_client_1.expectString,
1814
1818
  status: smithy_client_1._json,
1815
1819
  tags: smithy_client_1._json,
1816
1820
  workspaceId: smithy_client_1.expectString,