aws-sdk-cognitoidentityprovider 1.72.0 → 1.74.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 +12 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cognitoidentityprovider/client.rb +47 -42
- data/lib/aws-sdk-cognitoidentityprovider/endpoint_provider.rb +35 -96
- data/lib/aws-sdk-cognitoidentityprovider/types.rb +88 -2002
- data/lib/aws-sdk-cognitoidentityprovider.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 354641e6d84b13711594a00465484dc475f43fd98708cc6ebb6b5cd4845d0f0a
|
4
|
+
data.tar.gz: 20c05df61f32257cc396593cb3cba9fd781d353281a2eb2587e7b7ddf346abaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df2966f078929a53b3be4c598ac0b3a120e7eae270dc97844584ccb86ab816422275246a5e20ef1f7794f9087893cb4e77081d9cc78093a53b405e6491b02481
|
7
|
+
data.tar.gz: 062bd5966ff56495db66676f5f839211058dc1126a14ed1044239bf155b4aab0f5dd7b314bed66b50afaa54e03d01844a57077826631709da9246a8df75ac335
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.74.0 (2023-05-31)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.73.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.72.0 (2022-10-25)
|
5
17
|
------------------
|
6
18
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.74.0
|
@@ -275,6 +275,11 @@ module Aws::CognitoIdentityProvider
|
|
275
275
|
# in the future.
|
276
276
|
#
|
277
277
|
#
|
278
|
+
# @option options [String] :sdk_ua_app_id
|
279
|
+
# A unique and opaque application ID that is appended to the
|
280
|
+
# User-Agent header as app/<sdk_ua_app_id>. It should have a
|
281
|
+
# maximum length of 50.
|
282
|
+
#
|
278
283
|
# @option options [String] :secret_access_key
|
279
284
|
#
|
280
285
|
# @option options [String] :session_token
|
@@ -595,12 +600,12 @@ module Aws::CognitoIdentityProvider
|
|
595
600
|
# attribute to `True`. You can also do this by calling
|
596
601
|
# [AdminUpdateUserAttributes][1].
|
597
602
|
#
|
598
|
-
# * **email
|
603
|
+
# * **email**: The email address of the user to whom the message that
|
599
604
|
# contains the code and username will be sent. Required if the
|
600
605
|
# `email_verified` attribute is set to `True`, or if `"EMAIL"` is
|
601
606
|
# specified in the `DesiredDeliveryMediums` parameter.
|
602
607
|
#
|
603
|
-
# * **phone\_number
|
608
|
+
# * **phone\_number**: The phone number of the user to whom the message
|
604
609
|
# that contains the code and username will be sent. Required if the
|
605
610
|
# `phone_number_verified` attribute is set to `True`, or if `"SMS"` is
|
606
611
|
# specified in the `DesiredDeliveryMediums` parameter.
|
@@ -1134,20 +1139,20 @@ module Aws::CognitoIdentityProvider
|
|
1134
1139
|
#
|
1135
1140
|
# Valid values include:
|
1136
1141
|
#
|
1137
|
-
# * `USER_SRP_AUTH
|
1142
|
+
# * `USER_SRP_AUTH`: Authentication flow for the Secure Remote Password
|
1138
1143
|
# (SRP) protocol.
|
1139
1144
|
#
|
1140
|
-
# * `REFRESH_TOKEN_AUTH`/`REFRESH_TOKEN
|
1145
|
+
# * `REFRESH_TOKEN_AUTH`/`REFRESH_TOKEN`: Authentication flow for
|
1141
1146
|
# refreshing the access token and ID token by supplying a valid
|
1142
1147
|
# refresh token.
|
1143
1148
|
#
|
1144
|
-
# * `CUSTOM_AUTH
|
1149
|
+
# * `CUSTOM_AUTH`: Custom authentication flow.
|
1145
1150
|
#
|
1146
|
-
# * `ADMIN_NO_SRP_AUTH
|
1151
|
+
# * `ADMIN_NO_SRP_AUTH`: Non-SRP authentication flow; you can pass in
|
1147
1152
|
# the USERNAME and PASSWORD directly if the flow is enabled for
|
1148
1153
|
# calling the app client.
|
1149
1154
|
#
|
1150
|
-
# * `ADMIN_USER_PASSWORD_AUTH
|
1155
|
+
# * `ADMIN_USER_PASSWORD_AUTH`: Admin-based user password
|
1151
1156
|
# authentication. This replaces the `ADMIN_NO_SRP_AUTH` authentication
|
1152
1157
|
# flow. In this flow, Amazon Cognito receives the password in the
|
1153
1158
|
# request instead of using the SRP process to verify passwords.
|
@@ -1155,21 +1160,21 @@ module Aws::CognitoIdentityProvider
|
|
1155
1160
|
# @option params [Hash<String,String>] :auth_parameters
|
1156
1161
|
# The authentication parameters. These are inputs corresponding to the
|
1157
1162
|
# `AuthFlow` that you're invoking. The required values depend on the
|
1158
|
-
# value of `AuthFlow
|
1163
|
+
# value of `AuthFlow`:
|
1159
1164
|
#
|
1160
|
-
# * For `USER_SRP_AUTH
|
1165
|
+
# * For `USER_SRP_AUTH`: `USERNAME` (required), `SRP_A` (required),
|
1161
1166
|
# `SECRET_HASH` (required if the app client is configured with a
|
1162
1167
|
# client secret), `DEVICE_KEY`.
|
1163
1168
|
#
|
1164
|
-
# * For `REFRESH_TOKEN_AUTH/REFRESH_TOKEN
|
1169
|
+
# * For `REFRESH_TOKEN_AUTH/REFRESH_TOKEN`: `REFRESH_TOKEN` (required),
|
1165
1170
|
# `SECRET_HASH` (required if the app client is configured with a
|
1166
1171
|
# client secret), `DEVICE_KEY`.
|
1167
1172
|
#
|
1168
|
-
# * For `ADMIN_NO_SRP_AUTH
|
1173
|
+
# * For `ADMIN_NO_SRP_AUTH`: `USERNAME` (required), `SECRET_HASH` (if
|
1169
1174
|
# app client is configured with client secret), `PASSWORD` (required),
|
1170
1175
|
# `DEVICE_KEY`.
|
1171
1176
|
#
|
1172
|
-
# * For `CUSTOM_AUTH
|
1177
|
+
# * For `CUSTOM_AUTH`: `USERNAME` (required), `SECRET_HASH` (if app
|
1173
1178
|
# client is configured with client secret), `DEVICE_KEY`. To start the
|
1174
1179
|
# authentication flow with password verification, include
|
1175
1180
|
# `ChallengeName: SRP_A` and `SRP_A: (The SRP_A Value)`.
|
@@ -1761,10 +1766,10 @@ module Aws::CognitoIdentityProvider
|
|
1761
1766
|
# The challenge responses. These are inputs corresponding to the value
|
1762
1767
|
# of `ChallengeName`, for example:
|
1763
1768
|
#
|
1764
|
-
# * `SMS_MFA
|
1769
|
+
# * `SMS_MFA`: `SMS_MFA_CODE`, `USERNAME`, `SECRET_HASH` (if app client
|
1765
1770
|
# is configured with client secret).
|
1766
1771
|
#
|
1767
|
-
# * `PASSWORD_VERIFIER
|
1772
|
+
# * `PASSWORD_VERIFIER`: `PASSWORD_CLAIM_SIGNATURE`,
|
1768
1773
|
# `PASSWORD_CLAIM_SECRET_BLOCK`, `TIMESTAMP`, `USERNAME`,
|
1769
1774
|
# `SECRET_HASH` (if app client is configured with client secret).
|
1770
1775
|
#
|
@@ -1773,10 +1778,10 @@ module Aws::CognitoIdentityProvider
|
|
1773
1778
|
#
|
1774
1779
|
# </note>
|
1775
1780
|
#
|
1776
|
-
# * `ADMIN_NO_SRP_AUTH
|
1781
|
+
# * `ADMIN_NO_SRP_AUTH`: `PASSWORD`, `USERNAME`, `SECRET_HASH` (if app
|
1777
1782
|
# client is configured with client secret).
|
1778
1783
|
#
|
1779
|
-
# * `NEW_PASSWORD_REQUIRED
|
1784
|
+
# * `NEW_PASSWORD_REQUIRED`: `NEW_PASSWORD`, `USERNAME`, `SECRET_HASH`
|
1780
1785
|
# (if app client is configured with client secret). To set any
|
1781
1786
|
# required attributes that Amazon Cognito returned as
|
1782
1787
|
# `requiredAttributes` in the `AdminInitiateAuth` response, add a
|
@@ -3468,23 +3473,23 @@ module Aws::CognitoIdentityProvider
|
|
3468
3473
|
#
|
3469
3474
|
# Valid values include:
|
3470
3475
|
#
|
3471
|
-
# * `ALLOW_ADMIN_USER_PASSWORD_AUTH
|
3476
|
+
# * `ALLOW_ADMIN_USER_PASSWORD_AUTH`: Enable admin based user password
|
3472
3477
|
# authentication flow `ADMIN_USER_PASSWORD_AUTH`. This setting
|
3473
3478
|
# replaces the `ADMIN_NO_SRP_AUTH` setting. With this authentication
|
3474
3479
|
# flow, your app passes a user name and password to Amazon Cognito in
|
3475
3480
|
# the request, instead of using the Secure Remote Password (SRP)
|
3476
3481
|
# protocol to securely transmit the password.
|
3477
3482
|
#
|
3478
|
-
# * `ALLOW_CUSTOM_AUTH
|
3483
|
+
# * `ALLOW_CUSTOM_AUTH`: Enable Lambda trigger based authentication.
|
3479
3484
|
#
|
3480
|
-
# * `ALLOW_USER_PASSWORD_AUTH
|
3485
|
+
# * `ALLOW_USER_PASSWORD_AUTH`: Enable user password-based
|
3481
3486
|
# authentication. In this flow, Amazon Cognito receives the password
|
3482
3487
|
# in the request instead of using the SRP protocol to verify
|
3483
3488
|
# passwords.
|
3484
3489
|
#
|
3485
|
-
# * `ALLOW_USER_SRP_AUTH
|
3490
|
+
# * `ALLOW_USER_SRP_AUTH`: Enable SRP-based authentication.
|
3486
3491
|
#
|
3487
|
-
# * `ALLOW_REFRESH_TOKEN_AUTH
|
3492
|
+
# * `ALLOW_REFRESH_TOKEN_AUTH`: Enable authflow to refresh tokens.
|
3488
3493
|
#
|
3489
3494
|
# In some environments, you will see the values `ADMIN_NO_SRP_AUTH`,
|
3490
3495
|
# `CUSTOM_AUTH_FLOW_ONLY`, or `USER_PASSWORD_AUTH`. You can't assign
|
@@ -5041,16 +5046,16 @@ module Aws::CognitoIdentityProvider
|
|
5041
5046
|
#
|
5042
5047
|
# Valid values include:
|
5043
5048
|
#
|
5044
|
-
# * `USER_SRP_AUTH
|
5049
|
+
# * `USER_SRP_AUTH`: Authentication flow for the Secure Remote Password
|
5045
5050
|
# (SRP) protocol.
|
5046
5051
|
#
|
5047
|
-
# * `REFRESH_TOKEN_AUTH`/`REFRESH_TOKEN
|
5052
|
+
# * `REFRESH_TOKEN_AUTH`/`REFRESH_TOKEN`: Authentication flow for
|
5048
5053
|
# refreshing the access token and ID token by supplying a valid
|
5049
5054
|
# refresh token.
|
5050
5055
|
#
|
5051
|
-
# * `CUSTOM_AUTH
|
5056
|
+
# * `CUSTOM_AUTH`: Custom authentication flow.
|
5052
5057
|
#
|
5053
|
-
# * `USER_PASSWORD_AUTH
|
5058
|
+
# * `USER_PASSWORD_AUTH`: Non-SRP authentication flow; user name and
|
5054
5059
|
# password are passed directly. If a user migration Lambda trigger is
|
5055
5060
|
# set, this flow will invoke the user migration Lambda if it doesn't
|
5056
5061
|
# find the user name in the user pool.
|
@@ -5060,17 +5065,17 @@ module Aws::CognitoIdentityProvider
|
|
5060
5065
|
# @option params [Hash<String,String>] :auth_parameters
|
5061
5066
|
# The authentication parameters. These are inputs corresponding to the
|
5062
5067
|
# `AuthFlow` that you're invoking. The required values depend on the
|
5063
|
-
# value of `AuthFlow
|
5068
|
+
# value of `AuthFlow`:
|
5064
5069
|
#
|
5065
|
-
# * For `USER_SRP_AUTH
|
5070
|
+
# * For `USER_SRP_AUTH`: `USERNAME` (required), `SRP_A` (required),
|
5066
5071
|
# `SECRET_HASH` (required if the app client is configured with a
|
5067
5072
|
# client secret), `DEVICE_KEY`.
|
5068
5073
|
#
|
5069
|
-
# * For `REFRESH_TOKEN_AUTH/REFRESH_TOKEN
|
5074
|
+
# * For `REFRESH_TOKEN_AUTH/REFRESH_TOKEN`: `REFRESH_TOKEN` (required),
|
5070
5075
|
# `SECRET_HASH` (required if the app client is configured with a
|
5071
5076
|
# client secret), `DEVICE_KEY`.
|
5072
5077
|
#
|
5073
|
-
# * For `CUSTOM_AUTH
|
5078
|
+
# * For `CUSTOM_AUTH`: `USERNAME` (required), `SECRET_HASH` (if app
|
5074
5079
|
# client is configured with client secret), `DEVICE_KEY`. To start the
|
5075
5080
|
# authentication flow with password verification, include
|
5076
5081
|
# `ChallengeName: SRP_A` and `SRP_A: (The SRP_A Value)`.
|
@@ -5610,14 +5615,14 @@ module Aws::CognitoIdentityProvider
|
|
5610
5615
|
# be escaped using the backslash (\\) character. For example,
|
5611
5616
|
# "`family_name` = \\"Reddy\\"".
|
5612
5617
|
#
|
5613
|
-
# * *AttributeName
|
5618
|
+
# * *AttributeName*: The name of the attribute to search for. You can
|
5614
5619
|
# only search for one attribute at a time.
|
5615
5620
|
#
|
5616
|
-
# * *Filter-Type
|
5621
|
+
# * *Filter-Type*: For an exact match, use =, for example,
|
5617
5622
|
# "`given_name` = \\"Jon\\"". For a prefix ("starts with")
|
5618
5623
|
# match, use ^=, for example, "`given_name` ^= \\"Jon\\"".
|
5619
5624
|
#
|
5620
|
-
# * *AttributeValue
|
5625
|
+
# * *AttributeValue*: The attribute value that must be matched for each
|
5621
5626
|
# user.
|
5622
5627
|
#
|
5623
5628
|
# If the filter string is empty, `ListUsers` returns all users in the
|
@@ -5956,9 +5961,9 @@ module Aws::CognitoIdentityProvider
|
|
5956
5961
|
#
|
5957
5962
|
# </note>
|
5958
5963
|
#
|
5959
|
-
# * `SMS_MFA
|
5964
|
+
# * `SMS_MFA`: `SMS_MFA_CODE`, `USERNAME`.
|
5960
5965
|
#
|
5961
|
-
# * `PASSWORD_VERIFIER
|
5966
|
+
# * `PASSWORD_VERIFIER`: `PASSWORD_CLAIM_SIGNATURE`,
|
5962
5967
|
# `PASSWORD_CLAIM_SECRET_BLOCK`, `TIMESTAMP`, `USERNAME`.
|
5963
5968
|
#
|
5964
5969
|
# <note markdown="1"> `PASSWORD_VERIFIER` requires `DEVICE_KEY` when you sign in with a
|
@@ -5966,7 +5971,7 @@ module Aws::CognitoIdentityProvider
|
|
5966
5971
|
#
|
5967
5972
|
# </note>
|
5968
5973
|
#
|
5969
|
-
# * `NEW_PASSWORD_REQUIRED
|
5974
|
+
# * `NEW_PASSWORD_REQUIRED`: `NEW_PASSWORD`, `USERNAME`, `SECRET_HASH`
|
5970
5975
|
# (if app client is configured with client secret). To set any
|
5971
5976
|
# required attributes that Amazon Cognito returned as
|
5972
5977
|
# `requiredAttributes` in the `InitiateAuth` response, add a
|
@@ -5983,7 +5988,7 @@ module Aws::CognitoIdentityProvider
|
|
5983
5988
|
#
|
5984
5989
|
# </note>
|
5985
5990
|
#
|
5986
|
-
# * `SOFTWARE_TOKEN_MFA
|
5991
|
+
# * `SOFTWARE_TOKEN_MFA`: `USERNAME` and `SOFTWARE_TOKEN_MFA_CODE` are
|
5987
5992
|
# required attributes.
|
5988
5993
|
#
|
5989
5994
|
# * `DEVICE_SRP_AUTH` requires `USERNAME`, `DEVICE_KEY`, `SRP_A` (and
|
@@ -7546,23 +7551,23 @@ module Aws::CognitoIdentityProvider
|
|
7546
7551
|
#
|
7547
7552
|
# Valid values include:
|
7548
7553
|
#
|
7549
|
-
# * `ALLOW_ADMIN_USER_PASSWORD_AUTH
|
7554
|
+
# * `ALLOW_ADMIN_USER_PASSWORD_AUTH`: Enable admin based user password
|
7550
7555
|
# authentication flow `ADMIN_USER_PASSWORD_AUTH`. This setting
|
7551
7556
|
# replaces the `ADMIN_NO_SRP_AUTH` setting. With this authentication
|
7552
7557
|
# flow, your app passes a user name and password to Amazon Cognito in
|
7553
7558
|
# the request, instead of using the Secure Remote Password (SRP)
|
7554
7559
|
# protocol to securely transmit the password.
|
7555
7560
|
#
|
7556
|
-
# * `ALLOW_CUSTOM_AUTH
|
7561
|
+
# * `ALLOW_CUSTOM_AUTH`: Enable Lambda trigger based authentication.
|
7557
7562
|
#
|
7558
|
-
# * `ALLOW_USER_PASSWORD_AUTH
|
7563
|
+
# * `ALLOW_USER_PASSWORD_AUTH`: Enable user password-based
|
7559
7564
|
# authentication. In this flow, Amazon Cognito receives the password
|
7560
7565
|
# in the request instead of using the SRP protocol to verify
|
7561
7566
|
# passwords.
|
7562
7567
|
#
|
7563
|
-
# * `ALLOW_USER_SRP_AUTH
|
7568
|
+
# * `ALLOW_USER_SRP_AUTH`: Enable SRP-based authentication.
|
7564
7569
|
#
|
7565
|
-
# * `ALLOW_REFRESH_TOKEN_AUTH
|
7570
|
+
# * `ALLOW_REFRESH_TOKEN_AUTH`: Enable authflow to refresh tokens.
|
7566
7571
|
#
|
7567
7572
|
# In some environments, you will see the values `ADMIN_NO_SRP_AUTH`,
|
7568
7573
|
# `CUSTOM_AUTH_FLOW_ONLY`, or `USER_PASSWORD_AUTH`. You can't assign
|
@@ -7987,7 +7992,7 @@ module Aws::CognitoIdentityProvider
|
|
7987
7992
|
params: params,
|
7988
7993
|
config: config)
|
7989
7994
|
context[:gem_name] = 'aws-sdk-cognitoidentityprovider'
|
7990
|
-
context[:gem_version] = '1.
|
7995
|
+
context[:gem_version] = '1.74.0'
|
7991
7996
|
Seahorse::Client::Request.new(handlers, context)
|
7992
7997
|
end
|
7993
7998
|
|
@@ -9,104 +9,43 @@
|
|
9
9
|
|
10
10
|
module Aws::CognitoIdentityProvider
|
11
11
|
class EndpointProvider
|
12
|
-
def
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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 (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
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://cognito-idp-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
|
33
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
35
|
+
return Aws::Endpoints::Endpoint.new(url: "https://cognito-idp-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
+
end
|
37
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
38
|
+
end
|
39
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
41
|
+
return Aws::Endpoints::Endpoint.new(url: "https://cognito-idp.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
42
|
+
end
|
43
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
44
|
+
end
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://cognito-idp.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
21
46
|
end
|
22
|
-
|
23
|
-
end
|
47
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
24
48
|
|
25
|
-
def resolve_endpoint(parameters)
|
26
|
-
@provider.resolve_endpoint(parameters)
|
27
49
|
end
|
28
|
-
|
29
|
-
# @api private
|
30
|
-
RULES = <<-JSON
|
31
|
-
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
-
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
|
33
|
-
dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
|
34
|
-
cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
|
35
|
-
dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
|
36
|
-
ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHVz
|
37
|
-
ZSB0aGUgZHVhbC1zdGFjayBlbmRwb2ludC4gSWYgdGhlIGNvbmZpZ3VyZWQg
|
38
|
-
ZW5kcG9pbnQgZG9lcyBub3Qgc3VwcG9ydCBkdWFsLXN0YWNrLCBkaXNwYXRj
|
39
|
-
aGluZyB0aGUgcmVxdWVzdCBNQVkgcmV0dXJuIGFuIGVycm9yLiIsInR5cGUi
|
40
|
-
OiJCb29sZWFuIn0sIlVzZUZJUFMiOnsiYnVpbHRJbiI6IkFXUzo6VXNlRklQ
|
41
|
-
UyIsInJlcXVpcmVkIjp0cnVlLCJkZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRh
|
42
|
-
dGlvbiI6IldoZW4gdHJ1ZSwgc2VuZCB0aGlzIHJlcXVlc3QgdG8gdGhlIEZJ
|
43
|
-
UFMtY29t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