@aws-sdk/client-pi 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 (57) hide show
  1. package/dist-cjs/commands/CreatePerformanceAnalysisReportCommand.js +18 -41
  2. package/dist-cjs/commands/DeletePerformanceAnalysisReportCommand.js +18 -41
  3. package/dist-cjs/commands/DescribeDimensionKeysCommand.js +18 -41
  4. package/dist-cjs/commands/GetDimensionKeyDetailsCommand.js +18 -41
  5. package/dist-cjs/commands/GetPerformanceAnalysisReportCommand.js +18 -41
  6. package/dist-cjs/commands/GetResourceMetadataCommand.js +18 -41
  7. package/dist-cjs/commands/GetResourceMetricsCommand.js +18 -41
  8. package/dist-cjs/commands/ListAvailableResourceDimensionsCommand.js +18 -41
  9. package/dist-cjs/commands/ListAvailableResourceMetricsCommand.js +18 -41
  10. package/dist-cjs/commands/ListPerformanceAnalysisReportsCommand.js +18 -41
  11. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  12. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  13. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  14. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  15. package/dist-es/commands/CreatePerformanceAnalysisReportCommand.js +18 -41
  16. package/dist-es/commands/DeletePerformanceAnalysisReportCommand.js +18 -41
  17. package/dist-es/commands/DescribeDimensionKeysCommand.js +18 -41
  18. package/dist-es/commands/GetDimensionKeyDetailsCommand.js +18 -41
  19. package/dist-es/commands/GetPerformanceAnalysisReportCommand.js +18 -41
  20. package/dist-es/commands/GetResourceMetadataCommand.js +18 -41
  21. package/dist-es/commands/GetResourceMetricsCommand.js +18 -41
  22. package/dist-es/commands/ListAvailableResourceDimensionsCommand.js +18 -41
  23. package/dist-es/commands/ListAvailableResourceMetricsCommand.js +18 -41
  24. package/dist-es/commands/ListPerformanceAnalysisReportsCommand.js +18 -41
  25. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  26. package/dist-es/commands/TagResourceCommand.js +18 -41
  27. package/dist-es/commands/UntagResourceCommand.js +18 -41
  28. package/dist-es/endpoint/EndpointParameters.js +6 -0
  29. package/dist-types/commands/CreatePerformanceAnalysisReportCommand.d.ts +6 -21
  30. package/dist-types/commands/DeletePerformanceAnalysisReportCommand.d.ts +6 -21
  31. package/dist-types/commands/DescribeDimensionKeysCommand.d.ts +6 -21
  32. package/dist-types/commands/GetDimensionKeyDetailsCommand.d.ts +6 -21
  33. package/dist-types/commands/GetPerformanceAnalysisReportCommand.d.ts +6 -21
  34. package/dist-types/commands/GetResourceMetadataCommand.d.ts +6 -21
  35. package/dist-types/commands/GetResourceMetricsCommand.d.ts +6 -21
  36. package/dist-types/commands/ListAvailableResourceDimensionsCommand.d.ts +6 -21
  37. package/dist-types/commands/ListAvailableResourceMetricsCommand.d.ts +6 -21
  38. package/dist-types/commands/ListPerformanceAnalysisReportsCommand.d.ts +6 -21
  39. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  40. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  41. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  42. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  43. package/dist-types/ts3.4/commands/CreatePerformanceAnalysisReportCommand.d.ts +12 -24
  44. package/dist-types/ts3.4/commands/DeletePerformanceAnalysisReportCommand.d.ts +12 -24
  45. package/dist-types/ts3.4/commands/DescribeDimensionKeysCommand.d.ts +12 -24
  46. package/dist-types/ts3.4/commands/GetDimensionKeyDetailsCommand.d.ts +12 -24
  47. package/dist-types/ts3.4/commands/GetPerformanceAnalysisReportCommand.d.ts +12 -24
  48. package/dist-types/ts3.4/commands/GetResourceMetadataCommand.d.ts +14 -23
  49. package/dist-types/ts3.4/commands/GetResourceMetricsCommand.d.ts +14 -23
  50. package/dist-types/ts3.4/commands/ListAvailableResourceDimensionsCommand.d.ts +12 -24
  51. package/dist-types/ts3.4/commands/ListAvailableResourceMetricsCommand.d.ts +12 -24
  52. package/dist-types/ts3.4/commands/ListPerformanceAnalysisReportsCommand.d.ts +12 -24
  53. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  54. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  55. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  56. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  57. 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_GetResourceMetadataCommand, se_GetResourceMetadataCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class GetResourceMetadataCommand 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, GetResourceMetadataCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "PIClient";
26
- const commandName = "GetResourceMetadataCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "PerformanceInsightsv20180227",
35
- operation: "GetResourceMetadata",
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_GetResourceMetadataCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetResourceMetadataCommand(output, context);
46
- }
7
+ export class GetResourceMetadataCommand 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("PerformanceInsightsv20180227", "GetResourceMetadata", {})
19
+ .n("PIClient", "GetResourceMetadataCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetResourceMetadataCommand)
22
+ .de(de_GetResourceMetadataCommand)
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_GetResourceMetricsCommand, se_GetResourceMetricsCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class GetResourceMetricsCommand 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, GetResourceMetricsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "PIClient";
26
- const commandName = "GetResourceMetricsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "PerformanceInsightsv20180227",
35
- operation: "GetResourceMetrics",
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_GetResourceMetricsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetResourceMetricsCommand(output, context);
46
- }
7
+ export class GetResourceMetricsCommand 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("PerformanceInsightsv20180227", "GetResourceMetrics", {})
19
+ .n("PIClient", "GetResourceMetricsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetResourceMetricsCommand)
22
+ .de(de_GetResourceMetricsCommand)
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_ListAvailableResourceDimensionsCommand, se_ListAvailableResourceDimensionsCommand, } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class ListAvailableResourceDimensionsCommand 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, ListAvailableResourceDimensionsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "PIClient";
26
- const commandName = "ListAvailableResourceDimensionsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "PerformanceInsightsv20180227",
35
- operation: "ListAvailableResourceDimensions",
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_ListAvailableResourceDimensionsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListAvailableResourceDimensionsCommand(output, context);
46
- }
7
+ export class ListAvailableResourceDimensionsCommand 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("PerformanceInsightsv20180227", "ListAvailableResourceDimensions", {})
19
+ .n("PIClient", "ListAvailableResourceDimensionsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListAvailableResourceDimensionsCommand)
22
+ .de(de_ListAvailableResourceDimensionsCommand)
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_ListAvailableResourceMetricsCommand, se_ListAvailableResourceMetricsCommand, } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class ListAvailableResourceMetricsCommand 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, ListAvailableResourceMetricsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "PIClient";
26
- const commandName = "ListAvailableResourceMetricsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "PerformanceInsightsv20180227",
35
- operation: "ListAvailableResourceMetrics",
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_ListAvailableResourceMetricsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListAvailableResourceMetricsCommand(output, context);
46
- }
7
+ export class ListAvailableResourceMetricsCommand 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("PerformanceInsightsv20180227", "ListAvailableResourceMetrics", {})
19
+ .n("PIClient", "ListAvailableResourceMetricsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListAvailableResourceMetricsCommand)
22
+ .de(de_ListAvailableResourceMetricsCommand)
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_ListPerformanceAnalysisReportsCommand, se_ListPerformanceAnalysisReportsCommand, } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class ListPerformanceAnalysisReportsCommand 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, ListPerformanceAnalysisReportsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "PIClient";
26
- const commandName = "ListPerformanceAnalysisReportsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "PerformanceInsightsv20180227",
35
- operation: "ListPerformanceAnalysisReports",
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_ListPerformanceAnalysisReportsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListPerformanceAnalysisReportsCommand(output, context);
46
- }
7
+ export class ListPerformanceAnalysisReportsCommand 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("PerformanceInsightsv20180227", "ListPerformanceAnalysisReports", {})
19
+ .n("PIClient", "ListPerformanceAnalysisReportsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListPerformanceAnalysisReportsCommand)
22
+ .de(de_ListPerformanceAnalysisReportsCommand)
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_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class ListTagsForResourceCommand 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, ListTagsForResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "PIClient";
26
- const commandName = "ListTagsForResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "PerformanceInsightsv20180227",
35
- operation: "ListTagsForResource",
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_ListTagsForResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListTagsForResourceCommand(output, context);
46
- }
7
+ export class ListTagsForResourceCommand 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("PerformanceInsightsv20180227", "ListTagsForResource", {})
19
+ .n("PIClient", "ListTagsForResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListTagsForResourceCommand)
22
+ .de(de_ListTagsForResourceCommand)
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_json1_1";
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 = "PIClient";
26
- const commandName = "TagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "PerformanceInsightsv20180227",
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("PerformanceInsightsv20180227", "TagResource", {})
19
+ .n("PIClient", "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_json1_1";
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 = "PIClient";
26
- const commandName = "UntagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "PerformanceInsightsv20180227",
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("PerformanceInsightsv20180227", "UntagResource", {})
19
+ .n("PIClient", "UntagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UntagResourceCommand)
22
+ .de(de_UntagResourceCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "pi",
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 { CreatePerformanceAnalysisReportRequest, CreatePerformanceAnalysisReportResponse } from "../models/models_0";
5
4
  import { PIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PIClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreatePerformanceAnalysisReportCommandInput extends CreatePerfo
21
20
  */
22
21
  export interface CreatePerformanceAnalysisReportCommandOutput extends CreatePerformanceAnalysisReportResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreatePerformanceAnalysisReportCommand_base: {
24
+ new (input: CreatePerformanceAnalysisReportCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePerformanceAnalysisReportCommandInput, CreatePerformanceAnalysisReportCommandOutput, PIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a new performance analysis report for a specific time period for the
@@ -70,23 +73,5 @@ export interface CreatePerformanceAnalysisReportCommandOutput extends CreatePerf
70
73
  * <p>Base exception class for all service exceptions from PI service.</p>
71
74
  *
72
75
  */
73
- export declare class CreatePerformanceAnalysisReportCommand extends $Command<CreatePerformanceAnalysisReportCommandInput, CreatePerformanceAnalysisReportCommandOutput, PIClientResolvedConfig> {
74
- readonly input: CreatePerformanceAnalysisReportCommandInput;
75
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
76
- /**
77
- * @public
78
- */
79
- constructor(input: CreatePerformanceAnalysisReportCommandInput);
80
- /**
81
- * @internal
82
- */
83
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PIClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreatePerformanceAnalysisReportCommandInput, CreatePerformanceAnalysisReportCommandOutput>;
84
- /**
85
- * @internal
86
- */
87
- private serialize;
88
- /**
89
- * @internal
90
- */
91
- private deserialize;
76
+ export declare class CreatePerformanceAnalysisReportCommand extends CreatePerformanceAnalysisReportCommand_base {
92
77
  }
@@ -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 { DeletePerformanceAnalysisReportRequest, DeletePerformanceAnalysisReportResponse } from "../models/models_0";
5
4
  import { PIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PIClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DeletePerformanceAnalysisReportCommandInput extends DeletePerfo
21
20
  */
22
21
  export interface DeletePerformanceAnalysisReportCommandOutput extends DeletePerformanceAnalysisReportResponse, __MetadataBearer {
23
22
  }
23
+ declare const DeletePerformanceAnalysisReportCommand_base: {
24
+ new (input: DeletePerformanceAnalysisReportCommandInput): import("@smithy/smithy-client").CommandImpl<DeletePerformanceAnalysisReportCommandInput, DeletePerformanceAnalysisReportCommandOutput, PIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Deletes a performance analysis report.</p>
@@ -60,23 +63,5 @@ export interface DeletePerformanceAnalysisReportCommandOutput extends DeletePerf
60
63
  * <p>Base exception class for all service exceptions from PI service.</p>
61
64
  *
62
65
  */
63
- export declare class DeletePerformanceAnalysisReportCommand extends $Command<DeletePerformanceAnalysisReportCommandInput, DeletePerformanceAnalysisReportCommandOutput, PIClientResolvedConfig> {
64
- readonly input: DeletePerformanceAnalysisReportCommandInput;
65
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
66
- /**
67
- * @public
68
- */
69
- constructor(input: DeletePerformanceAnalysisReportCommandInput);
70
- /**
71
- * @internal
72
- */
73
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PIClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeletePerformanceAnalysisReportCommandInput, DeletePerformanceAnalysisReportCommandOutput>;
74
- /**
75
- * @internal
76
- */
77
- private serialize;
78
- /**
79
- * @internal
80
- */
81
- private deserialize;
66
+ export declare class DeletePerformanceAnalysisReportCommand extends DeletePerformanceAnalysisReportCommand_base {
82
67
  }