aws-sdk-globalaccelerator 1.48.0 → 1.49.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-globalaccelerator/client.rb +41 -10
- data/lib/aws-sdk-globalaccelerator/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-globalaccelerator.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b027e38e260d780acdde9e5b115adda9161bc546bd1d334738965c74ff77e40
|
|
4
|
+
data.tar.gz: 7d2a26e1dd9a97dea12d9d60a67da15e1d5779df009955d1047b4b7c41bec8cd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 10d1ae4b2d2d894b8482ad786cf05f7d3545f4fa07c363c3578c5df6c48a78589948941dea5c084c382334101e17981c999d2234ed5d667bfb91f9b2e00c5fae
|
|
7
|
+
data.tar.gz: af6ad0ae3063a59e3be792d274ccb9f4869d7f43c47ef839e73fd27e85f32a0b1175dbc41f6a1477f7126b14c303edf3772f28cbb2bbee62d708629a99e9f543
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.49.0
|
|
@@ -464,19 +464,26 @@ module Aws::GlobalAccelerator
|
|
|
464
464
|
# the [CreateEndpointGroup][1] API) or when you update an endpoint group
|
|
465
465
|
# (with the [UpdateEndpointGroup][2] API).
|
|
466
466
|
#
|
|
467
|
-
# There are two advantages to using `AddEndpoints` to add endpoints
|
|
467
|
+
# There are two advantages to using `AddEndpoints` to add endpoints in
|
|
468
|
+
# Global Accelerator:
|
|
468
469
|
#
|
|
469
470
|
# * It's faster, because Global Accelerator only has to resolve the new
|
|
470
|
-
# endpoints that you're adding
|
|
471
|
+
# endpoints that you're adding, rather than resolving new and
|
|
472
|
+
# existing endpoints.
|
|
471
473
|
#
|
|
472
|
-
# * It's more convenient, because you don't need to specify
|
|
473
|
-
# current endpoints that are already in the endpoint group in
|
|
474
|
-
# to the new endpoints that you want to add.
|
|
474
|
+
# * It's more convenient, because you don't need to specify the
|
|
475
|
+
# current endpoints that are already in the endpoint group, in
|
|
476
|
+
# addition to the new endpoints that you want to add.
|
|
477
|
+
#
|
|
478
|
+
# For information about endpoint types and requirements for endpoints
|
|
479
|
+
# that you can add to Global Accelerator, see [ Endpoints for standard
|
|
480
|
+
# accelerators][3] in the *Global Accelerator Developer Guide*.
|
|
475
481
|
#
|
|
476
482
|
#
|
|
477
483
|
#
|
|
478
484
|
# [1]: https://docs.aws.amazon.com/global-accelerator/latest/api/API_CreateEndpointGroup.html
|
|
479
485
|
# [2]: https://docs.aws.amazon.com/global-accelerator/latest/api/API_UpdateEndpointGroup.html
|
|
486
|
+
# [3]: https://docs.aws.amazon.com/global-accelerator/latest/dg/about-endpoints.html
|
|
480
487
|
#
|
|
481
488
|
# @option params [required, Array<Types::EndpointConfiguration>] :endpoint_configurations
|
|
482
489
|
# The list of endpoint objects.
|
|
@@ -649,7 +656,7 @@ module Aws::GlobalAccelerator
|
|
|
649
656
|
# multiple Amazon Web Services Regions but you must specify the US West
|
|
650
657
|
# (Oregon) Region to create, update, or otherwise work with
|
|
651
658
|
# accelerators. That is, for example, specify `--region us-west-2` on
|
|
652
|
-
#
|
|
659
|
+
# Amazon Web Services CLI commands.
|
|
653
660
|
#
|
|
654
661
|
# @option params [required, String] :name
|
|
655
662
|
# The name of the accelerator. The name can have a maximum of 64
|
|
@@ -776,7 +783,7 @@ module Aws::GlobalAccelerator
|
|
|
776
783
|
# multiple Amazon Web Services Regions but you must specify the US West
|
|
777
784
|
# (Oregon) Region to create, update, or otherwise work with
|
|
778
785
|
# accelerators. That is, for example, specify `--region us-west-2` on
|
|
779
|
-
#
|
|
786
|
+
# Amazon Web Services CLI commands.
|
|
780
787
|
#
|
|
781
788
|
#
|
|
782
789
|
#
|
|
@@ -1016,6 +1023,14 @@ module Aws::GlobalAccelerator
|
|
|
1016
1023
|
# is a collection of endpoints in one Amazon Web Services Region. A
|
|
1017
1024
|
# resource must be valid and active when you add it as an endpoint.
|
|
1018
1025
|
#
|
|
1026
|
+
# For more information about endpoint types and requirements for
|
|
1027
|
+
# endpoints that you can add to Global Accelerator, see [ Endpoints for
|
|
1028
|
+
# standard accelerators][1] in the *Global Accelerator Developer Guide*.
|
|
1029
|
+
#
|
|
1030
|
+
#
|
|
1031
|
+
#
|
|
1032
|
+
# [1]: https://docs.aws.amazon.com/global-accelerator/latest/dg/about-endpoints.html
|
|
1033
|
+
#
|
|
1019
1034
|
# @option params [required, String] :listener_arn
|
|
1020
1035
|
# The Amazon Resource Name (ARN) of the listener.
|
|
1021
1036
|
#
|
|
@@ -2554,13 +2569,29 @@ module Aws::GlobalAccelerator
|
|
|
2554
2569
|
req.send_request(options)
|
|
2555
2570
|
end
|
|
2556
2571
|
|
|
2557
|
-
# Update an accelerator
|
|
2572
|
+
# Update an accelerator to make changes, such as the following:
|
|
2573
|
+
#
|
|
2574
|
+
# * Change the name of the accelerator.
|
|
2575
|
+
#
|
|
2576
|
+
# * Disable the accelerator so that it no longer accepts or routes
|
|
2577
|
+
# traffic, or so that you can delete it.
|
|
2578
|
+
#
|
|
2579
|
+
# * Enable the accelerator, if it is disabled.
|
|
2580
|
+
#
|
|
2581
|
+
# * Change the IP address type to dual-stack if it is IPv4, or change
|
|
2582
|
+
# the IP address type to IPv4 if it's dual-stack.
|
|
2583
|
+
#
|
|
2584
|
+
# Be aware that static IP addresses remain assigned to your accelerator
|
|
2585
|
+
# for as long as it exists, even if you disable the accelerator and it
|
|
2586
|
+
# no longer accepts or routes traffic. However, when you delete the
|
|
2587
|
+
# accelerator, you lose the static IP addresses that are assigned to it,
|
|
2588
|
+
# so you can no longer route traffic by using them.
|
|
2558
2589
|
#
|
|
2559
2590
|
# Global Accelerator is a global service that supports endpoints in
|
|
2560
2591
|
# multiple Amazon Web Services Regions but you must specify the US West
|
|
2561
2592
|
# (Oregon) Region to create, update, or otherwise work with
|
|
2562
2593
|
# accelerators. That is, for example, specify `--region us-west-2` on
|
|
2563
|
-
#
|
|
2594
|
+
# Amazon Web Services CLI commands.
|
|
2564
2595
|
#
|
|
2565
2596
|
# @option params [required, String] :accelerator_arn
|
|
2566
2597
|
# The Amazon Resource Name (ARN) of the accelerator to update.
|
|
@@ -3104,7 +3135,7 @@ module Aws::GlobalAccelerator
|
|
|
3104
3135
|
params: params,
|
|
3105
3136
|
config: config)
|
|
3106
3137
|
context[:gem_name] = 'aws-sdk-globalaccelerator'
|
|
3107
|
-
context[:gem_version] = '1.
|
|
3138
|
+
context[:gem_version] = '1.49.0'
|
|
3108
3139
|
Seahorse::Client::Request.new(handlers, context)
|
|
3109
3140
|
end
|
|
3110
3141
|
|
|
@@ -14,36 +14,39 @@ module Aws::GlobalAccelerator
|
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
|
15
15
|
use_fips = parameters.use_fips
|
|
16
16
|
endpoint = parameters.endpoint
|
|
17
|
-
if
|
|
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://globalaccelerator-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
|
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
|
33
18
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
|
34
|
-
|
|
35
|
-
return Aws::Endpoints::Endpoint.new(url: "https://globalaccelerator-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
36
|
-
end
|
|
37
|
-
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
|
38
20
|
end
|
|
39
21
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
40
|
-
|
|
41
|
-
|
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
|
23
|
+
end
|
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
|
25
|
+
end
|
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
29
|
+
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"))
|
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://globalaccelerator-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
31
|
+
end
|
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
|
33
|
+
end
|
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://globalaccelerator-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
37
|
+
end
|
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
39
|
+
end
|
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://globalaccelerator.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
43
|
+
end
|
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
42
45
|
end
|
|
43
|
-
|
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://globalaccelerator.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
44
47
|
end
|
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://globalaccelerator.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
46
48
|
end
|
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
|
47
50
|
raise ArgumentError, 'No endpoint could be resolved'
|
|
48
51
|
|
|
49
52
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-globalaccelerator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.49.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: 2023-
|
|
11
|
+
date: 2023-08-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-core
|