Sha256: d092f1cbf348028756f7fe14e17154d4d5f2247c9d61e536d22f4c4b89b7f976
Contents?: true
Size: 925 Bytes
Versions: 3
Compression:
Stored size: 925 Bytes
Contents
# frozen_string_literal: true class Cognito class Client class Command class CreateIdentitySearch < CreateIdentity include Mixins::CreateBehavior, anima.add(:profile_id) private :profile_id, :name, :phone_number ENDPOINT = '/identity_searches' private def params Params::IdentitySearch.call( profile_id: profile_id, name: name, phone_number: phone_number ) end def present_response case response.code when 202 Response::IdentitySearchJob.build(response, connection) when 201 Response::IdentitySearch.build(response, connection) end end def success? response.status.accepted? || response.status.created? end end # CreateIdentitySearch end # Command end # Client end # Cognito
Version data entries
3 entries across 3 versions & 1 rubygems