@aws-sdk/client-application-signals 3.751.0 → 3.758.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.
@@ -129,6 +129,8 @@ const se_ListServiceLevelObjectivesCommand = async (input, context) => {
129
129
  [_ON]: [, input[_ON]],
130
130
  [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
131
131
  [_NT]: [, input[_NT]],
132
+ [_ILA]: [() => input.IncludeLinkedAccounts !== void 0, () => input[_ILA].toString()],
133
+ [_SOAAI]: [, input[_SOAAI]],
132
134
  });
133
135
  let body;
134
136
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -167,6 +169,8 @@ const se_ListServicesCommand = async (input, context) => {
167
169
  [_ET]: [(0, smithy_client_1.expectNonNull)(input.EndTime, `EndTime`) != null, () => (0, smithy_client_1.serializeDateTime)(input[_ET]).toString()],
168
170
  [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
169
171
  [_NT]: [, input[_NT]],
172
+ [_ILA]: [() => input.IncludeLinkedAccounts !== void 0, () => input[_ILA].toString()],
173
+ [_AAI]: [, input[_AAI]],
170
174
  });
171
175
  let body;
172
176
  b.m("GET").h(headers).q(query).b(body);
@@ -723,9 +727,12 @@ const deserializeMetadata = (output) => ({
723
727
  cfId: output.headers["x-amz-cf-id"],
724
728
  });
725
729
  const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
730
+ const _AAI = "AwsAccountId";
726
731
  const _ET = "EndTime";
732
+ const _ILA = "IncludeLinkedAccounts";
727
733
  const _MR = "MaxResults";
728
734
  const _NT = "NextToken";
729
735
  const _ON = "OperationName";
730
736
  const _RA = "ResourceArn";
737
+ const _SOAAI = "SloOwnerAwsAccountId";
731
738
  const _ST = "StartTime";
@@ -119,6 +119,8 @@ export const se_ListServiceLevelObjectivesCommand = async (input, context) => {
119
119
  [_ON]: [, input[_ON]],
120
120
  [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
121
121
  [_NT]: [, input[_NT]],
122
+ [_ILA]: [() => input.IncludeLinkedAccounts !== void 0, () => input[_ILA].toString()],
123
+ [_SOAAI]: [, input[_SOAAI]],
122
124
  });
123
125
  let body;
124
126
  body = JSON.stringify(take(input, {
@@ -155,6 +157,8 @@ export const se_ListServicesCommand = async (input, context) => {
155
157
  [_ET]: [__expectNonNull(input.EndTime, `EndTime`) != null, () => __serializeDateTime(input[_ET]).toString()],
156
158
  [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
157
159
  [_NT]: [, input[_NT]],
160
+ [_ILA]: [() => input.IncludeLinkedAccounts !== void 0, () => input[_ILA].toString()],
161
+ [_AAI]: [, input[_AAI]],
158
162
  });
159
163
  let body;
160
164
  b.m("GET").h(headers).q(query).b(body);
@@ -690,9 +694,12 @@ const deserializeMetadata = (output) => ({
690
694
  cfId: output.headers["x-amz-cf-id"],
691
695
  });
692
696
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
697
+ const _AAI = "AwsAccountId";
693
698
  const _ET = "EndTime";
699
+ const _ILA = "IncludeLinkedAccounts";
694
700
  const _MR = "MaxResults";
695
701
  const _NT = "NextToken";
696
702
  const _ON = "OperationName";
697
703
  const _RA = "ResourceArn";
704
+ const _SOAAI = "SloOwnerAwsAccountId";
698
705
  const _ST = "StartTime";
@@ -36,6 +36,10 @@ declare const CreateServiceLevelObjectiveCommand_base: {
36
36
  * <p>The target performance quality that is defined for an SLO is the <i>attainment goal</i>.</p>
37
37
  * <p>You can set SLO targets for your applications that are discovered by Application Signals, using critical metrics such as latency and availability.
38
38
  * You can also set SLOs against any CloudWatch metric or math expression that produces a time series.</p>
39
+ * <note>
40
+ * <p>You can't create an SLO for a service operation that was discovered by Application Signals until after that operation has reported standard
41
+ * metrics to Application Signals.</p>
42
+ * </note>
39
43
  * <p>When you create an SLO, you specify whether it is a <i>period-based SLO</i>
40
44
  * or a <i>request-based SLO</i>. Each type of SLO has a different way of evaluating
41
45
  * your application's performance against its attainment goal.</p>
@@ -64,6 +64,7 @@ declare const GetServiceCommand_base: {
64
64
  * // },
65
65
  * // ],
66
66
  * // MetricName: "STRING_VALUE", // required
67
+ * // AccountId: "STRING_VALUE",
67
68
  * // },
68
69
  * // ],
69
70
  * // LogGroupReferences: [ // LogGroupReferences
@@ -69,6 +69,7 @@ declare const ListServiceDependenciesCommand_base: {
69
69
  * // },
70
70
  * // ],
71
71
  * // MetricName: "STRING_VALUE", // required
72
+ * // AccountId: "STRING_VALUE",
72
73
  * // },
73
74
  * // ],
74
75
  * // },
@@ -67,6 +67,7 @@ declare const ListServiceDependentsCommand_base: {
67
67
  * // },
68
68
  * // ],
69
69
  * // MetricName: "STRING_VALUE", // required
70
+ * // AccountId: "STRING_VALUE",
70
71
  * // },
71
72
  * // ],
72
73
  * // },
@@ -41,6 +41,8 @@ declare const ListServiceLevelObjectivesCommand_base: {
41
41
  * OperationName: "STRING_VALUE",
42
42
  * MaxResults: Number("int"),
43
43
  * NextToken: "STRING_VALUE",
44
+ * IncludeLinkedAccounts: true || false,
45
+ * SloOwnerAwsAccountId: "STRING_VALUE",
44
46
  * };
45
47
  * const command = new ListServiceLevelObjectivesCommand(input);
46
48
  * const response = await client.send(command);
@@ -63,6 +63,7 @@ declare const ListServiceOperationsCommand_base: {
63
63
  * // },
64
64
  * // ],
65
65
  * // MetricName: "STRING_VALUE", // required
66
+ * // AccountId: "STRING_VALUE",
66
67
  * // },
67
68
  * // ],
68
69
  * // },
@@ -41,6 +41,8 @@ declare const ListServicesCommand_base: {
41
41
  * EndTime: new Date("TIMESTAMP"), // required
42
42
  * MaxResults: Number("int"),
43
43
  * NextToken: "STRING_VALUE",
44
+ * IncludeLinkedAccounts: true || false,
45
+ * AwsAccountId: "STRING_VALUE",
44
46
  * };
45
47
  * const command = new ListServicesCommand(input);
46
48
  * const response = await client.send(command);
@@ -68,6 +70,7 @@ declare const ListServicesCommand_base: {
68
70
  * // },
69
71
  * // ],
70
72
  * // MetricName: "STRING_VALUE", // required
73
+ * // AccountId: "STRING_VALUE",
71
74
  * // },
72
75
  * // ],
73
76
  * // },
@@ -902,6 +902,11 @@ export interface MetricReference {
902
902
  * @public
903
903
  */
904
904
  MetricName: string | undefined;
905
+ /**
906
+ * <p>Amazon Web Services account ID.</p>
907
+ * @public
908
+ */
909
+ AccountId?: string | undefined;
905
910
  }
906
911
  /**
907
912
  * <p>This structure contains information about one of your services that was discovered by Application Signals.
@@ -1565,6 +1570,18 @@ export interface ListServicesInput {
1565
1570
  * @public
1566
1571
  */
1567
1572
  NextToken?: string | undefined;
1573
+ /**
1574
+ * <p>If you are using this operation in a monitoring account, specify <code>true</code> to include services from source accounts in the returned data.
1575
+ *
1576
+ * </p>
1577
+ * @public
1578
+ */
1579
+ IncludeLinkedAccounts?: boolean | undefined;
1580
+ /**
1581
+ * <p>Amazon Web Services Account ID.</p>
1582
+ * @public
1583
+ */
1584
+ AwsAccountId?: string | undefined;
1568
1585
  }
1569
1586
  /**
1570
1587
  * <p>This structure contains information about one of your services that
@@ -1806,7 +1823,7 @@ export declare class ConflictException extends __BaseException {
1806
1823
  * exactly 1 indicates that the SLO goal will be met exactly.</p>
1807
1824
  * <p>For example, if you specify 60 as the number of minutes in the look-back window, the burn rate is calculated as the following:</p>
1808
1825
  * <p>
1809
- * <i>burn rate = error rate over the look-back window / (1 - attainment goal percentage)</i>
1826
+ * <i>burn rate = error rate over the look-back window / (100% - attainment goal percentage)</i>
1810
1827
  * </p>
1811
1828
  * <p>For more information about burn rates, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-ServiceLevelObjectives.html#CloudWatch-ServiceLevelObjectives-burn">Calculate burn rates</a>.</p>
1812
1829
  * @public
@@ -2230,6 +2247,21 @@ export interface ListServiceLevelObjectivesInput {
2230
2247
  * @public
2231
2248
  */
2232
2249
  NextToken?: string | undefined;
2250
+ /**
2251
+ * <p>If you are using this operation in a monitoring account, specify <code>true</code> to include SLO from source accounts in the returned data.
2252
+ *
2253
+ * </p>
2254
+ * <p>When you are monitoring an account, you can use Amazon Web Services account ID in <code>KeyAttribute</code> filter for service source account and <code>SloOwnerawsaccountID</code> for SLO source account with <code>IncludeLinkedAccounts</code> to filter the returned data to only a single source account.
2255
+ *
2256
+ * </p>
2257
+ * @public
2258
+ */
2259
+ IncludeLinkedAccounts?: boolean | undefined;
2260
+ /**
2261
+ * <p>SLO's Amazon Web Services account ID.</p>
2262
+ * @public
2263
+ */
2264
+ SloOwnerAwsAccountId?: string | undefined;
2233
2265
  }
2234
2266
  /**
2235
2267
  * <p>A structure that contains information about one service level objective (SLO) created in Application Signals.</p>
@@ -247,6 +247,7 @@ export interface MetricReference {
247
247
  MetricType: string | undefined;
248
248
  Dimensions?: Dimension[] | undefined;
249
249
  MetricName: string | undefined;
250
+ AccountId?: string | undefined;
250
251
  }
251
252
  export interface Service {
252
253
  KeyAttributes: Record<string, string> | undefined;
@@ -320,6 +321,8 @@ export interface ListServicesInput {
320
321
  EndTime: Date | undefined;
321
322
  MaxResults?: number | undefined;
322
323
  NextToken?: string | undefined;
324
+ IncludeLinkedAccounts?: boolean | undefined;
325
+ AwsAccountId?: string | undefined;
323
326
  }
324
327
  export interface ServiceSummary {
325
328
  KeyAttributes: Record<string, string> | undefined;
@@ -437,6 +440,8 @@ export interface ListServiceLevelObjectivesInput {
437
440
  OperationName?: string | undefined;
438
441
  MaxResults?: number | undefined;
439
442
  NextToken?: string | undefined;
443
+ IncludeLinkedAccounts?: boolean | undefined;
444
+ SloOwnerAwsAccountId?: string | undefined;
440
445
  }
441
446
  export interface ServiceLevelObjectiveSummary {
442
447
  Arn: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-application-signals",
3
3
  "description": "AWS SDK for JavaScript Application Signals Client for Node.js, Browser and React Native",
4
- "version": "3.751.0",
4
+ "version": "3.758.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,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.750.0",
24
- "@aws-sdk/credential-provider-node": "3.750.0",
23
+ "@aws-sdk/core": "3.758.0",
24
+ "@aws-sdk/credential-provider-node": "3.758.0",
25
25
  "@aws-sdk/middleware-host-header": "3.734.0",
26
26
  "@aws-sdk/middleware-logger": "3.734.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.734.0",
28
- "@aws-sdk/middleware-user-agent": "3.750.0",
28
+ "@aws-sdk/middleware-user-agent": "3.758.0",
29
29
  "@aws-sdk/region-config-resolver": "3.734.0",
30
30
  "@aws-sdk/types": "3.734.0",
31
31
  "@aws-sdk/util-endpoints": "3.743.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.734.0",
33
- "@aws-sdk/util-user-agent-node": "3.750.0",
33
+ "@aws-sdk/util-user-agent-node": "3.758.0",
34
34
  "@smithy/config-resolver": "^4.0.1",
35
- "@smithy/core": "^3.1.4",
35
+ "@smithy/core": "^3.1.5",
36
36
  "@smithy/fetch-http-handler": "^5.0.1",
37
37
  "@smithy/hash-node": "^4.0.1",
38
38
  "@smithy/invalid-dependency": "^4.0.1",
39
39
  "@smithy/middleware-content-length": "^4.0.1",
40
- "@smithy/middleware-endpoint": "^4.0.5",
41
- "@smithy/middleware-retry": "^4.0.6",
40
+ "@smithy/middleware-endpoint": "^4.0.6",
41
+ "@smithy/middleware-retry": "^4.0.7",
42
42
  "@smithy/middleware-serde": "^4.0.2",
43
43
  "@smithy/middleware-stack": "^4.0.1",
44
44
  "@smithy/node-config-provider": "^4.0.1",
45
- "@smithy/node-http-handler": "^4.0.2",
45
+ "@smithy/node-http-handler": "^4.0.3",
46
46
  "@smithy/protocol-http": "^5.0.1",
47
- "@smithy/smithy-client": "^4.1.5",
47
+ "@smithy/smithy-client": "^4.1.6",
48
48
  "@smithy/types": "^4.1.0",
49
49
  "@smithy/url-parser": "^4.0.1",
50
50
  "@smithy/util-base64": "^4.0.0",
51
51
  "@smithy/util-body-length-browser": "^4.0.0",
52
52
  "@smithy/util-body-length-node": "^4.0.0",
53
- "@smithy/util-defaults-mode-browser": "^4.0.6",
54
- "@smithy/util-defaults-mode-node": "^4.0.6",
53
+ "@smithy/util-defaults-mode-browser": "^4.0.7",
54
+ "@smithy/util-defaults-mode-node": "^4.0.7",
55
55
  "@smithy/util-endpoints": "^3.0.1",
56
56
  "@smithy/util-middleware": "^4.0.1",
57
57
  "@smithy/util-retry": "^4.0.1",