aws-sdk-memorydb 1.11.0 → 1.13.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
  SHA256:
3
- metadata.gz: 65e2558aae9567e7a5d5829b0a1adb2d9a24b5427e06c5dfcab091bb2381dc46
4
- data.tar.gz: 7da7a07abeeaf00aafbc4fb99cb58611fe290ab11803e3faf996a7491b0103b7
3
+ metadata.gz: 7eb2756ffc68fc8a295d514ebaa66634a1aacfd34ec7c81d68e6d74f4c067999
4
+ data.tar.gz: 2a1defba61a1597ee7cc6dcc5eae1e0f0372db9a99790e24ad0e00bf4078f694
5
5
  SHA512:
6
- metadata.gz: 6a84627101928e9996a6ac69b3da2dbddacd019ee157cf53ec2b5e9db2668699b2ae16e0171c84d17d787511e7e0f1e6be2045182efdffb8768fdb80a2262260
7
- data.tar.gz: 54ec8c9f326208ddbc90232ec656ee97b35b6315275707dd24d05df8ad05bec5aec6fed5d0b9a5b499c351b4ecb86b74a7e9313c4b3d852da371312fe8a02ac9
6
+ metadata.gz: b01a2167abb48d16ef2ccd252d3ccd6ad7d62b93134532d5a1a7e36274ed33e8ad8caaec6bf2f80c6ff1ddcde3de444253959f3cce20c4aafec8c35f1e4c6a2f
7
+ data.tar.gz: 88bdc99205fc8708bf5150960555e2ef8d4f6fb4c6469274378d13e7004cb7be88ec99b495e375f60c2276fdf65c7c85c7daf5c59ce9bab689245b2554ed8434
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.13.0 (2023-05-30)
5
+ ------------------
6
+
7
+ * Feature - Amazon MemoryDB for Redis now supports AWS Identity and Access Management authentication access to Redis clusters starting with redis-engine version 7.0
8
+
9
+ 1.12.0 (2023-01-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
15
+
4
16
  1.11.0 (2022-12-27)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.11.0
1
+ 1.13.0
@@ -1044,7 +1044,7 @@ module Aws::MemoryDB
1044
1044
  # resp = client.create_user({
1045
1045
  # user_name: "UserName", # required
1046
1046
  # authentication_mode: { # required
1047
- # type: "password", # accepts password
1047
+ # type: "password", # accepts password, iam
1048
1048
  # passwords: ["String"],
1049
1049
  # },
1050
1050
  # access_string: "AccessString", # required
@@ -1064,7 +1064,7 @@ module Aws::MemoryDB
1064
1064
  # resp.user.acl_names #=> Array
1065
1065
  # resp.user.acl_names[0] #=> String
1066
1066
  # resp.user.minimum_engine_version #=> String
1067
- # resp.user.authentication.type #=> String, one of "password", "no-password"
1067
+ # resp.user.authentication.type #=> String, one of "password", "no-password", "iam"
1068
1068
  # resp.user.authentication.password_count #=> Integer
1069
1069
  # resp.user.arn #=> String
1070
1070
  #
@@ -1346,7 +1346,7 @@ module Aws::MemoryDB
1346
1346
  # resp.user.acl_names #=> Array
1347
1347
  # resp.user.acl_names[0] #=> String
1348
1348
  # resp.user.minimum_engine_version #=> String
1349
- # resp.user.authentication.type #=> String, one of "password", "no-password"
1349
+ # resp.user.authentication.type #=> String, one of "password", "no-password", "iam"
1350
1350
  # resp.user.authentication.password_count #=> Integer
1351
1351
  # resp.user.arn #=> String
1352
1352
  #
@@ -2172,7 +2172,7 @@ module Aws::MemoryDB
2172
2172
  # resp.users[0].acl_names #=> Array
2173
2173
  # resp.users[0].acl_names[0] #=> String
2174
2174
  # resp.users[0].minimum_engine_version #=> String
2175
- # resp.users[0].authentication.type #=> String, one of "password", "no-password"
2175
+ # resp.users[0].authentication.type #=> String, one of "password", "no-password", "iam"
2176
2176
  # resp.users[0].authentication.password_count #=> Integer
2177
2177
  # resp.users[0].arn #=> String
2178
2178
  # resp.next_token #=> String
@@ -2860,7 +2860,7 @@ module Aws::MemoryDB
2860
2860
  # resp = client.update_user({
2861
2861
  # user_name: "UserName", # required
2862
2862
  # authentication_mode: {
2863
- # type: "password", # accepts password
2863
+ # type: "password", # accepts password, iam
2864
2864
  # passwords: ["String"],
2865
2865
  # },
2866
2866
  # access_string: "AccessString",
@@ -2874,7 +2874,7 @@ module Aws::MemoryDB
2874
2874
  # resp.user.acl_names #=> Array
2875
2875
  # resp.user.acl_names[0] #=> String
2876
2876
  # resp.user.minimum_engine_version #=> String
2877
- # resp.user.authentication.type #=> String, one of "password", "no-password"
2877
+ # resp.user.authentication.type #=> String, one of "password", "no-password", "iam"
2878
2878
  # resp.user.authentication.password_count #=> Integer
2879
2879
  # resp.user.arn #=> String
2880
2880
  #
@@ -2900,7 +2900,7 @@ module Aws::MemoryDB
2900
2900
  params: params,
2901
2901
  config: config)
2902
2902
  context[:gem_name] = 'aws-sdk-memorydb'
2903
- context[:gem_version] = '1.11.0'
2903
+ context[:gem_version] = '1.13.0'
2904
2904
  Seahorse::Client::Request.new(handlers, context)
2905
2905
  end
2906
2906
 
@@ -50,9 +50,6 @@ module Aws::MemoryDB
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
- if self[:region].nil?
54
- raise ArgumentError, "Missing required EndpointParameter: :region"
55
- end
56
53
  self[:use_dual_stack] = options[:use_dual_stack]
57
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
55
  if self[:use_dual_stack].nil?
@@ -9,107 +9,49 @@
9
9
 
10
10
  module Aws::MemoryDB
11
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
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
+ end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
21
25
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- 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://memory-db-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://memory-db-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://memory-db.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
+ end
46
+ if Aws::Endpoints::Matchers.string_equals?(region, "fips")
47
+ return Aws::Endpoints::Endpoint.new(url: "https://memory-db-fips.us-west-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"memorydb", "signingRegion"=>"us-west-1"}]})
48
+ end
49
+ return Aws::Endpoints::Endpoint.new(url: "https://memory-db.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
50
+ end
51
+ end
52
+ raise ArgumentError, "Invalid Configuration: Missing Region"
53
+ raise ArgumentError, 'No endpoint could be resolved'
24
54
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
55
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
- YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
- ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
35
- aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
36
- ZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRhdGlvbiI6IldoZW4gdHJ1ZSwgdXNl
37
- IHRoZSBkdWFsLXN0YWNrIGVuZHBvaW50LiBJZiB0aGUgY29uZmlndXJlZCBl
38
- bmRwb2ludCBkb2VzIG5vdCBzdXBwb3J0IGR1YWwtc3RhY2ssIGRpc3BhdGNo
39
- aW5nIHRoZSByZXF1ZXN0IE1BWSByZXR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sIjoiaHR0cHM6Ly9tZW1vcnktZGItZmlwcy51cy13ZXN0
107
- LTEuYW1hem9uYXdzLmNvbSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7
108
- fX0sInR5cGUiOiJlbmRwb2ludCJ9LHsiY29uZGl0aW9ucyI6W10sImVuZHBv
109
- aW50Ijp7InVybCI6Imh0dHBzOi8vbWVtb3J5LWRiLntSZWdpb259LntQYXJ0
110
- aXRpb25SZXN1bHQjZG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFk
111
- ZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX1dfV19
112
-
113
- JSON
114
56
  end
115
57
  end
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-memorydb/customizations'
52
52
  # @!group service
53
53
  module Aws::MemoryDB
54
54
 
55
- GEM_VERSION = '1.11.0'
55
+ GEM_VERSION = '1.13.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-memorydb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.13.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: 2022-12-27 00:00:00.000000000 Z
11
+ date: 2023-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core