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

Copyright(c) 2013-2018 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 .

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 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 # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser

Data AdminDisableProviderForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser

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 # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser

Show AdminDisableProviderForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser

Generic AdminDisableProviderForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser

Associated Types

type Rep AdminDisableProviderForUser :: Type -> Type #

Hashable AdminDisableProviderForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser

ToJSON AdminDisableProviderForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser

AWSRequest AdminDisableProviderForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser

Associated Types

type Rs AdminDisableProviderForUser :: Type #

ToHeaders AdminDisableProviderForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser

ToPath AdminDisableProviderForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser

ToQuery AdminDisableProviderForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser

NFData AdminDisableProviderForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser

type Rep AdminDisableProviderForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser

type Rep AdminDisableProviderForUser = D1 (MetaData "AdminDisableProviderForUser" "Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser" "amazonka-cognito-idp-1.6.1-IATNKTGZSOc4TejpW4Ifw7" False) (C1 (MetaCons "AdminDisableProviderForUser'" PrefixI True) (S1 (MetaSel (Just "_adpfuUserPoolId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_adpfuUser") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ProviderUserIdentifierType)))
type Rs AdminDisableProviderForUser Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser

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 # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser

Data AdminDisableProviderForUserResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser

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 # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser

Show AdminDisableProviderForUserResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser

Generic AdminDisableProviderForUserResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser

NFData AdminDisableProviderForUserResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser

type Rep AdminDisableProviderForUserResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser

type Rep AdminDisableProviderForUserResponse = D1 (MetaData "AdminDisableProviderForUserResponse" "Network.AWS.CognitoIdentityProvider.AdminDisableProviderForUser" "amazonka-cognito-idp-1.6.1-IATNKTGZSOc4TejpW4Ifw7" True) (C1 (MetaCons "AdminDisableProviderForUserResponse'" PrefixI True) (S1 (MetaSel (Just "_adpfursResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses