aws-sdk-s3control 1.104.0 → 1.105.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.
@@ -98,6 +98,7 @@ module Aws::S3Control
98
98
  DeleteAccessPointPolicyForObjectLambdaRequest = Shapes::StructureShape.new(name: 'DeleteAccessPointPolicyForObjectLambdaRequest')
99
99
  DeleteAccessPointPolicyRequest = Shapes::StructureShape.new(name: 'DeleteAccessPointPolicyRequest')
100
100
  DeleteAccessPointRequest = Shapes::StructureShape.new(name: 'DeleteAccessPointRequest')
101
+ DeleteAccessPointScopeRequest = Shapes::StructureShape.new(name: 'DeleteAccessPointScopeRequest')
101
102
  DeleteBucketLifecycleConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteBucketLifecycleConfigurationRequest')
102
103
  DeleteBucketPolicyRequest = Shapes::StructureShape.new(name: 'DeleteBucketPolicyRequest')
103
104
  DeleteBucketReplicationRequest = Shapes::StructureShape.new(name: 'DeleteBucketReplicationRequest')
@@ -161,6 +162,8 @@ module Aws::S3Control
161
162
  GetAccessPointPolicyStatusResult = Shapes::StructureShape.new(name: 'GetAccessPointPolicyStatusResult')
162
163
  GetAccessPointRequest = Shapes::StructureShape.new(name: 'GetAccessPointRequest')
163
164
  GetAccessPointResult = Shapes::StructureShape.new(name: 'GetAccessPointResult')
165
+ GetAccessPointScopeRequest = Shapes::StructureShape.new(name: 'GetAccessPointScopeRequest')
166
+ GetAccessPointScopeResult = Shapes::StructureShape.new(name: 'GetAccessPointScopeResult')
164
167
  GetBucketLifecycleConfigurationRequest = Shapes::StructureShape.new(name: 'GetBucketLifecycleConfigurationRequest')
165
168
  GetBucketLifecycleConfigurationResult = Shapes::StructureShape.new(name: 'GetBucketLifecycleConfigurationResult')
166
169
  GetBucketPolicyRequest = Shapes::StructureShape.new(name: 'GetBucketPolicyRequest')
@@ -264,6 +267,8 @@ module Aws::S3Control
264
267
  ListAccessGrantsLocationsResult = Shapes::StructureShape.new(name: 'ListAccessGrantsLocationsResult')
265
268
  ListAccessGrantsRequest = Shapes::StructureShape.new(name: 'ListAccessGrantsRequest')
266
269
  ListAccessGrantsResult = Shapes::StructureShape.new(name: 'ListAccessGrantsResult')
270
+ ListAccessPointsForDirectoryBucketsRequest = Shapes::StructureShape.new(name: 'ListAccessPointsForDirectoryBucketsRequest')
271
+ ListAccessPointsForDirectoryBucketsResult = Shapes::StructureShape.new(name: 'ListAccessPointsForDirectoryBucketsResult')
267
272
  ListAccessPointsForObjectLambdaRequest = Shapes::StructureShape.new(name: 'ListAccessPointsForObjectLambdaRequest')
268
273
  ListAccessPointsForObjectLambdaResult = Shapes::StructureShape.new(name: 'ListAccessPointsForObjectLambdaResult')
269
274
  ListAccessPointsRequest = Shapes::StructureShape.new(name: 'ListAccessPointsRequest')
@@ -360,6 +365,7 @@ module Aws::S3Control
360
365
  Prefix = Shapes::StringShape.new(name: 'Prefix')
361
366
  PrefixLevel = Shapes::StructureShape.new(name: 'PrefixLevel')
362
367
  PrefixLevelStorageMetrics = Shapes::StructureShape.new(name: 'PrefixLevelStorageMetrics')
368
+ PrefixesList = Shapes::ListShape.new(name: 'PrefixesList')
363
369
  Priority = Shapes::IntegerShape.new(name: 'Priority')
364
370
  Privilege = Shapes::StringShape.new(name: 'Privilege')
365
371
  ProposedMultiRegionAccessPointPolicy = Shapes::StructureShape.new(name: 'ProposedMultiRegionAccessPointPolicy')
@@ -370,6 +376,7 @@ module Aws::S3Control
370
376
  PutAccessPointConfigurationForObjectLambdaRequest = Shapes::StructureShape.new(name: 'PutAccessPointConfigurationForObjectLambdaRequest')
371
377
  PutAccessPointPolicyForObjectLambdaRequest = Shapes::StructureShape.new(name: 'PutAccessPointPolicyForObjectLambdaRequest')
372
378
  PutAccessPointPolicyRequest = Shapes::StructureShape.new(name: 'PutAccessPointPolicyRequest')
379
+ PutAccessPointScopeRequest = Shapes::StructureShape.new(name: 'PutAccessPointScopeRequest')
373
380
  PutBucketLifecycleConfigurationRequest = Shapes::StructureShape.new(name: 'PutBucketLifecycleConfigurationRequest')
374
381
  PutBucketPolicyRequest = Shapes::StructureShape.new(name: 'PutBucketPolicyRequest')
375
382
  PutBucketReplicationRequest = Shapes::StructureShape.new(name: 'PutBucketReplicationRequest')
@@ -463,6 +470,9 @@ module Aws::S3Control
463
470
  SSEKMSKeyId = Shapes::StringShape.new(name: 'SSEKMSKeyId')
464
471
  SSES3 = Shapes::StructureShape.new(name: 'SSES3', locationName: "SSE-S3")
465
472
  SSES3Encryption = Shapes::StructureShape.new(name: 'SSES3Encryption', locationName: "SSE-S3")
473
+ Scope = Shapes::StructureShape.new(name: 'Scope')
474
+ ScopePermission = Shapes::StringShape.new(name: 'ScopePermission')
475
+ ScopePermissionList = Shapes::ListShape.new(name: 'ScopePermissionList')
466
476
  SecretAccessKey = Shapes::StringShape.new(name: 'SecretAccessKey')
467
477
  SelectionCriteria = Shapes::StructureShape.new(name: 'SelectionCriteria')
468
478
  SessionToken = Shapes::StringShape.new(name: 'SessionToken')
@@ -679,11 +689,12 @@ module Aws::S3Control
679
689
  CreateAccessPointForObjectLambdaResult.struct_class = Types::CreateAccessPointForObjectLambdaResult
680
690
 
681
691
  CreateAccessPointRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-account-id", metadata: {"contextParam"=>{"name"=>"AccountId"}}))
682
- CreateAccessPointRequest.add_member(:name, Shapes::ShapeRef.new(shape: AccessPointName, required: true, location: "uri", location_name: "name"))
692
+ CreateAccessPointRequest.add_member(:name, Shapes::ShapeRef.new(shape: AccessPointName, required: true, location: "uri", location_name: "name", metadata: {"contextParam"=>{"name"=>"AccessPointName"}}))
683
693
  CreateAccessPointRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location_name: "Bucket", metadata: {"contextParam"=>{"name"=>"Bucket"}}))
684
694
  CreateAccessPointRequest.add_member(:vpc_configuration, Shapes::ShapeRef.new(shape: VpcConfiguration, location_name: "VpcConfiguration"))
685
695
  CreateAccessPointRequest.add_member(:public_access_block_configuration, Shapes::ShapeRef.new(shape: PublicAccessBlockConfiguration, location_name: "PublicAccessBlockConfiguration"))
686
696
  CreateAccessPointRequest.add_member(:bucket_account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "BucketAccountId"))
697
+ CreateAccessPointRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, location_name: "Scope"))
687
698
  CreateAccessPointRequest.struct_class = Types::CreateAccessPointRequest
688
699
 
689
700
  CreateAccessPointResult.add_member(:access_point_arn, Shapes::ShapeRef.new(shape: S3AccessPointArn, location_name: "AccessPointArn"))
@@ -781,6 +792,10 @@ module Aws::S3Control
781
792
  DeleteAccessPointRequest.add_member(:name, Shapes::ShapeRef.new(shape: AccessPointName, required: true, location: "uri", location_name: "name", metadata: {"contextParam"=>{"name"=>"AccessPointName"}}))
782
793
  DeleteAccessPointRequest.struct_class = Types::DeleteAccessPointRequest
783
794
 
795
+ DeleteAccessPointScopeRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location: "header", location_name: "x-amz-account-id", metadata: {"contextParam"=>{"name"=>"AccountId"}, "hostLabel"=>true, "hostLabelName"=>"AccountId"}))
796
+ DeleteAccessPointScopeRequest.add_member(:name, Shapes::ShapeRef.new(shape: AccessPointName, required: true, location: "uri", location_name: "name", metadata: {"contextParam"=>{"name"=>"AccessPointName"}}))
797
+ DeleteAccessPointScopeRequest.struct_class = Types::DeleteAccessPointScopeRequest
798
+
784
799
  DeleteBucketLifecycleConfigurationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-account-id", metadata: {"contextParam"=>{"name"=>"AccountId"}}))
785
800
  DeleteBucketLifecycleConfigurationRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "name", metadata: {"contextParam"=>{"name"=>"Bucket"}}))
786
801
  DeleteBucketLifecycleConfigurationRequest.struct_class = Types::DeleteBucketLifecycleConfigurationRequest
@@ -1001,6 +1016,13 @@ module Aws::S3Control
1001
1016
  GetAccessPointResult.add_member(:bucket_account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "BucketAccountId"))
1002
1017
  GetAccessPointResult.struct_class = Types::GetAccessPointResult
1003
1018
 
1019
+ GetAccessPointScopeRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location: "header", location_name: "x-amz-account-id", metadata: {"contextParam"=>{"name"=>"AccountId"}, "hostLabel"=>true, "hostLabelName"=>"AccountId"}))
1020
+ GetAccessPointScopeRequest.add_member(:name, Shapes::ShapeRef.new(shape: AccessPointName, required: true, location: "uri", location_name: "name", metadata: {"contextParam"=>{"name"=>"AccessPointName"}}))
1021
+ GetAccessPointScopeRequest.struct_class = Types::GetAccessPointScopeRequest
1022
+
1023
+ GetAccessPointScopeResult.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, location_name: "Scope"))
1024
+ GetAccessPointScopeResult.struct_class = Types::GetAccessPointScopeResult
1025
+
1004
1026
  GetBucketLifecycleConfigurationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-account-id", metadata: {"contextParam"=>{"name"=>"AccountId"}}))
1005
1027
  GetBucketLifecycleConfigurationRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "name", metadata: {"contextParam"=>{"name"=>"Bucket"}}))
1006
1028
  GetBucketLifecycleConfigurationRequest.struct_class = Types::GetBucketLifecycleConfigurationRequest
@@ -1352,6 +1374,16 @@ module Aws::S3Control
1352
1374
  ListAccessGrantsResult.add_member(:access_grants_list, Shapes::ShapeRef.new(shape: AccessGrantsList, location_name: "AccessGrantsList"))
1353
1375
  ListAccessGrantsResult.struct_class = Types::ListAccessGrantsResult
1354
1376
 
1377
+ ListAccessPointsForDirectoryBucketsRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location: "header", location_name: "x-amz-account-id", metadata: {"contextParam"=>{"name"=>"AccountId"}, "hostLabel"=>true, "hostLabelName"=>"AccountId"}))
1378
+ ListAccessPointsForDirectoryBucketsRequest.add_member(:directory_bucket, Shapes::ShapeRef.new(shape: BucketName, location: "querystring", location_name: "directoryBucket"))
1379
+ ListAccessPointsForDirectoryBucketsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NonEmptyMaxLength1024String, location: "querystring", location_name: "nextToken"))
1380
+ ListAccessPointsForDirectoryBucketsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
1381
+ ListAccessPointsForDirectoryBucketsRequest.struct_class = Types::ListAccessPointsForDirectoryBucketsRequest
1382
+
1383
+ ListAccessPointsForDirectoryBucketsResult.add_member(:access_point_list, Shapes::ShapeRef.new(shape: AccessPointList, location_name: "AccessPointList"))
1384
+ ListAccessPointsForDirectoryBucketsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: NonEmptyMaxLength1024String, location_name: "NextToken"))
1385
+ ListAccessPointsForDirectoryBucketsResult.struct_class = Types::ListAccessPointsForDirectoryBucketsResult
1386
+
1355
1387
  ListAccessPointsForObjectLambdaRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-account-id", metadata: {"contextParam"=>{"name"=>"AccountId"}}))
1356
1388
  ListAccessPointsForObjectLambdaRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NonEmptyMaxLength1024String, location: "querystring", location_name: "nextToken"))
1357
1389
  ListAccessPointsForObjectLambdaRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
@@ -1557,6 +1589,8 @@ module Aws::S3Control
1557
1589
  PrefixLevelStorageMetrics.add_member(:selection_criteria, Shapes::ShapeRef.new(shape: SelectionCriteria, location_name: "SelectionCriteria"))
1558
1590
  PrefixLevelStorageMetrics.struct_class = Types::PrefixLevelStorageMetrics
1559
1591
 
1592
+ PrefixesList.member = Shapes::ShapeRef.new(shape: Prefix, location_name: "Prefix")
1593
+
1560
1594
  ProposedMultiRegionAccessPointPolicy.add_member(:policy, Shapes::ShapeRef.new(shape: Policy, location_name: "Policy"))
1561
1595
  ProposedMultiRegionAccessPointPolicy.struct_class = Types::ProposedMultiRegionAccessPointPolicy
1562
1596
 
@@ -1591,6 +1625,11 @@ module Aws::S3Control
1591
1625
  PutAccessPointPolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: Policy, required: true, location_name: "Policy"))
1592
1626
  PutAccessPointPolicyRequest.struct_class = Types::PutAccessPointPolicyRequest
1593
1627
 
1628
+ PutAccessPointScopeRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location: "header", location_name: "x-amz-account-id", metadata: {"contextParam"=>{"name"=>"AccountId"}, "hostLabel"=>true, "hostLabelName"=>"AccountId"}))
1629
+ PutAccessPointScopeRequest.add_member(:name, Shapes::ShapeRef.new(shape: AccessPointName, required: true, location: "uri", location_name: "name", metadata: {"contextParam"=>{"name"=>"AccessPointName"}}))
1630
+ PutAccessPointScopeRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, required: true, location_name: "Scope"))
1631
+ PutAccessPointScopeRequest.struct_class = Types::PutAccessPointScopeRequest
1632
+
1594
1633
  PutBucketLifecycleConfigurationRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location: "header", location_name: "x-amz-account-id", metadata: {"contextParam"=>{"name"=>"AccountId"}}))
1595
1634
  PutBucketLifecycleConfigurationRequest.add_member(:bucket, Shapes::ShapeRef.new(shape: BucketName, required: true, location: "uri", location_name: "name", metadata: {"contextParam"=>{"name"=>"Bucket"}}))
1596
1635
  PutBucketLifecycleConfigurationRequest.add_member(:lifecycle_configuration, Shapes::ShapeRef.new(shape: LifecycleConfiguration, location_name: "LifecycleConfiguration", metadata: {"xmlNamespace"=>{"uri"=>"http://awss3control.amazonaws.com/doc/2018-08-20/"}}))
@@ -1858,6 +1897,12 @@ module Aws::S3Control
1858
1897
 
1859
1898
  SSES3Encryption.struct_class = Types::SSES3Encryption
1860
1899
 
1900
+ Scope.add_member(:prefixes, Shapes::ShapeRef.new(shape: PrefixesList, location_name: "Prefixes"))
1901
+ Scope.add_member(:permissions, Shapes::ShapeRef.new(shape: ScopePermissionList, location_name: "Permissions"))
1902
+ Scope.struct_class = Types::Scope
1903
+
1904
+ ScopePermissionList.member = Shapes::ShapeRef.new(shape: ScopePermission, location_name: "Permission")
1905
+
1861
1906
  SelectionCriteria.add_member(:delimiter, Shapes::ShapeRef.new(shape: StorageLensPrefixLevelDelimiter, location_name: "Delimiter"))
1862
1907
  SelectionCriteria.add_member(:max_depth, Shapes::ShapeRef.new(shape: StorageLensPrefixLevelMaxDepth, location_name: "MaxDepth"))
1863
1908
  SelectionCriteria.add_member(:min_storage_bytes_percentage, Shapes::ShapeRef.new(shape: MinStorageBytesPercentage, location_name: "MinStorageBytesPercentage"))
@@ -2292,6 +2337,14 @@ module Aws::S3Control
2292
2337
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2293
2338
  end)
2294
2339
 
2340
+ api.add_operation(:delete_access_point_scope, Seahorse::Model::Operation.new.tap do |o|
2341
+ o.name = "DeleteAccessPointScope"
2342
+ o.http_method = "DELETE"
2343
+ o.http_request_uri = "/v20180820/accesspoint/{name}/scope"
2344
+ o.input = Shapes::ShapeRef.new(shape: DeleteAccessPointScopeRequest)
2345
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2346
+ end)
2347
+
2295
2348
  api.add_operation(:delete_bucket, Seahorse::Model::Operation.new.tap do |o|
2296
2349
  o.name = "DeleteBucket"
2297
2350
  o.http_method = "DELETE"
@@ -2572,6 +2625,14 @@ module Aws::S3Control
2572
2625
  o.output = Shapes::ShapeRef.new(shape: GetAccessPointPolicyStatusForObjectLambdaResult)
2573
2626
  end)
2574
2627
 
2628
+ api.add_operation(:get_access_point_scope, Seahorse::Model::Operation.new.tap do |o|
2629
+ o.name = "GetAccessPointScope"
2630
+ o.http_method = "GET"
2631
+ o.http_request_uri = "/v20180820/accesspoint/{name}/scope"
2632
+ o.input = Shapes::ShapeRef.new(shape: GetAccessPointScopeRequest)
2633
+ o.output = Shapes::ShapeRef.new(shape: GetAccessPointScopeResult)
2634
+ end)
2635
+
2575
2636
  api.add_operation(:get_bucket, Seahorse::Model::Operation.new.tap do |o|
2576
2637
  o.name = "GetBucket"
2577
2638
  o.http_method = "GET"
@@ -2808,6 +2869,20 @@ module Aws::S3Control
2808
2869
  )
2809
2870
  end)
2810
2871
 
2872
+ api.add_operation(:list_access_points_for_directory_buckets, Seahorse::Model::Operation.new.tap do |o|
2873
+ o.name = "ListAccessPointsForDirectoryBuckets"
2874
+ o.http_method = "GET"
2875
+ o.http_request_uri = "/v20180820/accesspointfordirectory"
2876
+ o.input = Shapes::ShapeRef.new(shape: ListAccessPointsForDirectoryBucketsRequest)
2877
+ o.output = Shapes::ShapeRef.new(shape: ListAccessPointsForDirectoryBucketsResult)
2878
+ o[:pager] = Aws::Pager.new(
2879
+ limit_key: "max_results",
2880
+ tokens: {
2881
+ "next_token" => "next_token"
2882
+ }
2883
+ )
2884
+ end)
2885
+
2811
2886
  api.add_operation(:list_access_points_for_object_lambda, Seahorse::Model::Operation.new.tap do |o|
2812
2887
  o.name = "ListAccessPointsForObjectLambda"
2813
2888
  o.http_method = "GET"
@@ -2994,6 +3069,19 @@ module Aws::S3Control
2994
3069
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2995
3070
  end)
2996
3071
 
3072
+ api.add_operation(:put_access_point_scope, Seahorse::Model::Operation.new.tap do |o|
3073
+ o.name = "PutAccessPointScope"
3074
+ o.http_method = "PUT"
3075
+ o.http_request_uri = "/v20180820/accesspoint/{name}/scope"
3076
+ o.input = Shapes::ShapeRef.new(shape: PutAccessPointScopeRequest,
3077
+ location_name: "PutAccessPointScopeRequest",
3078
+ metadata: {
3079
+ "xmlNamespace" => {"uri"=>"http://awss3control.amazonaws.com/doc/2018-08-20/"}
3080
+ }
3081
+ )
3082
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
3083
+ end)
3084
+
2997
3085
  api.add_operation(:put_bucket_lifecycle_configuration, Seahorse::Model::Operation.new.tap do |o|
2998
3086
  o.name = "PutBucketLifecycleConfiguration"
2999
3087
  o.http_method = "PUT"
@@ -60,6 +60,11 @@ module Aws::S3Control
60
60
  #
61
61
  # @return [Boolean]
62
62
  #
63
+ # @!attribute use_s3_express_control_endpoint
64
+ # Internal parameter to indicate whether S3Express operation should use control plane, (ex. ListDirectoryAccessPoints)
65
+ #
66
+ # @return [Boolean]
67
+ #
63
68
  EndpointParameters = Struct.new(
64
69
  :region,
65
70
  :use_fips,
@@ -71,6 +76,7 @@ module Aws::S3Control
71
76
  :bucket,
72
77
  :access_point_name,
73
78
  :use_arn_region,
79
+ :use_s3_express_control_endpoint,
74
80
  ) do
75
81
  include Aws::Structure
76
82
 
@@ -87,6 +93,7 @@ module Aws::S3Control
87
93
  'Bucket' => :bucket,
88
94
  'AccessPointName' => :access_point_name,
89
95
  'UseArnRegion' => :use_arn_region,
96
+ 'UseS3ExpressControlEndpoint' => :use_s3_express_control_endpoint,
90
97
  }.freeze
91
98
  end
92
99
 
@@ -103,6 +110,7 @@ module Aws::S3Control
103
110
  self[:bucket] = options[:bucket]
104
111
  self[:access_point_name] = options[:access_point_name]
105
112
  self[:use_arn_region] = options[:use_arn_region]
113
+ self[:use_s3_express_control_endpoint] = options[:use_s3_express_control_endpoint]
106
114
  end
107
115
 
108
116
  def self.create(config, options={})
@@ -11,22 +11,11 @@ module Aws::S3Control
11
11
  class EndpointProvider
12
12
  def resolve_endpoint(parameters)
13
13
  if Aws::Endpoints::Matchers.set?(parameters.region)
14
- if Aws::Endpoints::Matchers.string_equals?(parameters.region, "snow") && Aws::Endpoints::Matchers.set?(parameters.endpoint) && (url = Aws::Endpoints::Matchers.parse_url(parameters.endpoint))
15
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
16
- if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
17
- raise ArgumentError, "S3 Snow does not support DualStack"
18
- end
19
- if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
20
- raise ArgumentError, "S3 Snow does not support FIPS"
21
- end
22
- return Aws::Endpoints::Endpoint.new(url: "#{url['scheme']}://#{url['authority']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3", "signingRegion"=>"#{parameters.region}"}]})
23
- end
14
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn")
15
+ raise ArgumentError, "Partition does not support FIPS"
24
16
  end
25
17
  if Aws::Endpoints::Matchers.set?(parameters.outpost_id)
26
18
  if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
27
- if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn")
28
- raise ArgumentError, "Partition does not support FIPS"
29
- end
30
19
  if Aws::Endpoints::Matchers.set?(parameters.requires_account_id) && Aws::Endpoints::Matchers.boolean_equals?(parameters.requires_account_id, true) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(parameters.account_id))
31
20
  raise ArgumentError, "AccountId is required but not set"
32
21
  end
@@ -57,6 +46,63 @@ module Aws::S3Control
57
46
  raise ArgumentError, "Invalid region: region was not a valid DNS name."
58
47
  end
59
48
  end
49
+ if Aws::Endpoints::Matchers.set?(parameters.access_point_name) && (access_point_suffix = Aws::Endpoints::Matchers.substring(parameters.access_point_name, 0, 7, true)) && Aws::Endpoints::Matchers.string_equals?(access_point_suffix, "--xa-s3")
50
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
51
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
52
+ raise ArgumentError, "S3Express does not support Dual-stack."
53
+ end
54
+ if (s3express_availability_zone_id = Aws::Endpoints::Matchers.substring(parameters.access_point_name, 7, 15, true)) && (s3express_availability_zone_delim = Aws::Endpoints::Matchers.substring(parameters.access_point_name, 15, 17, true)) && Aws::Endpoints::Matchers.string_equals?(s3express_availability_zone_delim, "--")
55
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
56
+ return Aws::Endpoints::Endpoint.new(url: "https://s3express-control-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3express", "signingRegion"=>"#{parameters.region}"}]})
57
+ end
58
+ return Aws::Endpoints::Endpoint.new(url: "https://s3express-control.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3express", "signingRegion"=>"#{parameters.region}"}]})
59
+ end
60
+ if (s3express_availability_zone_id = Aws::Endpoints::Matchers.substring(parameters.access_point_name, 7, 16, true)) && (s3express_availability_zone_delim = Aws::Endpoints::Matchers.substring(parameters.access_point_name, 16, 18, true)) && Aws::Endpoints::Matchers.string_equals?(s3express_availability_zone_delim, "--")
61
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
62
+ return Aws::Endpoints::Endpoint.new(url: "https://s3express-control-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3express", "signingRegion"=>"#{parameters.region}"}]})
63
+ end
64
+ return Aws::Endpoints::Endpoint.new(url: "https://s3express-control.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3express", "signingRegion"=>"#{parameters.region}"}]})
65
+ end
66
+ if (s3express_availability_zone_id = Aws::Endpoints::Matchers.substring(parameters.access_point_name, 7, 20, true)) && (s3express_availability_zone_delim = Aws::Endpoints::Matchers.substring(parameters.access_point_name, 20, 22, true)) && Aws::Endpoints::Matchers.string_equals?(s3express_availability_zone_delim, "--")
67
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
68
+ return Aws::Endpoints::Endpoint.new(url: "https://s3express-control-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3express", "signingRegion"=>"#{parameters.region}"}]})
69
+ end
70
+ return Aws::Endpoints::Endpoint.new(url: "https://s3express-control.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3express", "signingRegion"=>"#{parameters.region}"}]})
71
+ end
72
+ if (s3express_availability_zone_id = Aws::Endpoints::Matchers.substring(parameters.access_point_name, 7, 21, true)) && (s3express_availability_zone_delim = Aws::Endpoints::Matchers.substring(parameters.access_point_name, 21, 23, true)) && Aws::Endpoints::Matchers.string_equals?(s3express_availability_zone_delim, "--")
73
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
74
+ return Aws::Endpoints::Endpoint.new(url: "https://s3express-control-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3express", "signingRegion"=>"#{parameters.region}"}]})
75
+ end
76
+ return Aws::Endpoints::Endpoint.new(url: "https://s3express-control.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3express", "signingRegion"=>"#{parameters.region}"}]})
77
+ end
78
+ if (s3express_availability_zone_id = Aws::Endpoints::Matchers.substring(parameters.access_point_name, 7, 27, true)) && (s3express_availability_zone_delim = Aws::Endpoints::Matchers.substring(parameters.access_point_name, 27, 29, true)) && Aws::Endpoints::Matchers.string_equals?(s3express_availability_zone_delim, "--")
79
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
80
+ return Aws::Endpoints::Endpoint.new(url: "https://s3express-control-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3express", "signingRegion"=>"#{parameters.region}"}]})
81
+ end
82
+ return Aws::Endpoints::Endpoint.new(url: "https://s3express-control.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3express", "signingRegion"=>"#{parameters.region}"}]})
83
+ end
84
+ raise ArgumentError, "Unrecognized S3Express Access Point name format."
85
+ end
86
+ end
87
+ if Aws::Endpoints::Matchers.set?(parameters.use_s3_express_control_endpoint) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_s3_express_control_endpoint, true)
88
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
89
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
90
+ return Aws::Endpoints::Endpoint.new(url: "https://s3express-control-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3express", "signingRegion"=>"#{parameters.region}"}]})
91
+ end
92
+ return Aws::Endpoints::Endpoint.new(url: "https://s3express-control.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3express", "signingRegion"=>"#{parameters.region}"}]})
93
+ end
94
+ end
95
+ if Aws::Endpoints::Matchers.string_equals?(parameters.region, "snow") && Aws::Endpoints::Matchers.set?(parameters.endpoint) && (url = Aws::Endpoints::Matchers.parse_url(parameters.endpoint))
96
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
97
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
98
+ raise ArgumentError, "S3 Snow does not support DualStack"
99
+ end
100
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
101
+ raise ArgumentError, "S3 Snow does not support FIPS"
102
+ end
103
+ return Aws::Endpoints::Endpoint.new(url: "#{url['scheme']}://#{url['authority']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3", "signingRegion"=>"#{parameters.region}"}]})
104
+ end
105
+ end
60
106
  if Aws::Endpoints::Matchers.set?(parameters.access_point_name) && (access_point_arn = Aws::Endpoints::Matchers.aws_parse_arn(parameters.access_point_name))
61
107
  if (arn_type = Aws::Endpoints::Matchers.attr(access_point_arn, "resourceId[0]")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(arn_type, ""))
62
108
  if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(access_point_arn, "service"), "s3-outposts")
@@ -179,9 +225,6 @@ module Aws::S3Control
179
225
  end
180
226
  if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
181
227
  if Aws::Endpoints::Matchers.valid_host_label?(parameters.region, true)
182
- if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn")
183
- raise ArgumentError, "Partition does not support FIPS"
184
- end
185
228
  if Aws::Endpoints::Matchers.set?(parameters.requires_account_id) && Aws::Endpoints::Matchers.boolean_equals?(parameters.requires_account_id, true) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.set?(parameters.account_id))
186
229
  raise ArgumentError, "AccountId is required but not set"
187
230
  end
@@ -64,6 +64,7 @@ module Aws::S3Control
64
64
  account_id: context.params[:account_id],
65
65
  requires_account_id: true,
66
66
  bucket: context.params[:bucket],
67
+ access_point_name: context.params[:name],
67
68
  )
68
69
  end
69
70
  end
@@ -213,6 +214,19 @@ module Aws::S3Control
213
214
  end
214
215
  end
215
216
 
217
+ class DeleteAccessPointScope
218
+ def self.build(context)
219
+ Aws::S3Control::EndpointParameters.create(
220
+ context.config,
221
+ use_dual_stack: context[:use_dualstack_endpoint],
222
+ account_id: context.params[:account_id],
223
+ requires_account_id: true,
224
+ access_point_name: context.params[:name],
225
+ use_s3_express_control_endpoint: true,
226
+ )
227
+ end
228
+ end
229
+
216
230
  class DeleteBucket
217
231
  def self.build(context)
218
232
  Aws::S3Control::EndpointParameters.create(
@@ -507,6 +521,19 @@ module Aws::S3Control
507
521
  end
508
522
  end
509
523
 
524
+ class GetAccessPointScope
525
+ def self.build(context)
526
+ Aws::S3Control::EndpointParameters.create(
527
+ context.config,
528
+ use_dual_stack: context[:use_dualstack_endpoint],
529
+ account_id: context.params[:account_id],
530
+ requires_account_id: true,
531
+ access_point_name: context.params[:name],
532
+ use_s3_express_control_endpoint: true,
533
+ )
534
+ end
535
+ end
536
+
510
537
  class GetBucket
511
538
  def self.build(context)
512
539
  Aws::S3Control::EndpointParameters.create(
@@ -734,6 +761,18 @@ module Aws::S3Control
734
761
  end
735
762
  end
736
763
 
764
+ class ListAccessPointsForDirectoryBuckets
765
+ def self.build(context)
766
+ Aws::S3Control::EndpointParameters.create(
767
+ context.config,
768
+ use_dual_stack: context[:use_dualstack_endpoint],
769
+ account_id: context.params[:account_id],
770
+ requires_account_id: true,
771
+ use_s3_express_control_endpoint: true,
772
+ )
773
+ end
774
+ end
775
+
737
776
  class ListAccessPointsForObjectLambda
738
777
  def self.build(context)
739
778
  Aws::S3Control::EndpointParameters.create(
@@ -868,6 +907,19 @@ module Aws::S3Control
868
907
  end
869
908
  end
870
909
 
910
+ class PutAccessPointScope
911
+ def self.build(context)
912
+ Aws::S3Control::EndpointParameters.create(
913
+ context.config,
914
+ use_dual_stack: context[:use_dualstack_endpoint],
915
+ account_id: context.params[:account_id],
916
+ requires_account_id: true,
917
+ access_point_name: context.params[:name],
918
+ use_s3_express_control_endpoint: true,
919
+ )
920
+ end
921
+ end
922
+
871
923
  class PutBucketLifecycleConfiguration
872
924
  def self.build(context)
873
925
  Aws::S3Control::EndpointParameters.create(
@@ -1099,6 +1151,8 @@ module Aws::S3Control
1099
1151
  DeleteAccessPointPolicy.build(context)
1100
1152
  when :delete_access_point_policy_for_object_lambda
1101
1153
  DeleteAccessPointPolicyForObjectLambda.build(context)
1154
+ when :delete_access_point_scope
1155
+ DeleteAccessPointScope.build(context)
1102
1156
  when :delete_bucket
1103
1157
  DeleteBucket.build(context)
1104
1158
  when :delete_bucket_lifecycle_configuration
@@ -1151,6 +1205,8 @@ module Aws::S3Control
1151
1205
  GetAccessPointPolicyStatus.build(context)
1152
1206
  when :get_access_point_policy_status_for_object_lambda
1153
1207
  GetAccessPointPolicyStatusForObjectLambda.build(context)
1208
+ when :get_access_point_scope
1209
+ GetAccessPointScope.build(context)
1154
1210
  when :get_bucket
1155
1211
  GetBucket.build(context)
1156
1212
  when :get_bucket_lifecycle_configuration
@@ -1191,6 +1247,8 @@ module Aws::S3Control
1191
1247
  ListAccessGrantsLocations.build(context)
1192
1248
  when :list_access_points
1193
1249
  ListAccessPoints.build(context)
1250
+ when :list_access_points_for_directory_buckets
1251
+ ListAccessPointsForDirectoryBuckets.build(context)
1194
1252
  when :list_access_points_for_object_lambda
1195
1253
  ListAccessPointsForObjectLambda.build(context)
1196
1254
  when :list_caller_access_grants
@@ -1215,6 +1273,8 @@ module Aws::S3Control
1215
1273
  PutAccessPointPolicy.build(context)
1216
1274
  when :put_access_point_policy_for_object_lambda
1217
1275
  PutAccessPointPolicyForObjectLambda.build(context)
1276
+ when :put_access_point_scope
1277
+ PutAccessPointScope.build(context)
1218
1278
  when :put_bucket_lifecycle_configuration
1219
1279
  PutBucketLifecycleConfiguration.build(context)
1220
1280
  when :put_bucket_policy