aws-sdk-s3control 1.144.0 → 1.145.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5da73f8d3445be45b303dde558029aa4a4227fcb84d33aa9faef5b7e6d002c5
4
- data.tar.gz: fea940fcfd2b16215ac98240e791ef3c64cd1046d5c8e475505969201beac6a9
3
+ metadata.gz: bab644be7acce196d83b17e69194207142691378dbb8ebd2903da042ceb769f5
4
+ data.tar.gz: 1c5c35b0b05eb84c8715b75d25e9f9d836c7cf6fbcfba48d1b27fa8e68b35e48
5
5
  SHA512:
6
- metadata.gz: 0317af0ca3d3653ad31d495d439e319940543b7f18610c3070d7d189c516dff3941d8869004cbb567885fc17daabaae1a1eae68aae6d880c0ff0eacefcb45e0e
7
- data.tar.gz: eb9de7dee10608dbb9a46ba7af27fb4f2632009315782c3dd4130e6066125e7bd79690693cc170de3075108323ad29b1563add658c7a524fc65ac27c4b869463
6
+ metadata.gz: '09a9f5c0257b375993c5f986c8a197836774aebecb0f895b388774ff0cb5bcc06cf3f58f9b9e86324fda44fc59afcdb766405e44e96192462b484afa6b6250be'
7
+ data.tar.gz: 3f4deb8a66313e592b8bf0b9788f6220b7b4b9dde1aed0a4fdb5782574e1187f0c0c355a5b4b81b1c348a77c1846cc26d31a265c1b02a69a0a793c457eb93f8b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.145.0 (2026-11-09)
5
+ ------------------
6
+
7
+ * Feature - Adds support for cross-account access grants with InstanceScope parameter for GetDataAccess and ListCallerAccessGrants operations in S3 Access Grants.
8
+
4
9
  1.144.0 (2026-11-06)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.144.0
1
+ 1.145.0
@@ -4511,6 +4511,11 @@ module Aws::S3Control
4511
4511
  # Returns a temporary access credential from S3 Access Grants to the
4512
4512
  # grantee or client application. The [temporary credential][1] is an
4513
4513
  # Amazon Web Services STS token that grants them access to the S3 data.
4514
+ # By default, S3 Access Grants searches for a matching grant in the
4515
+ # instance of the Amazon Web Services account ID in the request. To also
4516
+ # search instances shared with the caller through Amazon Web Services
4517
+ # Resource Access Manager (RAM), set the `InstanceScope` parameter to
4518
+ # `ALL`.
4514
4519
  #
4515
4520
  # Permissions
4516
4521
  #
@@ -4577,11 +4582,23 @@ module Aws::S3Control
4577
4582
  # credential request. This information will be displayed in CloudTrail
4578
4583
  # log in your account.
4579
4584
  #
4585
+ # @option params [String] :instance_scope
4586
+ # The scope of S3 Access Grants instances to search for a grant matching
4587
+ # the requested S3 URI path.
4588
+ #
4589
+ # * `SELF` – Searches only the instance of the Amazon Web Services
4590
+ # account ID in the request.
4591
+ #
4592
+ # * `ALL` – Searches the instance of the Amazon Web Services account ID
4593
+ # in the request and all instances shared with the caller's account
4594
+ # through Amazon Web Services Resource Access Manager (RAM).
4595
+ #
4580
4596
  # @return [Types::GetDataAccessResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4581
4597
  #
4582
4598
  # * {Types::GetDataAccessResult#credentials #credentials} => Types::Credentials
4583
4599
  # * {Types::GetDataAccessResult#matched_grant_target #matched_grant_target} => String
4584
4600
  # * {Types::GetDataAccessResult#grantee #grantee} => Types::Grantee
4601
+ # * {Types::GetDataAccessResult#matched_instance_arn #matched_instance_arn} => String
4585
4602
  #
4586
4603
  # @example Request syntax with placeholder values
4587
4604
  #
@@ -4593,6 +4610,7 @@ module Aws::S3Control
4593
4610
  # privilege: "Minimal", # accepts Minimal, Default
4594
4611
  # target_type: "Object", # accepts Object
4595
4612
  # audit_context: "AuditContext",
4613
+ # instance_scope: "SELF", # accepts SELF, ALL
4596
4614
  # })
4597
4615
  #
4598
4616
  # @example Response structure
@@ -4604,6 +4622,7 @@ module Aws::S3Control
4604
4622
  # resp.matched_grant_target #=> String
4605
4623
  # resp.grantee.grantee_type #=> String, one of "DIRECTORY_USER", "DIRECTORY_GROUP", "IAM"
4606
4624
  # resp.grantee.grantee_identifier #=> String
4625
+ # resp.matched_instance_arn #=> String
4607
4626
  #
4608
4627
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/GetDataAccess AWS API Documentation
4609
4628
  #
@@ -5736,14 +5755,18 @@ module Aws::S3Control
5736
5755
  # an Identity and Access Management (IAM) identity or Amazon Web
5737
5756
  # Services Identity Center corporate directory identity. You must pass
5738
5757
  # the Amazon Web Services account of the S3 data owner (grantor) in the
5739
- # request. You can, optionally, narrow the results by `GrantScope`,
5740
- # using a fragment of the data's S3 path, and S3 Access Grants will
5741
- # return only the grants with a path that contains the path fragment.
5742
- # You can also pass the `AllowedByApplication` filter in the request,
5743
- # which returns only the grants authorized for applications, whether the
5744
- # application is the caller's Identity Center application or any other
5745
- # application (`ALL`). For more information, see [List the caller's
5746
- # access grants][1] in the *Amazon S3 User Guide*.
5758
+ # request. By default, S3 Access Grants returns grants from the instance
5759
+ # of the Amazon Web Services account ID in the request. To return grants
5760
+ # from all instances shared with the caller's account through Amazon
5761
+ # Web Services Resource Access Manager (RAM), set the `InstanceScope`
5762
+ # parameter to `ALL`. You can, optionally, narrow the results by
5763
+ # `GrantScope`, using a fragment of the data's S3 path, and S3 Access
5764
+ # Grants will return only the grants with a path that contains the path
5765
+ # fragment. You can also pass the `AllowedByApplication` filter in the
5766
+ # request, which returns only the grants authorized for applications,
5767
+ # whether the application is the caller's Identity Center application
5768
+ # or any other application (`ALL`). For more information, see [List the
5769
+ # caller's access grants][1] in the *Amazon S3 User Guide*.
5747
5770
  #
5748
5771
  # Permissions
5749
5772
  #
@@ -5780,6 +5803,17 @@ module Aws::S3Control
5780
5803
  # grants for the caller's Identity Center application or for any other
5781
5804
  # applications (`ALL`).
5782
5805
  #
5806
+ # @option params [String] :instance_scope
5807
+ # The scope of S3 Access Grants instances to list grants from.
5808
+ #
5809
+ # * `SELF` – Lists grants from the instance of the Amazon Web Services
5810
+ # account ID in the request.
5811
+ #
5812
+ # * `ALL` – Lists grants from the instance of the Amazon Web Services
5813
+ # account ID in the request and all instances shared with the
5814
+ # caller's account through Amazon Web Services Resource Access
5815
+ # Manager (RAM).
5816
+ #
5783
5817
  # @return [Types::ListCallerAccessGrantsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5784
5818
  #
5785
5819
  # * {Types::ListCallerAccessGrantsResult#next_token #next_token} => String
@@ -5795,6 +5829,7 @@ module Aws::S3Control
5795
5829
  # next_token: "ContinuationToken",
5796
5830
  # max_results: 1,
5797
5831
  # allowed_by_application: false,
5832
+ # instance_scope: "SELF", # accepts SELF, ALL
5798
5833
  # })
5799
5834
  #
5800
5835
  # @example Response structure
@@ -5804,6 +5839,7 @@ module Aws::S3Control
5804
5839
  # resp.caller_access_grants_list[0].permission #=> String, one of "READ", "WRITE", "READWRITE"
5805
5840
  # resp.caller_access_grants_list[0].grant_scope #=> String
5806
5841
  # resp.caller_access_grants_list[0].application_arn #=> String
5842
+ # resp.caller_access_grants_list[0].access_grants_instance_arn #=> String
5807
5843
  #
5808
5844
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/ListCallerAccessGrants AWS API Documentation
5809
5845
  #
@@ -8243,7 +8279,7 @@ module Aws::S3Control
8243
8279
  tracer: tracer
8244
8280
  )
8245
8281
  context[:gem_name] = 'aws-sdk-s3control'
8246
- context[:gem_version] = '1.144.0'
8282
+ context[:gem_version] = '1.145.0'
8247
8283
  Seahorse::Client::Request.new(handlers, context)
8248
8284
  end
8249
8285
 
@@ -218,6 +218,7 @@ module Aws::S3Control
218
218
  IdentityCenterApplicationArn = Shapes::StringShape.new(name: 'IdentityCenterApplicationArn')
219
219
  IdentityCenterArn = Shapes::StringShape.new(name: 'IdentityCenterArn')
220
220
  Include = Shapes::StructureShape.new(name: 'Include')
221
+ InstanceScope = Shapes::StringShape.new(name: 'InstanceScope')
221
222
  InternalServiceException = Shapes::StructureShape.new(name: 'InternalServiceException')
222
223
  InvalidNextTokenException = Shapes::StructureShape.new(name: 'InvalidNextTokenException')
223
224
  InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
@@ -1118,11 +1119,13 @@ module Aws::S3Control
1118
1119
  GetDataAccessRequest.add_member(:privilege, Shapes::ShapeRef.new(shape: Privilege, location: "querystring", location_name: "privilege"))
1119
1120
  GetDataAccessRequest.add_member(:target_type, Shapes::ShapeRef.new(shape: S3PrefixType, location: "querystring", location_name: "targetType"))
1120
1121
  GetDataAccessRequest.add_member(:audit_context, Shapes::ShapeRef.new(shape: AuditContext, location: "querystring", location_name: "auditContext"))
1122
+ GetDataAccessRequest.add_member(:instance_scope, Shapes::ShapeRef.new(shape: InstanceScope, location: "querystring", location_name: "instanceScope"))
1121
1123
  GetDataAccessRequest.struct_class = Types::GetDataAccessRequest
1122
1124
 
1123
1125
  GetDataAccessResult.add_member(:credentials, Shapes::ShapeRef.new(shape: Credentials, location_name: "Credentials"))
1124
1126
  GetDataAccessResult.add_member(:matched_grant_target, Shapes::ShapeRef.new(shape: S3Prefix, location_name: "MatchedGrantTarget"))
1125
1127
  GetDataAccessResult.add_member(:grantee, Shapes::ShapeRef.new(shape: Grantee, location_name: "Grantee"))
1128
+ GetDataAccessResult.add_member(:matched_instance_arn, Shapes::ShapeRef.new(shape: AccessGrantsInstanceArn, location_name: "MatchedInstanceArn"))
1126
1129
  GetDataAccessResult.struct_class = Types::GetDataAccessResult
1127
1130
 
1128
1131
  GetJobTaggingRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-account-id", metadata: {"contextParam" => {"name" => "AccountId"}}))
@@ -1456,6 +1459,7 @@ module Aws::S3Control
1456
1459
  ListCallerAccessGrantsEntry.add_member(:permission, Shapes::ShapeRef.new(shape: Permission, location_name: "Permission"))
1457
1460
  ListCallerAccessGrantsEntry.add_member(:grant_scope, Shapes::ShapeRef.new(shape: S3Prefix, location_name: "GrantScope"))
1458
1461
  ListCallerAccessGrantsEntry.add_member(:application_arn, Shapes::ShapeRef.new(shape: IdentityCenterApplicationArn, location_name: "ApplicationArn"))
1462
+ ListCallerAccessGrantsEntry.add_member(:access_grants_instance_arn, Shapes::ShapeRef.new(shape: AccessGrantsInstanceArn, location_name: "AccessGrantsInstanceArn"))
1459
1463
  ListCallerAccessGrantsEntry.struct_class = Types::ListCallerAccessGrantsEntry
1460
1464
 
1461
1465
  ListCallerAccessGrantsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-account-id", metadata: {"contextParam" => {"name" => "AccountId"}}))
@@ -1463,6 +1467,7 @@ module Aws::S3Control
1463
1467
  ListCallerAccessGrantsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: ContinuationToken, location: "querystring", location_name: "nextToken"))
1464
1468
  ListCallerAccessGrantsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
1465
1469
  ListCallerAccessGrantsRequest.add_member(:allowed_by_application, Shapes::ShapeRef.new(shape: Boolean, location: "querystring", location_name: "allowedByApplication"))
1470
+ ListCallerAccessGrantsRequest.add_member(:instance_scope, Shapes::ShapeRef.new(shape: InstanceScope, location: "querystring", location_name: "instanceScope"))
1466
1471
  ListCallerAccessGrantsRequest.struct_class = Types::ListCallerAccessGrantsRequest
1467
1472
 
1468
1473
  ListCallerAccessGrantsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: ContinuationToken, location_name: "NextToken"))
@@ -3316,6 +3316,18 @@ module Aws::S3Control
3316
3316
  # log in your account.
3317
3317
  # @return [String]
3318
3318
  #
3319
+ # @!attribute [rw] instance_scope
3320
+ # The scope of S3 Access Grants instances to search for a grant
3321
+ # matching the requested S3 URI path.
3322
+ #
3323
+ # * `SELF` – Searches only the instance of the Amazon Web Services
3324
+ # account ID in the request.
3325
+ #
3326
+ # * `ALL` – Searches the instance of the Amazon Web Services account
3327
+ # ID in the request and all instances shared with the caller's
3328
+ # account through Amazon Web Services Resource Access Manager (RAM).
3329
+ # @return [String]
3330
+ #
3319
3331
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/GetDataAccessRequest AWS API Documentation
3320
3332
  #
3321
3333
  class GetDataAccessRequest < Struct.new(
@@ -3325,7 +3337,8 @@ module Aws::S3Control
3325
3337
  :duration_seconds,
3326
3338
  :privilege,
3327
3339
  :target_type,
3328
- :audit_context)
3340
+ :audit_context,
3341
+ :instance_scope)
3329
3342
  SENSITIVE = []
3330
3343
  include Aws::Structure
3331
3344
  end
@@ -3351,12 +3364,18 @@ module Aws::S3Control
3351
3364
  # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_sts-setcontext.html
3352
3365
  # @return [Types::Grantee]
3353
3366
  #
3367
+ # @!attribute [rw] matched_instance_arn
3368
+ # The Amazon Resource Name (ARN) of the S3 Access Grants instance
3369
+ # containing the grant that matched the requested S3 URI path.
3370
+ # @return [String]
3371
+ #
3354
3372
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/GetDataAccessResult AWS API Documentation
3355
3373
  #
3356
3374
  class GetDataAccessResult < Struct.new(
3357
3375
  :credentials,
3358
3376
  :matched_grant_target,
3359
- :grantee)
3377
+ :grantee,
3378
+ :matched_instance_arn)
3360
3379
  SENSITIVE = [:credentials]
3361
3380
  include Aws::Structure
3362
3381
  end
@@ -5255,8 +5274,10 @@ module Aws::S3Control
5255
5274
 
5256
5275
  # Part of `ListCallerAccessGrantsResult`. Each entry includes the
5257
5276
  # permission level (READ, WRITE, or READWRITE) and the grant scope of
5258
- # the access grant. If the grant also includes an application ARN, the
5259
- # grantee can only access the S3 data through this application.
5277
+ # the access grant. Each entry also includes the ARN of the S3 Access
5278
+ # Grants instance in which the grant was created. If the grant also
5279
+ # includes an application ARN, the grantee can only access the S3 data
5280
+ # through this application.
5260
5281
  #
5261
5282
  # @!attribute [rw] permission
5262
5283
  # The type of permission granted, which can be one of the following
@@ -5280,12 +5301,18 @@ module Aws::S3Control
5280
5301
  # only access the S3 data through this application.
5281
5302
  # @return [String]
5282
5303
  #
5304
+ # @!attribute [rw] access_grants_instance_arn
5305
+ # The Amazon Resource Name (ARN) of the S3 Access Grants instance in
5306
+ # which the grant was created.
5307
+ # @return [String]
5308
+ #
5283
5309
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/ListCallerAccessGrantsEntry AWS API Documentation
5284
5310
  #
5285
5311
  class ListCallerAccessGrantsEntry < Struct.new(
5286
5312
  :permission,
5287
5313
  :grant_scope,
5288
- :application_arn)
5314
+ :application_arn,
5315
+ :access_grants_instance_arn)
5289
5316
  SENSITIVE = []
5290
5317
  include Aws::Structure
5291
5318
  end
@@ -5321,6 +5348,18 @@ module Aws::S3Control
5321
5348
  # other applications (`ALL`).
5322
5349
  # @return [Boolean]
5323
5350
  #
5351
+ # @!attribute [rw] instance_scope
5352
+ # The scope of S3 Access Grants instances to list grants from.
5353
+ #
5354
+ # * `SELF` – Lists grants from the instance of the Amazon Web Services
5355
+ # account ID in the request.
5356
+ #
5357
+ # * `ALL` – Lists grants from the instance of the Amazon Web Services
5358
+ # account ID in the request and all instances shared with the
5359
+ # caller's account through Amazon Web Services Resource Access
5360
+ # Manager (RAM).
5361
+ # @return [String]
5362
+ #
5324
5363
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/ListCallerAccessGrantsRequest AWS API Documentation
5325
5364
  #
5326
5365
  class ListCallerAccessGrantsRequest < Struct.new(
@@ -5328,7 +5367,8 @@ module Aws::S3Control
5328
5367
  :grant_scope,
5329
5368
  :next_token,
5330
5369
  :max_results,
5331
- :allowed_by_application)
5370
+ :allowed_by_application,
5371
+ :instance_scope)
5332
5372
  SENSITIVE = []
5333
5373
  include Aws::Structure
5334
5374
  end
@@ -54,7 +54,7 @@ module Aws::S3Control
54
54
  autoload :EndpointProvider, 'aws-sdk-s3control/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-s3control/endpoints'
56
56
 
57
- GEM_VERSION = '1.144.0'
57
+ GEM_VERSION = '1.145.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -902,6 +902,7 @@ module Aws
902
902
  def credentials: () -> Types::Credentials
903
903
  def matched_grant_target: () -> ::String
904
904
  def grantee: () -> Types::Grantee
905
+ def matched_instance_arn: () -> ::String
905
906
  end
906
907
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3Control/Client.html#get_data_access-instance_method
907
908
  def get_data_access: (
@@ -911,7 +912,8 @@ module Aws
911
912
  ?duration_seconds: ::Integer,
912
913
  ?privilege: ("Minimal" | "Default"),
913
914
  ?target_type: ("Object"),
914
- ?audit_context: ::String
915
+ ?audit_context: ::String,
916
+ ?instance_scope: ("SELF" | "ALL")
915
917
  ) -> _GetDataAccessResponseSuccess
916
918
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetDataAccessResponseSuccess
917
919
 
@@ -1113,7 +1115,8 @@ module Aws
1113
1115
  ?grant_scope: ::String,
1114
1116
  ?next_token: ::String,
1115
1117
  ?max_results: ::Integer,
1116
- ?allowed_by_application: bool
1118
+ ?allowed_by_application: bool,
1119
+ ?instance_scope: ("SELF" | "ALL")
1117
1120
  ) -> _ListCallerAccessGrantsResponseSuccess
1118
1121
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCallerAccessGrantsResponseSuccess
1119
1122
 
data/sig/types.rbs CHANGED
@@ -771,6 +771,7 @@ module Aws::S3Control
771
771
  attr_accessor privilege: ("Minimal" | "Default")
772
772
  attr_accessor target_type: ("Object")
773
773
  attr_accessor audit_context: ::String
774
+ attr_accessor instance_scope: ("SELF" | "ALL")
774
775
  SENSITIVE: []
775
776
  end
776
777
 
@@ -778,6 +779,7 @@ module Aws::S3Control
778
779
  attr_accessor credentials: Types::Credentials
779
780
  attr_accessor matched_grant_target: ::String
780
781
  attr_accessor grantee: Types::Grantee
782
+ attr_accessor matched_instance_arn: ::String
781
783
  SENSITIVE: [:credentials]
782
784
  end
783
785
 
@@ -1218,6 +1220,7 @@ module Aws::S3Control
1218
1220
  attr_accessor permission: ("READ" | "WRITE" | "READWRITE")
1219
1221
  attr_accessor grant_scope: ::String
1220
1222
  attr_accessor application_arn: ::String
1223
+ attr_accessor access_grants_instance_arn: ::String
1221
1224
  SENSITIVE: []
1222
1225
  end
1223
1226
 
@@ -1227,6 +1230,7 @@ module Aws::S3Control
1227
1230
  attr_accessor next_token: ::String
1228
1231
  attr_accessor max_results: ::Integer
1229
1232
  attr_accessor allowed_by_application: bool
1233
+ attr_accessor instance_scope: ("SELF" | "ALL")
1230
1234
  SENSITIVE: []
1231
1235
  end
1232
1236
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-s3control
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.144.0
4
+ version: 1.145.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
@@ -18,7 +18,7 @@ dependencies:
18
18
  version: '3'
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 3.265.0
21
+ version: 3.266.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,7 +28,7 @@ dependencies:
28
28
  version: '3'
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: 3.265.0
31
+ version: 3.266.0
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: aws-sigv4
34
34
  requirement: !ruby/object:Gem::Requirement