aws-sdk-elasticache 1.78.0 → 1.80.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-elasticache/client.rb +66 -15
- data/lib/aws-sdk-elasticache/client_api.rb +1 -0
- data/lib/aws-sdk-elasticache/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-elasticache/endpoint_provider.rb +117 -0
- data/lib/aws-sdk-elasticache/endpoints.rb +925 -0
- data/lib/aws-sdk-elasticache/plugins/endpoints.rb +198 -0
- data/lib/aws-sdk-elasticache/types.rb +90 -28
- data/lib/aws-sdk-elasticache.rb +5 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b7e1917184c7c35948cc967451c1b075f8d7eeaa3b432f9e49ec61ce0e1fbd0
|
4
|
+
data.tar.gz: f8766f023647b41b0a79772f02ef47e7cd41b9a7daf1ce06a9935142bf0e6d32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d79a8c4d086a9ab86d7d2acd8e261573c928ca52b80a1ad47f85e0f6e79946925e1ba72299bb77fe33d97d565a44f5992ec7503a37e66f568a9b3191237609c
|
7
|
+
data.tar.gz: d8126ec35ff860f07da005306a21151935deebf1d0a252a77c9cddce3000c30859061995fc058432af6925d13eedc2674d76cf8b11a7a5b4073a23b9035584ec
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.80.0 (2022-10-25)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.79.0 (2022-07-18)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Adding AutoMinorVersionUpgrade in the DescribeReplicationGroups API
|
13
|
+
|
4
14
|
1.78.0 (2022-05-23)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.80.0
|
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
|
-
require 'aws-sdk-core/plugins/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/query.rb'
|
35
35
|
|
36
36
|
Aws::Plugins::GlobalConfiguration.add_identifier(:elasticache)
|
@@ -79,8 +79,9 @@ module Aws::ElastiCache
|
|
79
79
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
80
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
81
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
82
|
-
add_plugin(Aws::Plugins::
|
82
|
+
add_plugin(Aws::Plugins::Sign)
|
83
83
|
add_plugin(Aws::Plugins::Protocols::Query)
|
84
|
+
add_plugin(Aws::ElastiCache::Plugins::Endpoints)
|
84
85
|
|
85
86
|
# @overload initialize(options)
|
86
87
|
# @param [Hash] options
|
@@ -287,6 +288,19 @@ module Aws::ElastiCache
|
|
287
288
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
288
289
|
# requests are made, and retries are disabled.
|
289
290
|
#
|
291
|
+
# @option options [Aws::TokenProvider] :token_provider
|
292
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
293
|
+
# following classes:
|
294
|
+
#
|
295
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
296
|
+
# tokens.
|
297
|
+
#
|
298
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
299
|
+
# access token generated from `aws login`.
|
300
|
+
#
|
301
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
302
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
303
|
+
#
|
290
304
|
# @option options [Boolean] :use_dualstack_endpoint
|
291
305
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
292
306
|
# will be used if available.
|
@@ -300,6 +314,9 @@ module Aws::ElastiCache
|
|
300
314
|
# When `true`, request parameters are validated before
|
301
315
|
# sending the request.
|
302
316
|
#
|
317
|
+
# @option options [Aws::ElastiCache::EndpointProvider] :endpoint_provider
|
318
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::ElastiCache::EndpointParameters`
|
319
|
+
#
|
303
320
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
304
321
|
# requests through. Formatted like 'http://proxy.com:123'.
|
305
322
|
#
|
@@ -715,6 +732,7 @@ module Aws::ElastiCache
|
|
715
732
|
# resp.replication_group.log_delivery_configurations[0].message #=> String
|
716
733
|
# resp.replication_group.replication_group_create_time #=> Time
|
717
734
|
# resp.replication_group.data_tiering #=> String, one of "enabled", "disabled"
|
735
|
+
# resp.replication_group.auto_minor_version_upgrade #=> Boolean
|
718
736
|
#
|
719
737
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CompleteMigration AWS API Documentation
|
720
738
|
#
|
@@ -1080,7 +1098,9 @@ module Aws::ElastiCache
|
|
1080
1098
|
# **T2 node types:** `cache.t2.micro`, `cache.t2.small`,
|
1081
1099
|
# `cache.t2.medium`
|
1082
1100
|
#
|
1083
|
-
# * Previous generation: (not recommended
|
1101
|
+
# * Previous generation: (not recommended. Existing clusters are still
|
1102
|
+
# supported but creation of new clusters is not supported for these
|
1103
|
+
# types.)
|
1084
1104
|
#
|
1085
1105
|
# **T1 node types:** `cache.t1.micro`
|
1086
1106
|
#
|
@@ -1092,7 +1112,9 @@ module Aws::ElastiCache
|
|
1092
1112
|
#
|
1093
1113
|
# * Compute optimized:
|
1094
1114
|
#
|
1095
|
-
# * Previous generation: (not recommended
|
1115
|
+
# * Previous generation: (not recommended. Existing clusters are still
|
1116
|
+
# supported but creation of new clusters is not supported for these
|
1117
|
+
# types.)
|
1096
1118
|
#
|
1097
1119
|
# **C1 node types:** `cache.c1.xlarge`
|
1098
1120
|
#
|
@@ -1119,7 +1141,9 @@ module Aws::ElastiCache
|
|
1119
1141
|
# `cache.r4.2xlarge`, `cache.r4.4xlarge`, `cache.r4.8xlarge`,
|
1120
1142
|
# `cache.r4.16xlarge`
|
1121
1143
|
#
|
1122
|
-
# * Previous generation: (not recommended
|
1144
|
+
# * Previous generation: (not recommended. Existing clusters are still
|
1145
|
+
# supported but creation of new clusters is not supported for these
|
1146
|
+
# types.)
|
1123
1147
|
#
|
1124
1148
|
# **M2 node types:** `cache.m2.xlarge`, `cache.m2.2xlarge`,
|
1125
1149
|
# `cache.m2.4xlarge`
|
@@ -2091,7 +2115,9 @@ module Aws::ElastiCache
|
|
2091
2115
|
# **T2 node types:** `cache.t2.micro`, `cache.t2.small`,
|
2092
2116
|
# `cache.t2.medium`
|
2093
2117
|
#
|
2094
|
-
# * Previous generation: (not recommended
|
2118
|
+
# * Previous generation: (not recommended. Existing clusters are still
|
2119
|
+
# supported but creation of new clusters is not supported for these
|
2120
|
+
# types.)
|
2095
2121
|
#
|
2096
2122
|
# **T1 node types:** `cache.t1.micro`
|
2097
2123
|
#
|
@@ -2103,7 +2129,9 @@ module Aws::ElastiCache
|
|
2103
2129
|
#
|
2104
2130
|
# * Compute optimized:
|
2105
2131
|
#
|
2106
|
-
# * Previous generation: (not recommended
|
2132
|
+
# * Previous generation: (not recommended. Existing clusters are still
|
2133
|
+
# supported but creation of new clusters is not supported for these
|
2134
|
+
# types.)
|
2107
2135
|
#
|
2108
2136
|
# **C1 node types:** `cache.c1.xlarge`
|
2109
2137
|
#
|
@@ -2140,7 +2168,9 @@ module Aws::ElastiCache
|
|
2140
2168
|
# `cache.r4.2xlarge`, `cache.r4.4xlarge`, `cache.r4.8xlarge`,
|
2141
2169
|
# `cache.r4.16xlarge`
|
2142
2170
|
#
|
2143
|
-
# * Previous generation: (not recommended
|
2171
|
+
# * Previous generation: (not recommended. Existing clusters are still
|
2172
|
+
# supported but creation of new clusters is not supported for these
|
2173
|
+
# types.)
|
2144
2174
|
#
|
2145
2175
|
# **M2 node types:** `cache.m2.xlarge`, `cache.m2.2xlarge`,
|
2146
2176
|
# `cache.m2.4xlarge`
|
@@ -2625,6 +2655,7 @@ module Aws::ElastiCache
|
|
2625
2655
|
# resp.replication_group.log_delivery_configurations[0].message #=> String
|
2626
2656
|
# resp.replication_group.replication_group_create_time #=> Time
|
2627
2657
|
# resp.replication_group.data_tiering #=> String, one of "enabled", "disabled"
|
2658
|
+
# resp.replication_group.auto_minor_version_upgrade #=> Boolean
|
2628
2659
|
#
|
2629
2660
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/CreateReplicationGroup AWS API Documentation
|
2630
2661
|
#
|
@@ -3218,6 +3249,7 @@ module Aws::ElastiCache
|
|
3218
3249
|
# resp.replication_group.log_delivery_configurations[0].message #=> String
|
3219
3250
|
# resp.replication_group.replication_group_create_time #=> Time
|
3220
3251
|
# resp.replication_group.data_tiering #=> String, one of "enabled", "disabled"
|
3252
|
+
# resp.replication_group.auto_minor_version_upgrade #=> Boolean
|
3221
3253
|
#
|
3222
3254
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DecreaseReplicaCount AWS API Documentation
|
3223
3255
|
#
|
@@ -3707,6 +3739,7 @@ module Aws::ElastiCache
|
|
3707
3739
|
# resp.replication_group.log_delivery_configurations[0].message #=> String
|
3708
3740
|
# resp.replication_group.replication_group_create_time #=> Time
|
3709
3741
|
# resp.replication_group.data_tiering #=> String, one of "enabled", "disabled"
|
3742
|
+
# resp.replication_group.auto_minor_version_upgrade #=> Boolean
|
3710
3743
|
#
|
3711
3744
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DeleteReplicationGroup AWS API Documentation
|
3712
3745
|
#
|
@@ -6322,6 +6355,7 @@ module Aws::ElastiCache
|
|
6322
6355
|
# resp.replication_groups[0].log_delivery_configurations[0].message #=> String
|
6323
6356
|
# resp.replication_groups[0].replication_group_create_time #=> Time
|
6324
6357
|
# resp.replication_groups[0].data_tiering #=> String, one of "enabled", "disabled"
|
6358
|
+
# resp.replication_groups[0].auto_minor_version_upgrade #=> Boolean
|
6325
6359
|
#
|
6326
6360
|
#
|
6327
6361
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
@@ -6389,7 +6423,9 @@ module Aws::ElastiCache
|
|
6389
6423
|
# **T2 node types:** `cache.t2.micro`, `cache.t2.small`,
|
6390
6424
|
# `cache.t2.medium`
|
6391
6425
|
#
|
6392
|
-
# * Previous generation: (not recommended
|
6426
|
+
# * Previous generation: (not recommended. Existing clusters are still
|
6427
|
+
# supported but creation of new clusters is not supported for these
|
6428
|
+
# types.)
|
6393
6429
|
#
|
6394
6430
|
# **T1 node types:** `cache.t1.micro`
|
6395
6431
|
#
|
@@ -6401,7 +6437,9 @@ module Aws::ElastiCache
|
|
6401
6437
|
#
|
6402
6438
|
# * Compute optimized:
|
6403
6439
|
#
|
6404
|
-
# * Previous generation: (not recommended
|
6440
|
+
# * Previous generation: (not recommended. Existing clusters are still
|
6441
|
+
# supported but creation of new clusters is not supported for these
|
6442
|
+
# types.)
|
6405
6443
|
#
|
6406
6444
|
# **C1 node types:** `cache.c1.xlarge`
|
6407
6445
|
#
|
@@ -6438,7 +6476,9 @@ module Aws::ElastiCache
|
|
6438
6476
|
# `cache.r4.2xlarge`, `cache.r4.4xlarge`, `cache.r4.8xlarge`,
|
6439
6477
|
# `cache.r4.16xlarge`
|
6440
6478
|
#
|
6441
|
-
# * Previous generation: (not recommended
|
6479
|
+
# * Previous generation: (not recommended. Existing clusters are still
|
6480
|
+
# supported but creation of new clusters is not supported for these
|
6481
|
+
# types.)
|
6442
6482
|
#
|
6443
6483
|
# **M2 node types:** `cache.m2.xlarge`, `cache.m2.2xlarge`,
|
6444
6484
|
# `cache.m2.4xlarge`
|
@@ -6605,7 +6645,9 @@ module Aws::ElastiCache
|
|
6605
6645
|
# **T2 node types:** `cache.t2.micro`, `cache.t2.small`,
|
6606
6646
|
# `cache.t2.medium`
|
6607
6647
|
#
|
6608
|
-
# * Previous generation: (not recommended
|
6648
|
+
# * Previous generation: (not recommended. Existing clusters are still
|
6649
|
+
# supported but creation of new clusters is not supported for these
|
6650
|
+
# types.)
|
6609
6651
|
#
|
6610
6652
|
# **T1 node types:** `cache.t1.micro`
|
6611
6653
|
#
|
@@ -6617,7 +6659,9 @@ module Aws::ElastiCache
|
|
6617
6659
|
#
|
6618
6660
|
# * Compute optimized:
|
6619
6661
|
#
|
6620
|
-
# * Previous generation: (not recommended
|
6662
|
+
# * Previous generation: (not recommended. Existing clusters are still
|
6663
|
+
# supported but creation of new clusters is not supported for these
|
6664
|
+
# types.)
|
6621
6665
|
#
|
6622
6666
|
# **C1 node types:** `cache.c1.xlarge`
|
6623
6667
|
#
|
@@ -6654,7 +6698,9 @@ module Aws::ElastiCache
|
|
6654
6698
|
# `cache.r4.2xlarge`, `cache.r4.4xlarge`, `cache.r4.8xlarge`,
|
6655
6699
|
# `cache.r4.16xlarge`
|
6656
6700
|
#
|
6657
|
-
# * Previous generation: (not recommended
|
6701
|
+
# * Previous generation: (not recommended. Existing clusters are still
|
6702
|
+
# supported but creation of new clusters is not supported for these
|
6703
|
+
# types.)
|
6658
6704
|
#
|
6659
6705
|
# **M2 node types:** `cache.m2.xlarge`, `cache.m2.2xlarge`,
|
6660
6706
|
# `cache.m2.4xlarge`
|
@@ -7849,6 +7895,7 @@ module Aws::ElastiCache
|
|
7849
7895
|
# resp.replication_group.log_delivery_configurations[0].message #=> String
|
7850
7896
|
# resp.replication_group.replication_group_create_time #=> Time
|
7851
7897
|
# resp.replication_group.data_tiering #=> String, one of "enabled", "disabled"
|
7898
|
+
# resp.replication_group.auto_minor_version_upgrade #=> Boolean
|
7852
7899
|
#
|
7853
7900
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/IncreaseReplicaCount AWS API Documentation
|
7854
7901
|
#
|
@@ -9151,6 +9198,7 @@ module Aws::ElastiCache
|
|
9151
9198
|
# resp.replication_group.log_delivery_configurations[0].message #=> String
|
9152
9199
|
# resp.replication_group.replication_group_create_time #=> Time
|
9153
9200
|
# resp.replication_group.data_tiering #=> String, one of "enabled", "disabled"
|
9201
|
+
# resp.replication_group.auto_minor_version_upgrade #=> Boolean
|
9154
9202
|
#
|
9155
9203
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyReplicationGroup AWS API Documentation
|
9156
9204
|
#
|
@@ -9295,6 +9343,7 @@ module Aws::ElastiCache
|
|
9295
9343
|
# resp.replication_group.log_delivery_configurations[0].message #=> String
|
9296
9344
|
# resp.replication_group.replication_group_create_time #=> Time
|
9297
9345
|
# resp.replication_group.data_tiering #=> String, one of "enabled", "disabled"
|
9346
|
+
# resp.replication_group.auto_minor_version_upgrade #=> Boolean
|
9298
9347
|
#
|
9299
9348
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/ModifyReplicationGroupShardConfiguration AWS API Documentation
|
9300
9349
|
#
|
@@ -10044,6 +10093,7 @@ module Aws::ElastiCache
|
|
10044
10093
|
# resp.replication_group.log_delivery_configurations[0].message #=> String
|
10045
10094
|
# resp.replication_group.replication_group_create_time #=> Time
|
10046
10095
|
# resp.replication_group.data_tiering #=> String, one of "enabled", "disabled"
|
10096
|
+
# resp.replication_group.auto_minor_version_upgrade #=> Boolean
|
10047
10097
|
#
|
10048
10098
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/StartMigration AWS API Documentation
|
10049
10099
|
#
|
@@ -10202,6 +10252,7 @@ module Aws::ElastiCache
|
|
10202
10252
|
# resp.replication_group.log_delivery_configurations[0].message #=> String
|
10203
10253
|
# resp.replication_group.replication_group_create_time #=> Time
|
10204
10254
|
# resp.replication_group.data_tiering #=> String, one of "enabled", "disabled"
|
10255
|
+
# resp.replication_group.auto_minor_version_upgrade #=> Boolean
|
10205
10256
|
#
|
10206
10257
|
# @see http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/TestFailover AWS API Documentation
|
10207
10258
|
#
|
@@ -10225,7 +10276,7 @@ module Aws::ElastiCache
|
|
10225
10276
|
params: params,
|
10226
10277
|
config: config)
|
10227
10278
|
context[:gem_name] = 'aws-sdk-elasticache'
|
10228
|
-
context[:gem_version] = '1.
|
10279
|
+
context[:gem_version] = '1.80.0'
|
10229
10280
|
Seahorse::Client::Request.new(handlers, context)
|
10230
10281
|
end
|
10231
10282
|
|
@@ -1455,6 +1455,7 @@ module Aws::ElastiCache
|
|
1455
1455
|
ReplicationGroup.add_member(:log_delivery_configurations, Shapes::ShapeRef.new(shape: LogDeliveryConfigurationList, location_name: "LogDeliveryConfigurations"))
|
1456
1456
|
ReplicationGroup.add_member(:replication_group_create_time, Shapes::ShapeRef.new(shape: TStamp, location_name: "ReplicationGroupCreateTime"))
|
1457
1457
|
ReplicationGroup.add_member(:data_tiering, Shapes::ShapeRef.new(shape: DataTieringStatus, location_name: "DataTiering"))
|
1458
|
+
ReplicationGroup.add_member(:auto_minor_version_upgrade, Shapes::ShapeRef.new(shape: Boolean, location_name: "AutoMinorVersionUpgrade"))
|
1458
1459
|
ReplicationGroup.struct_class = Types::ReplicationGroup
|
1459
1460
|
|
1460
1461
|
ReplicationGroupAlreadyExistsFault.struct_class = Types::ReplicationGroupAlreadyExistsFault
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::ElastiCache
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
+
if self[:use_dual_stack].nil?
|
56
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
+
end
|
58
|
+
self[:use_fips] = options[:use_fips]
|
59
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
+
if self[:use_fips].nil?
|
61
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
+
end
|
63
|
+
self[:endpoint] = options[:endpoint]
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,117 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::ElastiCache
|
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
|
+
)
|
21
|
+
end
|
22
|
+
@provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
|
23
|
+
end
|
24
|
+
|
25
|
+
def resolve_endpoint(parameters)
|
26
|
+
@provider.resolve_endpoint(parameters)
|
27
|
+
end
|
28
|
+
|
29
|
+
# @api private
|
30
|
+
RULES = <<-JSON
|
31
|
+
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
+
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
|
33
|
+
dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXN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