@aws-sdk/client-pi 3.927.0 → 3.929.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 (37) hide show
  1. package/dist-cjs/index.js +561 -661
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/PIClient.js +2 -0
  4. package/dist-es/commands/CreatePerformanceAnalysisReportCommand.js +3 -9
  5. package/dist-es/commands/DeletePerformanceAnalysisReportCommand.js +3 -9
  6. package/dist-es/commands/DescribeDimensionKeysCommand.js +3 -9
  7. package/dist-es/commands/GetDimensionKeyDetailsCommand.js +3 -9
  8. package/dist-es/commands/GetPerformanceAnalysisReportCommand.js +3 -10
  9. package/dist-es/commands/GetResourceMetadataCommand.js +3 -9
  10. package/dist-es/commands/GetResourceMetricsCommand.js +3 -9
  11. package/dist-es/commands/ListAvailableResourceDimensionsCommand.js +3 -9
  12. package/dist-es/commands/ListAvailableResourceMetricsCommand.js +3 -9
  13. package/dist-es/commands/ListPerformanceAnalysisReportsCommand.js +3 -9
  14. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  15. package/dist-es/commands/TagResourceCommand.js +3 -9
  16. package/dist-es/commands/UntagResourceCommand.js +3 -9
  17. package/dist-es/models/models_0.js +0 -23
  18. package/dist-es/runtimeConfig.shared.js +7 -0
  19. package/dist-es/schemas/schemas_0.js +537 -0
  20. package/dist-types/PIClient.d.ts +10 -1
  21. package/dist-types/models/models_0.d.ts +0 -16
  22. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  23. package/dist-types/runtimeConfig.d.ts +1 -0
  24. package/dist-types/runtimeConfig.native.d.ts +1 -0
  25. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  26. package/dist-types/schemas/schemas_0.d.ts +94 -0
  27. package/dist-types/ts3.4/PIClient.d.ts +4 -0
  28. package/dist-types/ts3.4/models/models_0.d.ts +0 -10
  29. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  30. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  31. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  32. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  33. package/dist-types/ts3.4/schemas/schemas_0.d.ts +101 -0
  34. package/package.json +5 -5
  35. package/dist-es/protocols/Aws_json1_1.js +0 -539
  36. package/dist-types/protocols/Aws_json1_1.d.ts +0 -119
  37. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -161
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
5
6
  const smithy_client_1 = require("@smithy/smithy-client");
6
7
  const url_parser_1 = require("@smithy/url-parser");
7
8
  const util_base64_1 = require("@smithy/util-base64");
@@ -25,6 +26,12 @@ const getRuntimeConfig = (config) => {
25
26
  },
26
27
  ],
27
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
+ protocol: config?.protocol ??
30
+ new protocols_1.AwsJson1_1Protocol({
31
+ defaultNamespace: "com.amazonaws.pi",
32
+ serviceTarget: "PerformanceInsightsv20180227",
33
+ awsQueryCompatible: false,
34
+ }),
28
35
  serviceId: config?.serviceId ?? "PI",
29
36
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
30
37
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
4
4
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
5
  import { resolveRegionConfig } from "@smithy/config-resolver";
6
6
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
7
8
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
9
  import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
10
  import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
@@ -28,6 +29,7 @@ export class PIClient extends __Client {
28
29
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
29
30
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
30
31
  this.config = _config_8;
32
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
31
33
  this.middlewareStack.use(getUserAgentPlugin(this.config));
32
34
  this.middlewareStack.use(getRetryPlugin(this.config));
33
35
  this.middlewareStack.use(getContentLengthPlugin(this.config));
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_CreatePerformanceAnalysisReportCommand, se_CreatePerformanceAnalysisReportCommand, } from "../protocols/Aws_json1_1";
4
+ import { CreatePerformanceAnalysisReport } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class CreatePerformanceAnalysisReportCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("PerformanceInsightsv20180227", "CreatePerformanceAnalysisReport", {})
17
13
  .n("PIClient", "CreatePerformanceAnalysisReportCommand")
18
- .f(void 0, void 0)
19
- .ser(se_CreatePerformanceAnalysisReportCommand)
20
- .de(de_CreatePerformanceAnalysisReportCommand)
14
+ .sc(CreatePerformanceAnalysisReport)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DeletePerformanceAnalysisReportCommand, se_DeletePerformanceAnalysisReportCommand, } from "../protocols/Aws_json1_1";
4
+ import { DeletePerformanceAnalysisReport } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeletePerformanceAnalysisReportCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("PerformanceInsightsv20180227", "DeletePerformanceAnalysisReport", {})
17
13
  .n("PIClient", "DeletePerformanceAnalysisReportCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeletePerformanceAnalysisReportCommand)
20
- .de(de_DeletePerformanceAnalysisReportCommand)
14
+ .sc(DeletePerformanceAnalysisReport)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DescribeDimensionKeysCommand, se_DescribeDimensionKeysCommand } from "../protocols/Aws_json1_1";
4
+ import { DescribeDimensionKeys } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DescribeDimensionKeysCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("PerformanceInsightsv20180227", "DescribeDimensionKeys", {})
17
13
  .n("PIClient", "DescribeDimensionKeysCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DescribeDimensionKeysCommand)
20
- .de(de_DescribeDimensionKeysCommand)
14
+ .sc(DescribeDimensionKeys)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_GetDimensionKeyDetailsCommand, se_GetDimensionKeyDetailsCommand } from "../protocols/Aws_json1_1";
4
+ import { GetDimensionKeyDetails } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetDimensionKeyDetailsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("PerformanceInsightsv20180227", "GetDimensionKeyDetails", {})
17
13
  .n("PIClient", "GetDimensionKeyDetailsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetDimensionKeyDetailsCommand)
20
- .de(de_GetDimensionKeyDetailsCommand)
14
+ .sc(GetDimensionKeyDetails)
21
15
  .build() {
22
16
  }
@@ -1,23 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { GetPerformanceAnalysisReportResponseFilterSensitiveLog, } from "../models/models_0";
6
- import { de_GetPerformanceAnalysisReportCommand, se_GetPerformanceAnalysisReportCommand, } from "../protocols/Aws_json1_1";
4
+ import { GetPerformanceAnalysisReport } from "../schemas/schemas_0";
7
5
  export { $Command };
8
6
  export class GetPerformanceAnalysisReportCommand extends $Command
9
7
  .classBuilder()
10
8
  .ep(commonParams)
11
9
  .m(function (Command, cs, config, o) {
12
- return [
13
- getSerdePlugin(config, this.serialize, this.deserialize),
14
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
16
11
  })
17
12
  .s("PerformanceInsightsv20180227", "GetPerformanceAnalysisReport", {})
18
13
  .n("PIClient", "GetPerformanceAnalysisReportCommand")
19
- .f(void 0, GetPerformanceAnalysisReportResponseFilterSensitiveLog)
20
- .ser(se_GetPerformanceAnalysisReportCommand)
21
- .de(de_GetPerformanceAnalysisReportCommand)
14
+ .sc(GetPerformanceAnalysisReport)
22
15
  .build() {
23
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_GetResourceMetadataCommand, se_GetResourceMetadataCommand } from "../protocols/Aws_json1_1";
4
+ import { GetResourceMetadata } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetResourceMetadataCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("PerformanceInsightsv20180227", "GetResourceMetadata", {})
17
13
  .n("PIClient", "GetResourceMetadataCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetResourceMetadataCommand)
20
- .de(de_GetResourceMetadataCommand)
14
+ .sc(GetResourceMetadata)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_GetResourceMetricsCommand, se_GetResourceMetricsCommand } from "../protocols/Aws_json1_1";
4
+ import { GetResourceMetrics } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetResourceMetricsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("PerformanceInsightsv20180227", "GetResourceMetrics", {})
17
13
  .n("PIClient", "GetResourceMetricsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetResourceMetricsCommand)
20
- .de(de_GetResourceMetricsCommand)
14
+ .sc(GetResourceMetrics)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListAvailableResourceDimensionsCommand, se_ListAvailableResourceDimensionsCommand, } from "../protocols/Aws_json1_1";
4
+ import { ListAvailableResourceDimensions } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListAvailableResourceDimensionsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("PerformanceInsightsv20180227", "ListAvailableResourceDimensions", {})
17
13
  .n("PIClient", "ListAvailableResourceDimensionsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListAvailableResourceDimensionsCommand)
20
- .de(de_ListAvailableResourceDimensionsCommand)
14
+ .sc(ListAvailableResourceDimensions)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListAvailableResourceMetricsCommand, se_ListAvailableResourceMetricsCommand, } from "../protocols/Aws_json1_1";
4
+ import { ListAvailableResourceMetrics } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListAvailableResourceMetricsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("PerformanceInsightsv20180227", "ListAvailableResourceMetrics", {})
17
13
  .n("PIClient", "ListAvailableResourceMetricsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListAvailableResourceMetricsCommand)
20
- .de(de_ListAvailableResourceMetricsCommand)
14
+ .sc(ListAvailableResourceMetrics)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListPerformanceAnalysisReportsCommand, se_ListPerformanceAnalysisReportsCommand, } from "../protocols/Aws_json1_1";
4
+ import { ListPerformanceAnalysisReports } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListPerformanceAnalysisReportsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("PerformanceInsightsv20180227", "ListPerformanceAnalysisReports", {})
17
13
  .n("PIClient", "ListPerformanceAnalysisReportsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListPerformanceAnalysisReportsCommand)
20
- .de(de_ListPerformanceAnalysisReportsCommand)
14
+ .sc(ListPerformanceAnalysisReports)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_json1_1";
4
+ import { ListTagsForResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTagsForResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("PerformanceInsightsv20180227", "ListTagsForResource", {})
17
13
  .n("PIClient", "ListTagsForResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListTagsForResourceCommand)
20
- .de(de_ListTagsForResourceCommand)
14
+ .sc(ListTagsForResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_1";
4
+ import { TagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("PerformanceInsightsv20180227", "TagResource", {})
17
13
  .n("PIClient", "TagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_TagResourceCommand)
20
- .de(de_TagResourceCommand)
14
+ .sc(TagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_1";
4
+ import { UntagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UntagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("PerformanceInsightsv20180227", "UntagResource", {})
17
13
  .n("PIClient", "UntagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UntagResourceCommand)
20
- .de(de_UntagResourceCommand)
14
+ .sc(UntagResource)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,3 @@
1
- import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
1
  import { PIServiceException as __BaseException } from "./PIServiceException";
3
2
  export const AcceptLanguage = {
4
3
  EN_US: "EN_US",
@@ -89,25 +88,3 @@ export const PeriodAlignment = {
89
88
  END_TIME: "END_TIME",
90
89
  START_TIME: "START_TIME",
91
90
  };
92
- export const RecommendationFilterSensitiveLog = (obj) => ({
93
- ...obj,
94
- ...(obj.RecommendationDescription && { RecommendationDescription: SENSITIVE_STRING }),
95
- });
96
- export const InsightFilterSensitiveLog = (obj) => ({
97
- ...obj,
98
- ...(obj.SupportingInsights && {
99
- SupportingInsights: obj.SupportingInsights.map((item) => InsightFilterSensitiveLog(item)),
100
- }),
101
- ...(obj.Description && { Description: SENSITIVE_STRING }),
102
- ...(obj.Recommendations && {
103
- Recommendations: obj.Recommendations.map((item) => RecommendationFilterSensitiveLog(item)),
104
- }),
105
- });
106
- export const AnalysisReportFilterSensitiveLog = (obj) => ({
107
- ...obj,
108
- ...(obj.Insights && { Insights: obj.Insights.map((item) => InsightFilterSensitiveLog(item)) }),
109
- });
110
- export const GetPerformanceAnalysisReportResponseFilterSensitiveLog = (obj) => ({
111
- ...obj,
112
- ...(obj.AnalysisReport && { AnalysisReport: AnalysisReportFilterSensitiveLog(obj.AnalysisReport) }),
113
- });
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ??
27
+ new AwsJson1_1Protocol({
28
+ defaultNamespace: "com.amazonaws.pi",
29
+ serviceTarget: "PerformanceInsightsv20180227",
30
+ awsQueryCompatible: false,
31
+ }),
25
32
  serviceId: config?.serviceId ?? "PI",
26
33
  urlParser: config?.urlParser ?? parseUrl,
27
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,