@aws-sdk/client-s3-control 3.635.0 → 3.645.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 (34) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +171 -54
  3. package/dist-es/S3Control.js +2 -0
  4. package/dist-es/commands/ListCallerAccessGrantsCommand.js +30 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/pagination/ListCallerAccessGrantsPaginator.js +4 -0
  7. package/dist-es/pagination/index.js +1 -0
  8. package/dist-es/protocols/Aws_restXml.js +89 -0
  9. package/dist-types/S3Control.d.ts +8 -0
  10. package/dist-types/S3ControlClient.d.ts +3 -2
  11. package/dist-types/commands/CreateAccessGrantsInstanceCommand.d.ts +2 -0
  12. package/dist-types/commands/GetAccessGrantsInstanceCommand.d.ts +6 -0
  13. package/dist-types/commands/ListAccessGrantsInstancesCommand.d.ts +2 -0
  14. package/dist-types/commands/ListCallerAccessGrantsCommand.d.ts +77 -0
  15. package/dist-types/commands/ListStorageLensConfigurationsCommand.d.ts +2 -1
  16. package/dist-types/commands/ListStorageLensGroupsCommand.d.ts +1 -2
  17. package/dist-types/commands/index.d.ts +1 -0
  18. package/dist-types/models/models_0.d.ts +148 -93
  19. package/dist-types/models/models_1.d.ts +67 -2
  20. package/dist-types/pagination/ListCallerAccessGrantsPaginator.d.ts +7 -0
  21. package/dist-types/pagination/index.d.ts +1 -0
  22. package/dist-types/protocols/Aws_restXml.d.ts +9 -0
  23. package/dist-types/ts3.4/S3Control.d.ts +18 -0
  24. package/dist-types/ts3.4/S3ControlClient.d.ts +6 -0
  25. package/dist-types/ts3.4/commands/ListCallerAccessGrantsCommand.d.ts +40 -0
  26. package/dist-types/ts3.4/commands/ListStorageLensConfigurationsCommand.d.ts +2 -4
  27. package/dist-types/ts3.4/commands/ListStorageLensGroupsCommand.d.ts +4 -2
  28. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  29. package/dist-types/ts3.4/models/models_0.d.ts +22 -14
  30. package/dist-types/ts3.4/models/models_1.d.ts +14 -0
  31. package/dist-types/ts3.4/pagination/ListCallerAccessGrantsPaginator.d.ts +11 -0
  32. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  33. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +12 -0
  34. package/package.json +7 -7
@@ -64,6 +64,7 @@ import { ListAccessGrantsInstancesCommand, } from "./commands/ListAccessGrantsIn
64
64
  import { ListAccessGrantsLocationsCommand, } from "./commands/ListAccessGrantsLocationsCommand";
65
65
  import { ListAccessPointsCommand, } from "./commands/ListAccessPointsCommand";
66
66
  import { ListAccessPointsForObjectLambdaCommand, } from "./commands/ListAccessPointsForObjectLambdaCommand";
67
+ import { ListCallerAccessGrantsCommand, } from "./commands/ListCallerAccessGrantsCommand";
67
68
  import { ListJobsCommand } from "./commands/ListJobsCommand";
68
69
  import { ListMultiRegionAccessPointsCommand, } from "./commands/ListMultiRegionAccessPointsCommand";
69
70
  import { ListRegionalBucketsCommand, } from "./commands/ListRegionalBucketsCommand";
@@ -158,6 +159,7 @@ const commands = {
158
159
  ListAccessGrantsLocationsCommand,
159
160
  ListAccessPointsCommand,
160
161
  ListAccessPointsForObjectLambdaCommand,
162
+ ListCallerAccessGrantsCommand,
161
163
  ListJobsCommand,
162
164
  ListMultiRegionAccessPointsCommand,
163
165
  ListRegionalBucketsCommand,
@@ -0,0 +1,30 @@
1
+ import { getProcessArnablesPlugin } from "@aws-sdk/middleware-sdk-s3-control";
2
+ import { getApplyMd5BodyChecksumPlugin } from "@smithy/middleware-apply-body-checksum";
3
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
4
+ import { getSerdePlugin } from "@smithy/middleware-serde";
5
+ import { Command as $Command } from "@smithy/smithy-client";
6
+ import { commonParams } from "../endpoint/EndpointParameters";
7
+ import { de_ListCallerAccessGrantsCommand, se_ListCallerAccessGrantsCommand } from "../protocols/Aws_restXml";
8
+ export { $Command };
9
+ export class ListCallerAccessGrantsCommand extends $Command
10
+ .classBuilder()
11
+ .ep({
12
+ ...commonParams,
13
+ RequiresAccountId: { type: "staticContextParams", value: true },
14
+ AccountId: { type: "contextParams", name: "AccountId" },
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ getSerdePlugin(config, this.serialize, this.deserialize),
19
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
20
+ getProcessArnablesPlugin(config),
21
+ getApplyMd5BodyChecksumPlugin(config),
22
+ ];
23
+ })
24
+ .s("AWSS3ControlServiceV20180820", "ListCallerAccessGrants", {})
25
+ .n("S3ControlClient", "ListCallerAccessGrantsCommand")
26
+ .f(void 0, void 0)
27
+ .ser(se_ListCallerAccessGrantsCommand)
28
+ .de(de_ListCallerAccessGrantsCommand)
29
+ .build() {
30
+ }
@@ -63,6 +63,7 @@ export * from "./ListAccessGrantsInstancesCommand";
63
63
  export * from "./ListAccessGrantsLocationsCommand";
64
64
  export * from "./ListAccessPointsCommand";
65
65
  export * from "./ListAccessPointsForObjectLambdaCommand";
66
+ export * from "./ListCallerAccessGrantsCommand";
66
67
  export * from "./ListJobsCommand";
67
68
  export * from "./ListMultiRegionAccessPointsCommand";
68
69
  export * from "./ListRegionalBucketsCommand";
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListCallerAccessGrantsCommand, } from "../commands/ListCallerAccessGrantsCommand";
3
+ import { S3ControlClient } from "../S3ControlClient";
4
+ export const paginateListCallerAccessGrants = createPaginator(S3ControlClient, ListCallerAccessGrantsCommand, "NextToken", "NextToken", "MaxResults");
@@ -4,6 +4,7 @@ export * from "./ListAccessGrantsLocationsPaginator";
4
4
  export * from "./ListAccessGrantsPaginator";
5
5
  export * from "./ListAccessPointsForObjectLambdaPaginator";
6
6
  export * from "./ListAccessPointsPaginator";
7
+ export * from "./ListCallerAccessGrantsPaginator";
7
8
  export * from "./ListJobsPaginator";
8
9
  export * from "./ListMultiRegionAccessPointsPaginator";
9
10
  export * from "./ListRegionalBucketsPaginator";
@@ -1659,6 +1659,34 @@ export const se_ListAccessPointsForObjectLambdaCommand = async (input, context)
1659
1659
  b.m("GET").h(headers).q(query).b(body);
1660
1660
  return b.build();
1661
1661
  };
1662
+ export const se_ListCallerAccessGrantsCommand = async (input, context) => {
1663
+ const b = rb(input, context);
1664
+ const headers = map({}, isSerializableHeaderValue, {
1665
+ [_xaai]: input[_AI],
1666
+ });
1667
+ b.bp("/v20180820/accessgrantsinstance/caller/grants");
1668
+ const query = map({
1669
+ [_gra]: [, input[_GS]],
1670
+ [_nT]: [, input[_NT]],
1671
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1672
+ [_aBA]: [() => input.AllowedByApplication !== void 0, () => input[_ABA].toString()],
1673
+ });
1674
+ let body;
1675
+ let { hostname: resolvedHostname } = await context.endpoint();
1676
+ if (context.disableHostPrefix !== true) {
1677
+ resolvedHostname = "{AccountId}." + resolvedHostname;
1678
+ if (input.AccountId === undefined) {
1679
+ throw new Error("Empty value provided for input host prefix: AccountId.");
1680
+ }
1681
+ resolvedHostname = resolvedHostname.replace("{AccountId}", input.AccountId);
1682
+ if (!__isValidHostname(resolvedHostname)) {
1683
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1684
+ }
1685
+ }
1686
+ b.hn(resolvedHostname);
1687
+ b.m("GET").h(headers).q(query).b(body);
1688
+ return b.build();
1689
+ };
1662
1690
  export const se_ListJobsCommand = async (input, context) => {
1663
1691
  const b = rb(input, context);
1664
1692
  const headers = map({}, isSerializableHeaderValue, {
@@ -2509,9 +2537,15 @@ export const de_CreateAccessGrantsInstanceCommand = async (output, context) => {
2509
2537
  if (data[_CA] != null) {
2510
2538
  contents[_CA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(data[_CA]));
2511
2539
  }
2540
+ if (data[_ICAA] != null) {
2541
+ contents[_ICAA] = __expectString(data[_ICAA]);
2542
+ }
2512
2543
  if (data[_ICA] != null) {
2513
2544
  contents[_ICA] = __expectString(data[_ICA]);
2514
2545
  }
2546
+ if (data[_ICIA] != null) {
2547
+ contents[_ICIA] = __expectString(data[_ICIA]);
2548
+ }
2515
2549
  return contents;
2516
2550
  };
2517
2551
  export const de_CreateAccessGrantsLocationCommand = async (output, context) => {
@@ -2904,9 +2938,15 @@ export const de_GetAccessGrantsInstanceCommand = async (output, context) => {
2904
2938
  if (data[_CA] != null) {
2905
2939
  contents[_CA] = __expectNonNull(__parseRfc3339DateTimeWithOffset(data[_CA]));
2906
2940
  }
2941
+ if (data[_ICAA] != null) {
2942
+ contents[_ICAA] = __expectString(data[_ICAA]);
2943
+ }
2907
2944
  if (data[_ICA] != null) {
2908
2945
  contents[_ICA] = __expectString(data[_ICA]);
2909
2946
  }
2947
+ if (data[_ICIA] != null) {
2948
+ contents[_ICIA] = __expectString(data[_ICIA]);
2949
+ }
2910
2950
  return contents;
2911
2951
  };
2912
2952
  export const de_GetAccessGrantsInstanceForPrefixCommand = async (output, context) => {
@@ -3426,6 +3466,25 @@ export const de_ListAccessPointsForObjectLambdaCommand = async (output, context)
3426
3466
  }
3427
3467
  return contents;
3428
3468
  };
3469
+ export const de_ListCallerAccessGrantsCommand = async (output, context) => {
3470
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3471
+ return de_CommandError(output, context);
3472
+ }
3473
+ const contents = map({
3474
+ $metadata: deserializeMetadata(output),
3475
+ });
3476
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3477
+ if (data.CallerAccessGrantsList === "") {
3478
+ contents[_CAGL] = [];
3479
+ }
3480
+ else if (data[_CAGL] != null && data[_CAGL][_AG] != null) {
3481
+ contents[_CAGL] = de_CallerAccessGrantsList(__getArrayIfSingleItem(data[_CAGL][_AG]), context);
3482
+ }
3483
+ if (data[_NT] != null) {
3484
+ contents[_NT] = __expectString(data[_NT]);
3485
+ }
3486
+ return contents;
3487
+ };
3429
3488
  export const de_ListJobsCommand = async (output, context) => {
3430
3489
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3431
3490
  return de_CommandError(output, context);
@@ -5546,6 +5605,13 @@ const de_Buckets = (output, context) => {
5546
5605
  return __expectString(entry);
5547
5606
  });
5548
5607
  };
5608
+ const de_CallerAccessGrantsList = (output, context) => {
5609
+ return (output || [])
5610
+ .filter((e) => e != null)
5611
+ .map((entry) => {
5612
+ return de_ListCallerAccessGrantsEntry(entry, context);
5613
+ });
5614
+ };
5549
5615
  const de_CloudWatchMetrics = (output, context) => {
5550
5616
  const contents = {};
5551
5617
  if (output[_IE] != null) {
@@ -6164,6 +6230,12 @@ const de_ListAccessGrantsInstanceEntry = (output, context) => {
6164
6230
  if (output[_ICA] != null) {
6165
6231
  contents[_ICA] = __expectString(output[_ICA]);
6166
6232
  }
6233
+ if (output[_ICIA] != null) {
6234
+ contents[_ICIA] = __expectString(output[_ICIA]);
6235
+ }
6236
+ if (output[_ICAA] != null) {
6237
+ contents[_ICAA] = __expectString(output[_ICAA]);
6238
+ }
6167
6239
  return contents;
6168
6240
  };
6169
6241
  const de_ListAccessGrantsLocationsEntry = (output, context) => {
@@ -6185,6 +6257,19 @@ const de_ListAccessGrantsLocationsEntry = (output, context) => {
6185
6257
  }
6186
6258
  return contents;
6187
6259
  };
6260
+ const de_ListCallerAccessGrantsEntry = (output, context) => {
6261
+ const contents = {};
6262
+ if (output[_P] != null) {
6263
+ contents[_P] = __expectString(output[_P]);
6264
+ }
6265
+ if (output[_GS] != null) {
6266
+ contents[_GS] = __expectString(output[_GS]);
6267
+ }
6268
+ if (output[_AA] != null) {
6269
+ contents[_AA] = __expectString(output[_AA]);
6270
+ }
6271
+ return contents;
6272
+ };
6188
6273
  const de_ListStorageLensConfigurationEntry = (output, context) => {
6189
6274
  const contents = {};
6190
6275
  if (output[_Id_] != null) {
@@ -7407,6 +7492,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
7407
7492
  const _A = "Alias";
7408
7493
  const _AA = "ApplicationArn";
7409
7494
  const _AAGICR = "AssociateAccessGrantsIdentityCenterRequest";
7495
+ const _ABA = "AllowedByApplication";
7410
7496
  const _ACG = "AccessControlGrants";
7411
7497
  const _ACL = "ACL";
7412
7498
  const _ACLc = "AccessControlList";
@@ -7469,6 +7555,7 @@ const _C = "Configuration";
7469
7555
  const _CA = "CreatedAt";
7470
7556
  const _CACL = "CannedAccessControlList";
7471
7557
  const _CAGIR = "CreateAccessGrantsInstanceRequest";
7558
+ const _CAGL = "CallerAccessGrantsList";
7472
7559
  const _CAGLR = "CreateAccessGrantsLocationRequest";
7473
7560
  const _CAGR = "CreateAccessGrantRequest";
7474
7561
  const _CAPFOLR = "CreateAccessPointForObjectLambdaRequest";
@@ -7566,6 +7653,7 @@ const _I = "Include";
7566
7653
  const _IAMRA = "IAMRoleArn";
7567
7654
  const _ICA = "IdentityCenterArn";
7568
7655
  const _ICAA = "IdentityCenterApplicationArn";
7656
+ const _ICIA = "IdentityCenterInstanceArn";
7569
7657
  const _ID = "ID";
7570
7658
  const _IE = "IsEnabled";
7571
7659
  const _IP = "IsPublic";
@@ -7877,6 +7965,7 @@ const _V = "Value";
7877
7965
  const _VC = "VpcConfiguration";
7878
7966
  const _VCe = "VersioningConfiguration";
7879
7967
  const _VI = "VpcId";
7968
+ const _aBA = "allowedByApplication";
7880
7969
  const _aa = "application_arn";
7881
7970
  const _b = "bucket";
7882
7971
  const _dS = "durationSeconds";
@@ -64,6 +64,7 @@ import { ListAccessGrantsInstancesCommandInput, ListAccessGrantsInstancesCommand
64
64
  import { ListAccessGrantsLocationsCommandInput, ListAccessGrantsLocationsCommandOutput } from "./commands/ListAccessGrantsLocationsCommand";
65
65
  import { ListAccessPointsCommandInput, ListAccessPointsCommandOutput } from "./commands/ListAccessPointsCommand";
66
66
  import { ListAccessPointsForObjectLambdaCommandInput, ListAccessPointsForObjectLambdaCommandOutput } from "./commands/ListAccessPointsForObjectLambdaCommand";
67
+ import { ListCallerAccessGrantsCommandInput, ListCallerAccessGrantsCommandOutput } from "./commands/ListCallerAccessGrantsCommand";
67
68
  import { ListJobsCommandInput, ListJobsCommandOutput } from "./commands/ListJobsCommand";
68
69
  import { ListMultiRegionAccessPointsCommandInput, ListMultiRegionAccessPointsCommandOutput } from "./commands/ListMultiRegionAccessPointsCommand";
69
70
  import { ListRegionalBucketsCommandInput, ListRegionalBucketsCommandOutput } from "./commands/ListRegionalBucketsCommand";
@@ -496,6 +497,13 @@ export interface S3Control {
496
497
  listAccessPointsForObjectLambda(args: ListAccessPointsForObjectLambdaCommandInput, options?: __HttpHandlerOptions): Promise<ListAccessPointsForObjectLambdaCommandOutput>;
497
498
  listAccessPointsForObjectLambda(args: ListAccessPointsForObjectLambdaCommandInput, cb: (err: any, data?: ListAccessPointsForObjectLambdaCommandOutput) => void): void;
498
499
  listAccessPointsForObjectLambda(args: ListAccessPointsForObjectLambdaCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccessPointsForObjectLambdaCommandOutput) => void): void;
500
+ /**
501
+ * @see {@link ListCallerAccessGrantsCommand}
502
+ */
503
+ listCallerAccessGrants(): Promise<ListCallerAccessGrantsCommandOutput>;
504
+ listCallerAccessGrants(args: ListCallerAccessGrantsCommandInput, options?: __HttpHandlerOptions): Promise<ListCallerAccessGrantsCommandOutput>;
505
+ listCallerAccessGrants(args: ListCallerAccessGrantsCommandInput, cb: (err: any, data?: ListCallerAccessGrantsCommandOutput) => void): void;
506
+ listCallerAccessGrants(args: ListCallerAccessGrantsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCallerAccessGrantsCommandOutput) => void): void;
499
507
  /**
500
508
  * @see {@link ListJobsCommand}
501
509
  */
@@ -75,6 +75,7 @@ import { ListAccessGrantsInstancesCommandInput, ListAccessGrantsInstancesCommand
75
75
  import { ListAccessGrantsLocationsCommandInput, ListAccessGrantsLocationsCommandOutput } from "./commands/ListAccessGrantsLocationsCommand";
76
76
  import { ListAccessPointsCommandInput, ListAccessPointsCommandOutput } from "./commands/ListAccessPointsCommand";
77
77
  import { ListAccessPointsForObjectLambdaCommandInput, ListAccessPointsForObjectLambdaCommandOutput } from "./commands/ListAccessPointsForObjectLambdaCommand";
78
+ import { ListCallerAccessGrantsCommandInput, ListCallerAccessGrantsCommandOutput } from "./commands/ListCallerAccessGrantsCommand";
78
79
  import { ListJobsCommandInput, ListJobsCommandOutput } from "./commands/ListJobsCommand";
79
80
  import { ListMultiRegionAccessPointsCommandInput, ListMultiRegionAccessPointsCommandOutput } from "./commands/ListMultiRegionAccessPointsCommand";
80
81
  import { ListRegionalBucketsCommandInput, ListRegionalBucketsCommandOutput } from "./commands/ListRegionalBucketsCommand";
@@ -108,11 +109,11 @@ export { __Client };
108
109
  /**
109
110
  * @public
110
111
  */
111
- export type ServiceInputTypes = AssociateAccessGrantsIdentityCenterCommandInput | CreateAccessGrantCommandInput | CreateAccessGrantsInstanceCommandInput | CreateAccessGrantsLocationCommandInput | CreateAccessPointCommandInput | CreateAccessPointForObjectLambdaCommandInput | CreateBucketCommandInput | CreateJobCommandInput | CreateMultiRegionAccessPointCommandInput | CreateStorageLensGroupCommandInput | DeleteAccessGrantCommandInput | DeleteAccessGrantsInstanceCommandInput | DeleteAccessGrantsInstanceResourcePolicyCommandInput | DeleteAccessGrantsLocationCommandInput | DeleteAccessPointCommandInput | DeleteAccessPointForObjectLambdaCommandInput | DeleteAccessPointPolicyCommandInput | DeleteAccessPointPolicyForObjectLambdaCommandInput | DeleteBucketCommandInput | DeleteBucketLifecycleConfigurationCommandInput | DeleteBucketPolicyCommandInput | DeleteBucketReplicationCommandInput | DeleteBucketTaggingCommandInput | DeleteJobTaggingCommandInput | DeleteMultiRegionAccessPointCommandInput | DeletePublicAccessBlockCommandInput | DeleteStorageLensConfigurationCommandInput | DeleteStorageLensConfigurationTaggingCommandInput | DeleteStorageLensGroupCommandInput | DescribeJobCommandInput | DescribeMultiRegionAccessPointOperationCommandInput | DissociateAccessGrantsIdentityCenterCommandInput | GetAccessGrantCommandInput | GetAccessGrantsInstanceCommandInput | GetAccessGrantsInstanceForPrefixCommandInput | GetAccessGrantsInstanceResourcePolicyCommandInput | GetAccessGrantsLocationCommandInput | GetAccessPointCommandInput | GetAccessPointConfigurationForObjectLambdaCommandInput | GetAccessPointForObjectLambdaCommandInput | GetAccessPointPolicyCommandInput | GetAccessPointPolicyForObjectLambdaCommandInput | GetAccessPointPolicyStatusCommandInput | GetAccessPointPolicyStatusForObjectLambdaCommandInput | GetBucketCommandInput | GetBucketLifecycleConfigurationCommandInput | GetBucketPolicyCommandInput | GetBucketReplicationCommandInput | GetBucketTaggingCommandInput | GetBucketVersioningCommandInput | GetDataAccessCommandInput | GetJobTaggingCommandInput | GetMultiRegionAccessPointCommandInput | GetMultiRegionAccessPointPolicyCommandInput | GetMultiRegionAccessPointPolicyStatusCommandInput | GetMultiRegionAccessPointRoutesCommandInput | GetPublicAccessBlockCommandInput | GetStorageLensConfigurationCommandInput | GetStorageLensConfigurationTaggingCommandInput | GetStorageLensGroupCommandInput | ListAccessGrantsCommandInput | ListAccessGrantsInstancesCommandInput | ListAccessGrantsLocationsCommandInput | ListAccessPointsCommandInput | ListAccessPointsForObjectLambdaCommandInput | ListJobsCommandInput | ListMultiRegionAccessPointsCommandInput | ListRegionalBucketsCommandInput | ListStorageLensConfigurationsCommandInput | ListStorageLensGroupsCommandInput | ListTagsForResourceCommandInput | PutAccessGrantsInstanceResourcePolicyCommandInput | PutAccessPointConfigurationForObjectLambdaCommandInput | PutAccessPointPolicyCommandInput | PutAccessPointPolicyForObjectLambdaCommandInput | PutBucketLifecycleConfigurationCommandInput | PutBucketPolicyCommandInput | PutBucketReplicationCommandInput | PutBucketTaggingCommandInput | PutBucketVersioningCommandInput | PutJobTaggingCommandInput | PutMultiRegionAccessPointPolicyCommandInput | PutPublicAccessBlockCommandInput | PutStorageLensConfigurationCommandInput | PutStorageLensConfigurationTaggingCommandInput | SubmitMultiRegionAccessPointRoutesCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAccessGrantsLocationCommandInput | UpdateJobPriorityCommandInput | UpdateJobStatusCommandInput | UpdateStorageLensGroupCommandInput;
112
+ export type ServiceInputTypes = AssociateAccessGrantsIdentityCenterCommandInput | CreateAccessGrantCommandInput | CreateAccessGrantsInstanceCommandInput | CreateAccessGrantsLocationCommandInput | CreateAccessPointCommandInput | CreateAccessPointForObjectLambdaCommandInput | CreateBucketCommandInput | CreateJobCommandInput | CreateMultiRegionAccessPointCommandInput | CreateStorageLensGroupCommandInput | DeleteAccessGrantCommandInput | DeleteAccessGrantsInstanceCommandInput | DeleteAccessGrantsInstanceResourcePolicyCommandInput | DeleteAccessGrantsLocationCommandInput | DeleteAccessPointCommandInput | DeleteAccessPointForObjectLambdaCommandInput | DeleteAccessPointPolicyCommandInput | DeleteAccessPointPolicyForObjectLambdaCommandInput | DeleteBucketCommandInput | DeleteBucketLifecycleConfigurationCommandInput | DeleteBucketPolicyCommandInput | DeleteBucketReplicationCommandInput | DeleteBucketTaggingCommandInput | DeleteJobTaggingCommandInput | DeleteMultiRegionAccessPointCommandInput | DeletePublicAccessBlockCommandInput | DeleteStorageLensConfigurationCommandInput | DeleteStorageLensConfigurationTaggingCommandInput | DeleteStorageLensGroupCommandInput | DescribeJobCommandInput | DescribeMultiRegionAccessPointOperationCommandInput | DissociateAccessGrantsIdentityCenterCommandInput | GetAccessGrantCommandInput | GetAccessGrantsInstanceCommandInput | GetAccessGrantsInstanceForPrefixCommandInput | GetAccessGrantsInstanceResourcePolicyCommandInput | GetAccessGrantsLocationCommandInput | GetAccessPointCommandInput | GetAccessPointConfigurationForObjectLambdaCommandInput | GetAccessPointForObjectLambdaCommandInput | GetAccessPointPolicyCommandInput | GetAccessPointPolicyForObjectLambdaCommandInput | GetAccessPointPolicyStatusCommandInput | GetAccessPointPolicyStatusForObjectLambdaCommandInput | GetBucketCommandInput | GetBucketLifecycleConfigurationCommandInput | GetBucketPolicyCommandInput | GetBucketReplicationCommandInput | GetBucketTaggingCommandInput | GetBucketVersioningCommandInput | GetDataAccessCommandInput | GetJobTaggingCommandInput | GetMultiRegionAccessPointCommandInput | GetMultiRegionAccessPointPolicyCommandInput | GetMultiRegionAccessPointPolicyStatusCommandInput | GetMultiRegionAccessPointRoutesCommandInput | GetPublicAccessBlockCommandInput | GetStorageLensConfigurationCommandInput | GetStorageLensConfigurationTaggingCommandInput | GetStorageLensGroupCommandInput | ListAccessGrantsCommandInput | ListAccessGrantsInstancesCommandInput | ListAccessGrantsLocationsCommandInput | ListAccessPointsCommandInput | ListAccessPointsForObjectLambdaCommandInput | ListCallerAccessGrantsCommandInput | ListJobsCommandInput | ListMultiRegionAccessPointsCommandInput | ListRegionalBucketsCommandInput | ListStorageLensConfigurationsCommandInput | ListStorageLensGroupsCommandInput | ListTagsForResourceCommandInput | PutAccessGrantsInstanceResourcePolicyCommandInput | PutAccessPointConfigurationForObjectLambdaCommandInput | PutAccessPointPolicyCommandInput | PutAccessPointPolicyForObjectLambdaCommandInput | PutBucketLifecycleConfigurationCommandInput | PutBucketPolicyCommandInput | PutBucketReplicationCommandInput | PutBucketTaggingCommandInput | PutBucketVersioningCommandInput | PutJobTaggingCommandInput | PutMultiRegionAccessPointPolicyCommandInput | PutPublicAccessBlockCommandInput | PutStorageLensConfigurationCommandInput | PutStorageLensConfigurationTaggingCommandInput | SubmitMultiRegionAccessPointRoutesCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAccessGrantsLocationCommandInput | UpdateJobPriorityCommandInput | UpdateJobStatusCommandInput | UpdateStorageLensGroupCommandInput;
112
113
  /**
113
114
  * @public
114
115
  */
115
- export type ServiceOutputTypes = AssociateAccessGrantsIdentityCenterCommandOutput | CreateAccessGrantCommandOutput | CreateAccessGrantsInstanceCommandOutput | CreateAccessGrantsLocationCommandOutput | CreateAccessPointCommandOutput | CreateAccessPointForObjectLambdaCommandOutput | CreateBucketCommandOutput | CreateJobCommandOutput | CreateMultiRegionAccessPointCommandOutput | CreateStorageLensGroupCommandOutput | DeleteAccessGrantCommandOutput | DeleteAccessGrantsInstanceCommandOutput | DeleteAccessGrantsInstanceResourcePolicyCommandOutput | DeleteAccessGrantsLocationCommandOutput | DeleteAccessPointCommandOutput | DeleteAccessPointForObjectLambdaCommandOutput | DeleteAccessPointPolicyCommandOutput | DeleteAccessPointPolicyForObjectLambdaCommandOutput | DeleteBucketCommandOutput | DeleteBucketLifecycleConfigurationCommandOutput | DeleteBucketPolicyCommandOutput | DeleteBucketReplicationCommandOutput | DeleteBucketTaggingCommandOutput | DeleteJobTaggingCommandOutput | DeleteMultiRegionAccessPointCommandOutput | DeletePublicAccessBlockCommandOutput | DeleteStorageLensConfigurationCommandOutput | DeleteStorageLensConfigurationTaggingCommandOutput | DeleteStorageLensGroupCommandOutput | DescribeJobCommandOutput | DescribeMultiRegionAccessPointOperationCommandOutput | DissociateAccessGrantsIdentityCenterCommandOutput | GetAccessGrantCommandOutput | GetAccessGrantsInstanceCommandOutput | GetAccessGrantsInstanceForPrefixCommandOutput | GetAccessGrantsInstanceResourcePolicyCommandOutput | GetAccessGrantsLocationCommandOutput | GetAccessPointCommandOutput | GetAccessPointConfigurationForObjectLambdaCommandOutput | GetAccessPointForObjectLambdaCommandOutput | GetAccessPointPolicyCommandOutput | GetAccessPointPolicyForObjectLambdaCommandOutput | GetAccessPointPolicyStatusCommandOutput | GetAccessPointPolicyStatusForObjectLambdaCommandOutput | GetBucketCommandOutput | GetBucketLifecycleConfigurationCommandOutput | GetBucketPolicyCommandOutput | GetBucketReplicationCommandOutput | GetBucketTaggingCommandOutput | GetBucketVersioningCommandOutput | GetDataAccessCommandOutput | GetJobTaggingCommandOutput | GetMultiRegionAccessPointCommandOutput | GetMultiRegionAccessPointPolicyCommandOutput | GetMultiRegionAccessPointPolicyStatusCommandOutput | GetMultiRegionAccessPointRoutesCommandOutput | GetPublicAccessBlockCommandOutput | GetStorageLensConfigurationCommandOutput | GetStorageLensConfigurationTaggingCommandOutput | GetStorageLensGroupCommandOutput | ListAccessGrantsCommandOutput | ListAccessGrantsInstancesCommandOutput | ListAccessGrantsLocationsCommandOutput | ListAccessPointsCommandOutput | ListAccessPointsForObjectLambdaCommandOutput | ListJobsCommandOutput | ListMultiRegionAccessPointsCommandOutput | ListRegionalBucketsCommandOutput | ListStorageLensConfigurationsCommandOutput | ListStorageLensGroupsCommandOutput | ListTagsForResourceCommandOutput | PutAccessGrantsInstanceResourcePolicyCommandOutput | PutAccessPointConfigurationForObjectLambdaCommandOutput | PutAccessPointPolicyCommandOutput | PutAccessPointPolicyForObjectLambdaCommandOutput | PutBucketLifecycleConfigurationCommandOutput | PutBucketPolicyCommandOutput | PutBucketReplicationCommandOutput | PutBucketTaggingCommandOutput | PutBucketVersioningCommandOutput | PutJobTaggingCommandOutput | PutMultiRegionAccessPointPolicyCommandOutput | PutPublicAccessBlockCommandOutput | PutStorageLensConfigurationCommandOutput | PutStorageLensConfigurationTaggingCommandOutput | SubmitMultiRegionAccessPointRoutesCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAccessGrantsLocationCommandOutput | UpdateJobPriorityCommandOutput | UpdateJobStatusCommandOutput | UpdateStorageLensGroupCommandOutput;
116
+ export type ServiceOutputTypes = AssociateAccessGrantsIdentityCenterCommandOutput | CreateAccessGrantCommandOutput | CreateAccessGrantsInstanceCommandOutput | CreateAccessGrantsLocationCommandOutput | CreateAccessPointCommandOutput | CreateAccessPointForObjectLambdaCommandOutput | CreateBucketCommandOutput | CreateJobCommandOutput | CreateMultiRegionAccessPointCommandOutput | CreateStorageLensGroupCommandOutput | DeleteAccessGrantCommandOutput | DeleteAccessGrantsInstanceCommandOutput | DeleteAccessGrantsInstanceResourcePolicyCommandOutput | DeleteAccessGrantsLocationCommandOutput | DeleteAccessPointCommandOutput | DeleteAccessPointForObjectLambdaCommandOutput | DeleteAccessPointPolicyCommandOutput | DeleteAccessPointPolicyForObjectLambdaCommandOutput | DeleteBucketCommandOutput | DeleteBucketLifecycleConfigurationCommandOutput | DeleteBucketPolicyCommandOutput | DeleteBucketReplicationCommandOutput | DeleteBucketTaggingCommandOutput | DeleteJobTaggingCommandOutput | DeleteMultiRegionAccessPointCommandOutput | DeletePublicAccessBlockCommandOutput | DeleteStorageLensConfigurationCommandOutput | DeleteStorageLensConfigurationTaggingCommandOutput | DeleteStorageLensGroupCommandOutput | DescribeJobCommandOutput | DescribeMultiRegionAccessPointOperationCommandOutput | DissociateAccessGrantsIdentityCenterCommandOutput | GetAccessGrantCommandOutput | GetAccessGrantsInstanceCommandOutput | GetAccessGrantsInstanceForPrefixCommandOutput | GetAccessGrantsInstanceResourcePolicyCommandOutput | GetAccessGrantsLocationCommandOutput | GetAccessPointCommandOutput | GetAccessPointConfigurationForObjectLambdaCommandOutput | GetAccessPointForObjectLambdaCommandOutput | GetAccessPointPolicyCommandOutput | GetAccessPointPolicyForObjectLambdaCommandOutput | GetAccessPointPolicyStatusCommandOutput | GetAccessPointPolicyStatusForObjectLambdaCommandOutput | GetBucketCommandOutput | GetBucketLifecycleConfigurationCommandOutput | GetBucketPolicyCommandOutput | GetBucketReplicationCommandOutput | GetBucketTaggingCommandOutput | GetBucketVersioningCommandOutput | GetDataAccessCommandOutput | GetJobTaggingCommandOutput | GetMultiRegionAccessPointCommandOutput | GetMultiRegionAccessPointPolicyCommandOutput | GetMultiRegionAccessPointPolicyStatusCommandOutput | GetMultiRegionAccessPointRoutesCommandOutput | GetPublicAccessBlockCommandOutput | GetStorageLensConfigurationCommandOutput | GetStorageLensConfigurationTaggingCommandOutput | GetStorageLensGroupCommandOutput | ListAccessGrantsCommandOutput | ListAccessGrantsInstancesCommandOutput | ListAccessGrantsLocationsCommandOutput | ListAccessPointsCommandOutput | ListAccessPointsForObjectLambdaCommandOutput | ListCallerAccessGrantsCommandOutput | ListJobsCommandOutput | ListMultiRegionAccessPointsCommandOutput | ListRegionalBucketsCommandOutput | ListStorageLensConfigurationsCommandOutput | ListStorageLensGroupsCommandOutput | ListTagsForResourceCommandOutput | PutAccessGrantsInstanceResourcePolicyCommandOutput | PutAccessPointConfigurationForObjectLambdaCommandOutput | PutAccessPointPolicyCommandOutput | PutAccessPointPolicyForObjectLambdaCommandOutput | PutBucketLifecycleConfigurationCommandOutput | PutBucketPolicyCommandOutput | PutBucketReplicationCommandOutput | PutBucketTaggingCommandOutput | PutBucketVersioningCommandOutput | PutJobTaggingCommandOutput | PutMultiRegionAccessPointPolicyCommandOutput | PutPublicAccessBlockCommandOutput | PutStorageLensConfigurationCommandOutput | PutStorageLensConfigurationTaggingCommandOutput | SubmitMultiRegionAccessPointRoutesCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAccessGrantsLocationCommandOutput | UpdateJobPriorityCommandOutput | UpdateJobStatusCommandOutput | UpdateStorageLensGroupCommandOutput;
116
117
  /**
117
118
  * @public
118
119
  */
@@ -61,6 +61,8 @@ declare const CreateAccessGrantsInstanceCommand_base: {
61
61
  * // AccessGrantsInstanceId: "STRING_VALUE",
62
62
  * // AccessGrantsInstanceArn: "STRING_VALUE",
63
63
  * // IdentityCenterArn: "STRING_VALUE",
64
+ * // IdentityCenterInstanceArn: "STRING_VALUE",
65
+ * // IdentityCenterApplicationArn: "STRING_VALUE",
64
66
  * // };
65
67
  *
66
68
  * ```
@@ -34,6 +34,10 @@ declare const GetAccessGrantsInstanceCommand_base: {
34
34
  * <p>You must have the <code>s3:GetAccessGrantsInstance</code> permission to use this operation. </p>
35
35
  * </dd>
36
36
  * </dl>
37
+ * <note>
38
+ * <p>
39
+ * <code>GetAccessGrantsInstance</code> is not supported for cross-account access. You can only call the API from the account that owns the S3 Access Grants instance.</p>
40
+ * </note>
37
41
  * @example
38
42
  * Use a bare-bones client and the command you need to make an API call.
39
43
  * ```javascript
@@ -49,6 +53,8 @@ declare const GetAccessGrantsInstanceCommand_base: {
49
53
  * // AccessGrantsInstanceArn: "STRING_VALUE",
50
54
  * // AccessGrantsInstanceId: "STRING_VALUE",
51
55
  * // IdentityCenterArn: "STRING_VALUE",
56
+ * // IdentityCenterInstanceArn: "STRING_VALUE",
57
+ * // IdentityCenterApplicationArn: "STRING_VALUE",
52
58
  * // CreatedAt: new Date("TIMESTAMP"),
53
59
  * // };
54
60
  *
@@ -55,6 +55,8 @@ declare const ListAccessGrantsInstancesCommand_base: {
55
55
  * // AccessGrantsInstanceArn: "STRING_VALUE",
56
56
  * // CreatedAt: new Date("TIMESTAMP"),
57
57
  * // IdentityCenterArn: "STRING_VALUE",
58
+ * // IdentityCenterInstanceArn: "STRING_VALUE",
59
+ * // IdentityCenterApplicationArn: "STRING_VALUE",
58
60
  * // },
59
61
  * // ],
60
62
  * // };
@@ -0,0 +1,77 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListCallerAccessGrantsRequest, ListCallerAccessGrantsResult } from "../models/models_0";
4
+ import { S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3ControlClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListCallerAccessGrantsCommand}.
14
+ */
15
+ export interface ListCallerAccessGrantsCommandInput extends ListCallerAccessGrantsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListCallerAccessGrantsCommand}.
21
+ */
22
+ export interface ListCallerAccessGrantsCommandOutput extends ListCallerAccessGrantsResult, __MetadataBearer {
23
+ }
24
+ declare const ListCallerAccessGrantsCommand_base: {
25
+ new (input: ListCallerAccessGrantsCommandInput): import("@smithy/smithy-client").CommandImpl<ListCallerAccessGrantsCommandInput, ListCallerAccessGrantsCommandOutput, S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListCallerAccessGrantsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListCallerAccessGrantsCommandInput, ListCallerAccessGrantsCommandOutput, S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns a list of the access grants that were given to the caller using S3 Access Grants and that allow the caller to access the S3 data of the Amazon Web Services account specified in the request.</p>
31
+ * <dl>
32
+ * <dt>Permissions</dt>
33
+ * <dd>
34
+ * <p>You must have the <code>s3:ListCallerAccessGrants</code> permission to use this operation. </p>
35
+ * </dd>
36
+ * </dl>
37
+ * @example
38
+ * Use a bare-bones client and the command you need to make an API call.
39
+ * ```javascript
40
+ * import { S3ControlClient, ListCallerAccessGrantsCommand } from "@aws-sdk/client-s3-control"; // ES Modules import
41
+ * // const { S3ControlClient, ListCallerAccessGrantsCommand } = require("@aws-sdk/client-s3-control"); // CommonJS import
42
+ * const client = new S3ControlClient(config);
43
+ * const input = { // ListCallerAccessGrantsRequest
44
+ * AccountId: "STRING_VALUE",
45
+ * GrantScope: "STRING_VALUE",
46
+ * NextToken: "STRING_VALUE",
47
+ * MaxResults: Number("int"),
48
+ * AllowedByApplication: true || false,
49
+ * };
50
+ * const command = new ListCallerAccessGrantsCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // ListCallerAccessGrantsResult
53
+ * // NextToken: "STRING_VALUE",
54
+ * // CallerAccessGrantsList: [ // CallerAccessGrantsList
55
+ * // { // ListCallerAccessGrantsEntry
56
+ * // Permission: "READ" || "WRITE" || "READWRITE",
57
+ * // GrantScope: "STRING_VALUE",
58
+ * // ApplicationArn: "STRING_VALUE",
59
+ * // },
60
+ * // ],
61
+ * // };
62
+ *
63
+ * ```
64
+ *
65
+ * @param ListCallerAccessGrantsCommandInput - {@link ListCallerAccessGrantsCommandInput}
66
+ * @returns {@link ListCallerAccessGrantsCommandOutput}
67
+ * @see {@link ListCallerAccessGrantsCommandInput} for command's `input` shape.
68
+ * @see {@link ListCallerAccessGrantsCommandOutput} for command's `response` shape.
69
+ * @see {@link S3ControlClientResolvedConfig | config} for S3ControlClient's `config` shape.
70
+ *
71
+ * @throws {@link S3ControlServiceException}
72
+ * <p>Base exception class for all service exceptions from S3Control service.</p>
73
+ *
74
+ * @public
75
+ */
76
+ export declare class ListCallerAccessGrantsCommand extends ListCallerAccessGrantsCommand_base {
77
+ }
@@ -1,6 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { ListStorageLensConfigurationsRequest, ListStorageLensConfigurationsResult } from "../models/models_0";
3
+ import { ListStorageLensConfigurationsRequest } from "../models/models_0";
4
+ import { ListStorageLensConfigurationsResult } from "../models/models_1";
4
5
  import { S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3ControlClient";
5
6
  /**
6
7
  * @public
@@ -1,7 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { ListStorageLensGroupsRequest } from "../models/models_0";
4
- import { ListStorageLensGroupsResult } from "../models/models_1";
3
+ import { ListStorageLensGroupsRequest, ListStorageLensGroupsResult } from "../models/models_1";
5
4
  import { S3ControlClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../S3ControlClient";
6
5
  /**
7
6
  * @public
@@ -63,6 +63,7 @@ export * from "./ListAccessGrantsInstancesCommand";
63
63
  export * from "./ListAccessGrantsLocationsCommand";
64
64
  export * from "./ListAccessPointsCommand";
65
65
  export * from "./ListAccessPointsForObjectLambdaCommand";
66
+ export * from "./ListCallerAccessGrantsCommand";
66
67
  export * from "./ListJobsCommand";
67
68
  export * from "./ListMultiRegionAccessPointsCommand";
68
69
  export * from "./ListRegionalBucketsCommand";