amazonka-cognito-idp-1.5.0: Amazon Cognito Identity Provider SDK.

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser

Contents

Description

Disables the user from signing in with the specified external (SAML or social) identity provider. If the user to disable is a Cognito User Pools native username + password user, they are not permitted to use their password to sign-in. If the user to disable is a linked external IdP user, any link between that user and an existing user is removed. The next time the external user (no longer attached to the previously linked DestinationUser ) signs in, they must create a new user account. See AdminLinkProviderForUser .

This action is enabled only for admin access and requires developer credentials.

The ProviderName must match the value specified when creating an IdP for the pool.

To disable a native username + password user, the ProviderName value must be Cognito and the ProviderAttributeName must be Cognito_Subject , with the ProviderAttributeValue being the name that is used in the user pool for the user.

The ProviderAttributeName must always be Cognito_Subject for social identity providers. The ProviderAttributeValue must always be the exact subject that was used when the user was originally linked as a source user.

For de-linking a SAML identity, there are two scenarios. If the linked identity has not yet been used to sign-in, the ProviderAttributeName and ProviderAttributeValue must be the same values that were used for the SourceUser when the identities were originally linked in the AdminLinkProviderForUser call. (If the linking was done with ProviderAttributeName set to Cognito_Subject , the same applies here). However, if the user has already signed in, the ProviderAttributeName must be Cognito_Subject and ProviderAttributeValue must be the subject of the SAML assertion.

Synopsis

Creating a Request

adminDisableProviderForUser Source #

Creates a value of AdminDisableProviderForUser with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data AdminDisableProviderForUser Source #

See: adminDisableProviderForUser smart constructor.

Instances

Eq AdminDisableProviderForUser Source # 
Data AdminDisableProviderForUser Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AdminDisableProviderForUser -> c AdminDisableProviderForUser #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AdminDisableProviderForUser #

toConstr :: AdminDisableProviderForUser -> Constr #

dataTypeOf :: AdminDisableProviderForUser -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c AdminDisableProviderForUser) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AdminDisableProviderForUser) #

gmapT :: (forall b. Data b => b -> b) -> AdminDisableProviderForUser -> AdminDisableProviderForUser #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AdminDisableProviderForUser -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AdminDisableProviderForUser -> r #

gmapQ :: (forall d. Data d => d -> u) -> AdminDisableProviderForUser -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AdminDisableProviderForUser -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AdminDisableProviderForUser -> m AdminDisableProviderForUser #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AdminDisableProviderForUser -> m AdminDisableProviderForUser #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AdminDisableProviderForUser -> m AdminDisableProviderForUser #

Read AdminDisableProviderForUser Source # 
Show AdminDisableProviderForUser Source # 
Generic AdminDisableProviderForUser Source # 
Hashable AdminDisableProviderForUser Source # 
ToJSON AdminDisableProviderForUser Source # 
NFData AdminDisableProviderForUser Source # 
AWSRequest AdminDisableProviderForUser Source # 
ToQuery AdminDisableProviderForUser Source # 
ToPath AdminDisableProviderForUser Source # 
ToHeaders AdminDisableProviderForUser Source # 
type Rep AdminDisableProviderForUser Source # 
type Rep AdminDisableProviderForUser = D1 (MetaData "AdminDisableProviderForUser" "Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser" "amazonka-cognito-idp-1.5.0-6L4ibyApQsq9OINZIpqhIF" False) (C1 (MetaCons "AdminDisableProviderForUser'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_adpfuUserPoolId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_adpfuUser") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ProviderUserIdentifierType))))
type Rs AdminDisableProviderForUser Source # 

Request Lenses

adpfuUserPoolId :: Lens' AdminDisableProviderForUser Text Source #

The user pool ID for the user pool.

Destructuring the Response

adminDisableProviderForUserResponse Source #

Creates a value of AdminDisableProviderForUserResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data AdminDisableProviderForUserResponse Source #

See: adminDisableProviderForUserResponse smart constructor.

Instances

Eq AdminDisableProviderForUserResponse Source # 
Data AdminDisableProviderForUserResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AdminDisableProviderForUserResponse -> c AdminDisableProviderForUserResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AdminDisableProviderForUserResponse #

toConstr :: AdminDisableProviderForUserResponse -> Constr #

dataTypeOf :: AdminDisableProviderForUserResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c AdminDisableProviderForUserResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AdminDisableProviderForUserResponse) #

gmapT :: (forall b. Data b => b -> b) -> AdminDisableProviderForUserResponse -> AdminDisableProviderForUserResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AdminDisableProviderForUserResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AdminDisableProviderForUserResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> AdminDisableProviderForUserResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AdminDisableProviderForUserResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AdminDisableProviderForUserResponse -> m AdminDisableProviderForUserResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AdminDisableProviderForUserResponse -> m AdminDisableProviderForUserResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AdminDisableProviderForUserResponse -> m AdminDisableProviderForUserResponse #

Read AdminDisableProviderForUserResponse Source # 
Show AdminDisableProviderForUserResponse Source # 
Generic AdminDisableProviderForUserResponse Source # 
NFData AdminDisableProviderForUserResponse Source # 
type Rep AdminDisableProviderForUserResponse Source # 
type Rep AdminDisableProviderForUserResponse = D1 (MetaData "AdminDisableProviderForUserResponse" "Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser" "amazonka-cognito-idp-1.5.0-6L4ibyApQsq9OINZIpqhIF" True) (C1 (MetaCons "AdminDisableProviderForUserResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_adpfursResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses