Module Smaws_Client_CognitoIdentityProvider.AdminUpdateDeviceStatus

Updates the status of a user's device so that it is marked as remembered or not remembered for the purpose of device authentication. Device authentication is a "remember me" mechanism that silently completes sign-in from trusted devices with a device key instead of a user-provided MFA code. This operation changes the status of a device without deleting it, so you can enable it again later. For more information about device authentication, see Working with devices.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `InternalErrorException of Types.internal_error_exception | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidUserPoolConfigurationException of Types.invalid_user_pool_configuration_exception | `NotAuthorizedException of Types.not_authorized_exception | `OperationNotEnabledException of Types.operation_not_enabled_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `TooManyRequestsException of Types.too_many_requests_exception | `UserNotFoundException of Types.user_not_found_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.admin_update_device_status_request -> (Types.admin_update_device_status_response, [> Smaws_Lib.Protocols.AwsJson.error | `InternalErrorException of Types.internal_error_exception | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidUserPoolConfigurationException of Types.invalid_user_pool_configuration_exception | `NotAuthorizedException of Types.not_authorized_exception | `OperationNotEnabledException of Types.operation_not_enabled_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `TooManyRequestsException of Types.too_many_requests_exception | `UserNotFoundException of Types.user_not_found_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.admin_update_device_status_request -> (Types.admin_update_device_status_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `InternalErrorException of Types.internal_error_exception | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidUserPoolConfigurationException of Types.invalid_user_pool_configuration_exception | `NotAuthorizedException of Types.not_authorized_exception | `OperationNotEnabledException of Types.operation_not_enabled_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `TooManyRequestsException of Types.too_many_requests_exception | `UserNotFoundException of Types.user_not_found_exception ] * Smaws_Lib.Response.metadata) Stdlib.result