aws-sdk-accessanalyzer 1.32.0 → 1.33.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: e4767c74c079c96b5f2c48282f0b3e9bd8f64dc6ba5e695bde76e55833726d14
4
- data.tar.gz: ef1a1bedf42ab501f4b136145c599126ac9701f75e5601103f2e265934737788
3
+ metadata.gz: fd1f3f9521514014252024f70752ecce355e1686eca51cda613f284972bde774
4
+ data.tar.gz: f24fc573a9bebd1fc74e7e2b5051881b45eb73498c491b2578d5ceb54e596050
5
5
  SHA512:
6
- metadata.gz: ad9a954f61f0658a6cff9a5e1b4436ab240ae665a2ed815361d842c3e5d4537810d65def2f0bfb937a01d20d0f96905e94392a08fce76c1a36c3c22b00c43798
7
- data.tar.gz: e2f56615abc29d51e50354a420e75b2fe8ab3830503f5a8abc839114acfcdcb6eec18b54b3aa52493d4e33b28eb8d7d938ed2e196535b17f948a41252a8d52e5
6
+ metadata.gz: b0a478d564a9b591d4325b31f0b59d0f3d9af88108fbfdbb2279cb2384a7094b8f344c7bbd41bcd8c0a4b8120b1d23781085780862209e34586d461caefa2e68
7
+ data.tar.gz: 449c68e1a77c18650d7a580cfa437091d9f87701fd04853e3a07b024807c79dae5ead30068f6ee5398f182ae956a5fa16d43a9b0c6a74076e89b6b4114422962
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.33.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
4
11
  1.32.0 (2022-11-30)
5
12
  ------------------
6
13
 
@@ -176,4 +183,4 @@ Unreleased Changes
176
183
  1.0.0 (2019-12-02)
177
184
  ------------------
178
185
 
179
- * Feature - Initial release of `aws-sdk-accessanalyzer`.
186
+ * Feature - Initial release of `aws-sdk-accessanalyzer`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.32.0
1
+ 1.33.0
@@ -1902,7 +1902,7 @@ module Aws::AccessAnalyzer
1902
1902
  params: params,
1903
1903
  config: config)
1904
1904
  context[:gem_name] = 'aws-sdk-accessanalyzer'
1905
- context[:gem_version] = '1.32.0'
1905
+ context[:gem_version] = '1.33.0'
1906
1906
  Seahorse::Client::Request.new(handlers, context)
1907
1907
  end
1908
1908
 
@@ -9,104 +9,43 @@
9
9
 
10
10
  module Aws::AccessAnalyzer
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://access-analyzer-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://access-analyzer-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://access-analyzer.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://access-analyzer.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
46
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
47
+ raise ArgumentError, 'No endpoint could be resolved'
24
48
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
49
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
- YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
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XIue1JlZ2lvbn0ue1BhcnRpdGlvblJl
101
- c3VsdCNkdWFsU3RhY2tEbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhl
102
- YWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfSx7ImNvbmRpdGlvbnMi
103
- OltdLCJlcnJvciI6IkR1YWxTdGFjayBpcyBlbmFibGVkIGJ1dCB0aGlzIHBh
104
- cnRpdGlvbiBkb2VzIG5vdCBzdXBwb3J0IER1YWxTdGFjayIsInR5cGUiOiJl
105
- cnJvciJ9XX0seyJjb25kaXRpb25zIjpbXSwiZW5kcG9pbnQiOnsidXJsIjoi
106
- aHR0cHM6Ly9hY2Nlc3MtYW5hbHl6ZXIue1JlZ2lvbn0ue1BhcnRpdGlvblJl
107
- c3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9
108
- fSwidHlwZSI6ImVuZHBvaW50In1dfV19
109
-
110
- JSON
111
50
  end
112
51
  end
@@ -259,6 +259,10 @@ module Aws::AccessAnalyzer
259
259
  #
260
260
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketAcl.html
261
261
  #
262
+ # @note AclGrantee is a union - when making an API calls you must set exactly one of the members.
263
+ #
264
+ # @note AclGrantee is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of AclGrantee corresponding to the set member.
265
+ #
262
266
  # @!attribute [rw] id
263
267
  # The value specified is the canonical user ID of an Amazon Web
264
268
  # Services account.
@@ -585,6 +589,10 @@ module Aws::AccessAnalyzer
585
589
  # the configuration as a type-value pair. You can specify only one type
586
590
  # of access control configuration.
587
591
  #
592
+ # @note Configuration is a union - when making an API calls you must set exactly one of the members.
593
+ #
594
+ # @note Configuration is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of Configuration corresponding to the set member.
595
+ #
588
596
  # @!attribute [rw] ebs_snapshot
589
597
  # The access control configuration is for an Amazon EBS volume
590
598
  # snapshot.
@@ -1636,6 +1644,8 @@ module Aws::AccessAnalyzer
1636
1644
  # This configuration sets the network origin for the Amazon S3 access
1637
1645
  # point or multi-region access point to `Internet`.
1638
1646
  #
1647
+ # @api private
1648
+ #
1639
1649
  # @see http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/InternetConfiguration AWS API Documentation
1640
1650
  #
1641
1651
  class InternetConfiguration < Aws::EmptyStructure; end
@@ -2236,6 +2246,10 @@ module Aws::AccessAnalyzer
2236
2246
  #
2237
2247
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/creating-access-points.html
2238
2248
  #
2249
+ # @note NetworkOriginConfiguration is a union - when making an API calls you must set exactly one of the members.
2250
+ #
2251
+ # @note NetworkOriginConfiguration is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of NetworkOriginConfiguration corresponding to the set member.
2252
+ #
2239
2253
  # @!attribute [rw] vpc_configuration
2240
2254
  # The proposed virtual private cloud (VPC) configuration for the
2241
2255
  # Amazon S3 access point. VPC configuration does not apply to
@@ -2270,6 +2284,8 @@ module Aws::AccessAnalyzer
2270
2284
  # A single element in a path through the JSON representation of a
2271
2285
  # policy.
2272
2286
  #
2287
+ # @note PathElement is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of PathElement corresponding to the set member.
2288
+ #
2273
2289
  # @!attribute [rw] index
2274
2290
  # Refers to an index in a JSON array.
2275
2291
  # @return [Integer]
@@ -2386,6 +2402,10 @@ module Aws::AccessAnalyzer
2386
2402
 
2387
2403
  # The values for a manual Amazon RDS DB cluster snapshot attribute.
2388
2404
  #
2405
+ # @note RdsDbClusterSnapshotAttributeValue is a union - when making an API calls you must set exactly one of the members.
2406
+ #
2407
+ # @note RdsDbClusterSnapshotAttributeValue is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of RdsDbClusterSnapshotAttributeValue corresponding to the set member.
2408
+ #
2389
2409
  # @!attribute [rw] account_ids
2390
2410
  # The Amazon Web Services account IDs that have access to the manual
2391
2411
  # Amazon RDS DB cluster snapshot. If the value `all` is specified,
@@ -2467,6 +2487,10 @@ module Aws::AccessAnalyzer
2467
2487
  # Manual DB snapshot attributes are used to authorize other Amazon Web
2468
2488
  # Services accounts to restore a manual DB snapshot.
2469
2489
  #
2490
+ # @note RdsDbSnapshotAttributeValue is a union - when making an API calls you must set exactly one of the members.
2491
+ #
2492
+ # @note RdsDbSnapshotAttributeValue is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of RdsDbSnapshotAttributeValue corresponding to the set member.
2493
+ #
2470
2494
  # @!attribute [rw] account_ids
2471
2495
  # The Amazon Web Services account IDs that have access to the manual
2472
2496
  # Amazon RDS DB snapshot. If the value `all` is specified, then the
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-accessanalyzer/customizations'
52
52
  # @!group service
53
53
  module Aws::AccessAnalyzer
54
54
 
55
- GEM_VERSION = '1.32.0'
55
+ GEM_VERSION = '1.33.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-accessanalyzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.32.0
4
+ version: 1.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-30 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core