aws-sdk-s3control 1.39.0 → 1.42.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e112676e85274b45a38440091e5e41254483000c95b90d51e3a54a7a57565dc
4
- data.tar.gz: 7dbce0ed3cdeca2a0dc512f3ec3c3a9e6578a64ad3f0d77a3e3ded23be22fbba
3
+ metadata.gz: 3d717b8608be6b064bafa5fd3bfe4cab6a0bd53200071478dcddb696a087c3ed
4
+ data.tar.gz: 66b70379fe4e6040954b137ec45e5e67d67f9f8d05598c3e9fc950e3314712c6
5
5
  SHA512:
6
- metadata.gz: 86c9c60e82fbaeb2cb5054dacb0bec2030b5e3ec1487e8bed5780958282319f5ed88cc93d74d66056e4cfc7f08ac268afbc923dad13e4a9e71388c91f482c0cb
7
- data.tar.gz: 43d891eebfd7fa38b6f215a91d3ac5401232c56efd5c486cdee29cc317e15de10c91ab50ce3f9493aff51b6069bbd9d0ebde9e152b595c7e1735f15b73f938db
6
+ metadata.gz: 4608d26f4f298e23c24f5656bb05308175694e9154d054a96b983284b9836bb52f24ac39b45e373fb5189fc0cb6b0ea4385d34f35d8954458cd61fbeeb384c43
7
+ data.tar.gz: 9fad7cb5825ed52608717ace057089b3c1d3b9feb43a83cfbb73d0a51d10c2bce2c94cf0177ce8430b00edd3ac021a73ccb99e7642118b6b7fd2223078cfaad4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,28 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.42.0 (2021-11-04)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Feature - Support FIPS endpoints for S3 Outposts using Bucket and Access Point ARNs.
10
+
11
+ 1.41.1 (2021-10-20)
12
+ ------------------
13
+
14
+ * Issue - use the correct service with the `EndpointProvider` to determine `sigv4_region`.
15
+
16
+ 1.41.0 (2021-10-18)
17
+ ------------------
18
+
19
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
20
+
21
+ 1.40.0 (2021-09-02)
22
+ ------------------
23
+
24
+ * Feature - S3 Multi-Region Access Points provide a single global endpoint to access a data set that spans multiple S3 buckets in different AWS Regions.
25
+
4
26
  1.39.0 (2021-09-01)
5
27
  ------------------
6
28
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.39.0
1
+ 1.42.0
@@ -23,30 +23,36 @@ module Aws
23
23
  end
24
24
 
25
25
  def support_fips?
26
- false
26
+ true
27
27
  end
28
28
 
29
29
  def validate_arn!
30
30
  unless @service == 's3-outposts'
31
- raise ArgumentError, 'Must provide a valid S3 outposts ARN.'
31
+ raise ArgumentError, 'Must provide a valid S3 Outpost Access '\
32
+ 'Point ARN.'
32
33
  end
33
34
 
34
35
  if @region.empty? || @account_id.empty?
35
36
  raise ArgumentError,
36
- 'S3 accesspoint ARNs must contain both a region '\
37
- 'and an account id.'
37
+ 'S3 Outpost Access Point ARNs must contain both a region '\
38
+ 'and an Account ID.'
39
+ end
40
+
41
+ if @region.include?('-fips') || @region.include?('fips-')
42
+ raise ArgumentError,
43
+ 'S3 Outpost Access Point ARNs cannot contain a FIPS region.'
38
44
  end
39
45
 
40
46
  if @type != 'outpost' && @subtype != 'accesspoint'
41
- raise ArgumentError, 'Invalid ARN, resource format is not correct'
47
+ raise ArgumentError, 'Invalid ARN, resource format is not correct.'
42
48
  end
43
49
 
44
50
  if @outpost_id.nil? || @outpost_id.empty?
45
- raise ArgumentError, 'Missing ARN outpost id.'
51
+ raise ArgumentError, 'Missing ARN Outpost ID.'
46
52
  end
47
53
 
48
54
  if @access_point_name.nil? || @access_point_name.empty?
49
- raise ArgumentError, 'Missing ARN accesspoint name.'
55
+ raise ArgumentError, 'Missing ARN Access Point name.'
50
56
  end
51
57
 
52
58
  if @extra
@@ -68,11 +74,11 @@ module Aws
68
74
  end
69
75
 
70
76
  # Outpost Access Point ARNs currently do not support dualstack
71
- def host_url(region, _dualstack = false, custom_endpoint = nil)
77
+ def host_url(region, fips = false, _dualstack = false, custom_endpoint = nil)
72
78
  if custom_endpoint
73
79
  custom_endpoint
74
80
  else
75
- "s3-outposts.#{region}.amazonaws.com"
81
+ "s3-outposts#{'-fips' if fips}.#{region}.amazonaws.com"
76
82
  end
77
83
  end
78
84
  end
@@ -28,13 +28,18 @@ module Aws
28
28
 
29
29
  def validate_arn!
30
30
  unless @service == 's3-outposts'
31
- raise ArgumentError, 'Must provide a valid S3 outposts bucket ARN.'
31
+ raise ArgumentError, 'Must provide a valid S3 Outpost Bucket ARN.'
32
32
  end
33
33
 
34
34
  if @region.empty? || @account_id.empty?
35
35
  raise ArgumentError,
36
- 'S3 accesspoint ARNs must contain both a region '\
37
- 'and an account id.'
36
+ 'S3 Outpost Bucket ARNs must contain both a region '\
37
+ 'and an Account ID.'
38
+ end
39
+
40
+ if @region.include?('-fips') || @region.include?('fips-')
41
+ raise ArgumentError,
42
+ 'S3 Outpost Bucket ARNs cannot contain a FIPS region.'
38
43
  end
39
44
 
40
45
  if @type != 'outpost' && @subtype != 'bucket'
@@ -42,16 +47,16 @@ module Aws
42
47
  end
43
48
 
44
49
  if @outpost_id.nil? || @outpost_id.empty?
45
- raise ArgumentError, 'Missing ARN outpost id.'
50
+ raise ArgumentError, 'Missing ARN Outpost ID.'
46
51
  end
47
52
 
48
53
  if @bucket_name.nil? || @bucket_name.empty?
49
- raise ArgumentError, 'Missing ARN accesspoint name.'
54
+ raise ArgumentError, 'Missing ARN bucket name.'
50
55
  end
51
56
 
52
57
  if @extra
53
58
  raise ArgumentError,
54
- 'ARN outpost bucket must be a single value.'
59
+ 'ARN Outpost bucket must be a single value.'
55
60
  end
56
61
 
57
62
  unless Seahorse::Util.host_label?(@outpost_id)
@@ -64,11 +69,11 @@ module Aws
64
69
  end
65
70
 
66
71
  # Outpost Bucket ARNs currently do not support dualstack
67
- def host_url(region, _dualstack = false, custom_endpoint = nil)
72
+ def host_url(region, fips = false, _dualstack = false, custom_endpoint = nil)
68
73
  if custom_endpoint
69
74
  custom_endpoint
70
75
  else
71
- "s3-outposts.#{region}.amazonaws.com"
76
+ "s3-outposts#{'-fips' if fips}.#{region}.amazonaws.com"
72
77
  end
73
78
  end
74
79
  end