amazonka-cognito-idp-1.6.0: 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 # 
Data CreateUserPoolClient Source # 

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 # 
Show CreateUserPoolClient Source # 
Generic CreateUserPoolClient Source # 
Hashable CreateUserPoolClient Source # 
ToJSON CreateUserPoolClient Source # 
NFData CreateUserPoolClient Source # 

Methods

rnf :: CreateUserPoolClient -> () #

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

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 # 
Data CreateUserPoolClientResponse Source # 

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 # 
Generic CreateUserPoolClientResponse Source # 
NFData CreateUserPoolClientResponse Source # 
type Rep CreateUserPoolClientResponse Source # 
type Rep CreateUserPoolClientResponse = D1 * (MetaData "CreateUserPoolClientResponse" "Network.AWS.CognitoIdentityProvider.CreateUserPoolClient" "amazonka-cognito-idp-1.6.0-JhJp6CX0k821Z1WSNBuBfd" False) (C1 * (MetaCons "CreateUserPoolClientResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cupcrsUserPoolClient") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe UserPoolClientType))) (S1 * (MetaSel (Just Symbol "_cupcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses