aws-partitions 1.227.0 → 1.232.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
  SHA1:
3
- metadata.gz: 85a0e95d14bdc5765f56a53d577b6f6f946c6fd9
4
- data.tar.gz: fb466b498a608082ad29a2045b3b665b3db90f24
3
+ metadata.gz: dbac57d166732c77d9824d89fdb96da04d9c5aea
4
+ data.tar.gz: 960743a35202c88f6c91cf7f04f191608fbb0483
5
5
  SHA512:
6
- metadata.gz: 3d1d6a0eee3f6422967960347bba4632fd2ca8e060b2597b10ebe83d95b945af86a4b4e0eff90fab7de2a52b7739ac08a235760118d2e9f61beed0927893d722
7
- data.tar.gz: '090b1fa6eff7fbc4f48a60e3af312147b7ea93bae8bb2e26475455059649b8dadd4f40a2c002ff135d499467110531f9fe654384b1b7845a90e328eb921d9eee'
6
+ metadata.gz: 03cadf4752d669b8aca7e7aadcc7f997cee6285b52db5e9a410b65d08507c215e8074434d5a5bf866eefbe4ec1e8ad2f40354d13bf502941f47ca6ce7a286daf
7
+ data.tar.gz: 2e4b21d51acf9185f6529ce88a42317f1fb4246083d6ddbd49776928a514cf1badcc330ec7ec53bd1dde27586cda4c125538b5b65f154f9e51be5707d8c56dd2
@@ -3,6 +3,28 @@ module Aws
3
3
  # @api private
4
4
  class EndpointProvider
5
5
 
6
+ # when sts_regional_endpoint set to `legacy`
7
+ # endpoint pattern stays global for
8
+ # following regions
9
+ STS_LEGACY_REGIONS = %w(
10
+ ap-northeast-1
11
+ ap-south-1
12
+ ap-southeast-1
13
+ ap-southeast-2
14
+ aws-global
15
+ ca-central-1
16
+ eu-central-1
17
+ eu-north-1
18
+ eu-west-1
19
+ eu-west-2
20
+ eu-west-3
21
+ sa-east-1
22
+ us-east-1
23
+ us-east-2
24
+ us-west-1
25
+ us-west-2
26
+ )
27
+
6
28
  # Intentionally marked private. The format of the endpoint rules
7
29
  # is an implementation detail.
8
30
  # @api private
@@ -13,9 +35,12 @@ module Aws
13
35
  # @param [String] region
14
36
  # @param [String] service The endpoint prefix for the service, e.g. "monitoring" for
15
37
  # cloudwatch.
38
+ # @param [String] sts_regional_endpoints [STS only] Whether to use `legacy` (global endpoint for
39
+ # legacy regions) or `regional` mode for using regional endpoint for supported regions
40
+ # except 'aws-global'
16
41
  # @api private Use the static class methods instead.
17
- def resolve(region, service)
18
- "https://" + endpoint_for(region, service)
42
+ def resolve(region, service, sts_regional_endpoints = nil)
43
+ "https://" + endpoint_for(region, service, sts_regional_endpoints)
19
44
  end
20
45
 
21
46
  # @api private Use the static class methods instead.
@@ -37,7 +62,7 @@ module Aws
37
62
 
38
63
  private
39
64
 
40
- def endpoint_for(region, service)
65
+ def endpoint_for(region, service, sts_regional_endpoints)
41
66
  partition = get_partition(region)
42
67
  endpoint = default_endpoint(partition, service, region)
43
68
  service_cfg = partition.fetch("services", {}).fetch(service, {})
@@ -45,8 +70,13 @@ module Aws
45
70
  # Check for service-level default endpoint.
46
71
  endpoint = service_cfg.fetch("defaults", {}).fetch("hostname", endpoint)
47
72
 
73
+ # Check for sts legacy behavior
74
+ sts_legacy = service == 'sts' &&
75
+ sts_regional_endpoints == 'legacy' &&
76
+ STS_LEGACY_REGIONS.include?(region)
77
+
48
78
  # Check for global endpoint.
49
- if service_cfg["isRegionalized"] == false
79
+ if sts_legacy || service_cfg["isRegionalized"] == false
50
80
  region = service_cfg.fetch("partitionEndpoint", region)
51
81
  end
52
82
 
@@ -91,8 +121,8 @@ module Aws
91
121
 
92
122
  class << self
93
123
 
94
- def resolve(region, service)
95
- default_provider.resolve(region, service)
124
+ def resolve(region, service, sts_regional_endpoints = nil)
125
+ default_provider.resolve(region, service, sts_regional_endpoints)
96
126
  end
97
127
 
98
128
  def signing_region(region, service)
@@ -359,6 +359,7 @@
359
359
  "eu-central-1" : { },
360
360
  "eu-west-1" : { },
361
361
  "eu-west-2" : { },
362
+ "eu-west-3" : { },
362
363
  "us-east-1" : { },
363
364
  "us-east-2" : { },
364
365
  "us-west-1" : { },
@@ -473,14 +474,20 @@
473
474
  },
474
475
  "backup" : {
475
476
  "endpoints" : {
477
+ "ap-east-1" : { },
476
478
  "ap-northeast-1" : { },
477
479
  "ap-northeast-2" : { },
480
+ "ap-south-1" : { },
478
481
  "ap-southeast-1" : { },
479
482
  "ap-southeast-2" : { },
480
483
  "ca-central-1" : { },
481
484
  "eu-central-1" : { },
485
+ "eu-north-1" : { },
482
486
  "eu-west-1" : { },
483
487
  "eu-west-2" : { },
488
+ "eu-west-3" : { },
489
+ "me-south-1" : { },
490
+ "sa-east-1" : { },
484
491
  "us-east-1" : { },
485
492
  "us-east-2" : { },
486
493
  "us-west-1" : { },
@@ -1160,6 +1167,12 @@
1160
1167
  },
1161
1168
  "hostname" : "rds.eu-west-2.amazonaws.com"
1162
1169
  },
1170
+ "eu-west-3" : {
1171
+ "credentialScope" : {
1172
+ "region" : "eu-west-3"
1173
+ },
1174
+ "hostname" : "rds.eu-west-3.amazonaws.com"
1175
+ },
1163
1176
  "us-east-1" : {
1164
1177
  "credentialScope" : {
1165
1178
  "region" : "us-east-1"
@@ -1552,6 +1565,26 @@
1552
1565
  "us-west-2" : { }
1553
1566
  }
1554
1567
  },
1568
+ "forecast" : {
1569
+ "endpoints" : {
1570
+ "ap-northeast-1" : { },
1571
+ "ap-southeast-1" : { },
1572
+ "eu-west-1" : { },
1573
+ "us-east-1" : { },
1574
+ "us-east-2" : { },
1575
+ "us-west-2" : { }
1576
+ }
1577
+ },
1578
+ "forecastquery" : {
1579
+ "endpoints" : {
1580
+ "ap-northeast-1" : { },
1581
+ "ap-southeast-1" : { },
1582
+ "eu-west-1" : { },
1583
+ "us-east-1" : { },
1584
+ "us-east-2" : { },
1585
+ "us-west-2" : { }
1586
+ }
1587
+ },
1555
1588
  "fsx" : {
1556
1589
  "endpoints" : {
1557
1590
  "ap-northeast-1" : { },
@@ -2937,6 +2970,7 @@
2937
2970
  "eu-west-1" : { },
2938
2971
  "eu-west-2" : { },
2939
2972
  "eu-west-3" : { },
2973
+ "me-south-1" : { },
2940
2974
  "sa-east-1" : { },
2941
2975
  "us-east-1" : { },
2942
2976
  "us-east-1-fips" : {
@@ -3031,6 +3065,9 @@
3031
3065
  "eu-west-3" : {
3032
3066
  "protocols" : [ "https" ]
3033
3067
  },
3068
+ "me-south-1" : {
3069
+ "protocols" : [ "https" ]
3070
+ },
3034
3071
  "sa-east-1" : {
3035
3072
  "protocols" : [ "https" ]
3036
3073
  },
@@ -3382,42 +3419,26 @@
3382
3419
  }
3383
3420
  },
3384
3421
  "sts" : {
3385
- "defaults" : {
3386
- "credentialScope" : {
3387
- "region" : "us-east-1"
3388
- },
3389
- "hostname" : "sts.amazonaws.com"
3390
- },
3391
3422
  "endpoints" : {
3392
- "ap-east-1" : {
3393
- "credentialScope" : {
3394
- "region" : "ap-east-1"
3395
- },
3396
- "hostname" : "sts.ap-east-1.amazonaws.com"
3397
- },
3423
+ "ap-east-1" : { },
3398
3424
  "ap-northeast-1" : { },
3399
- "ap-northeast-2" : {
3400
- "credentialScope" : {
3401
- "region" : "ap-northeast-2"
3402
- },
3403
- "hostname" : "sts.ap-northeast-2.amazonaws.com"
3404
- },
3425
+ "ap-northeast-2" : { },
3405
3426
  "ap-south-1" : { },
3406
3427
  "ap-southeast-1" : { },
3407
3428
  "ap-southeast-2" : { },
3408
- "aws-global" : { },
3429
+ "aws-global" : {
3430
+ "credentialScope" : {
3431
+ "region" : "us-east-1"
3432
+ },
3433
+ "hostname" : "sts.amazonaws.com"
3434
+ },
3409
3435
  "ca-central-1" : { },
3410
3436
  "eu-central-1" : { },
3411
3437
  "eu-north-1" : { },
3412
3438
  "eu-west-1" : { },
3413
3439
  "eu-west-2" : { },
3414
3440
  "eu-west-3" : { },
3415
- "me-south-1" : {
3416
- "credentialScope" : {
3417
- "region" : "me-south-1"
3418
- },
3419
- "hostname" : "sts.me-south-1.amazonaws.com"
3420
- },
3441
+ "me-south-1" : { },
3421
3442
  "sa-east-1" : { },
3422
3443
  "us-east-1" : { },
3423
3444
  "us-east-1-fips" : {
@@ -3526,6 +3547,16 @@
3526
3547
  "us-west-2" : { }
3527
3548
  }
3528
3549
  },
3550
+ "transcribestreaming" : {
3551
+ "endpoints" : {
3552
+ "ap-southeast-2" : { },
3553
+ "ca-central-1" : { },
3554
+ "eu-west-1" : { },
3555
+ "us-east-1" : { },
3556
+ "us-east-2" : { },
3557
+ "us-west-2" : { }
3558
+ }
3559
+ },
3529
3560
  "transfer" : {
3530
3561
  "endpoints" : {
3531
3562
  "ap-northeast-1" : { },
@@ -3904,6 +3935,11 @@
3904
3935
  "cn-northwest-1" : { }
3905
3936
  }
3906
3937
  },
3938
+ "glue" : {
3939
+ "endpoints" : {
3940
+ "cn-northwest-1" : { }
3941
+ }
3942
+ },
3907
3943
  "greengrass" : {
3908
3944
  "defaults" : {
3909
3945
  "protocols" : [ "https" ]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-partitions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.227.0
4
+ version: 1.232.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: 2019-10-22 00:00:00.000000000 Z
11
+ date: 2019-10-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Provides interfaces to enumerate AWS partitions, regions, and services.
14
14
  email: