amazonka-cognito-identity-1.6.1: Amazon Cognito Identity 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.CognitoIdentity

Contents

Description

Amazon Cognito

Amazon Cognito is a web service that delivers scoped temporary credentials to mobile devices and other untrusted environments. Amazon Cognito uniquely identifies a device and supplies the user with a consistent identity over the lifetime of an application.

Using Amazon Cognito, you can enable authentication with one or more third-party identity providers (Facebook, Google, or Login with Amazon), and you can also choose to support unauthenticated access from your app. Cognito delivers a unique identifier for each user and acts as an OpenID token provider trusted by AWS Security Token Service (STS) to access temporary, limited-privilege AWS credentials.

To provide end-user credentials, first make an unsigned call to GetId . If the end user is authenticated with one of the supported identity providers, set the Logins map with the identity provider token. GetId returns a unique identifier for the user.

Next, make an unsigned call to GetCredentialsForIdentity . This call expects the same Logins map as the GetId call, as well as the IdentityID originally returned by GetId . Assuming your identity pool has been configured via the SetIdentityPoolRoles operation, GetCredentialsForIdentity will return AWS credentials for your use. If your pool has not been configured with SetIdentityPoolRoles , or if you want to follow legacy flow, make an unsigned call to GetOpenIdToken , which returns the OpenID token necessary to call STS and retrieve AWS credentials. This call expects the same Logins map as the GetId call, as well as the IdentityID originally returned by GetId . The token returned by GetOpenIdToken can be passed to the STS operation AssumeRoleWithWebIdentity to retrieve AWS credentials.

If you want to use Amazon Cognito in an Android, iOS, or Unity application, you will probably want to make API calls via the AWS Mobile SDK. To learn more, see the AWS Mobile SDK Developer Guide .

Synopsis

Service Configuration

cognitoIdentity :: Service Source #

API version 2014-06-30 of the Amazon Cognito Identity SDK configuration.

Errors

Error matchers are designed for use with the functions provided by Control.Exception.Lens. This allows catching (and rethrowing) service specific errors returned by CognitoIdentity.

InvalidIdentityPoolConfigurationException

_InvalidIdentityPoolConfigurationException :: AsError a => Getting (First ServiceError) a ServiceError Source #

Thrown if the identity pool has no role associated for the given auth type (auth/unauth) or if the AssumeRole fails.

InvalidParameterException

_InvalidParameterException :: AsError a => Getting (First ServiceError) a ServiceError Source #

Thrown for missing or bad input parameter(s).

NotAuthorizedException

_NotAuthorizedException :: AsError a => Getting (First ServiceError) a ServiceError Source #

Thrown when a user is not authorized to access the requested resource.

InternalErrorException

_InternalErrorException :: AsError a => Getting (First ServiceError) a ServiceError Source #

Thrown when the service encounters an error during processing the request.

ExternalServiceException

_ExternalServiceException :: AsError a => Getting (First ServiceError) a ServiceError Source #

An exception thrown when a dependent service such as Facebook or Twitter is not responding

TooManyRequestsException

_TooManyRequestsException :: AsError a => Getting (First ServiceError) a ServiceError Source #

Thrown when a request is throttled.

ConcurrentModificationException

_ConcurrentModificationException :: AsError a => Getting (First ServiceError) a ServiceError Source #

Thrown if there are parallel requests to modify a resource.

ResourceConflictException

_ResourceConflictException :: AsError a => Getting (First ServiceError) a ServiceError Source #

Thrown when a user tries to use a login which is already linked to another account.

DeveloperUserAlreadyRegisteredException

_DeveloperUserAlreadyRegisteredException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The provided developer user identifier is already registered with Cognito under a different identity ID.

ResourceNotFoundException

_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #

Thrown when the requested resource (for example, a dataset or record) does not exist.

LimitExceededException

_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #

Thrown when the total number of user pools has exceeded a preset limit.

Waiters

Waiters poll by repeatedly sending a request until some remote success condition configured by the Wait specification is fulfilled. The Wait specification determines how many attempts should be made, in addition to delay and retry strategies.

Operations

Some AWS operations return results that are incomplete and require subsequent requests in order to obtain the entire result set. The process of sending subsequent requests to continue where a previous request left off is called pagination. For example, the ListObjects operation of Amazon S3 returns up to 1000 objects at a time, and you must send subsequent requests with the appropriate Marker in order to retrieve the next page of results.

Operations that have an AWSPager instance can transparently perform subsequent requests, correctly setting Markers and other request facets to iterate through the entire result set of a truncated API operation. Operations which support this have an additional note in the documentation.

Many operations have the ability to filter results on the server side. See the individual operation parameters for details.

GetOpenIdToken

GetOpenIdTokenForDeveloperIdentity

DescribeIdentityPool

GetId

DeleteIdentityPool

UpdateIdentityPool

UnlinkDeveloperIdentity

GetIdentityPoolRoles

ListIdentityPools

GetCredentialsForIdentity

DeleteIdentities

SetIdentityPoolRoles

ListIdentities

LookupDeveloperIdentity

UnlinkIdentity

DescribeIdentity

CreateIdentityPool

MergeDeveloperIdentities

Types

AmbiguousRoleResolutionType

data AmbiguousRoleResolutionType Source #

Constructors

AuthenticatedRole 
Deny 
Instances
Bounded AmbiguousRoleResolutionType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Enum AmbiguousRoleResolutionType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Eq AmbiguousRoleResolutionType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Data AmbiguousRoleResolutionType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Methods

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

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

toConstr :: AmbiguousRoleResolutionType -> Constr #

dataTypeOf :: AmbiguousRoleResolutionType -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord AmbiguousRoleResolutionType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Read AmbiguousRoleResolutionType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Show AmbiguousRoleResolutionType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Generic AmbiguousRoleResolutionType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Associated Types

type Rep AmbiguousRoleResolutionType :: Type -> Type #

Hashable AmbiguousRoleResolutionType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

ToJSON AmbiguousRoleResolutionType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

FromJSON AmbiguousRoleResolutionType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

ToHeader AmbiguousRoleResolutionType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

ToQuery AmbiguousRoleResolutionType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

ToByteString AmbiguousRoleResolutionType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

FromText AmbiguousRoleResolutionType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

ToText AmbiguousRoleResolutionType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

NFData AmbiguousRoleResolutionType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

type Rep AmbiguousRoleResolutionType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

type Rep AmbiguousRoleResolutionType = D1 (MetaData "AmbiguousRoleResolutionType" "Network.AWS.CognitoIdentity.Types.Sum" "amazonka-cognito-identity-1.6.1-JxIOswo68EQKpplMh7b7yR" False) (C1 (MetaCons "AuthenticatedRole" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Deny" PrefixI False) (U1 :: Type -> Type))

CognitoErrorCode

data CognitoErrorCode Source #

Instances
Bounded CognitoErrorCode Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Enum CognitoErrorCode Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Eq CognitoErrorCode Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Data CognitoErrorCode Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Methods

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

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

toConstr :: CognitoErrorCode -> Constr #

dataTypeOf :: CognitoErrorCode -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord CognitoErrorCode Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Read CognitoErrorCode Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Show CognitoErrorCode Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Generic CognitoErrorCode Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Associated Types

type Rep CognitoErrorCode :: Type -> Type #

Hashable CognitoErrorCode Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

FromJSON CognitoErrorCode Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

ToHeader CognitoErrorCode Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

ToQuery CognitoErrorCode Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

ToByteString CognitoErrorCode Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

FromText CognitoErrorCode Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

ToText CognitoErrorCode Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

NFData CognitoErrorCode Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Methods

rnf :: CognitoErrorCode -> () #

type Rep CognitoErrorCode Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

type Rep CognitoErrorCode = D1 (MetaData "CognitoErrorCode" "Network.AWS.CognitoIdentity.Types.Sum" "amazonka-cognito-identity-1.6.1-JxIOswo68EQKpplMh7b7yR" False) (C1 (MetaCons "AccessDenied" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "InternalServerError" PrefixI False) (U1 :: Type -> Type))

MappingRuleMatchType

data MappingRuleMatchType Source #

Instances
Bounded MappingRuleMatchType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Enum MappingRuleMatchType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Eq MappingRuleMatchType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Data MappingRuleMatchType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Methods

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

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

toConstr :: MappingRuleMatchType -> Constr #

dataTypeOf :: MappingRuleMatchType -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord MappingRuleMatchType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Read MappingRuleMatchType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Show MappingRuleMatchType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Generic MappingRuleMatchType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Associated Types

type Rep MappingRuleMatchType :: Type -> Type #

Hashable MappingRuleMatchType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

ToJSON MappingRuleMatchType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

FromJSON MappingRuleMatchType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

ToHeader MappingRuleMatchType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

ToQuery MappingRuleMatchType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

ToByteString MappingRuleMatchType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

FromText MappingRuleMatchType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

ToText MappingRuleMatchType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

NFData MappingRuleMatchType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Methods

rnf :: MappingRuleMatchType -> () #

type Rep MappingRuleMatchType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

type Rep MappingRuleMatchType = D1 (MetaData "MappingRuleMatchType" "Network.AWS.CognitoIdentity.Types.Sum" "amazonka-cognito-identity-1.6.1-JxIOswo68EQKpplMh7b7yR" False) ((C1 (MetaCons "Contains" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Equals" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "NotEqual" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "StartsWith" PrefixI False) (U1 :: Type -> Type)))

RoleMappingType

data RoleMappingType Source #

Constructors

Rules 
Token 
Instances
Bounded RoleMappingType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Enum RoleMappingType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Eq RoleMappingType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Data RoleMappingType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Methods

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

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

toConstr :: RoleMappingType -> Constr #

dataTypeOf :: RoleMappingType -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord RoleMappingType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Read RoleMappingType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Show RoleMappingType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Generic RoleMappingType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Associated Types

type Rep RoleMappingType :: Type -> Type #

Hashable RoleMappingType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

ToJSON RoleMappingType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

FromJSON RoleMappingType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

ToHeader RoleMappingType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

ToQuery RoleMappingType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

ToByteString RoleMappingType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

FromText RoleMappingType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

ToText RoleMappingType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

NFData RoleMappingType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

Methods

rnf :: RoleMappingType -> () #

type Rep RoleMappingType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Sum

type Rep RoleMappingType = D1 (MetaData "RoleMappingType" "Network.AWS.CognitoIdentity.Types.Sum" "amazonka-cognito-identity-1.6.1-JxIOswo68EQKpplMh7b7yR" False) (C1 (MetaCons "Rules" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Token" PrefixI False) (U1 :: Type -> Type))

CognitoIdentityProvider

data CognitoIdentityProvider Source #

A provider representing an Amazon Cognito Identity User Pool and its client ID.

See: cognitoIdentityProvider smart constructor.

Instances
Eq CognitoIdentityProvider Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Data CognitoIdentityProvider Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Methods

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

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

toConstr :: CognitoIdentityProvider -> Constr #

dataTypeOf :: CognitoIdentityProvider -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CognitoIdentityProvider Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Show CognitoIdentityProvider Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Generic CognitoIdentityProvider Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Associated Types

type Rep CognitoIdentityProvider :: Type -> Type #

Hashable CognitoIdentityProvider Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

ToJSON CognitoIdentityProvider Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

FromJSON CognitoIdentityProvider Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

NFData CognitoIdentityProvider Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Methods

rnf :: CognitoIdentityProvider -> () #

type Rep CognitoIdentityProvider Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

type Rep CognitoIdentityProvider = D1 (MetaData "CognitoIdentityProvider" "Network.AWS.CognitoIdentity.Types.Product" "amazonka-cognito-identity-1.6.1-JxIOswo68EQKpplMh7b7yR" False) (C1 (MetaCons "CognitoIdentityProvider'" PrefixI True) (S1 (MetaSel (Just "_cipClientId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_cipServerSideTokenCheck") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_cipProviderName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))

cognitoIdentityProvider :: CognitoIdentityProvider Source #

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

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

  • cipClientId - The client ID for the Amazon Cognito Identity User Pool.
  • cipServerSideTokenCheck - TRUE if server-side token validation is enabled for the identity provider’s token.
  • cipProviderName - The provider name for an Amazon Cognito Identity User Pool. For example, cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789 .

cipClientId :: Lens' CognitoIdentityProvider (Maybe Text) Source #

The client ID for the Amazon Cognito Identity User Pool.

cipServerSideTokenCheck :: Lens' CognitoIdentityProvider (Maybe Bool) Source #

TRUE if server-side token validation is enabled for the identity provider’s token.

cipProviderName :: Lens' CognitoIdentityProvider (Maybe Text) Source #

The provider name for an Amazon Cognito Identity User Pool. For example, cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789 .

Credentials

data Credentials Source #

Credentials for the provided identity ID.

See: credentials smart constructor.

Instances
Eq Credentials Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Data Credentials Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Methods

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

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

toConstr :: Credentials -> Constr #

dataTypeOf :: Credentials -> DataType #

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

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

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

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

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

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

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

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

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

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

Read Credentials Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Show Credentials Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Generic Credentials Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Associated Types

type Rep Credentials :: Type -> Type #

Hashable Credentials Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

FromJSON Credentials Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

NFData Credentials Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Methods

rnf :: Credentials -> () #

type Rep Credentials Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

type Rep Credentials = D1 (MetaData "Credentials" "Network.AWS.CognitoIdentity.Types.Product" "amazonka-cognito-identity-1.6.1-JxIOswo68EQKpplMh7b7yR" False) (C1 (MetaCons "Credentials'" PrefixI True) ((S1 (MetaSel (Just "_cSessionToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cExpiration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 (MetaSel (Just "_cSecretKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cAccessKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))

credentials :: Credentials Source #

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

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

  • cSessionToken - The Session Token portion of the credentials
  • cExpiration - The date at which these credentials will expire.
  • cSecretKey - The Secret Access Key portion of the credentials
  • cAccessKeyId - The Access Key portion of the credentials.

cSessionToken :: Lens' Credentials (Maybe Text) Source #

The Session Token portion of the credentials

cExpiration :: Lens' Credentials (Maybe UTCTime) Source #

The date at which these credentials will expire.

cSecretKey :: Lens' Credentials (Maybe Text) Source #

The Secret Access Key portion of the credentials

cAccessKeyId :: Lens' Credentials (Maybe Text) Source #

The Access Key portion of the credentials.

IdentityDescription

data IdentityDescription Source #

A description of the identity.

See: identityDescription smart constructor.

Instances
Eq IdentityDescription Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Data IdentityDescription Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Methods

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

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

toConstr :: IdentityDescription -> Constr #

dataTypeOf :: IdentityDescription -> DataType #

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

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

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

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

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

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

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

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

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

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

Read IdentityDescription Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Show IdentityDescription Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Generic IdentityDescription Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Associated Types

type Rep IdentityDescription :: Type -> Type #

Hashable IdentityDescription Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

FromJSON IdentityDescription Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

NFData IdentityDescription Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Methods

rnf :: IdentityDescription -> () #

type Rep IdentityDescription Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

type Rep IdentityDescription = D1 (MetaData "IdentityDescription" "Network.AWS.CognitoIdentity.Types.Product" "amazonka-cognito-identity-1.6.1-JxIOswo68EQKpplMh7b7yR" False) (C1 (MetaCons "IdentityDescription'" PrefixI True) ((S1 (MetaSel (Just "_idLastModifiedDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 (MetaSel (Just "_idCreationDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 (MetaSel (Just "_idLogins") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_idIdentityId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))

identityDescription :: IdentityDescription Source #

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

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

  • idLastModifiedDate - Date on which the identity was last modified.
  • idCreationDate - Date on which the identity was created.
  • idLogins - A set of optional name-value pairs that map provider names to provider tokens.
  • idIdentityId - A unique identifier in the format REGION:GUID.

idLastModifiedDate :: Lens' IdentityDescription (Maybe UTCTime) Source #

Date on which the identity was last modified.

idCreationDate :: Lens' IdentityDescription (Maybe UTCTime) Source #

Date on which the identity was created.

idLogins :: Lens' IdentityDescription [Text] Source #

A set of optional name-value pairs that map provider names to provider tokens.

idIdentityId :: Lens' IdentityDescription (Maybe Text) Source #

A unique identifier in the format REGION:GUID.

IdentityPool

data IdentityPool Source #

An object representing an Amazon Cognito identity pool.

See: identityPool smart constructor.

Instances
Eq IdentityPool Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Data IdentityPool Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Methods

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

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

toConstr :: IdentityPool -> Constr #

dataTypeOf :: IdentityPool -> DataType #

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

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

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

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

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

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

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

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

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

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

Read IdentityPool Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Show IdentityPool Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Generic IdentityPool Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Associated Types

type Rep IdentityPool :: Type -> Type #

Hashable IdentityPool Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

ToJSON IdentityPool Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

FromJSON IdentityPool Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

NFData IdentityPool Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Methods

rnf :: IdentityPool -> () #

type Rep IdentityPool Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

type Rep IdentityPool = D1 (MetaData "IdentityPool" "Network.AWS.CognitoIdentity.Types.Product" "amazonka-cognito-identity-1.6.1-JxIOswo68EQKpplMh7b7yR" False) (C1 (MetaCons "IdentityPool'" PrefixI True) (((S1 (MetaSel (Just "_ipSamlProviderARNs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_ipSupportedLoginProviders") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text)))) :*: (S1 (MetaSel (Just "_ipDeveloperProviderName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ipOpenIdConnectProviderARNs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])))) :*: ((S1 (MetaSel (Just "_ipCognitoIdentityProviders") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [CognitoIdentityProvider])) :*: S1 (MetaSel (Just "_ipIdentityPoolId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_ipIdentityPoolName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ipAllowUnauthenticatedIdentities") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)))))

identityPool Source #

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

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

ipSamlProviderARNs :: Lens' IdentityPool [Text] Source #

An array of Amazon Resource Names (ARNs) of the SAML provider for your identity pool.

ipSupportedLoginProviders :: Lens' IdentityPool (HashMap Text Text) Source #

Optional key:value pairs mapping provider names to provider app IDs.

ipDeveloperProviderName :: Lens' IdentityPool (Maybe Text) Source #

The "domain" by which Cognito will refer to your users.

ipOpenIdConnectProviderARNs :: Lens' IdentityPool [Text] Source #

A list of OpendID Connect provider ARNs.

ipCognitoIdentityProviders :: Lens' IdentityPool [CognitoIdentityProvider] Source #

A list representing an Amazon Cognito Identity User Pool and its client ID.

ipIdentityPoolId :: Lens' IdentityPool Text Source #

An identity pool ID in the format REGION:GUID.

ipIdentityPoolName :: Lens' IdentityPool Text Source #

A string that you provide.

ipAllowUnauthenticatedIdentities :: Lens' IdentityPool Bool Source #

TRUE if the identity pool supports unauthenticated logins.

IdentityPoolShortDescription

data IdentityPoolShortDescription Source #

A description of the identity pool.

See: identityPoolShortDescription smart constructor.

Instances
Eq IdentityPoolShortDescription Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Data IdentityPoolShortDescription Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Methods

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

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

toConstr :: IdentityPoolShortDescription -> Constr #

dataTypeOf :: IdentityPoolShortDescription -> DataType #

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

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

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

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

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

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

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

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

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

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

Read IdentityPoolShortDescription Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Show IdentityPoolShortDescription Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Generic IdentityPoolShortDescription Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Associated Types

type Rep IdentityPoolShortDescription :: Type -> Type #

Hashable IdentityPoolShortDescription Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

FromJSON IdentityPoolShortDescription Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

NFData IdentityPoolShortDescription Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

type Rep IdentityPoolShortDescription Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

type Rep IdentityPoolShortDescription = D1 (MetaData "IdentityPoolShortDescription" "Network.AWS.CognitoIdentity.Types.Product" "amazonka-cognito-identity-1.6.1-JxIOswo68EQKpplMh7b7yR" False) (C1 (MetaCons "IdentityPoolShortDescription'" PrefixI True) (S1 (MetaSel (Just "_ipsdIdentityPoolId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ipsdIdentityPoolName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))

identityPoolShortDescription :: IdentityPoolShortDescription Source #

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

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

ipsdIdentityPoolId :: Lens' IdentityPoolShortDescription (Maybe Text) Source #

An identity pool ID in the format REGION:GUID.

MappingRule

data MappingRule Source #

A rule that maps a claim name, a claim value, and a match type to a role ARN.

See: mappingRule smart constructor.

Instances
Eq MappingRule Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Data MappingRule Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Methods

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

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

toConstr :: MappingRule -> Constr #

dataTypeOf :: MappingRule -> DataType #

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

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

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

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

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

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

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

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

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

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

Read MappingRule Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Show MappingRule Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Generic MappingRule Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Associated Types

type Rep MappingRule :: Type -> Type #

Hashable MappingRule Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

ToJSON MappingRule Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

FromJSON MappingRule Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

NFData MappingRule Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Methods

rnf :: MappingRule -> () #

type Rep MappingRule Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

type Rep MappingRule = D1 (MetaData "MappingRule" "Network.AWS.CognitoIdentity.Types.Product" "amazonka-cognito-identity-1.6.1-JxIOswo68EQKpplMh7b7yR" False) (C1 (MetaCons "MappingRule'" PrefixI True) ((S1 (MetaSel (Just "_mrClaim") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_mrMatchType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 MappingRuleMatchType)) :*: (S1 (MetaSel (Just "_mrValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_mrRoleARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))

mappingRule Source #

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

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

  • mrClaim - The claim name that must be present in the token, for example, "isAdmin" or "paid".
  • mrMatchType - The match condition that specifies how closely the claim value in the IdP token must match Value .
  • mrValue - A brief string that the claim must match, for example, "paid" or "yes".
  • mrRoleARN - The role ARN.

mrClaim :: Lens' MappingRule Text Source #

The claim name that must be present in the token, for example, "isAdmin" or "paid".

mrMatchType :: Lens' MappingRule MappingRuleMatchType Source #

The match condition that specifies how closely the claim value in the IdP token must match Value .

mrValue :: Lens' MappingRule Text Source #

A brief string that the claim must match, for example, "paid" or "yes".

RoleMapping

data RoleMapping Source #

A role mapping.

See: roleMapping smart constructor.

Instances
Eq RoleMapping Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Data RoleMapping Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Methods

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

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

toConstr :: RoleMapping -> Constr #

dataTypeOf :: RoleMapping -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RoleMapping Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Show RoleMapping Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Generic RoleMapping Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Associated Types

type Rep RoleMapping :: Type -> Type #

Hashable RoleMapping Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

ToJSON RoleMapping Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

FromJSON RoleMapping Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

NFData RoleMapping Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Methods

rnf :: RoleMapping -> () #

type Rep RoleMapping Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

type Rep RoleMapping = D1 (MetaData "RoleMapping" "Network.AWS.CognitoIdentity.Types.Product" "amazonka-cognito-identity-1.6.1-JxIOswo68EQKpplMh7b7yR" False) (C1 (MetaCons "RoleMapping'" PrefixI True) (S1 (MetaSel (Just "_rmRulesConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RulesConfigurationType)) :*: (S1 (MetaSel (Just "_rmAmbiguousRoleResolution") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AmbiguousRoleResolutionType)) :*: S1 (MetaSel (Just "_rmType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 RoleMappingType))))

roleMapping Source #

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

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

  • rmRulesConfiguration - The rules to be used for mapping users to roles. If you specify Rules as the role mapping type, RulesConfiguration is required.
  • rmAmbiguousRoleResolution - If you specify Token or Rules as the Type , AmbiguousRoleResolution is required. Specifies the action to be taken if either no rules match the claim value for the Rules type, or there is no cognito:preferred_role claim and there are multiple cognito:roles matches for the Token type.
  • rmType - The role mapping type. Token will use cognito:roles and cognito:preferred_role claims from the Cognito identity provider token to map groups to roles. Rules will attempt to match claims from the token to map to a role.

rmRulesConfiguration :: Lens' RoleMapping (Maybe RulesConfigurationType) Source #

The rules to be used for mapping users to roles. If you specify Rules as the role mapping type, RulesConfiguration is required.

rmAmbiguousRoleResolution :: Lens' RoleMapping (Maybe AmbiguousRoleResolutionType) Source #

If you specify Token or Rules as the Type , AmbiguousRoleResolution is required. Specifies the action to be taken if either no rules match the claim value for the Rules type, or there is no cognito:preferred_role claim and there are multiple cognito:roles matches for the Token type.

rmType :: Lens' RoleMapping RoleMappingType Source #

The role mapping type. Token will use cognito:roles and cognito:preferred_role claims from the Cognito identity provider token to map groups to roles. Rules will attempt to match claims from the token to map to a role.

RulesConfigurationType

data RulesConfigurationType Source #

A container for rules.

See: rulesConfigurationType smart constructor.

Instances
Eq RulesConfigurationType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Data RulesConfigurationType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Methods

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

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

toConstr :: RulesConfigurationType -> Constr #

dataTypeOf :: RulesConfigurationType -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RulesConfigurationType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Show RulesConfigurationType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Generic RulesConfigurationType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Associated Types

type Rep RulesConfigurationType :: Type -> Type #

Hashable RulesConfigurationType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

ToJSON RulesConfigurationType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

FromJSON RulesConfigurationType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

NFData RulesConfigurationType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Methods

rnf :: RulesConfigurationType -> () #

type Rep RulesConfigurationType Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

type Rep RulesConfigurationType = D1 (MetaData "RulesConfigurationType" "Network.AWS.CognitoIdentity.Types.Product" "amazonka-cognito-identity-1.6.1-JxIOswo68EQKpplMh7b7yR" True) (C1 (MetaCons "RulesConfigurationType'" PrefixI True) (S1 (MetaSel (Just "_rctRules") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (List1 MappingRule))))

rulesConfigurationType Source #

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

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

  • rctRules - An array of rules. You can specify up to 25 rules per identity provider. Rules are evaluated in order. The first one to match specifies the role.

rctRules :: Lens' RulesConfigurationType (NonEmpty MappingRule) Source #

An array of rules. You can specify up to 25 rules per identity provider. Rules are evaluated in order. The first one to match specifies the role.

UnprocessedIdentityId

data UnprocessedIdentityId Source #

An array of UnprocessedIdentityId objects, each of which contains an ErrorCode and IdentityId.

See: unprocessedIdentityId smart constructor.

Instances
Eq UnprocessedIdentityId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Data UnprocessedIdentityId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Methods

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

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

toConstr :: UnprocessedIdentityId -> Constr #

dataTypeOf :: UnprocessedIdentityId -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UnprocessedIdentityId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Show UnprocessedIdentityId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Generic UnprocessedIdentityId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Associated Types

type Rep UnprocessedIdentityId :: Type -> Type #

Hashable UnprocessedIdentityId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

FromJSON UnprocessedIdentityId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

NFData UnprocessedIdentityId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

Methods

rnf :: UnprocessedIdentityId -> () #

type Rep UnprocessedIdentityId Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.Types.Product

type Rep UnprocessedIdentityId = D1 (MetaData "UnprocessedIdentityId" "Network.AWS.CognitoIdentity.Types.Product" "amazonka-cognito-identity-1.6.1-JxIOswo68EQKpplMh7b7yR" False) (C1 (MetaCons "UnprocessedIdentityId'" PrefixI True) (S1 (MetaSel (Just "_uiiErrorCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe CognitoErrorCode)) :*: S1 (MetaSel (Just "_uiiIdentityId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))

unprocessedIdentityId :: UnprocessedIdentityId Source #

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

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

  • uiiErrorCode - The error code indicating the type of error that occurred.
  • uiiIdentityId - A unique identifier in the format REGION:GUID.

uiiErrorCode :: Lens' UnprocessedIdentityId (Maybe CognitoErrorCode) Source #

The error code indicating the type of error that occurred.

uiiIdentityId :: Lens' UnprocessedIdentityId (Maybe Text) Source #

A unique identifier in the format REGION:GUID.