@aws-sdk/client-s3-control 3.835.0 → 3.837.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.
package/dist-cjs/index.js CHANGED
@@ -1804,7 +1804,9 @@ var se_ListAccessPointsCommand = /* @__PURE__ */ __name(async (input, context) =
1804
1804
  const query = (0, import_smithy_client.map)({
1805
1805
  [_b]: [, input[_B]],
1806
1806
  [_nT]: [, input[_NT]],
1807
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
1807
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1808
+ [_dSI]: [, input[_DSI]],
1809
+ [_dST]: [, input[_DST]]
1808
1810
  });
1809
1811
  let body;
1810
1812
  b.m("GET").h(headers).q(query).b(body);
@@ -2902,6 +2904,12 @@ var de_GetAccessPointCommand = /* @__PURE__ */ __name(async (output, context) =>
2902
2904
  if (data[_CD] != null) {
2903
2905
  contents[_CD] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(data[_CD]));
2904
2906
  }
2907
+ if (data[_DSI] != null) {
2908
+ contents[_DSI] = (0, import_smithy_client.expectString)(data[_DSI]);
2909
+ }
2910
+ if (data[_DST] != null) {
2911
+ contents[_DST] = (0, import_smithy_client.expectString)(data[_DST]);
2912
+ }
2905
2913
  if (data.Endpoints === "") {
2906
2914
  contents[_E] = {};
2907
2915
  } else if (data[_E] != null && data[_E][_e] != null) {
@@ -5337,6 +5345,12 @@ var de_AccessPoint = /* @__PURE__ */ __name((output, context) => {
5337
5345
  if (output[_BAI] != null) {
5338
5346
  contents[_BAI] = (0, import_smithy_client.expectString)(output[_BAI]);
5339
5347
  }
5348
+ if (output[_DSI] != null) {
5349
+ contents[_DSI] = (0, import_smithy_client.expectString)(output[_DSI]);
5350
+ }
5351
+ if (output[_DST] != null) {
5352
+ contents[_DST] = (0, import_smithy_client.expectString)(output[_DST]);
5353
+ }
5340
5354
  return contents;
5341
5355
  }, "de_AccessPoint");
5342
5356
  var de_AccessPointList = /* @__PURE__ */ __name((output, context) => {
@@ -7391,6 +7405,8 @@ var _DMRS = "DeleteMarkerReplicationStatus";
7391
7405
  var _DN = "DisplayName";
7392
7406
  var _DS = "DurationSeconds";
7393
7407
  var _DSCM = "DetailedStatusCodesMetrics";
7408
+ var _DSI = "DataSourceId";
7409
+ var _DST = "DataSourceType";
7394
7410
  var _Da = "Date";
7395
7411
  var _Day = "Days";
7396
7412
  var _De = "Details";
@@ -7767,6 +7783,8 @@ var _aa = "application_arn";
7767
7783
  var _b = "bucket";
7768
7784
  var _dB = "directoryBucket";
7769
7785
  var _dS = "durationSeconds";
7786
+ var _dSI = "dataSourceId";
7787
+ var _dST = "dataSourceType";
7770
7788
  var _e = "entry";
7771
7789
  var _g = "granteetype";
7772
7790
  var _gr = "granteeidentifier";
@@ -896,6 +896,8 @@ export const se_ListAccessPointsCommand = async (input, context) => {
896
896
  [_b]: [, input[_B]],
897
897
  [_nT]: [, input[_NT]],
898
898
  [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
899
+ [_dSI]: [, input[_DSI]],
900
+ [_dST]: [, input[_DST]],
899
901
  });
900
902
  let body;
901
903
  b.m("GET").h(headers).q(query).b(body);
@@ -1993,6 +1995,12 @@ export const de_GetAccessPointCommand = async (output, context) => {
1993
1995
  if (data[_CD] != null) {
1994
1996
  contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(data[_CD]));
1995
1997
  }
1998
+ if (data[_DSI] != null) {
1999
+ contents[_DSI] = __expectString(data[_DSI]);
2000
+ }
2001
+ if (data[_DST] != null) {
2002
+ contents[_DST] = __expectString(data[_DST]);
2003
+ }
1996
2004
  if (data.Endpoints === "") {
1997
2005
  contents[_E] = {};
1998
2006
  }
@@ -4484,6 +4492,12 @@ const de_AccessPoint = (output, context) => {
4484
4492
  if (output[_BAI] != null) {
4485
4493
  contents[_BAI] = __expectString(output[_BAI]);
4486
4494
  }
4495
+ if (output[_DSI] != null) {
4496
+ contents[_DSI] = __expectString(output[_DSI]);
4497
+ }
4498
+ if (output[_DST] != null) {
4499
+ contents[_DST] = __expectString(output[_DST]);
4500
+ }
4487
4501
  return contents;
4488
4502
  };
4489
4503
  const de_AccessPointList = (output, context) => {
@@ -6653,6 +6667,8 @@ const _DMRS = "DeleteMarkerReplicationStatus";
6653
6667
  const _DN = "DisplayName";
6654
6668
  const _DS = "DurationSeconds";
6655
6669
  const _DSCM = "DetailedStatusCodesMetrics";
6670
+ const _DSI = "DataSourceId";
6671
+ const _DST = "DataSourceType";
6656
6672
  const _Da = "Date";
6657
6673
  const _Day = "Days";
6658
6674
  const _De = "Details";
@@ -7029,6 +7045,8 @@ const _aa = "application_arn";
7029
7045
  const _b = "bucket";
7030
7046
  const _dB = "directoryBucket";
7031
7047
  const _dS = "durationSeconds";
7048
+ const _dSI = "dataSourceId";
7049
+ const _dST = "dataSourceType";
7032
7050
  const _e = "entry";
7033
7051
  const _g = "granteetype";
7034
7052
  const _gr = "granteeidentifier";
@@ -29,9 +29,11 @@ declare const CreateAccessPointCommand_base: {
29
29
  /**
30
30
  * <p>Creates an access point and associates it to a specified bucket. For more information, see
31
31
  * <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html">Managing
32
- * access to shared datasets in general purpose buckets with access points</a> or <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-directory-buckets.html">Managing
33
- * access to shared datasets in directory buckets with access points</a> in the
32
+ * access to shared datasets with access points</a> or <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-directory-buckets.html">Managing access to
33
+ * shared datasets in directory buckets with access points</a> in the
34
34
  * <i>Amazon S3 User Guide</i>.</p>
35
+ * <p>To create an access point and attach it to a volume on an Amazon FSx file system, see <a href="https://docs.aws.amazon.com/fsx/latest/APIReference/API_CreateAndAttachS3AccessPoint.html">CreateAndAttachS3AccessPoint</a> in the <i>Amazon FSx API
36
+ * Reference</i>.</p>
35
37
  * <p></p>
36
38
  * <note>
37
39
  * <p>S3 on Outposts only supports VPC-style access points. </p>
@@ -80,6 +80,8 @@ declare const GetAccessPointCommand_base: {
80
80
  * // "<keys>": "STRING_VALUE",
81
81
  * // },
82
82
  * // BucketAccountId: "STRING_VALUE",
83
+ * // DataSourceId: "STRING_VALUE",
84
+ * // DataSourceType: "STRING_VALUE",
83
85
  * // };
84
86
  *
85
87
  * ```
@@ -30,14 +30,12 @@ declare const ListAccessPointsCommand_base: {
30
30
  * <note>
31
31
  * <p>This operation is not supported by directory buckets.</p>
32
32
  * </note>
33
- * <p>Returns a list of the access points
34
- * that are
35
- * owned by the current account
36
- * that's
37
- * associated with the specified bucket. You can retrieve up to 1000 access points
38
- * per call. If the specified bucket has more than 1,000 access points (or the number specified in
39
- * <code>maxResults</code>, whichever is less), the response will include a continuation
40
- * token that you can use to list the additional access points.</p>
33
+ * <p>Returns a list of the access points. You can retrieve up to 1,000 access points per call. If the call
34
+ * returns more than 1,000 access points (or the number specified in <code>maxResults</code>,
35
+ * whichever is less), the response will include a continuation token that you can use to list
36
+ * the additional access points.</p>
37
+ * <p>Returns only access points attached to S3 buckets by default. To return all access points specify
38
+ * <code>DataSourceType</code> as <code>ALL</code>.</p>
41
39
  * <p></p>
42
40
  * <p>All Amazon S3 on Outposts REST API requests for this action require an additional parameter of <code>x-amz-outpost-id</code> to be passed with the request. In addition, you must use an S3 on Outposts endpoint hostname prefix instead of <code>s3-control</code>. For an example of the request syntax for Amazon S3 on Outposts that uses the S3 on Outposts endpoint hostname prefix and the <code>x-amz-outpost-id</code> derived by using the access point ARN, see the <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_GetAccessPoint.html#API_control_GetAccessPoint_Examples">Examples</a> section.</p>
43
41
  * <p>The following actions are related to <code>ListAccessPoints</code>:</p>
@@ -69,6 +67,8 @@ declare const ListAccessPointsCommand_base: {
69
67
  * Bucket: "STRING_VALUE",
70
68
  * NextToken: "STRING_VALUE",
71
69
  * MaxResults: Number("int"),
70
+ * DataSourceId: "STRING_VALUE",
71
+ * DataSourceType: "STRING_VALUE",
72
72
  * };
73
73
  * const command = new ListAccessPointsCommand(input);
74
74
  * const response = await client.send(command);
@@ -84,6 +84,8 @@ declare const ListAccessPointsCommand_base: {
84
84
  * // AccessPointArn: "STRING_VALUE",
85
85
  * // Alias: "STRING_VALUE",
86
86
  * // BucketAccountId: "STRING_VALUE",
87
+ * // DataSourceId: "STRING_VALUE",
88
+ * // DataSourceType: "STRING_VALUE",
87
89
  * // },
88
90
  * // ],
89
91
  * // NextToken: "STRING_VALUE",
@@ -58,6 +58,8 @@ declare const ListAccessPointsForDirectoryBucketsCommand_base: {
58
58
  * // AccessPointArn: "STRING_VALUE",
59
59
  * // Alias: "STRING_VALUE",
60
60
  * // BucketAccountId: "STRING_VALUE",
61
+ * // DataSourceId: "STRING_VALUE",
62
+ * // DataSourceType: "STRING_VALUE",
61
63
  * // },
62
64
  * // ],
63
65
  * // NextToken: "STRING_VALUE",
@@ -312,6 +312,16 @@ export interface AccessPoint {
312
312
  * @public
313
313
  */
314
314
  BucketAccountId?: string | undefined;
315
+ /**
316
+ * <p>A unique identifier for the data source of the access point.</p>
317
+ * @public
318
+ */
319
+ DataSourceId?: string | undefined;
320
+ /**
321
+ * <p>The type of the data source that the access point is attached to.</p>
322
+ * @public
323
+ */
324
+ DataSourceType?: string | undefined;
315
325
  }
316
326
  /**
317
327
  * <p>The container element for Amazon S3 Storage Lens activity metrics. Activity metrics show details
@@ -1121,8 +1131,7 @@ export declare const ScopePermission: {
1121
1131
  export type ScopePermission = (typeof ScopePermission)[keyof typeof ScopePermission];
1122
1132
  /**
1123
1133
  * <p>You can use the access point scope to restrict access to specific prefixes, API operations, or a combination of both.</p>
1124
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-directory-buckets-manage-scope.html">Manage the scope of your access points for directory buckets.</a>
1125
- * </p>
1134
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-directory-buckets-manage-scope.html">Manage the scope of your access points for directory buckets</a>.</p>
1126
1135
  * @public
1127
1136
  */
1128
1137
  export interface Scope {
@@ -1148,7 +1157,10 @@ export interface CreateAccessPointRequest {
1148
1157
  AccountId?: string | undefined;
1149
1158
  /**
1150
1159
  * <p>The name you want to assign to this access point.</p>
1151
- * <p>For directory buckets, the access point name must consist of a base name that you provide and suffix that includes the <code>ZoneID</code> (Amazon Web Services Availability Zone or Local Zone) of your bucket location, followed by <code>--xa-s3</code>. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-directory-buckets.html">Managing access to shared datasets in directory buckets with access points</a> in the Amazon S3 User Guide.</p>
1160
+ * <p>For directory buckets, the access point name must consist of a base name that you provide and
1161
+ * suffix that includes the <code>ZoneID</code> (Amazon Web Services Availability Zone or Local Zone) of your bucket location,
1162
+ * followed by <code>--xa-s3</code>. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-directory-buckets.html">Managing access to shared datasets in directory buckets with
1163
+ * access points</a> in the <i>Amazon S3 User Guide</i>.</p>
1152
1164
  * @public
1153
1165
  */
1154
1166
  Name: string | undefined;
@@ -1183,9 +1195,11 @@ export interface CreateAccessPointRequest {
1183
1195
  */
1184
1196
  BucketAccountId?: string | undefined;
1185
1197
  /**
1186
- * <p>For directory buckets, you can filter access control to specific prefixes, API operations, or a combination of both. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-directory-buckets.html">Managing access to shared datasets in directory buckets with access points</a> in the Amazon S3 User Guide.</p>
1198
+ * <p>For directory buckets, you can filter access control to specific prefixes, API
1199
+ * operations, or a combination of both. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-directory-buckets.html">Managing access to shared datasets in directory buckets with
1200
+ * access points</a> in the <i>Amazon S3 User Guide</i>.</p>
1187
1201
  * <note>
1188
- * <p>Scope is not supported for access points for general purpose buckets.</p>
1202
+ * <p>Scope is only supported for access points attached to directory buckets.</p>
1189
1203
  * </note>
1190
1204
  * @public
1191
1205
  */
@@ -4117,6 +4131,16 @@ export interface GetAccessPointResult {
4117
4131
  * @public
4118
4132
  */
4119
4133
  BucketAccountId?: string | undefined;
4134
+ /**
4135
+ * <p>The unique identifier for the data source of the access point.</p>
4136
+ * @public
4137
+ */
4138
+ DataSourceId?: string | undefined;
4139
+ /**
4140
+ * <p>The type of the data source that the access point is attached to.</p>
4141
+ * @public
4142
+ */
4143
+ DataSourceType?: string | undefined;
4120
4144
  }
4121
4145
  /**
4122
4146
  * @public
@@ -6307,6 +6331,17 @@ export interface ListAccessPointsRequest {
6307
6331
  * @public
6308
6332
  */
6309
6333
  MaxResults?: number | undefined;
6334
+ /**
6335
+ * <p>The unique identifier for the data source of the access point.</p>
6336
+ * @public
6337
+ */
6338
+ DataSourceId?: string | undefined;
6339
+ /**
6340
+ * <p>The type of the data source that the access point is attached to. Returns only access points attached to S3 buckets by default. To return all access points specify
6341
+ * <code>DataSourceType</code> as <code>ALL</code>.</p>
6342
+ * @public
6343
+ */
6344
+ DataSourceType?: string | undefined;
6310
6345
  }
6311
6346
  /**
6312
6347
  * @public
@@ -373,8 +373,8 @@ export interface PutAccessPointPolicyRequest {
373
373
  Name: string | undefined;
374
374
  /**
375
375
  * <p>The policy that you want to apply to the specified access point. For more information about access point
376
- * policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html">Managing access to shared datasets in general purpose buckets with
377
- * access points</a> or <a href="AmazonS3/latest/userguide/access-points-directory-buckets.html">Managing access to shared datasets in directory bucekts with access points</a> in the <i>Amazon S3 User Guide</i>.</p>
376
+ * policies, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html">Managing data access with Amazon S3
377
+ * access points</a> or <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-directory-buckets.html">Managing access to shared datasets in directory buckets with access points</a> in the <i>Amazon S3 User Guide</i>.</p>
378
378
  * @public
379
379
  */
380
380
  Policy: string | undefined;
@@ -73,6 +73,8 @@ export interface AccessPoint {
73
73
  AccessPointArn?: string | undefined;
74
74
  Alias?: string | undefined;
75
75
  BucketAccountId?: string | undefined;
76
+ DataSourceId?: string | undefined;
77
+ DataSourceType?: string | undefined;
76
78
  }
77
79
  export interface ActivityMetrics {
78
80
  IsEnabled?: boolean | undefined;
@@ -1029,6 +1031,8 @@ export interface GetAccessPointResult {
1029
1031
  AccessPointArn?: string | undefined;
1030
1032
  Endpoints?: Record<string, string> | undefined;
1031
1033
  BucketAccountId?: string | undefined;
1034
+ DataSourceId?: string | undefined;
1035
+ DataSourceType?: string | undefined;
1032
1036
  }
1033
1037
  export interface GetAccessPointConfigurationForObjectLambdaRequest {
1034
1038
  AccountId?: string | undefined;
@@ -1548,6 +1552,8 @@ export interface ListAccessPointsRequest {
1548
1552
  Bucket?: string | undefined;
1549
1553
  NextToken?: string | undefined;
1550
1554
  MaxResults?: number | undefined;
1555
+ DataSourceId?: string | undefined;
1556
+ DataSourceType?: string | undefined;
1551
1557
  }
1552
1558
  export interface ListAccessPointsResult {
1553
1559
  AccessPointList?: AccessPoint[] | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-s3-control",
3
3
  "description": "AWS SDK for JavaScript S3 Control Client for Node.js, Browser and React Native",
4
- "version": "3.835.0",
4
+ "version": "3.837.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-s3-control",