@aws-sdk/client-pi 3.282.0 → 3.287.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const p = "required", q = "fn", r = "argv", s = "ref";
5
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
6
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://pi-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://pi-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://pi.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://pi.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
4
+ const q = "required", r = "fn", s = "argv", t = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://pi-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://pi-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://pi.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://pi.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
7
7
  exports.ruleSet = _data;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListAvailableResourceMetricsResponseFilterSensitiveLog = exports.ResponseResourceMetricFilterSensitiveLog = exports.ListAvailableResourceMetricsRequestFilterSensitiveLog = exports.ListAvailableResourceDimensionsResponseFilterSensitiveLog = exports.MetricDimensionGroupsFilterSensitiveLog = exports.ListAvailableResourceDimensionsRequestFilterSensitiveLog = exports.GetResourceMetricsResponseFilterSensitiveLog = exports.MetricKeyDataPointsFilterSensitiveLog = exports.ResponseResourceMetricKeyFilterSensitiveLog = exports.GetResourceMetricsRequestFilterSensitiveLog = exports.MetricQueryFilterSensitiveLog = exports.GetResourceMetadataResponseFilterSensitiveLog = exports.GetResourceMetadataRequestFilterSensitiveLog = exports.GetDimensionKeyDetailsResponseFilterSensitiveLog = exports.GetDimensionKeyDetailsRequestFilterSensitiveLog = exports.FeatureMetadataFilterSensitiveLog = exports.DimensionKeyDetailFilterSensitiveLog = exports.DimensionGroupDetailFilterSensitiveLog = exports.DimensionDetailFilterSensitiveLog = exports.DescribeDimensionKeysResponseFilterSensitiveLog = exports.ResponsePartitionKeyFilterSensitiveLog = exports.DimensionKeyDescriptionFilterSensitiveLog = exports.DescribeDimensionKeysRequestFilterSensitiveLog = exports.DimensionGroupFilterSensitiveLog = exports.DataPointFilterSensitiveLog = exports.FeatureStatus = exports.DetailStatus = exports.NotAuthorizedException = exports.InvalidArgumentException = exports.InternalServiceError = exports.ServiceType = void 0;
3
+ exports.ListAvailableResourceMetricsResponseFilterSensitiveLog = exports.ResponseResourceMetricFilterSensitiveLog = exports.ListAvailableResourceMetricsRequestFilterSensitiveLog = exports.ListAvailableResourceDimensionsResponseFilterSensitiveLog = exports.MetricDimensionGroupsFilterSensitiveLog = exports.ListAvailableResourceDimensionsRequestFilterSensitiveLog = exports.GetResourceMetricsResponseFilterSensitiveLog = exports.MetricKeyDataPointsFilterSensitiveLog = exports.ResponseResourceMetricKeyFilterSensitiveLog = exports.GetResourceMetricsRequestFilterSensitiveLog = exports.MetricQueryFilterSensitiveLog = exports.GetResourceMetadataResponseFilterSensitiveLog = exports.GetResourceMetadataRequestFilterSensitiveLog = exports.GetDimensionKeyDetailsResponseFilterSensitiveLog = exports.GetDimensionKeyDetailsRequestFilterSensitiveLog = exports.FeatureMetadataFilterSensitiveLog = exports.DimensionKeyDetailFilterSensitiveLog = exports.DimensionGroupDetailFilterSensitiveLog = exports.DimensionDetailFilterSensitiveLog = exports.DescribeDimensionKeysResponseFilterSensitiveLog = exports.ResponsePartitionKeyFilterSensitiveLog = exports.DimensionKeyDescriptionFilterSensitiveLog = exports.DescribeDimensionKeysRequestFilterSensitiveLog = exports.DimensionGroupFilterSensitiveLog = exports.DataPointFilterSensitiveLog = exports.PeriodAlignment = exports.FeatureStatus = exports.DetailStatus = exports.NotAuthorizedException = exports.InvalidArgumentException = exports.InternalServiceError = exports.ServiceType = void 0;
4
4
  const PIServiceException_1 = require("./PIServiceException");
5
5
  var ServiceType;
6
6
  (function (ServiceType) {
@@ -64,6 +64,11 @@ var FeatureStatus;
64
64
  FeatureStatus["UNKNOWN"] = "UNKNOWN";
65
65
  FeatureStatus["UNSUPPORTED"] = "UNSUPPORTED";
66
66
  })(FeatureStatus = exports.FeatureStatus || (exports.FeatureStatus = {}));
67
+ var PeriodAlignment;
68
+ (function (PeriodAlignment) {
69
+ PeriodAlignment["END_TIME"] = "END_TIME";
70
+ PeriodAlignment["START_TIME"] = "START_TIME";
71
+ })(PeriodAlignment = exports.PeriodAlignment || (exports.PeriodAlignment = {}));
67
72
  const DataPointFilterSensitiveLog = (obj) => ({
68
73
  ...obj,
69
74
  });
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeDimensionKeys = void 0;
4
4
  const DescribeDimensionKeysCommand_1 = require("../commands/DescribeDimensionKeysCommand");
5
- const PI_1 = require("../PI");
6
5
  const PIClient_1 = require("../PIClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new DescribeDimensionKeysCommand_1.DescribeDimensionKeysCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.describeDimensionKeys(input, ...args);
12
- };
13
9
  async function* paginateDescribeDimensionKeys(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateDescribeDimensionKeys(config, input, ...additionalArgume
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof PI_1.PI) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof PIClient_1.PIClient) {
16
+ if (config.client instanceof PIClient_1.PIClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetResourceMetrics = void 0;
4
4
  const GetResourceMetricsCommand_1 = require("../commands/GetResourceMetricsCommand");
5
- const PI_1 = require("../PI");
6
5
  const PIClient_1 = require("../PIClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new GetResourceMetricsCommand_1.GetResourceMetricsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.getResourceMetrics(input, ...args);
12
- };
13
9
  async function* paginateGetResourceMetrics(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateGetResourceMetrics(config, input, ...additionalArguments
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof PI_1.PI) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof PIClient_1.PIClient) {
16
+ if (config.client instanceof PIClient_1.PIClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAvailableResourceDimensions = void 0;
4
4
  const ListAvailableResourceDimensionsCommand_1 = require("../commands/ListAvailableResourceDimensionsCommand");
5
- const PI_1 = require("../PI");
6
5
  const PIClient_1 = require("../PIClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListAvailableResourceDimensionsCommand_1.ListAvailableResourceDimensionsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listAvailableResourceDimensions(input, ...args);
12
- };
13
9
  async function* paginateListAvailableResourceDimensions(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListAvailableResourceDimensions(config, input, ...additi
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof PI_1.PI) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof PIClient_1.PIClient) {
16
+ if (config.client instanceof PIClient_1.PIClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAvailableResourceMetrics = void 0;
4
4
  const ListAvailableResourceMetricsCommand_1 = require("../commands/ListAvailableResourceMetricsCommand");
5
- const PI_1 = require("../PI");
6
5
  const PIClient_1 = require("../PIClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListAvailableResourceMetricsCommand_1.ListAvailableResourceMetricsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listAvailableResourceMetrics(input, ...args);
12
- };
13
9
  async function* paginateListAvailableResourceMetrics(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListAvailableResourceMetrics(config, input, ...additiona
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof PI_1.PI) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof PIClient_1.PIClient) {
16
+ if (config.client instanceof PIClient_1.PIClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -397,6 +397,7 @@ const serializeAws_json1_1GetResourceMetricsRequest = (input, context) => {
397
397
  MetricQueries: serializeAws_json1_1MetricQueryList(input.MetricQueries, context),
398
398
  }),
399
399
  ...(input.NextToken != null && { NextToken: input.NextToken }),
400
+ ...(input.PeriodAlignment != null && { PeriodAlignment: input.PeriodAlignment }),
400
401
  ...(input.PeriodInSeconds != null && { PeriodInSeconds: input.PeriodInSeconds }),
401
402
  ...(input.ServiceType != null && { ServiceType: input.ServiceType }),
402
403
  ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
@@ -1,4 +1,4 @@
1
- const p = "required", q = "fn", r = "argv", s = "ref";
2
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
3
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://pi-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://pi-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://pi.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://pi.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
1
+ const q = "required", r = "fn", s = "argv", t = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://pi-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://pi-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://pi.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://pi.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;
@@ -58,6 +58,11 @@ export var FeatureStatus;
58
58
  FeatureStatus["UNKNOWN"] = "UNKNOWN";
59
59
  FeatureStatus["UNSUPPORTED"] = "UNSUPPORTED";
60
60
  })(FeatureStatus || (FeatureStatus = {}));
61
+ export var PeriodAlignment;
62
+ (function (PeriodAlignment) {
63
+ PeriodAlignment["END_TIME"] = "END_TIME";
64
+ PeriodAlignment["START_TIME"] = "START_TIME";
65
+ })(PeriodAlignment || (PeriodAlignment = {}));
61
66
  export const DataPointFilterSensitiveLog = (obj) => ({
62
67
  ...obj,
63
68
  });
@@ -1,12 +1,8 @@
1
1
  import { DescribeDimensionKeysCommand, } from "../commands/DescribeDimensionKeysCommand";
2
- import { PI } from "../PI";
3
2
  import { PIClient } from "../PIClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new DescribeDimensionKeysCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.describeDimensionKeys(input, ...args);
9
- };
10
6
  export async function* paginateDescribeDimensionKeys(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateDescribeDimensionKeys(config, input, ...additiona
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof PI) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof PIClient) {
13
+ if (config.client instanceof PIClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { GetResourceMetricsCommand, } from "../commands/GetResourceMetricsCommand";
2
- import { PI } from "../PI";
3
2
  import { PIClient } from "../PIClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new GetResourceMetricsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.getResourceMetrics(input, ...args);
9
- };
10
6
  export async function* paginateGetResourceMetrics(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateGetResourceMetrics(config, input, ...additionalAr
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof PI) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof PIClient) {
13
+ if (config.client instanceof PIClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListAvailableResourceDimensionsCommand, } from "../commands/ListAvailableResourceDimensionsCommand";
2
- import { PI } from "../PI";
3
2
  import { PIClient } from "../PIClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListAvailableResourceDimensionsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listAvailableResourceDimensions(input, ...args);
9
- };
10
6
  export async function* paginateListAvailableResourceDimensions(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListAvailableResourceDimensions(config, input, ..
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof PI) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof PIClient) {
13
+ if (config.client instanceof PIClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListAvailableResourceMetricsCommand, } from "../commands/ListAvailableResourceMetricsCommand";
2
- import { PI } from "../PI";
3
2
  import { PIClient } from "../PIClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListAvailableResourceMetricsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listAvailableResourceMetrics(input, ...args);
9
- };
10
6
  export async function* paginateListAvailableResourceMetrics(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListAvailableResourceMetrics(config, input, ...ad
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof PI) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof PIClient) {
13
+ if (config.client instanceof PIClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -382,6 +382,7 @@ const serializeAws_json1_1GetResourceMetricsRequest = (input, context) => {
382
382
  MetricQueries: serializeAws_json1_1MetricQueryList(input.MetricQueries, context),
383
383
  }),
384
384
  ...(input.NextToken != null && { NextToken: input.NextToken }),
385
+ ...(input.PeriodAlignment != null && { PeriodAlignment: input.PeriodAlignment }),
385
386
  ...(input.PeriodInSeconds != null && { PeriodInSeconds: input.PeriodInSeconds }),
386
387
  ...(input.ServiceType != null && { ServiceType: input.ServiceType }),
387
388
  ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
@@ -27,7 +27,7 @@ import { PIClient } from "./PIClient";
27
27
  * </i>. </p>
28
28
  * </li>
29
29
  * <li>
30
- * <p>To learn more about Performance Insights and Amazon DocumentDB clusters, go to the <i>
30
+ * <p>To learn more about Performance Insights and Amazon DocumentDB clusters, go to the <i>
31
31
  * <a href="https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html"> Amazon DocumentDB Developer Guide</a>
32
32
  * </i>.</p>
33
33
  * </li>
@@ -149,7 +149,7 @@ export interface PIClientResolvedConfig extends PIClientResolvedConfigType {
149
149
  * </i>. </p>
150
150
  * </li>
151
151
  * <li>
152
- * <p>To learn more about Performance Insights and Amazon DocumentDB clusters, go to the <i>
152
+ * <p>To learn more about Performance Insights and Amazon DocumentDB clusters, go to the <i>
153
153
  * <a href="https://docs.aws.amazon.com/documentdb/latest/developerguide/performance-insights.html"> Amazon DocumentDB Developer Guide</a>
154
154
  * </i>.</p>
155
155
  * </li>
@@ -16,27 +16,27 @@ export interface DataPoint {
16
16
  /**
17
17
  * <p>A logical grouping of Performance Insights metrics for a related subject area. For example, the
18
18
  * <code>db.sql</code> dimension group consists of the following dimensions:</p>
19
- * <ul>
19
+ * <ul>
20
20
  * <li>
21
21
  * <p>
22
22
  * <code>db.sql.id</code> - The hash of a running SQL statement, generated by Performance Insights.</p>
23
23
  * </li>
24
24
  * <li>
25
- * <p>
26
- * <code>db.sql.db_id</code> - Either the SQL ID generated by the database engine, or a value generated by Performance Insights that begins with
25
+ * <p>
26
+ * <code>db.sql.db_id</code> - Either the SQL ID generated by the database engine, or a value generated by Performance Insights that begins with
27
27
  * <code>pi-</code>.</p>
28
28
  * </li>
29
29
  * <li>
30
- * <p>
31
- * <code>db.sql.statement</code> - The full text of the SQL statement that is running, for example, <code>SELECT * FROM
30
+ * <p>
31
+ * <code>db.sql.statement</code> - The full text of the SQL statement that is running, for example, <code>SELECT * FROM
32
32
  * employees</code>.</p>
33
33
  * </li>
34
34
  * <li>
35
- * <p>
36
- * <code>db.sql_tokenized.id</code> - The hash of the SQL digest generated by Performance Insights.</p>
35
+ * <p>
36
+ * <code>db.sql_tokenized.id</code> - The hash of the SQL digest generated by Performance Insights.</p>
37
37
  * </li>
38
38
  * </ul>
39
- * <note>
39
+ * <note>
40
40
  * <p>Each response element returns a maximum of 500 bytes. For larger elements, such as SQL
41
41
  * statements, only the first 500 bytes are returned.</p>
42
42
  * </note>
@@ -47,83 +47,83 @@ export interface DimensionGroup {
47
47
  * <ul>
48
48
  * <li>
49
49
  * <p>
50
- * <code>db</code> - The name of the database to which the client is connected. The following values are permitted:</p>
51
- * <ul>
50
+ * <code>db</code> - The name of the database to which the client is connected. The following values are permitted:</p>
51
+ * <ul>
52
52
  * <li>
53
- * <p>Aurora PostgreSQL</p>
54
- * </li>
53
+ * <p>Aurora PostgreSQL</p>
54
+ * </li>
55
55
  * <li>
56
- * <p>Amazon RDS PostgreSQL</p>
57
- * </li>
56
+ * <p>Amazon RDS PostgreSQL</p>
57
+ * </li>
58
58
  * <li>
59
- * <p>Aurora MySQL</p>
60
- * </li>
59
+ * <p>Aurora MySQL</p>
60
+ * </li>
61
61
  * <li>
62
- * <p>Amazon RDS MySQL</p>
63
- * </li>
62
+ * <p>Amazon RDS MySQL</p>
63
+ * </li>
64
64
  * <li>
65
- * <p>Amazon RDS MariaDB</p>
66
- * </li>
65
+ * <p>Amazon RDS MariaDB</p>
66
+ * </li>
67
67
  * <li>
68
- * <p>Amazon DocumentDB</p>
69
- * </li>
68
+ * <p>Amazon DocumentDB</p>
69
+ * </li>
70
70
  * </ul>
71
71
  * </li>
72
72
  * <li>
73
73
  * <p>
74
- * <code>db.application</code> - The name of the application that is connected to the database. The following values are
74
+ * <code>db.application</code> - The name of the application that is connected to the database. The following values are
75
75
  * permitted:</p>
76
- * <ul>
76
+ * <ul>
77
77
  * <li>
78
- * <p>Aurora PostgreSQL</p>
79
- * </li>
78
+ * <p>Aurora PostgreSQL</p>
79
+ * </li>
80
80
  * <li>
81
- * <p>Amazon RDS PostgreSQL</p>
82
- * </li>
81
+ * <p>Amazon RDS PostgreSQL</p>
82
+ * </li>
83
83
  * <li>
84
- * <p>Amazon DocumentDB</p>
85
- * </li>
84
+ * <p>Amazon DocumentDB</p>
85
+ * </li>
86
86
  * </ul>
87
87
  * </li>
88
88
  * <li>
89
89
  * <p>
90
- * <code>db.host</code> - The host name of the connected client (all engines).</p>
90
+ * <code>db.host</code> - The host name of the connected client (all engines).</p>
91
91
  * </li>
92
92
  * <li>
93
- * <p>
93
+ * <p>
94
94
  * <code>db.query</code> - The query that is currently running (only Amazon DocumentDB).</p>
95
95
  * </li>
96
96
  * <li>
97
- * <p>
97
+ * <p>
98
98
  * <code>db.query_tokenized</code> - The digest query (only Amazon DocumentDB).</p>
99
99
  * </li>
100
100
  * <li>
101
101
  * <p>
102
- * <code>db.session_type</code> - The type of the current session (only Aurora PostgreSQL and RDS PostgreSQL).</p>
102
+ * <code>db.session_type</code> - The type of the current session (only Aurora PostgreSQL and RDS PostgreSQL).</p>
103
103
  * </li>
104
104
  * <li>
105
105
  * <p>
106
- * <code>db.sql</code> - The text of the SQL statement that is currently running (all engines except Amazon DocumentDB).</p>
106
+ * <code>db.sql</code> - The text of the SQL statement that is currently running (all engines except Amazon DocumentDB).</p>
107
107
  * </li>
108
108
  * <li>
109
109
  * <p>
110
- * <code>db.sql_tokenized</code> - The SQL digest (all engines except Amazon DocumentDB).</p>
110
+ * <code>db.sql_tokenized</code> - The SQL digest (all engines except Amazon DocumentDB).</p>
111
111
  * </li>
112
112
  * <li>
113
- * <p>
114
- * <code>db.user</code> - The user logged in to the database (all engines except Amazon DocumentDB).</p>
113
+ * <p>
114
+ * <code>db.user</code> - The user logged in to the database (all engines except Amazon DocumentDB).</p>
115
115
  * </li>
116
116
  * <li>
117
117
  * <p>
118
- * <code>db.wait_event</code> - The event for which the database backend is waiting (all engines except Amazon DocumentDB).</p>
118
+ * <code>db.wait_event</code> - The event for which the database backend is waiting (all engines except Amazon DocumentDB).</p>
119
119
  * </li>
120
120
  * <li>
121
121
  * <p>
122
- * <code>db.wait_event_type</code> - The type of event for which the database backend is waiting (all engines except Amazon DocumentDB).</p>
122
+ * <code>db.wait_event_type</code> - The type of event for which the database backend is waiting (all engines except Amazon DocumentDB).</p>
123
123
  * </li>
124
124
  * <li>
125
- * <p>
126
- * <code>db.wait_state</code> - The event for which the database backend is waiting (only Amazon DocumentDB).</p>
125
+ * <p>
126
+ * <code>db.wait_state</code> - The event for which the database backend is waiting (only Amazon DocumentDB).</p>
127
127
  * </li>
128
128
  * </ul>
129
129
  */
@@ -132,147 +132,147 @@ export interface DimensionGroup {
132
132
  * <p>A list of specific dimensions from a dimension group. If this parameter is not present,
133
133
  * then it signifies that all of the dimensions in the group were requested, or are present in
134
134
  * the response.</p>
135
- * <p>Valid values for elements in the <code>Dimensions</code> array are:</p>
136
- * <ul>
135
+ * <p>Valid values for elements in the <code>Dimensions</code> array are:</p>
136
+ * <ul>
137
137
  * <li>
138
- * <p>
139
- * <code>db.application.name</code> - The name of the application that is connected to the database. Valid values are as follows: </p>
140
- * <ul>
138
+ * <p>
139
+ * <code>db.application.name</code> - The name of the application that is connected to the database. Valid values are as follows: </p>
140
+ * <ul>
141
141
  * <li>
142
- * <p>Aurora PostgreSQL</p>
143
- * </li>
142
+ * <p>Aurora PostgreSQL</p>
143
+ * </li>
144
144
  * <li>
145
- * <p>Amazon RDS PostgreSQL</p>
146
- * </li>
145
+ * <p>Amazon RDS PostgreSQL</p>
146
+ * </li>
147
147
  * <li>
148
- * <p>Amazon DocumentDB</p>
149
- * </li>
148
+ * <p>Amazon DocumentDB</p>
149
+ * </li>
150
150
  * </ul>
151
151
  * </li>
152
152
  * <li>
153
- * <p>
154
- * <code>db.host.id</code> - The host ID of the connected client (all engines).</p>
153
+ * <p>
154
+ * <code>db.host.id</code> - The host ID of the connected client (all engines).</p>
155
155
  * </li>
156
156
  * <li>
157
- * <p>
158
- * <code>db.host.name</code> - The host name of the connected client (all engines).</p>
157
+ * <p>
158
+ * <code>db.host.name</code> - The host name of the connected client (all engines).</p>
159
159
  * </li>
160
160
  * <li>
161
- * <p>
162
- * <code>db.name</code> - The name of the database to which the client is connected. Valid values are as follows:</p>
163
- * <ul>
161
+ * <p>
162
+ * <code>db.name</code> - The name of the database to which the client is connected. Valid values are as follows:</p>
163
+ * <ul>
164
164
  * <li>
165
- * <p>Aurora PostgreSQL</p>
166
- * </li>
165
+ * <p>Aurora PostgreSQL</p>
166
+ * </li>
167
167
  * <li>
168
- * <p>Amazon RDS PostgreSQL</p>
169
- * </li>
168
+ * <p>Amazon RDS PostgreSQL</p>
169
+ * </li>
170
170
  * <li>
171
- * <p>Aurora MySQL</p>
172
- * </li>
171
+ * <p>Aurora MySQL</p>
172
+ * </li>
173
173
  * <li>
174
- * <p>Amazon RDS MySQL</p>
175
- * </li>
174
+ * <p>Amazon RDS MySQL</p>
175
+ * </li>
176
176
  * <li>
177
- * <p>Amazon RDS MariaDB</p>
178
- * </li>
177
+ * <p>Amazon RDS MariaDB</p>
178
+ * </li>
179
179
  * <li>
180
- * <p>Amazon DocumentDB</p>
181
- * </li>
180
+ * <p>Amazon DocumentDB</p>
181
+ * </li>
182
182
  * </ul>
183
183
  * </li>
184
184
  * <li>
185
- * <p>
186
- * <code>db.query.id</code> - The query ID generated by Performance Insights (only Amazon DocumentDB).</p>
185
+ * <p>
186
+ * <code>db.query.id</code> - The query ID generated by Performance Insights (only Amazon DocumentDB).</p>
187
187
  * </li>
188
188
  * <li>
189
- * <p>
190
- * <code>db.query.db_id</code> - The query ID generated by the database (only Amazon DocumentDB).</p>
189
+ * <p>
190
+ * <code>db.query.db_id</code> - The query ID generated by the database (only Amazon DocumentDB).</p>
191
191
  * </li>
192
192
  * <li>
193
- * <p>
194
- * <code>db.query.statement</code> - The text of the query that is being run (only Amazon DocumentDB).</p>
193
+ * <p>
194
+ * <code>db.query.statement</code> - The text of the query that is being run (only Amazon DocumentDB).</p>
195
195
  * </li>
196
196
  * <li>
197
- * <p>
198
- * <code>db.query.tokenized_id</code>
197
+ * <p>
198
+ * <code>db.query.tokenized_id</code>
199
199
  * </p>
200
200
  * </li>
201
201
  * <li>
202
- * <p>
203
- * <code>db.query.tokenized.id</code> - The query digest ID generated by Performance Insights (only Amazon DocumentDB).</p>
202
+ * <p>
203
+ * <code>db.query.tokenized.id</code> - The query digest ID generated by Performance Insights (only Amazon DocumentDB).</p>
204
204
  * </li>
205
205
  * <li>
206
- * <p>
207
- * <code>db.query.tokenized.db_id</code> - The query digest ID generated by Performance Insights (only Amazon DocumentDB).</p>
206
+ * <p>
207
+ * <code>db.query.tokenized.db_id</code> - The query digest ID generated by Performance Insights (only Amazon DocumentDB).</p>
208
208
  * </li>
209
209
  * <li>
210
- * <p>
211
- * <code>db.query.tokenized.statement</code> - The text of the query digest (only Amazon DocumentDB).</p>
210
+ * <p>
211
+ * <code>db.query.tokenized.statement</code> - The text of the query digest (only Amazon DocumentDB).</p>
212
212
  * </li>
213
213
  * <li>
214
- * <p>
215
- * <code>db.session_type.name</code> - The type of the current session (only Amazon DocumentDB).</p>
214
+ * <p>
215
+ * <code>db.session_type.name</code> - The type of the current session (only Amazon DocumentDB).</p>
216
216
  * </li>
217
217
  * <li>
218
- * <p>
219
- * <code>db.sql.id</code> - The hash of the full, non-tokenized SQL statement generated by Performance Insights (all engines except Amazon DocumentDB).</p>
218
+ * <p>
219
+ * <code>db.sql.id</code> - The hash of the full, non-tokenized SQL statement generated by Performance Insights (all engines except Amazon DocumentDB).</p>
220
220
  * </li>
221
221
  * <li>
222
- * <p>
223
- * <code>db.sql.db_id</code> - Either the SQL ID generated by the database engine, or a value generated by Performance Insights that begins with
222
+ * <p>
223
+ * <code>db.sql.db_id</code> - Either the SQL ID generated by the database engine, or a value generated by Performance Insights that begins with
224
224
  * <code>pi-</code> (all engines except Amazon DocumentDB).</p>
225
225
  * </li>
226
226
  * <li>
227
- * <p>
228
- * <code>db.sql.statement</code> - The full text of the SQL statement that is running, as in <code>SELECT * FROM employees</code>
227
+ * <p>
228
+ * <code>db.sql.statement</code> - The full text of the SQL statement that is running, as in <code>SELECT * FROM employees</code>
229
229
  * (all engines except Amazon DocumentDB)</p>
230
230
  * </li>
231
231
  * <li>
232
- * <p>
233
- * <code>db.sql.tokenized_id</code>
234
- * </p>
232
+ * <p>
233
+ * <code>db.sql.tokenized_id</code>
234
+ * </p>
235
235
  * </li>
236
236
  * <li>
237
- * <p>
238
- * <code>db.sql_tokenized.id</code> - The hash of the SQL digest generated by Performance Insights (all engines except Amazon DocumentDB). In the console,
237
+ * <p>
238
+ * <code>db.sql_tokenized.id</code> - The hash of the SQL digest generated by Performance Insights (all engines except Amazon DocumentDB). In the console,
239
239
  * <code>db.sql_tokenized.id</code> is called the Support ID because Amazon Web Services Support can look at this data to help you troubleshoot
240
240
  * database issues.</p>
241
241
  * </li>
242
242
  * <li>
243
- * <p>
244
- * <code>db.sql_tokenized.db_id</code> - Either the native database ID used to refer to the SQL statement, or a synthetic ID such as
243
+ * <p>
244
+ * <code>db.sql_tokenized.db_id</code> - Either the native database ID used to refer to the SQL statement, or a synthetic ID such as
245
245
  * <code>pi-2372568224</code> that Performance Insights generates if the native database ID isn't available (all engines except Amazon DocumentDB).</p>
246
246
  * </li>
247
247
  * <li>
248
- * <p>
249
- * <code>db.sql_tokenized.statement</code> - The text of the SQL digest, as in <code>SELECT * FROM employees WHERE employee_id =
248
+ * <p>
249
+ * <code>db.sql_tokenized.statement</code> - The text of the SQL digest, as in <code>SELECT * FROM employees WHERE employee_id =
250
250
  * ?</code> (all engines except Amazon DocumentDB)</p>
251
251
  * </li>
252
252
  * <li>
253
- * <p>
254
- * <code>db.user.id</code> - The ID of the user logged in to the database (all engines except Amazon DocumentDB).</p>
253
+ * <p>
254
+ * <code>db.user.id</code> - The ID of the user logged in to the database (all engines except Amazon DocumentDB).</p>
255
255
  * </li>
256
256
  * <li>
257
- * <p>
258
- * <code>db.user.name</code> - The name of the user logged in to the database (all engines except Amazon DocumentDB).</p>
257
+ * <p>
258
+ * <code>db.user.name</code> - The name of the user logged in to the database (all engines except Amazon DocumentDB).</p>
259
259
  * </li>
260
260
  * <li>
261
- * <p>
262
- * <code>db.wait_event.name</code> - The event for which the backend is waiting (all engines except Amazon DocumentDB).</p>
261
+ * <p>
262
+ * <code>db.wait_event.name</code> - The event for which the backend is waiting (all engines except Amazon DocumentDB).</p>
263
263
  * </li>
264
264
  * <li>
265
- * <p>
266
- * <code>db.wait_event.type</code> - The type of event for which the backend is waiting (all engines except Amazon DocumentDB).</p>
265
+ * <p>
266
+ * <code>db.wait_event.type</code> - The type of event for which the backend is waiting (all engines except Amazon DocumentDB).</p>
267
267
  * </li>
268
268
  * <li>
269
- * <p>
270
- * <code>db.wait_event_type.name</code> - The name of the event type for which the backend is waiting (all engines except
269
+ * <p>
270
+ * <code>db.wait_event_type.name</code> - The name of the event type for which the backend is waiting (all engines except
271
271
  * Amazon DocumentDB).</p>
272
272
  * </li>
273
273
  * <li>
274
- * <p>
275
- * <code>db.wait_state.name</code> - The event for which the backend is waiting (only Amazon DocumentDB).</p>
274
+ * <p>
275
+ * <code>db.wait_state.name</code> - The event for which the backend is waiting (only Amazon DocumentDB).</p>
276
276
  * </li>
277
277
  * </ul>
278
278
  */
@@ -289,14 +289,14 @@ export declare enum ServiceType {
289
289
  export interface DescribeDimensionKeysRequest {
290
290
  /**
291
291
  * <p>The Amazon Web Services service for which Performance Insights will return metrics. Valid values are as follows:</p>
292
- * <ul>
292
+ * <ul>
293
293
  * <li>
294
- * <p>
294
+ * <p>
295
295
  * <code>RDS</code>
296
296
  * </p>
297
297
  * </li>
298
298
  * <li>
299
- * <p>
299
+ * <p>
300
300
  * <code>DOCDB</code>
301
301
  * </p>
302
302
  * </li>
@@ -306,7 +306,7 @@ export interface DescribeDimensionKeysRequest {
306
306
  /**
307
307
  * <p>An immutable, Amazon Web Services Region-unique identifier for a data source. Performance Insights gathers metrics from
308
308
  * this data source.</p>
309
- * <p>To use an Amazon RDS instance as a data source, you specify its <code>DbiResourceId</code> value.
309
+ * <p>To use an Amazon RDS instance as a data source, you specify its <code>DbiResourceId</code> value.
310
310
  * For example, specify <code>db-FAIHNTYBKTGAUSUZQYPDS2GW4A</code>.
311
311
  * </p>
312
312
  */
@@ -316,7 +316,7 @@ export interface DescribeDimensionKeysRequest {
316
316
  * <code>StartTime</code> within the past 7 days. The value specified is <i>inclusive</i>,
317
317
  * which means that data points equal to or greater than <code>StartTime</code> are returned.
318
318
  * </p>
319
- * <p>The value for <code>StartTime</code> must be earlier than the value for <code>EndTime</code>.
319
+ * <p>The value for <code>StartTime</code> must be earlier than the value for <code>EndTime</code>.
320
320
  * </p>
321
321
  */
322
322
  StartTime: Date | undefined;
@@ -324,23 +324,23 @@ export interface DescribeDimensionKeysRequest {
324
324
  * <p>The date and time specifying the end of the requested time series data. The value specified is
325
325
  * <i>exclusive</i>, which means that data points less than (but not equal to) <code>EndTime</code> are
326
326
  * returned.</p>
327
- * <p>The value for <code>EndTime</code> must be later than the value for <code>StartTime</code>.</p>
327
+ * <p>The value for <code>EndTime</code> must be later than the value for <code>StartTime</code>.</p>
328
328
  */
329
329
  EndTime: Date | undefined;
330
330
  /**
331
331
  * <p>The name of a Performance Insights metric to be measured.</p>
332
- * <p>Valid values for <code>Metric</code> are:</p>
333
- * <ul>
332
+ * <p>Valid values for <code>Metric</code> are:</p>
333
+ * <ul>
334
334
  * <li>
335
- * <p>
336
- * <code>db.load.avg</code> - A scaled representation of the number of active sessions for the database engine. </p>
335
+ * <p>
336
+ * <code>db.load.avg</code> - A scaled representation of the number of active sessions for the database engine. </p>
337
337
  * </li>
338
338
  * <li>
339
- * <p>
340
- * <code>db.sampledload.avg</code> - The raw number of active sessions for the database engine. </p>
339
+ * <p>
340
+ * <code>db.sampledload.avg</code> - The raw number of active sessions for the database engine. </p>
341
341
  * </li>
342
342
  * </ul>
343
- * <p>If the number of active sessions is less than an internal Performance Insights threshold, <code>db.load.avg</code>
343
+ * <p>If the number of active sessions is less than an internal Performance Insights threshold, <code>db.load.avg</code>
344
344
  * and <code>db.sampledload.avg</code> are the same value. If the number of active sessions is greater than
345
345
  * the internal threshold, Performance Insights samples the active sessions, with <code>db.load.avg</code>
346
346
  * showing the scaled values, <code>db.sampledload.avg</code> showing the raw values, and
@@ -353,30 +353,29 @@ export interface DescribeDimensionKeysRequest {
353
353
  * <p>The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as
354
354
  * one second, or as long as one day (86400 seconds). Valid values are:
355
355
  * </p>
356
- * <ul>
356
+ * <ul>
357
357
  * <li>
358
- * <p>
359
- * <code>1</code> (one second)</p>
358
+ * <p>
359
+ * <code>1</code> (one second)</p>
360
360
  * </li>
361
361
  * <li>
362
- * <p>
363
- * <code>60</code> (one minute)</p>
362
+ * <p>
363
+ * <code>60</code> (one minute)</p>
364
364
  * </li>
365
365
  * <li>
366
- * <p>
367
- * <code>300</code> (five minutes)</p>
366
+ * <p>
367
+ * <code>300</code> (five minutes)</p>
368
368
  * </li>
369
369
  * <li>
370
- * <p>
371
- * <code>3600</code> (one hour)</p>
370
+ * <p>
371
+ * <code>3600</code> (one hour)</p>
372
372
  * </li>
373
373
  * <li>
374
- * <p>
375
- * <code>86400</code> (twenty-four hours)</p>
374
+ * <p>
375
+ * <code>86400</code> (twenty-four hours)</p>
376
376
  * </li>
377
377
  * </ul>
378
- *
379
- * <p>If you don't specify <code>PeriodInSeconds</code>, then Performance Insights chooses a value for you, with a
378
+ * <p>If you don't specify <code>PeriodInSeconds</code>, then Performance Insights chooses a value for you, with a
380
379
  * goal of returning roughly 100-200 data points in the response.
381
380
  * </p>
382
381
  */
@@ -401,13 +400,13 @@ export interface DescribeDimensionKeysRequest {
401
400
  PartitionBy?: DimensionGroup;
402
401
  /**
403
402
  * <p>One or more filters to apply in the request. Restrictions:</p>
404
- * <ul>
403
+ * <ul>
405
404
  * <li>
406
- * <p>Any number of filters by the same dimension, as specified in the <code>GroupBy</code> or
405
+ * <p>Any number of filters by the same dimension, as specified in the <code>GroupBy</code> or
407
406
  * <code>Partition</code> parameters.</p>
408
407
  * </li>
409
408
  * <li>
410
- * <p>A single filter for any other dimension in this dimension group.</p>
409
+ * <p>A single filter for any other dimension in this dimension group.</p>
411
410
  * </li>
412
411
  * </ul>
413
412
  */
@@ -554,26 +553,26 @@ export interface DimensionKeyDetail {
554
553
  * full or truncated SQL query for the following dimensions:</p>
555
554
  * <ul>
556
555
  * <li>
557
- * <p>
558
- * <code>db.query.statement</code> (Amazon DocumentDB)</p>
556
+ * <p>
557
+ * <code>db.query.statement</code> (Amazon DocumentDB)</p>
559
558
  * </li>
560
559
  * <li>
561
- * <p>
562
- * <code>db.sql.statement</code> (Amazon RDS and Aurora)</p>
560
+ * <p>
561
+ * <code>db.sql.statement</code> (Amazon RDS and Aurora)</p>
563
562
  * </li>
564
563
  * </ul>
565
564
  */
566
565
  Value?: string;
567
566
  /**
568
567
  * <p>The full name of the dimension. The full name includes the group name and key name. The following values are valid:</p>
569
- * <ul>
568
+ * <ul>
570
569
  * <li>
571
- * <p>
572
- * <code>db.query.statement</code> (Amazon DocumentDB)</p>
570
+ * <p>
571
+ * <code>db.query.statement</code> (Amazon DocumentDB)</p>
573
572
  * </li>
574
573
  * <li>
575
- * <p>
576
- * <code>db.sql.statement</code> (Amazon RDS and Aurora)</p>
574
+ * <p>
575
+ * <code>db.sql.statement</code> (Amazon RDS and Aurora)</p>
577
576
  * </li>
578
577
  * </ul>
579
578
  */
@@ -613,7 +612,7 @@ export declare enum FeatureStatus {
613
612
  export interface FeatureMetadata {
614
613
  /**
615
614
  * <p>The status of the feature on the DB instance. Possible values include the following:</p>
616
- * <ul>
615
+ * <ul>
617
616
  * <li>
618
617
  * <p>
619
618
  * <code>ENABLED</code> - The feature is enabled on the instance.</p>
@@ -657,13 +656,13 @@ export interface GetDimensionKeyDetailsRequest {
657
656
  /**
658
657
  * <p>The name of the dimension group. Performance Insights searches the specified group for the dimension group ID. The following group name values are
659
658
  * valid:</p>
660
- * <ul>
659
+ * <ul>
661
660
  * <li>
662
- * <p>
661
+ * <p>
663
662
  * <code>db.query</code> (Amazon DocumentDB only)</p>
664
663
  * </li>
665
664
  * <li>
666
- * <p>
665
+ * <p>
667
666
  * <code>db.sql</code> (Amazon RDS and Aurora only)</p>
668
667
  * </li>
669
668
  * </ul>
@@ -672,13 +671,13 @@ export interface GetDimensionKeyDetailsRequest {
672
671
  /**
673
672
  * <p>The ID of the dimension group from which to retrieve dimension details. For dimension group <code>db.sql</code>, the group ID is
674
673
  * <code>db.sql.id</code>. The following group ID values are valid:</p>
675
- * <ul>
674
+ * <ul>
676
675
  * <li>
677
- * <p>
676
+ * <p>
678
677
  * <code>db.sql.id</code> for dimension group <code>db.sql</code> (Aurora and RDS only)</p>
679
678
  * </li>
680
679
  * <li>
681
- * <p>
680
+ * <p>
682
681
  * <code>db.query.id</code> for dimension group <code>db.query</code> (DocumentDB only)</p>
683
682
  * </li>
684
683
  * </ul>
@@ -687,14 +686,14 @@ export interface GetDimensionKeyDetailsRequest {
687
686
  /**
688
687
  * <p>A list of dimensions to retrieve the detail data for within the given dimension group. If you don't specify this parameter, Performance Insights returns
689
688
  * all dimension data within the specified dimension group. Specify dimension names for the following dimension groups:</p>
690
- * <ul>
689
+ * <ul>
691
690
  * <li>
692
- * <p>
691
+ * <p>
693
692
  * <code>db.sql</code> - Specify either the full dimension name <code>db.sql.statement</code> or the short dimension name
694
693
  * <code>statement</code> (Aurora and RDS only).</p>
695
694
  * </li>
696
695
  * <li>
697
- * <p>
696
+ * <p>
698
697
  * <code>db.query</code> - Specify either the full dimension name <code>db.query.statement</code> or the short dimension name
699
698
  * <code>statement</code> (DocumentDB only).</p>
700
699
  * </li>
@@ -745,23 +744,23 @@ export interface GetResourceMetadataResponse {
745
744
  export interface MetricQuery {
746
745
  /**
747
746
  * <p>The name of a Performance Insights metric to be measured.</p>
748
- * <p>Valid values for <code>Metric</code> are:</p>
749
- * <ul>
747
+ * <p>Valid values for <code>Metric</code> are:</p>
748
+ * <ul>
750
749
  * <li>
751
- * <p>
750
+ * <p>
752
751
  * <code>db.load.avg</code> - A scaled representation of the number of active sessions for the
753
752
  * database engine.</p>
754
753
  * </li>
755
754
  * <li>
756
- * <p>
755
+ * <p>
757
756
  * <code>db.sampledload.avg</code> - The raw number of active sessions for the database engine.</p>
758
757
  * </li>
759
758
  * <li>
760
- * <p>The counter metrics listed in <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_PerfInsights_Counters.html#USER_PerfInsights_Counters.OS">Performance Insights
759
+ * <p>The counter metrics listed in <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_PerfInsights_Counters.html#USER_PerfInsights_Counters.OS">Performance Insights
761
760
  * operating system counters</a> in the <i>Amazon Aurora User Guide</i>.</p>
762
761
  * </li>
763
762
  * </ul>
764
- * <p>If the number of active sessions is less than an internal Performance Insights threshold, <code>db.load.avg</code> and <code>db.sampledload.avg</code> are the same
763
+ * <p>If the number of active sessions is less than an internal Performance Insights threshold, <code>db.load.avg</code> and <code>db.sampledload.avg</code> are the same
765
764
  * value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with <code>db.load.avg</code> showing the
766
765
  * scaled values, <code>db.sampledload.avg</code> showing the raw values, and <code>db.sampledload.avg</code> less than
767
766
  * <code>db.load.avg</code>. For most use cases, you can query <code>db.load.avg</code> only.</p>
@@ -787,17 +786,21 @@ export interface MetricQuery {
787
786
  */
788
787
  Filter?: Record<string, string>;
789
788
  }
789
+ export declare enum PeriodAlignment {
790
+ END_TIME = "END_TIME",
791
+ START_TIME = "START_TIME"
792
+ }
790
793
  export interface GetResourceMetricsRequest {
791
794
  /**
792
795
  * <p>The Amazon Web Services service for which Performance Insights returns metrics. Valid values are as follows:</p>
793
- * <ul>
796
+ * <ul>
794
797
  * <li>
795
- * <p>
798
+ * <p>
796
799
  * <code>RDS</code>
797
800
  * </p>
798
801
  * </li>
799
802
  * <li>
800
- * <p>
803
+ * <p>
801
804
  * <code>DOCDB</code>
802
805
  * </p>
803
806
  * </li>
@@ -808,7 +811,7 @@ export interface GetResourceMetricsRequest {
808
811
  * <p>An immutable identifier for a data source that is unique for an Amazon Web Services Region. Performance Insights gathers metrics from this data source. In the
809
812
  * console, the identifier is shown as <i>ResourceID</i>. When you call <code>DescribeDBInstances</code>, the identifier is
810
813
  * returned as <code>DbiResourceId</code>.</p>
811
- * <p>To use a DB instance as a data source, specify its <code>DbiResourceId</code> value. For example, specify
814
+ * <p>To use a DB instance as a data source, specify its <code>DbiResourceId</code> value. For example, specify
812
815
  * <code>db-ABCDEFGHIJKLMNOPQRSTU1VW2X</code>.</p>
813
816
  */
814
817
  Identifier: string | undefined;
@@ -823,42 +826,42 @@ export interface GetResourceMetricsRequest {
823
826
  * retention, but you can extend this range up to 2 years. The value specified is
824
827
  * <i>inclusive</i>. Thus, the command returns data points equal to or greater
825
828
  * than <code>StartTime</code>.</p>
826
- * <p>The value for <code>StartTime</code> must be earlier than the value for <code>EndTime</code>.</p>
829
+ * <p>The value for <code>StartTime</code> must be earlier than the value for <code>EndTime</code>.</p>
827
830
  */
828
831
  StartTime: Date | undefined;
829
832
  /**
830
833
  * <p>The date and time specifying the end of the requested time series query range. The value
831
834
  * specified is <i>exclusive</i>. Thus, the command returns data points less than
832
835
  * (but not equal to) <code>EndTime</code>.</p>
833
- * <p>The value for <code>EndTime</code> must be later than the value for <code>StartTime</code>.</p>
836
+ * <p>The value for <code>EndTime</code> must be later than the value for <code>StartTime</code>.</p>
834
837
  */
835
838
  EndTime: Date | undefined;
836
839
  /**
837
840
  * <p>The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as one second, or as long as one day (86400
838
841
  * seconds). Valid values are:</p>
839
- * <ul>
842
+ * <ul>
840
843
  * <li>
841
- * <p>
842
- * <code>1</code> (one second)</p>
844
+ * <p>
845
+ * <code>1</code> (one second)</p>
843
846
  * </li>
844
847
  * <li>
845
- * <p>
846
- * <code>60</code> (one minute)</p>
848
+ * <p>
849
+ * <code>60</code> (one minute)</p>
847
850
  * </li>
848
851
  * <li>
849
- * <p>
850
- * <code>300</code> (five minutes)</p>
852
+ * <p>
853
+ * <code>300</code> (five minutes)</p>
851
854
  * </li>
852
855
  * <li>
853
- * <p>
854
- * <code>3600</code> (one hour)</p>
856
+ * <p>
857
+ * <code>3600</code> (one hour)</p>
855
858
  * </li>
856
859
  * <li>
857
- * <p>
858
- * <code>86400</code> (twenty-four hours)</p>
860
+ * <p>
861
+ * <code>86400</code> (twenty-four hours)</p>
859
862
  * </li>
860
863
  * </ul>
861
- * <p>If you don't specify <code>PeriodInSeconds</code>, then Performance Insights will choose a value for you, with a goal of returning roughly 100-200 data
864
+ * <p>If you don't specify <code>PeriodInSeconds</code>, then Performance Insights will choose a value for you, with a goal of returning roughly 100-200 data
862
865
  * points in the response.</p>
863
866
  */
864
867
  PeriodInSeconds?: number;
@@ -872,6 +875,10 @@ export interface GetResourceMetricsRequest {
872
875
  * the token, up to the value specified by <code>MaxRecords</code>.</p>
873
876
  */
874
877
  NextToken?: string;
878
+ /**
879
+ * <p>The returned timestamp which is the start or end time of the time periods. The default value is <code>END_TIME</code>.</p>
880
+ */
881
+ PeriodAlignment?: PeriodAlignment | string;
875
882
  }
876
883
  /**
877
884
  * <p>An object describing a Performance Insights metric and one or more dimensions for that metric.</p>
@@ -879,18 +886,18 @@ export interface GetResourceMetricsRequest {
879
886
  export interface ResponseResourceMetricKey {
880
887
  /**
881
888
  * <p>The name of a Performance Insights metric to be measured.</p>
882
- * <p>Valid values for <code>Metric</code> are:</p>
883
- * <ul>
889
+ * <p>Valid values for <code>Metric</code> are:</p>
890
+ * <ul>
884
891
  * <li>
885
- * <p>
892
+ * <p>
886
893
  * <code>db.load.avg</code> - A scaled representation of the number of active sessions for the database engine.</p>
887
894
  * </li>
888
895
  * <li>
889
- * <p>
896
+ * <p>
890
897
  * <code>db.sampledload.avg</code> - The raw number of active sessions for the database engine.</p>
891
898
  * </li>
892
899
  * <li>
893
- * <p>The counter metrics listed in <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_PerfInsights_Counters.html#USER_PerfInsights_Counters.OS">Performance Insights
900
+ * <p>The counter metrics listed in <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_PerfInsights_Counters.html#USER_PerfInsights_Counters.OS">Performance Insights
894
901
  * operating system counters</a> in the <i>Amazon Aurora User Guide</i>.</p>
895
902
  * </li>
896
903
  * </ul>
@@ -1,6 +1,5 @@
1
1
  import { PaginationConfiguration } from "@aws-sdk/types";
2
- import { PI } from "../PI";
3
2
  import { PIClient } from "../PIClient";
4
3
  export interface PIPaginationConfiguration extends PaginationConfiguration {
5
- client: PI | PIClient;
4
+ client: PIClient;
6
5
  }
@@ -118,6 +118,10 @@ export interface MetricQuery {
118
118
  GroupBy?: DimensionGroup;
119
119
  Filter?: Record<string, string>;
120
120
  }
121
+ export declare enum PeriodAlignment {
122
+ END_TIME = "END_TIME",
123
+ START_TIME = "START_TIME",
124
+ }
121
125
  export interface GetResourceMetricsRequest {
122
126
  ServiceType: ServiceType | string | undefined;
123
127
  Identifier: string | undefined;
@@ -127,6 +131,7 @@ export interface GetResourceMetricsRequest {
127
131
  PeriodInSeconds?: number;
128
132
  MaxResults?: number;
129
133
  NextToken?: string;
134
+ PeriodAlignment?: PeriodAlignment | string;
130
135
  }
131
136
  export interface ResponseResourceMetricKey {
132
137
  Metric: string | undefined;
@@ -1,6 +1,5 @@
1
1
  import { PaginationConfiguration } from "@aws-sdk/types";
2
- import { PI } from "../PI";
3
2
  import { PIClient } from "../PIClient";
4
3
  export interface PIPaginationConfiguration extends PaginationConfiguration {
5
- client: PI | PIClient;
4
+ client: PIClient;
6
5
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-pi",
3
3
  "description": "AWS SDK for JavaScript Pi Client for Node.js, Browser and React Native",
4
- "version": "3.282.0",
4
+ "version": "3.287.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,23 +20,23 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.282.0",
24
- "@aws-sdk/config-resolver": "3.282.0",
25
- "@aws-sdk/credential-provider-node": "3.282.0",
23
+ "@aws-sdk/client-sts": "3.287.0",
24
+ "@aws-sdk/config-resolver": "3.287.0",
25
+ "@aws-sdk/credential-provider-node": "3.287.0",
26
26
  "@aws-sdk/fetch-http-handler": "3.282.0",
27
27
  "@aws-sdk/hash-node": "3.272.0",
28
28
  "@aws-sdk/invalid-dependency": "3.272.0",
29
29
  "@aws-sdk/middleware-content-length": "3.282.0",
30
30
  "@aws-sdk/middleware-endpoint": "3.282.0",
31
31
  "@aws-sdk/middleware-host-header": "3.282.0",
32
- "@aws-sdk/middleware-logger": "3.272.0",
32
+ "@aws-sdk/middleware-logger": "3.287.0",
33
33
  "@aws-sdk/middleware-recursion-detection": "3.282.0",
34
- "@aws-sdk/middleware-retry": "3.282.0",
34
+ "@aws-sdk/middleware-retry": "3.287.0",
35
35
  "@aws-sdk/middleware-serde": "3.272.0",
36
36
  "@aws-sdk/middleware-signing": "3.282.0",
37
37
  "@aws-sdk/middleware-stack": "3.272.0",
38
38
  "@aws-sdk/middleware-user-agent": "3.282.0",
39
- "@aws-sdk/node-config-provider": "3.272.0",
39
+ "@aws-sdk/node-config-provider": "3.287.0",
40
40
  "@aws-sdk/node-http-handler": "3.282.0",
41
41
  "@aws-sdk/protocol-http": "3.282.0",
42
42
  "@aws-sdk/smithy-client": "3.279.0",
@@ -46,11 +46,11 @@
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.208.0",
48
48
  "@aws-sdk/util-defaults-mode-browser": "3.279.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.282.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.287.0",
50
50
  "@aws-sdk/util-endpoints": "3.272.0",
51
51
  "@aws-sdk/util-retry": "3.272.0",
52
52
  "@aws-sdk/util-user-agent-browser": "3.282.0",
53
- "@aws-sdk/util-user-agent-node": "3.282.0",
53
+ "@aws-sdk/util-user-agent-node": "3.287.0",
54
54
  "@aws-sdk/util-utf8": "3.254.0",
55
55
  "tslib": "^2.3.1"
56
56
  },