aws-partitions 1.226.0 → 1.231.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: 6ee334da1b2df7500b98aeaff3ee44f4dda7777a
4
- data.tar.gz: 31844f6302dcf86437c10bb9631e8a776ae8d18f
3
+ metadata.gz: fad0ab52b2f75bed02bbe1f54b8dee61c401a7ae
4
+ data.tar.gz: 96ce6e3567f856508e18bc24d076eb8f4e23f627
5
5
  SHA512:
6
- metadata.gz: 695a3f3d267ecd0f6e9455cd0fefd8c79588963d6c23b6b8a083f25a1193c025526d07b1d66d89414f5baf93554d9cd161e7faa77e838c80303b7e8e02a8fe45
7
- data.tar.gz: cbd4d1cca80d7e5499160c82d9058e76d6ad648c3fc7323e239be7efe6c4c69b162921fdc3c5d44e214adf5118ce5aa854109b731e3e33497d6231f385e23af7
6
+ metadata.gz: a9c6344f7ec69a08644a5f6a15bbbf13854527e31c6e47787d5ad5984332299511957e42cf5a2df0a63440bc3aabd0fd3ef4aedbaf0be0037f0094b942f24c3c
7
+ data.tar.gz: a61c3221f5595157ee35183e2b2f6a61d320901aff54b01d337fdc5edfeada011ba624cd782d149a0a33383c8f4d2d4e1c3a8a861aa5a216c52be8c3b150b105
@@ -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" : { },
@@ -1552,6 +1559,26 @@
1552
1559
  "us-west-2" : { }
1553
1560
  }
1554
1561
  },
1562
+ "forecast" : {
1563
+ "endpoints" : {
1564
+ "ap-northeast-1" : { },
1565
+ "ap-southeast-1" : { },
1566
+ "eu-west-1" : { },
1567
+ "us-east-1" : { },
1568
+ "us-east-2" : { },
1569
+ "us-west-2" : { }
1570
+ }
1571
+ },
1572
+ "forecastquery" : {
1573
+ "endpoints" : {
1574
+ "ap-northeast-1" : { },
1575
+ "ap-southeast-1" : { },
1576
+ "eu-west-1" : { },
1577
+ "us-east-1" : { },
1578
+ "us-east-2" : { },
1579
+ "us-west-2" : { }
1580
+ }
1581
+ },
1555
1582
  "fsx" : {
1556
1583
  "endpoints" : {
1557
1584
  "ap-northeast-1" : { },
@@ -2937,6 +2964,7 @@
2937
2964
  "eu-west-1" : { },
2938
2965
  "eu-west-2" : { },
2939
2966
  "eu-west-3" : { },
2967
+ "me-south-1" : { },
2940
2968
  "sa-east-1" : { },
2941
2969
  "us-east-1" : { },
2942
2970
  "us-east-1-fips" : {
@@ -3031,6 +3059,9 @@
3031
3059
  "eu-west-3" : {
3032
3060
  "protocols" : [ "https" ]
3033
3061
  },
3062
+ "me-south-1" : {
3063
+ "protocols" : [ "https" ]
3064
+ },
3034
3065
  "sa-east-1" : {
3035
3066
  "protocols" : [ "https" ]
3036
3067
  },
@@ -3382,42 +3413,26 @@
3382
3413
  }
3383
3414
  },
3384
3415
  "sts" : {
3385
- "defaults" : {
3386
- "credentialScope" : {
3387
- "region" : "us-east-1"
3388
- },
3389
- "hostname" : "sts.amazonaws.com"
3390
- },
3391
3416
  "endpoints" : {
3392
- "ap-east-1" : {
3393
- "credentialScope" : {
3394
- "region" : "ap-east-1"
3395
- },
3396
- "hostname" : "sts.ap-east-1.amazonaws.com"
3397
- },
3417
+ "ap-east-1" : { },
3398
3418
  "ap-northeast-1" : { },
3399
- "ap-northeast-2" : {
3400
- "credentialScope" : {
3401
- "region" : "ap-northeast-2"
3402
- },
3403
- "hostname" : "sts.ap-northeast-2.amazonaws.com"
3404
- },
3419
+ "ap-northeast-2" : { },
3405
3420
  "ap-south-1" : { },
3406
3421
  "ap-southeast-1" : { },
3407
3422
  "ap-southeast-2" : { },
3408
- "aws-global" : { },
3423
+ "aws-global" : {
3424
+ "credentialScope" : {
3425
+ "region" : "us-east-1"
3426
+ },
3427
+ "hostname" : "sts.amazonaws.com"
3428
+ },
3409
3429
  "ca-central-1" : { },
3410
3430
  "eu-central-1" : { },
3411
3431
  "eu-north-1" : { },
3412
3432
  "eu-west-1" : { },
3413
3433
  "eu-west-2" : { },
3414
3434
  "eu-west-3" : { },
3415
- "me-south-1" : {
3416
- "credentialScope" : {
3417
- "region" : "me-south-1"
3418
- },
3419
- "hostname" : "sts.me-south-1.amazonaws.com"
3420
- },
3435
+ "me-south-1" : { },
3421
3436
  "sa-east-1" : { },
3422
3437
  "us-east-1" : { },
3423
3438
  "us-east-1-fips" : {
@@ -3505,6 +3520,37 @@
3505
3520
  "us-west-2" : { }
3506
3521
  }
3507
3522
  },
3523
+ "transcribe" : {
3524
+ "defaults" : {
3525
+ "protocols" : [ "https" ]
3526
+ },
3527
+ "endpoints" : {
3528
+ "ap-northeast-2" : { },
3529
+ "ap-south-1" : { },
3530
+ "ap-southeast-1" : { },
3531
+ "ap-southeast-2" : { },
3532
+ "ca-central-1" : { },
3533
+ "eu-central-1" : { },
3534
+ "eu-west-1" : { },
3535
+ "eu-west-2" : { },
3536
+ "eu-west-3" : { },
3537
+ "sa-east-1" : { },
3538
+ "us-east-1" : { },
3539
+ "us-east-2" : { },
3540
+ "us-west-1" : { },
3541
+ "us-west-2" : { }
3542
+ }
3543
+ },
3544
+ "transcribestreaming" : {
3545
+ "endpoints" : {
3546
+ "ap-southeast-2" : { },
3547
+ "ca-central-1" : { },
3548
+ "eu-west-1" : { },
3549
+ "us-east-1" : { },
3550
+ "us-east-2" : { },
3551
+ "us-west-2" : { }
3552
+ }
3553
+ },
3508
3554
  "transfer" : {
3509
3555
  "endpoints" : {
3510
3556
  "ap-northeast-1" : { },
@@ -3883,6 +3929,11 @@
3883
3929
  "cn-northwest-1" : { }
3884
3930
  }
3885
3931
  },
3932
+ "glue" : {
3933
+ "endpoints" : {
3934
+ "cn-northwest-1" : { }
3935
+ }
3936
+ },
3886
3937
  "greengrass" : {
3887
3938
  "defaults" : {
3888
3939
  "protocols" : [ "https" ]
@@ -4100,6 +4151,25 @@
4100
4151
  "cn-north-1" : { },
4101
4152
  "cn-northwest-1" : { }
4102
4153
  }
4154
+ },
4155
+ "transcribe" : {
4156
+ "defaults" : {
4157
+ "protocols" : [ "https" ]
4158
+ },
4159
+ "endpoints" : {
4160
+ "cn-north-1" : {
4161
+ "credentialScope" : {
4162
+ "region" : "cn-north-1"
4163
+ },
4164
+ "hostname" : "cn.transcribe.cn-north-1.amazonaws.com.cn"
4165
+ },
4166
+ "cn-northwest-1" : {
4167
+ "credentialScope" : {
4168
+ "region" : "cn-northwest-1"
4169
+ },
4170
+ "hostname" : "cn.transcribe.cn-northwest-1.amazonaws.com.cn"
4171
+ }
4172
+ }
4103
4173
  }
4104
4174
  }
4105
4175
  }, {
@@ -4816,6 +4886,14 @@
4816
4886
  "us-gov-west-1" : { }
4817
4887
  }
4818
4888
  },
4889
+ "transcribe" : {
4890
+ "defaults" : {
4891
+ "protocols" : [ "https" ]
4892
+ },
4893
+ "endpoints" : {
4894
+ "us-gov-west-1" : { }
4895
+ }
4896
+ },
4819
4897
  "translate" : {
4820
4898
  "defaults" : {
4821
4899
  "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.226.0
4
+ version: 1.231.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-18 00:00:00.000000000 Z
11
+ date: 2019-10-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Provides interfaces to enumerate AWS partitions, regions, and services.
14
14
  email: