@aws-sdk/client-accessanalyzer 3.216.0 → 3.221.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.
@@ -6,7 +6,7 @@ exports.ruleSet = {
6
6
  parameters: {
7
7
  Region: {
8
8
  builtIn: "AWS::Region",
9
- required: false,
9
+ required: true,
10
10
  documentation: "The AWS region used to dispatch the request.",
11
11
  type: "String",
12
12
  },
@@ -173,7 +173,7 @@ const serializeAws_restJson1GetAccessPreviewCommand = async (input, context) =>
173
173
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-preview/{accessPreviewId}";
174
174
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accessPreviewId", () => input.accessPreviewId, "{accessPreviewId}", false);
175
175
  const query = map({
176
- analyzerArn: [, input.analyzerArn],
176
+ analyzerArn: [, (0, smithy_client_1.expectNonNull)(input.analyzerArn, `analyzerArn`)],
177
177
  });
178
178
  let body;
179
179
  return new protocol_http_1.HttpRequest({
@@ -193,8 +193,8 @@ const serializeAws_restJson1GetAnalyzedResourceCommand = async (input, context)
193
193
  const headers = {};
194
194
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzed-resource";
195
195
  const query = map({
196
- analyzerArn: [, input.analyzerArn],
197
- resourceArn: [, input.resourceArn],
196
+ analyzerArn: [, (0, smithy_client_1.expectNonNull)(input.analyzerArn, `analyzerArn`)],
197
+ resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
198
198
  });
199
199
  let body;
200
200
  return new protocol_http_1.HttpRequest({
@@ -251,7 +251,7 @@ const serializeAws_restJson1GetFindingCommand = async (input, context) => {
251
251
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/finding/{id}";
252
252
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
253
253
  const query = map({
254
- analyzerArn: [, input.analyzerArn],
254
+ analyzerArn: [, (0, smithy_client_1.expectNonNull)(input.analyzerArn, `analyzerArn`)],
255
255
  });
256
256
  let body;
257
257
  return new protocol_http_1.HttpRequest({
@@ -324,7 +324,7 @@ const serializeAws_restJson1ListAccessPreviewsCommand = async (input, context) =
324
324
  const headers = {};
325
325
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-preview";
326
326
  const query = map({
327
- analyzerArn: [, input.analyzerArn],
327
+ analyzerArn: [, (0, smithy_client_1.expectNonNull)(input.analyzerArn, `analyzerArn`)],
328
328
  nextToken: [, input.nextToken],
329
329
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
330
330
  });
@@ -551,7 +551,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
551
551
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
552
552
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
553
553
  const query = map({
554
- tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
554
+ tagKeys: [
555
+ (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
556
+ () => (input.tagKeys || []).map((_entry) => _entry),
557
+ ],
555
558
  });
556
559
  let body;
557
560
  return new protocol_http_1.HttpRequest({
@@ -2773,6 +2776,7 @@ const deserializeAws_restJson1FindingSource = (output, context) => {
2773
2776
  };
2774
2777
  const deserializeAws_restJson1FindingSourceDetail = (output, context) => {
2775
2778
  return {
2779
+ accessPointAccount: (0, smithy_client_1.expectString)(output.accessPointAccount),
2776
2780
  accessPointArn: (0, smithy_client_1.expectString)(output.accessPointArn),
2777
2781
  };
2778
2782
  };
@@ -3,7 +3,7 @@ export const ruleSet = {
3
3
  parameters: {
4
4
  Region: {
5
5
  builtIn: "AWS::Region",
6
- required: false,
6
+ required: true,
7
7
  documentation: "The AWS region used to dispatch the request.",
8
8
  type: "String",
9
9
  },
@@ -162,7 +162,7 @@ export const serializeAws_restJson1GetAccessPreviewCommand = async (input, conte
162
162
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-preview/{accessPreviewId}";
163
163
  resolvedPath = __resolvedPath(resolvedPath, input, "accessPreviewId", () => input.accessPreviewId, "{accessPreviewId}", false);
164
164
  const query = map({
165
- analyzerArn: [, input.analyzerArn],
165
+ analyzerArn: [, __expectNonNull(input.analyzerArn, `analyzerArn`)],
166
166
  });
167
167
  let body;
168
168
  return new __HttpRequest({
@@ -181,8 +181,8 @@ export const serializeAws_restJson1GetAnalyzedResourceCommand = async (input, co
181
181
  const headers = {};
182
182
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzed-resource";
183
183
  const query = map({
184
- analyzerArn: [, input.analyzerArn],
185
- resourceArn: [, input.resourceArn],
184
+ analyzerArn: [, __expectNonNull(input.analyzerArn, `analyzerArn`)],
185
+ resourceArn: [, __expectNonNull(input.resourceArn, `resourceArn`)],
186
186
  });
187
187
  let body;
188
188
  return new __HttpRequest({
@@ -236,7 +236,7 @@ export const serializeAws_restJson1GetFindingCommand = async (input, context) =>
236
236
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/finding/{id}";
237
237
  resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
238
238
  const query = map({
239
- analyzerArn: [, input.analyzerArn],
239
+ analyzerArn: [, __expectNonNull(input.analyzerArn, `analyzerArn`)],
240
240
  });
241
241
  let body;
242
242
  return new __HttpRequest({
@@ -306,7 +306,7 @@ export const serializeAws_restJson1ListAccessPreviewsCommand = async (input, con
306
306
  const headers = {};
307
307
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-preview";
308
308
  const query = map({
309
- analyzerArn: [, input.analyzerArn],
309
+ analyzerArn: [, __expectNonNull(input.analyzerArn, `analyzerArn`)],
310
310
  nextToken: [, input.nextToken],
311
311
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
312
312
  });
@@ -523,7 +523,10 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
523
523
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
524
524
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
525
525
  const query = map({
526
- tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
526
+ tagKeys: [
527
+ __expectNonNull(input.tagKeys, `tagKeys`) != null,
528
+ () => (input.tagKeys || []).map((_entry) => _entry),
529
+ ],
527
530
  });
528
531
  let body;
529
532
  return new __HttpRequest({
@@ -2713,6 +2716,7 @@ const deserializeAws_restJson1FindingSource = (output, context) => {
2713
2716
  };
2714
2717
  const deserializeAws_restJson1FindingSourceDetail = (output, context) => {
2715
2718
  return {
2719
+ accessPointAccount: __expectString(output.accessPointAccount),
2716
2720
  accessPointArn: __expectString(output.accessPointArn),
2717
2721
  };
2718
2722
  };
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
12
12
  defaultSigningName: string;
13
13
  };
14
14
  export interface EndpointParameters extends __EndpointParameters {
15
- Region?: string;
15
+ Region: string;
16
16
  UseDualStack?: boolean;
17
17
  UseFIPS?: boolean;
18
18
  Endpoint?: string;
@@ -31,7 +31,9 @@ export declare class ConflictException extends __BaseException {
31
31
  constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
32
32
  }
33
33
  /**
34
- * <p>The criteria to use in the filter that defines the archive rule.</p>
34
+ * <p>The criteria to use in the filter that defines the archive rule. For more information on
35
+ * available filter keys, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html">IAM Access Analyzer
36
+ * filter keys</a>.</p>
35
37
  */
36
38
  export interface Criterion {
37
39
  /**
@@ -1579,8 +1581,12 @@ export interface FindingSourceDetail {
1579
1581
  * whether the ARN represents an access point or a multi-region access point.</p>
1580
1582
  */
1581
1583
  accessPointArn?: string;
1584
+ /**
1585
+ * <p>The account of the cross-account access point that generated the finding.</p>
1586
+ */
1587
+ accessPointAccount?: string;
1582
1588
  }
1583
- export declare type FindingSourceType = "BUCKET_ACL" | "POLICY" | "S3_ACCESS_POINT";
1589
+ export declare type FindingSourceType = "BUCKET_ACL" | "POLICY" | "S3_ACCESS_POINT" | "S3_ACCESS_POINT_ACCOUNT";
1584
1590
  /**
1585
1591
  * <p>The source of the finding. This indicates how the access that generated the finding is
1586
1592
  * granted. It is populated for Amazon S3 bucket findings.</p>
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
27
27
  defaultSigningName: string;
28
28
  };
29
29
  export interface EndpointParameters extends __EndpointParameters {
30
- Region?: string;
30
+ Region: string;
31
31
  UseDualStack?: boolean;
32
32
  UseFIPS?: boolean;
33
33
  Endpoint?: string;
@@ -646,11 +646,13 @@ export interface GetFindingRequest {
646
646
  }
647
647
  export interface FindingSourceDetail {
648
648
  accessPointArn?: string;
649
+ accessPointAccount?: string;
649
650
  }
650
651
  export declare type FindingSourceType =
651
652
  | "BUCKET_ACL"
652
653
  | "POLICY"
653
- | "S3_ACCESS_POINT";
654
+ | "S3_ACCESS_POINT"
655
+ | "S3_ACCESS_POINT_ACCOUNT";
654
656
  export interface FindingSource {
655
657
  type: FindingSourceType | string | undefined;
656
658
  detail?: FindingSourceDetail;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-accessanalyzer",
3
3
  "description": "AWS SDK for JavaScript Accessanalyzer Client for Node.js, Browser and React Native",
4
- "version": "3.216.0",
4
+ "version": "3.221.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",
@@ -19,9 +19,9 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.216.0",
22
+ "@aws-sdk/client-sts": "3.218.0",
23
23
  "@aws-sdk/config-resolver": "3.215.0",
24
- "@aws-sdk/credential-provider-node": "3.216.0",
24
+ "@aws-sdk/credential-provider-node": "3.218.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.215.0",
26
26
  "@aws-sdk/hash-node": "3.215.0",
27
27
  "@aws-sdk/invalid-dependency": "3.215.0",