aws-partitions 1.242.0 → 1.247.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: b83f415edb85eb60ea53a6bbae6271b7bc2a8515
4
- data.tar.gz: d61c4cd76fce0498f8149e611427b532618fb97b
3
+ metadata.gz: 980f59f971e881ce560817009a98caf13cbb67a1
4
+ data.tar.gz: e795998a69f5df416cc9161dc7fcc999e9f3d68a
5
5
  SHA512:
6
- metadata.gz: 7de455ca888329703ee704e1b872c367b4c1b2de27644486e6bb283694df884953017fa85fbe6f468cfe4d09afa93f65a07b937ae667cbc7b871b15aa73a3bec
7
- data.tar.gz: 914997c574ba83a3bceae0396fe7936c2a7b1bfad655256f0cfd1b4d3f2e2341b6babb1d729447298254689632a610f0d2b23431028e21432f32c3e8f633288b
6
+ metadata.gz: e550ecc7750a09d226738f03b2f6246c9e76a1dd5d082ee3c8002a8a5e88a16fe94ae535d19379025317d3c48ac6a0b2811f196a59cdb086ca822bfd6330a423
7
+ data.tar.gz: 12c6b7b8042aedf7a96acc55f233309709f3da4b904b0f545b5736df080b3deae5601d90c1af59095f35ff9fafc9021309072d8cc1dffeee8732618fade42131
@@ -228,6 +228,7 @@ module Aws
228
228
  'Amplify' => 'amplify',
229
229
  'ApiGatewayManagementApi' => 'execute-api',
230
230
  'ApiGatewayV2' => 'apigateway',
231
+ 'AppConfig' => 'appconfig',
231
232
  'AppMesh' => 'appmesh',
232
233
  'AppStream' => 'appstream2',
233
234
  'AppSync' => 'appsync',
@@ -236,7 +237,7 @@ module Aws
236
237
  'ApplicationInsights' => 'applicationinsights',
237
238
  'Athena' => 'athena',
238
239
  'AutoScaling' => 'autoscaling',
239
- 'AutoScalingPlans' => 'autoscaling',
240
+ 'AutoScalingPlans' => 'autoscaling-plans',
240
241
  'Backup' => 'backup',
241
242
  'Batch' => 'batch',
242
243
  'Budgets' => 'budgets',
@@ -265,6 +266,7 @@ module Aws
265
266
  'ComprehendMedical' => 'comprehendmedical',
266
267
  'ConfigService' => 'config',
267
268
  'Connect' => 'connect',
269
+ 'ConnectParticipant' => 'participant.connect',
268
270
  'CostExplorer' => 'ce',
269
271
  'CostandUsageReportService' => 'cur',
270
272
  'DAX' => 'dax',
@@ -288,6 +290,7 @@ module Aws
288
290
  'EMR' => 'elasticmapreduce',
289
291
  'ElastiCache' => 'elasticache',
290
292
  'ElasticBeanstalk' => 'elasticbeanstalk',
293
+ 'ElasticInference' => 'api.elastic-inference',
291
294
  'ElasticLoadBalancing' => 'elasticloadbalancing',
292
295
  'ElasticLoadBalancingV2' => 'elasticloadbalancing',
293
296
  'ElasticTranscoder' => 'elastictranscoder',
@@ -307,6 +310,7 @@ module Aws
307
310
  'GuardDuty' => 'guardduty',
308
311
  'Health' => 'health',
309
312
  'IAM' => 'iam',
313
+ 'Imagebuilder' => 'imagebuilder',
310
314
  'ImportExport' => 'importexport',
311
315
  'Inspector' => 'inspector',
312
316
  'IoT' => 'iot',
@@ -316,6 +320,7 @@ module Aws
316
320
  'IoTEvents' => 'iotevents',
317
321
  'IoTEventsData' => 'data.iotevents',
318
322
  'IoTJobsDataPlane' => 'data.jobs.iot',
323
+ 'IoTSecureTunneling' => 'api.tunneling.iot',
319
324
  'IoTThingsGraph' => 'iotthingsgraph',
320
325
  'KMS' => 'kms',
321
326
  'Kafka' => 'kafka',
@@ -394,6 +399,7 @@ module Aws
394
399
  'SageMaker' => 'api.sagemaker',
395
400
  'SageMakerRuntime' => 'runtime.sagemaker',
396
401
  'SavingsPlans' => 'savingsplans',
402
+ 'Schemas' => 'schemas',
397
403
  'SecretsManager' => 'secretsmanager',
398
404
  'SecurityHub' => 'securityhub',
399
405
  'ServerlessApplicationRepository' => 'serverlessrepo',
@@ -414,6 +420,7 @@ module Aws
414
420
  'Translate' => 'translate',
415
421
  'WAF' => 'waf',
416
422
  'WAFRegional' => 'waf-regional',
423
+ 'WAFV2' => 'wafv2',
417
424
  'WorkDocs' => 'workdocs',
418
425
  'WorkLink' => 'worklink',
419
426
  'WorkMail' => 'workmail',
@@ -60,19 +60,19 @@ module Aws
60
60
 
61
61
  # @api private Use the static class methods instead.
62
62
  def dns_suffix_for(region)
63
- partition = get_partition(region)
64
- partition['dnsSuffix']
63
+ get_partition(region)['dnsSuffix']
65
64
  end
66
65
 
67
66
  private
68
67
 
69
68
  def endpoint_for(region, service, sts_regional_endpoints)
70
69
  partition = get_partition(region)
71
- endpoint = default_endpoint(partition, service, region)
72
70
  service_cfg = partition.fetch('services', {}).fetch(service, {})
73
71
 
74
- # Check for service-level default endpoint.
75
- endpoint = service_cfg.fetch('defaults', {}).fetch('hostname', endpoint)
72
+ # Find the default endpoint
73
+ endpoint = service_cfg
74
+ .fetch('defaults', {})
75
+ .fetch('hostname', partition['defaults']['hostname'])
76
76
 
77
77
  # Check for sts legacy behavior
78
78
  sts_legacy = service == 'sts' &&
@@ -90,18 +90,14 @@ module Aws
90
90
  end
91
91
 
92
92
  # Check for service/region level endpoint.
93
- endpoint = service_cfg.fetch('endpoints', {})
94
- .fetch(region, {}).fetch('hostname', endpoint)
95
-
96
- endpoint
97
- end
98
-
99
- def default_endpoint(partition, service, region)
100
- hostname_template = partition['defaults']['hostname']
101
- hostname_template
102
- .sub('{region}', region)
103
- .sub('{service}', service)
104
- .sub('{dnsSuffix}', partition['dnsSuffix'])
93
+ endpoint = service_cfg
94
+ .fetch('endpoints', {})
95
+ .fetch(region, {}).fetch('hostname', endpoint)
96
+
97
+ # Replace placeholders from the endpoints
98
+ endpoint.sub('{region}', region)
99
+ .sub('{service}', service)
100
+ .sub('{dnsSuffix}', partition['dnsSuffix'])
105
101
  end
106
102
 
107
103
  def get_partition(region)
@@ -120,7 +116,7 @@ module Aws
120
116
  @rules['partitions'].find do |p|
121
117
  region.match(p['regionRegex']) ||
122
118
  p['services'].values.find do |svc|
123
- svc['endpoints'].key?(region) if svc.key? 'endpoints'
119
+ svc['endpoints'].key?(region) if svc.key?('endpoints')
124
120
  end
125
121
  end
126
122
  end
@@ -1,7 +1,6 @@
1
1
  module Aws
2
2
  module Partitions
3
3
  class Partition
4
-
5
4
  # @option options [required, String] :name
6
5
  # @option options [required, Hash<String,Region>] :regions
7
6
  # @option options [required, Hash<String,Service>] :services
@@ -23,7 +22,7 @@ module Aws
23
22
  @regions[region_name]
24
23
  else
25
24
  msg = "invalid region name #{region_name.inspect}; valid region "
26
- msg << "names include %s" % [@regions.keys.join(', ')]
25
+ msg << "names include #{@regions.keys.join(', ')}"
27
26
  raise ArgumentError, msg
28
27
  end
29
28
  end
@@ -33,6 +32,12 @@ module Aws
33
32
  @regions.values
34
33
  end
35
34
 
35
+ # @param [String] region_name The name of the region, e.g. "us-east-1".
36
+ # @return [Boolean] true if the region is in the partition.
37
+ def region?(region_name)
38
+ @regions.key?(region_name)
39
+ end
40
+
36
41
  # @param [String] service_name The service module name.
37
42
  # @return [Service]
38
43
  # @raise [ArgumentError] Raises `ArgumentError` for unknown service name.
@@ -41,7 +46,7 @@ module Aws
41
46
  @services[service_name]
42
47
  else
43
48
  msg = "invalid service name #{service_name.inspect}; valid service "
44
- msg << "names include %s" % [@services.keys.join(', ')]
49
+ msg << "names include #{@services.keys.join(', ')}"
45
50
  raise ArgumentError, msg
46
51
  end
47
52
  end
@@ -51,14 +56,19 @@ module Aws
51
56
  @services.values
52
57
  end
53
58
 
54
- class << self
59
+ # @param [String] service_name The service module name.
60
+ # @return [Boolean] true if the service is in the partition.
61
+ def service?(service_name)
62
+ @services.key?(service_name)
63
+ end
55
64
 
65
+ class << self
56
66
  # @api private
57
67
  def build(partition)
58
68
  Partition.new(
59
69
  name: partition['partition'],
60
70
  regions: build_regions(partition),
61
- services: build_services(partition),
71
+ services: build_services(partition)
62
72
  )
63
73
  end
64
74
 
@@ -67,28 +77,29 @@ module Aws
67
77
  # @param [Hash] partition
68
78
  # @return [Hash<String,Region>]
69
79
  def build_regions(partition)
70
- partition['regions'].inject({}) do |regions, (region_name, region)|
71
- unless region_name == "#{partition['partition']}-global"
72
- regions[region_name] = Region.build(region_name, region, partition)
73
- end
74
- regions
80
+ partition['regions'].each_with_object({}) do
81
+ |(region_name, region), regions|
82
+ next if region_name == "#{partition['partition']}-global"
83
+
84
+ regions[region_name] = Region.build(
85
+ region_name, region, partition
86
+ )
75
87
  end
76
88
  end
77
89
 
78
90
  # @param [Hash] partition
79
91
  # @return [Hash<String,Service>]
80
92
  def build_services(partition)
81
- Partitions.service_ids.inject({}) do |services, (svc_name, svc_id)|
82
- if partition['services'].key?(svc_id)
83
- svc_data = partition['services'][svc_id]
84
- services[svc_name] = Service.build(svc_name, svc_data, partition)
85
- else
86
- services[svc_name] = Service.build(svc_name, {'endpoints' => {}}, partition)
87
- end
88
- services
93
+ Partitions.service_ids.each_with_object({}) do
94
+ |(service_name, service), services|
95
+ service_data = partition['services'].fetch(
96
+ service, 'endpoints' => {}
97
+ )
98
+ services[service_name] = Service.build(
99
+ service_name, service_data, partition
100
+ )
89
101
  end
90
102
  end
91
-
92
103
  end
93
104
  end
94
105
  end
@@ -322,10 +322,6 @@
322
322
  },
323
323
  "application-autoscaling" : {
324
324
  "defaults" : {
325
- "credentialScope" : {
326
- "service" : "application-autoscaling"
327
- },
328
- "hostname" : "autoscaling.{region}.amazonaws.com",
329
325
  "protocols" : [ "http", "https" ]
330
326
  },
331
327
  "endpoints" : {
@@ -454,10 +450,6 @@
454
450
  },
455
451
  "autoscaling-plans" : {
456
452
  "defaults" : {
457
- "credentialScope" : {
458
- "service" : "autoscaling-plans"
459
- },
460
- "hostname" : "autoscaling.{region}.amazonaws.com",
461
453
  "protocols" : [ "http", "https" ]
462
454
  },
463
455
  "endpoints" : {
@@ -1028,12 +1020,15 @@
1028
1020
  },
1029
1021
  "datasync" : {
1030
1022
  "endpoints" : {
1023
+ "ap-east-1" : { },
1031
1024
  "ap-northeast-1" : { },
1032
1025
  "ap-northeast-2" : { },
1026
+ "ap-south-1" : { },
1033
1027
  "ap-southeast-1" : { },
1034
1028
  "ap-southeast-2" : { },
1035
1029
  "ca-central-1" : { },
1036
1030
  "eu-central-1" : { },
1031
+ "eu-north-1" : { },
1037
1032
  "eu-west-1" : { },
1038
1033
  "eu-west-2" : { },
1039
1034
  "eu-west-3" : { },
@@ -1062,6 +1057,7 @@
1062
1057
  "hostname" : "datasync-fips.us-west-2.amazonaws.com"
1063
1058
  },
1064
1059
  "me-south-1" : { },
1060
+ "sa-east-1" : { },
1065
1061
  "us-east-1" : { },
1066
1062
  "us-east-2" : { },
1067
1063
  "us-west-1" : { },
@@ -1114,6 +1110,7 @@
1114
1110
  },
1115
1111
  "discovery" : {
1116
1112
  "endpoints" : {
1113
+ "eu-central-1" : { },
1117
1114
  "us-west-2" : { }
1118
1115
  }
1119
1116
  },
@@ -1396,6 +1393,7 @@
1396
1393
  },
1397
1394
  "elasticfilesystem" : {
1398
1395
  "endpoints" : {
1396
+ "ap-east-1" : { },
1399
1397
  "ap-northeast-1" : { },
1400
1398
  "ap-northeast-2" : { },
1401
1399
  "ap-south-1" : { },
@@ -1403,9 +1401,12 @@
1403
1401
  "ap-southeast-2" : { },
1404
1402
  "ca-central-1" : { },
1405
1403
  "eu-central-1" : { },
1404
+ "eu-north-1" : { },
1406
1405
  "eu-west-1" : { },
1407
1406
  "eu-west-2" : { },
1408
1407
  "eu-west-3" : { },
1408
+ "me-south-1" : { },
1409
+ "sa-east-1" : { },
1409
1410
  "us-east-1" : { },
1410
1411
  "us-east-2" : { },
1411
1412
  "us-west-1" : { },
@@ -1931,6 +1932,26 @@
1931
1932
  }
1932
1933
  }
1933
1934
  },
1935
+ "iotsecuredtunneling" : {
1936
+ "endpoints" : {
1937
+ "ap-northeast-1" : { },
1938
+ "ap-northeast-2" : { },
1939
+ "ap-south-1" : { },
1940
+ "ap-southeast-1" : { },
1941
+ "ap-southeast-2" : { },
1942
+ "ca-central-1" : { },
1943
+ "eu-central-1" : { },
1944
+ "eu-north-1" : { },
1945
+ "eu-west-1" : { },
1946
+ "eu-west-2" : { },
1947
+ "eu-west-3" : { },
1948
+ "sa-east-1" : { },
1949
+ "us-east-1" : { },
1950
+ "us-east-2" : { },
1951
+ "us-west-1" : { },
1952
+ "us-west-2" : { }
1953
+ }
1954
+ },
1934
1955
  "iotthingsgraph" : {
1935
1956
  "defaults" : {
1936
1957
  "credentialScope" : {
@@ -2041,12 +2062,17 @@
2041
2062
  "lakeformation" : {
2042
2063
  "endpoints" : {
2043
2064
  "ap-northeast-1" : { },
2065
+ "ap-northeast-2" : { },
2044
2066
  "ap-south-1" : { },
2045
2067
  "ap-southeast-1" : { },
2046
2068
  "ap-southeast-2" : { },
2069
+ "ca-central-1" : { },
2070
+ "eu-central-1" : { },
2047
2071
  "eu-west-1" : { },
2072
+ "eu-west-2" : { },
2048
2073
  "us-east-1" : { },
2049
2074
  "us-east-2" : { },
2075
+ "us-west-1" : { },
2050
2076
  "us-west-2" : { }
2051
2077
  }
2052
2078
  },
@@ -2258,6 +2284,7 @@
2258
2284
  },
2259
2285
  "mgh" : {
2260
2286
  "endpoints" : {
2287
+ "eu-central-1" : { },
2261
2288
  "us-west-2" : { }
2262
2289
  }
2263
2290
  },
@@ -2555,8 +2582,30 @@
2555
2582
  "ap-southeast-2" : { },
2556
2583
  "eu-central-1" : { },
2557
2584
  "eu-west-1" : { },
2558
- "us-east-1" : { },
2559
- "us-west-2" : { }
2585
+ "fips-us-east-1" : {
2586
+ "credentialScope" : {
2587
+ "region" : "us-east-1"
2588
+ },
2589
+ "hostname" : "pinpoint-fips.us-east-1.amazonaws.com"
2590
+ },
2591
+ "fips-us-west-2" : {
2592
+ "credentialScope" : {
2593
+ "region" : "us-west-2"
2594
+ },
2595
+ "hostname" : "pinpoint-fips.us-west-2.amazonaws.com"
2596
+ },
2597
+ "us-east-1" : {
2598
+ "credentialScope" : {
2599
+ "region" : "us-east-1"
2600
+ },
2601
+ "hostname" : "pinpoint.us-east-1.amazonaws.com"
2602
+ },
2603
+ "us-west-2" : {
2604
+ "credentialScope" : {
2605
+ "region" : "us-west-2"
2606
+ },
2607
+ "hostname" : "pinpoint.us-west-2.amazonaws.com"
2608
+ }
2560
2609
  }
2561
2610
  },
2562
2611
  "polly" : {
@@ -2674,6 +2723,7 @@
2674
2723
  "eu-west-1" : { },
2675
2724
  "eu-west-2" : { },
2676
2725
  "eu-west-3" : { },
2726
+ "sa-east-1" : { },
2677
2727
  "us-east-1" : { },
2678
2728
  "us-east-2" : { },
2679
2729
  "us-west-1" : { },
@@ -3712,6 +3762,7 @@
3712
3762
  },
3713
3763
  "endpoints" : {
3714
3764
  "ap-east-1" : { },
3765
+ "ap-northeast-1" : { },
3715
3766
  "ap-northeast-2" : { },
3716
3767
  "ap-south-1" : { },
3717
3768
  "ap-southeast-1" : { },
@@ -3764,13 +3815,18 @@
3764
3815
  "protocols" : [ "https" ]
3765
3816
  },
3766
3817
  "endpoints" : {
3818
+ "ap-east-1" : { },
3767
3819
  "ap-northeast-1" : { },
3768
3820
  "ap-northeast-2" : { },
3769
3821
  "ap-south-1" : { },
3770
3822
  "ap-southeast-1" : { },
3823
+ "ap-southeast-2" : { },
3771
3824
  "ca-central-1" : { },
3772
3825
  "eu-central-1" : { },
3826
+ "eu-north-1" : { },
3773
3827
  "eu-west-1" : { },
3828
+ "eu-west-2" : { },
3829
+ "eu-west-3" : { },
3774
3830
  "us-east-1" : { },
3775
3831
  "us-east-1-fips" : {
3776
3832
  "credentialScope" : {
@@ -3785,6 +3841,7 @@
3785
3841
  },
3786
3842
  "hostname" : "translate-fips.us-east-2.amazonaws.com"
3787
3843
  },
3844
+ "us-west-1" : { },
3788
3845
  "us-west-2" : { },
3789
3846
  "us-west-2-fips" : {
3790
3847
  "credentialScope" : {
@@ -3927,10 +3984,6 @@
3927
3984
  },
3928
3985
  "application-autoscaling" : {
3929
3986
  "defaults" : {
3930
- "credentialScope" : {
3931
- "service" : "application-autoscaling"
3932
- },
3933
- "hostname" : "autoscaling.{region}.amazonaws.com",
3934
3987
  "protocols" : [ "http", "https" ]
3935
3988
  },
3936
3989
  "endpoints" : {
@@ -4432,6 +4485,9 @@
4432
4485
  }
4433
4486
  },
4434
4487
  "application-autoscaling" : {
4488
+ "defaults" : {
4489
+ "protocols" : [ "http", "https" ]
4490
+ },
4435
4491
  "endpoints" : {
4436
4492
  "us-gov-east-1" : { },
4437
4493
  "us-gov-west-1" : { }
@@ -4564,6 +4620,7 @@
4564
4620
  },
4565
4621
  "hostname" : "datasync-fips.us-gov-west-1.amazonaws.com"
4566
4622
  },
4623
+ "us-gov-east-1" : { },
4567
4624
  "us-gov-west-1" : { }
4568
4625
  }
4569
4626
  },
@@ -5155,10 +5212,7 @@
5155
5212
  },
5156
5213
  "application-autoscaling" : {
5157
5214
  "defaults" : {
5158
- "credentialScope" : {
5159
- "service" : "application-autoscaling"
5160
- },
5161
- "hostname" : "autoscaling.{region}.amazonaws.com",
5215
+ "hostname" : "autoscaling.us-iso-east-1.c2s.ic.gov",
5162
5216
  "protocols" : [ "http", "https" ]
5163
5217
  },
5164
5218
  "endpoints" : {
@@ -5428,10 +5482,7 @@
5428
5482
  "services" : {
5429
5483
  "application-autoscaling" : {
5430
5484
  "defaults" : {
5431
- "credentialScope" : {
5432
- "service" : "application-autoscaling"
5433
- },
5434
- "hostname" : "autoscaling.{region}.amazonaws.com",
5485
+ "hostname" : "autoscaling.us-isob-east-1.sc2s.sgov.gov",
5435
5486
  "protocols" : [ "http", "https" ]
5436
5487
  },
5437
5488
  "endpoints" : {
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.242.0
4
+ version: 1.247.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-11-20 00:00:00.000000000 Z
11
+ date: 2019-12-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Provides interfaces to enumerate AWS partitions, regions, and services.
14
14
  email: