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.CreateUserPoolClient

Contents

Description

Creates the user pool client.

Synopsis

Creating a Request

createUserPoolClient Source #

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

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

  • cupcRefreshTokenValidity - The time limit, in days, after which the refresh token is no longer valid and cannot be used.
  • cupcExplicitAuthFlows - The explicit authentication flows.
  • cupcSupportedIdentityProviders - A list of provider names for the identity providers that are supported on this client.
  • cupcLogoutURLs - A list of allowed logout URLs for the identity providers.
  • cupcAllowedOAuthFlowsUserPoolClient - Set to True if the client is allowed to follow the OAuth protocol when interacting with Cognito user pools.
  • cupcGenerateSecret - Boolean to specify whether you want to generate a secret for the user pool client being created.
  • cupcDefaultRedirectURI - The default redirect URI. Must be in the CallbackURLs list.
  • cupcWriteAttributes - The write attributes.
  • cupcReadAttributes - The read attributes.
  • cupcAllowedOAuthScopes - A list of allowed OAuth scopes. Currently supported values are "phone" , "email" , "openid" , and Cognito .
  • cupcAllowedOAuthFlows - Set to code to initiate a code grant flow, which provides an authorization code as the response. This code can be exchanged for access tokens with the token endpoint. Set to token to specify that the client should get the access token (and, optionally, ID token, based on scopes) directly.
  • cupcAnalyticsConfiguration - The Amazon Pinpoint analytics configuration for collecting metrics for this user pool.
  • cupcCallbackURLs - A list of allowed callback URLs for the identity providers.
  • cupcUserPoolId - The user pool ID for the user pool where you want to create a user pool client.
  • cupcClientName - The client name for the user pool client you would like to create.

data CreateUserPoolClient Source #

Represents the request to create a user pool client.

See: createUserPoolClient smart constructor.

Instances
Eq CreateUserPoolClient Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPoolClient

Data CreateUserPoolClient Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPoolClient

Methods

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

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

toConstr :: CreateUserPoolClient -> Constr #

dataTypeOf :: CreateUserPoolClient -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateUserPoolClient Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPoolClient

Show CreateUserPoolClient Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPoolClient

Generic CreateUserPoolClient Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPoolClient

Associated Types

type Rep CreateUserPoolClient :: Type -> Type #

Hashable CreateUserPoolClient Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPoolClient

ToJSON CreateUserPoolClient Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPoolClient

AWSRequest CreateUserPoolClient Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPoolClient

Associated Types

type Rs CreateUserPoolClient :: Type #

ToHeaders CreateUserPoolClient Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPoolClient

ToPath CreateUserPoolClient Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPoolClient

ToQuery CreateUserPoolClient Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPoolClient

NFData CreateUserPoolClient Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPoolClient

Methods

rnf :: CreateUserPoolClient -> () #

type Rep CreateUserPoolClient Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPoolClient

type Rep CreateUserPoolClient = D1 (MetaData "CreateUserPoolClient" "Network.AWS.CognitoIdentityProvider.CreateUserPoolClient" "amazonka-cognito-idp-1.6.1-IATNKTGZSOc4TejpW4Ifw7" False) (C1 (MetaCons "CreateUserPoolClient'" PrefixI True) (((S1 (MetaSel (Just "_cupcRefreshTokenValidity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)) :*: (S1 (MetaSel (Just "_cupcExplicitAuthFlows") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ExplicitAuthFlowsType])) :*: S1 (MetaSel (Just "_cupcSupportedIdentityProviders") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])))) :*: ((S1 (MetaSel (Just "_cupcLogoutURLs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_cupcAllowedOAuthFlowsUserPoolClient") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 (MetaSel (Just "_cupcGenerateSecret") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_cupcDefaultRedirectURI") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) :*: (((S1 (MetaSel (Just "_cupcWriteAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_cupcReadAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 (MetaSel (Just "_cupcAllowedOAuthScopes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_cupcAllowedOAuthFlows") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [OAuthFlowType])))) :*: ((S1 (MetaSel (Just "_cupcAnalyticsConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AnalyticsConfigurationType)) :*: S1 (MetaSel (Just "_cupcCallbackURLs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 (MetaSel (Just "_cupcUserPoolId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_cupcClientName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs CreateUserPoolClient Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPoolClient

Request Lenses

cupcRefreshTokenValidity :: Lens' CreateUserPoolClient (Maybe Natural) Source #

The time limit, in days, after which the refresh token is no longer valid and cannot be used.

cupcSupportedIdentityProviders :: Lens' CreateUserPoolClient [Text] Source #

A list of provider names for the identity providers that are supported on this client.

cupcLogoutURLs :: Lens' CreateUserPoolClient [Text] Source #

A list of allowed logout URLs for the identity providers.

cupcAllowedOAuthFlowsUserPoolClient :: Lens' CreateUserPoolClient (Maybe Bool) Source #

Set to True if the client is allowed to follow the OAuth protocol when interacting with Cognito user pools.

cupcGenerateSecret :: Lens' CreateUserPoolClient (Maybe Bool) Source #

Boolean to specify whether you want to generate a secret for the user pool client being created.

cupcDefaultRedirectURI :: Lens' CreateUserPoolClient (Maybe Text) Source #

The default redirect URI. Must be in the CallbackURLs list.

cupcAllowedOAuthScopes :: Lens' CreateUserPoolClient [Text] Source #

A list of allowed OAuth scopes. Currently supported values are "phone" , "email" , "openid" , and Cognito .

cupcAllowedOAuthFlows :: Lens' CreateUserPoolClient [OAuthFlowType] Source #

Set to code to initiate a code grant flow, which provides an authorization code as the response. This code can be exchanged for access tokens with the token endpoint. Set to token to specify that the client should get the access token (and, optionally, ID token, based on scopes) directly.

cupcAnalyticsConfiguration :: Lens' CreateUserPoolClient (Maybe AnalyticsConfigurationType) Source #

The Amazon Pinpoint analytics configuration for collecting metrics for this user pool.

cupcCallbackURLs :: Lens' CreateUserPoolClient [Text] Source #

A list of allowed callback URLs for the identity providers.

cupcUserPoolId :: Lens' CreateUserPoolClient Text Source #

The user pool ID for the user pool where you want to create a user pool client.

cupcClientName :: Lens' CreateUserPoolClient Text Source #

The client name for the user pool client you would like to create.

Destructuring the Response

createUserPoolClientResponse Source #

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

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

data CreateUserPoolClientResponse Source #

Represents the response from the server to create a user pool client.

See: createUserPoolClientResponse smart constructor.

Instances
Eq CreateUserPoolClientResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPoolClient

Data CreateUserPoolClientResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPoolClient

Methods

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

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

toConstr :: CreateUserPoolClientResponse -> Constr #

dataTypeOf :: CreateUserPoolClientResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CreateUserPoolClientResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPoolClient

Generic CreateUserPoolClientResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPoolClient

Associated Types

type Rep CreateUserPoolClientResponse :: Type -> Type #

NFData CreateUserPoolClientResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPoolClient

type Rep CreateUserPoolClientResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentityProvider.CreateUserPoolClient

type Rep CreateUserPoolClientResponse = D1 (MetaData "CreateUserPoolClientResponse" "Network.AWS.CognitoIdentityProvider.CreateUserPoolClient" "amazonka-cognito-idp-1.6.1-IATNKTGZSOc4TejpW4Ifw7" False) (C1 (MetaCons "CreateUserPoolClientResponse'" PrefixI True) (S1 (MetaSel (Just "_cupcrsUserPoolClient") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe UserPoolClientType)) :*: S1 (MetaSel (Just "_cupcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses