aws-sdk-cognitoidentityprovider 1.71.0 → 1.73.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cognitoidentityprovider/client.rb +20 -3
- data/lib/aws-sdk-cognitoidentityprovider/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-cognitoidentityprovider/endpoint_provider.rb +51 -0
- data/lib/aws-sdk-cognitoidentityprovider/endpoints.rb +1429 -0
- data/lib/aws-sdk-cognitoidentityprovider/plugins/endpoints.rb +270 -0
- data/lib/aws-sdk-cognitoidentityprovider/types.rb +0 -1914
- data/lib/aws-sdk-cognitoidentityprovider.rb +5 -1
- metadata +8 -4
@@ -0,0 +1,270 @@
|
|
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
|
+
|
11
|
+
module Aws::CognitoIdentityProvider
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::CognitoIdentityProvider::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::CognitoIdentityProvider::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::CognitoIdentityProvider::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :add_custom_attributes
|
60
|
+
Aws::CognitoIdentityProvider::Endpoints::AddCustomAttributes.build(context)
|
61
|
+
when :admin_add_user_to_group
|
62
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminAddUserToGroup.build(context)
|
63
|
+
when :admin_confirm_sign_up
|
64
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminConfirmSignUp.build(context)
|
65
|
+
when :admin_create_user
|
66
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminCreateUser.build(context)
|
67
|
+
when :admin_delete_user
|
68
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminDeleteUser.build(context)
|
69
|
+
when :admin_delete_user_attributes
|
70
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminDeleteUserAttributes.build(context)
|
71
|
+
when :admin_disable_provider_for_user
|
72
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminDisableProviderForUser.build(context)
|
73
|
+
when :admin_disable_user
|
74
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminDisableUser.build(context)
|
75
|
+
when :admin_enable_user
|
76
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminEnableUser.build(context)
|
77
|
+
when :admin_forget_device
|
78
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminForgetDevice.build(context)
|
79
|
+
when :admin_get_device
|
80
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminGetDevice.build(context)
|
81
|
+
when :admin_get_user
|
82
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminGetUser.build(context)
|
83
|
+
when :admin_initiate_auth
|
84
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminInitiateAuth.build(context)
|
85
|
+
when :admin_link_provider_for_user
|
86
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminLinkProviderForUser.build(context)
|
87
|
+
when :admin_list_devices
|
88
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminListDevices.build(context)
|
89
|
+
when :admin_list_groups_for_user
|
90
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminListGroupsForUser.build(context)
|
91
|
+
when :admin_list_user_auth_events
|
92
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminListUserAuthEvents.build(context)
|
93
|
+
when :admin_remove_user_from_group
|
94
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminRemoveUserFromGroup.build(context)
|
95
|
+
when :admin_reset_user_password
|
96
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminResetUserPassword.build(context)
|
97
|
+
when :admin_respond_to_auth_challenge
|
98
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminRespondToAuthChallenge.build(context)
|
99
|
+
when :admin_set_user_mfa_preference
|
100
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminSetUserMFAPreference.build(context)
|
101
|
+
when :admin_set_user_password
|
102
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminSetUserPassword.build(context)
|
103
|
+
when :admin_set_user_settings
|
104
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminSetUserSettings.build(context)
|
105
|
+
when :admin_update_auth_event_feedback
|
106
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminUpdateAuthEventFeedback.build(context)
|
107
|
+
when :admin_update_device_status
|
108
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminUpdateDeviceStatus.build(context)
|
109
|
+
when :admin_update_user_attributes
|
110
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminUpdateUserAttributes.build(context)
|
111
|
+
when :admin_user_global_sign_out
|
112
|
+
Aws::CognitoIdentityProvider::Endpoints::AdminUserGlobalSignOut.build(context)
|
113
|
+
when :associate_software_token
|
114
|
+
Aws::CognitoIdentityProvider::Endpoints::AssociateSoftwareToken.build(context)
|
115
|
+
when :change_password
|
116
|
+
Aws::CognitoIdentityProvider::Endpoints::ChangePassword.build(context)
|
117
|
+
when :confirm_device
|
118
|
+
Aws::CognitoIdentityProvider::Endpoints::ConfirmDevice.build(context)
|
119
|
+
when :confirm_forgot_password
|
120
|
+
Aws::CognitoIdentityProvider::Endpoints::ConfirmForgotPassword.build(context)
|
121
|
+
when :confirm_sign_up
|
122
|
+
Aws::CognitoIdentityProvider::Endpoints::ConfirmSignUp.build(context)
|
123
|
+
when :create_group
|
124
|
+
Aws::CognitoIdentityProvider::Endpoints::CreateGroup.build(context)
|
125
|
+
when :create_identity_provider
|
126
|
+
Aws::CognitoIdentityProvider::Endpoints::CreateIdentityProvider.build(context)
|
127
|
+
when :create_resource_server
|
128
|
+
Aws::CognitoIdentityProvider::Endpoints::CreateResourceServer.build(context)
|
129
|
+
when :create_user_import_job
|
130
|
+
Aws::CognitoIdentityProvider::Endpoints::CreateUserImportJob.build(context)
|
131
|
+
when :create_user_pool
|
132
|
+
Aws::CognitoIdentityProvider::Endpoints::CreateUserPool.build(context)
|
133
|
+
when :create_user_pool_client
|
134
|
+
Aws::CognitoIdentityProvider::Endpoints::CreateUserPoolClient.build(context)
|
135
|
+
when :create_user_pool_domain
|
136
|
+
Aws::CognitoIdentityProvider::Endpoints::CreateUserPoolDomain.build(context)
|
137
|
+
when :delete_group
|
138
|
+
Aws::CognitoIdentityProvider::Endpoints::DeleteGroup.build(context)
|
139
|
+
when :delete_identity_provider
|
140
|
+
Aws::CognitoIdentityProvider::Endpoints::DeleteIdentityProvider.build(context)
|
141
|
+
when :delete_resource_server
|
142
|
+
Aws::CognitoIdentityProvider::Endpoints::DeleteResourceServer.build(context)
|
143
|
+
when :delete_user
|
144
|
+
Aws::CognitoIdentityProvider::Endpoints::DeleteUser.build(context)
|
145
|
+
when :delete_user_attributes
|
146
|
+
Aws::CognitoIdentityProvider::Endpoints::DeleteUserAttributes.build(context)
|
147
|
+
when :delete_user_pool
|
148
|
+
Aws::CognitoIdentityProvider::Endpoints::DeleteUserPool.build(context)
|
149
|
+
when :delete_user_pool_client
|
150
|
+
Aws::CognitoIdentityProvider::Endpoints::DeleteUserPoolClient.build(context)
|
151
|
+
when :delete_user_pool_domain
|
152
|
+
Aws::CognitoIdentityProvider::Endpoints::DeleteUserPoolDomain.build(context)
|
153
|
+
when :describe_identity_provider
|
154
|
+
Aws::CognitoIdentityProvider::Endpoints::DescribeIdentityProvider.build(context)
|
155
|
+
when :describe_resource_server
|
156
|
+
Aws::CognitoIdentityProvider::Endpoints::DescribeResourceServer.build(context)
|
157
|
+
when :describe_risk_configuration
|
158
|
+
Aws::CognitoIdentityProvider::Endpoints::DescribeRiskConfiguration.build(context)
|
159
|
+
when :describe_user_import_job
|
160
|
+
Aws::CognitoIdentityProvider::Endpoints::DescribeUserImportJob.build(context)
|
161
|
+
when :describe_user_pool
|
162
|
+
Aws::CognitoIdentityProvider::Endpoints::DescribeUserPool.build(context)
|
163
|
+
when :describe_user_pool_client
|
164
|
+
Aws::CognitoIdentityProvider::Endpoints::DescribeUserPoolClient.build(context)
|
165
|
+
when :describe_user_pool_domain
|
166
|
+
Aws::CognitoIdentityProvider::Endpoints::DescribeUserPoolDomain.build(context)
|
167
|
+
when :forget_device
|
168
|
+
Aws::CognitoIdentityProvider::Endpoints::ForgetDevice.build(context)
|
169
|
+
when :forgot_password
|
170
|
+
Aws::CognitoIdentityProvider::Endpoints::ForgotPassword.build(context)
|
171
|
+
when :get_csv_header
|
172
|
+
Aws::CognitoIdentityProvider::Endpoints::GetCSVHeader.build(context)
|
173
|
+
when :get_device
|
174
|
+
Aws::CognitoIdentityProvider::Endpoints::GetDevice.build(context)
|
175
|
+
when :get_group
|
176
|
+
Aws::CognitoIdentityProvider::Endpoints::GetGroup.build(context)
|
177
|
+
when :get_identity_provider_by_identifier
|
178
|
+
Aws::CognitoIdentityProvider::Endpoints::GetIdentityProviderByIdentifier.build(context)
|
179
|
+
when :get_signing_certificate
|
180
|
+
Aws::CognitoIdentityProvider::Endpoints::GetSigningCertificate.build(context)
|
181
|
+
when :get_ui_customization
|
182
|
+
Aws::CognitoIdentityProvider::Endpoints::GetUICustomization.build(context)
|
183
|
+
when :get_user
|
184
|
+
Aws::CognitoIdentityProvider::Endpoints::GetUser.build(context)
|
185
|
+
when :get_user_attribute_verification_code
|
186
|
+
Aws::CognitoIdentityProvider::Endpoints::GetUserAttributeVerificationCode.build(context)
|
187
|
+
when :get_user_pool_mfa_config
|
188
|
+
Aws::CognitoIdentityProvider::Endpoints::GetUserPoolMfaConfig.build(context)
|
189
|
+
when :global_sign_out
|
190
|
+
Aws::CognitoIdentityProvider::Endpoints::GlobalSignOut.build(context)
|
191
|
+
when :initiate_auth
|
192
|
+
Aws::CognitoIdentityProvider::Endpoints::InitiateAuth.build(context)
|
193
|
+
when :list_devices
|
194
|
+
Aws::CognitoIdentityProvider::Endpoints::ListDevices.build(context)
|
195
|
+
when :list_groups
|
196
|
+
Aws::CognitoIdentityProvider::Endpoints::ListGroups.build(context)
|
197
|
+
when :list_identity_providers
|
198
|
+
Aws::CognitoIdentityProvider::Endpoints::ListIdentityProviders.build(context)
|
199
|
+
when :list_resource_servers
|
200
|
+
Aws::CognitoIdentityProvider::Endpoints::ListResourceServers.build(context)
|
201
|
+
when :list_tags_for_resource
|
202
|
+
Aws::CognitoIdentityProvider::Endpoints::ListTagsForResource.build(context)
|
203
|
+
when :list_user_import_jobs
|
204
|
+
Aws::CognitoIdentityProvider::Endpoints::ListUserImportJobs.build(context)
|
205
|
+
when :list_user_pool_clients
|
206
|
+
Aws::CognitoIdentityProvider::Endpoints::ListUserPoolClients.build(context)
|
207
|
+
when :list_user_pools
|
208
|
+
Aws::CognitoIdentityProvider::Endpoints::ListUserPools.build(context)
|
209
|
+
when :list_users
|
210
|
+
Aws::CognitoIdentityProvider::Endpoints::ListUsers.build(context)
|
211
|
+
when :list_users_in_group
|
212
|
+
Aws::CognitoIdentityProvider::Endpoints::ListUsersInGroup.build(context)
|
213
|
+
when :resend_confirmation_code
|
214
|
+
Aws::CognitoIdentityProvider::Endpoints::ResendConfirmationCode.build(context)
|
215
|
+
when :respond_to_auth_challenge
|
216
|
+
Aws::CognitoIdentityProvider::Endpoints::RespondToAuthChallenge.build(context)
|
217
|
+
when :revoke_token
|
218
|
+
Aws::CognitoIdentityProvider::Endpoints::RevokeToken.build(context)
|
219
|
+
when :set_risk_configuration
|
220
|
+
Aws::CognitoIdentityProvider::Endpoints::SetRiskConfiguration.build(context)
|
221
|
+
when :set_ui_customization
|
222
|
+
Aws::CognitoIdentityProvider::Endpoints::SetUICustomization.build(context)
|
223
|
+
when :set_user_mfa_preference
|
224
|
+
Aws::CognitoIdentityProvider::Endpoints::SetUserMFAPreference.build(context)
|
225
|
+
when :set_user_pool_mfa_config
|
226
|
+
Aws::CognitoIdentityProvider::Endpoints::SetUserPoolMfaConfig.build(context)
|
227
|
+
when :set_user_settings
|
228
|
+
Aws::CognitoIdentityProvider::Endpoints::SetUserSettings.build(context)
|
229
|
+
when :sign_up
|
230
|
+
Aws::CognitoIdentityProvider::Endpoints::SignUp.build(context)
|
231
|
+
when :start_user_import_job
|
232
|
+
Aws::CognitoIdentityProvider::Endpoints::StartUserImportJob.build(context)
|
233
|
+
when :stop_user_import_job
|
234
|
+
Aws::CognitoIdentityProvider::Endpoints::StopUserImportJob.build(context)
|
235
|
+
when :tag_resource
|
236
|
+
Aws::CognitoIdentityProvider::Endpoints::TagResource.build(context)
|
237
|
+
when :untag_resource
|
238
|
+
Aws::CognitoIdentityProvider::Endpoints::UntagResource.build(context)
|
239
|
+
when :update_auth_event_feedback
|
240
|
+
Aws::CognitoIdentityProvider::Endpoints::UpdateAuthEventFeedback.build(context)
|
241
|
+
when :update_device_status
|
242
|
+
Aws::CognitoIdentityProvider::Endpoints::UpdateDeviceStatus.build(context)
|
243
|
+
when :update_group
|
244
|
+
Aws::CognitoIdentityProvider::Endpoints::UpdateGroup.build(context)
|
245
|
+
when :update_identity_provider
|
246
|
+
Aws::CognitoIdentityProvider::Endpoints::UpdateIdentityProvider.build(context)
|
247
|
+
when :update_resource_server
|
248
|
+
Aws::CognitoIdentityProvider::Endpoints::UpdateResourceServer.build(context)
|
249
|
+
when :update_user_attributes
|
250
|
+
Aws::CognitoIdentityProvider::Endpoints::UpdateUserAttributes.build(context)
|
251
|
+
when :update_user_pool
|
252
|
+
Aws::CognitoIdentityProvider::Endpoints::UpdateUserPool.build(context)
|
253
|
+
when :update_user_pool_client
|
254
|
+
Aws::CognitoIdentityProvider::Endpoints::UpdateUserPoolClient.build(context)
|
255
|
+
when :update_user_pool_domain
|
256
|
+
Aws::CognitoIdentityProvider::Endpoints::UpdateUserPoolDomain.build(context)
|
257
|
+
when :verify_software_token
|
258
|
+
Aws::CognitoIdentityProvider::Endpoints::VerifySoftwareToken.build(context)
|
259
|
+
when :verify_user_attribute
|
260
|
+
Aws::CognitoIdentityProvider::Endpoints::VerifyUserAttribute.build(context)
|
261
|
+
end
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
265
|
+
def add_handlers(handlers, _config)
|
266
|
+
handlers.add(Handler, step: :build, priority: 75)
|
267
|
+
end
|
268
|
+
end
|
269
|
+
end
|
270
|
+
end
|