Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Updates the specified user pool app client with the specified attributes. You can get a list of the current user pool app client settings using DescribeUserPoolClient.
If you don't provide a value for an attribute, it will be set to the default value.
You can also use this operation to enable token revocation for user pool clients. For more information about revoking tokens, see RevokeToken.
Synopsis
- data UpdateUserPoolClient = UpdateUserPoolClient' {
- refreshTokenValidity :: Maybe Natural
- explicitAuthFlows :: Maybe [ExplicitAuthFlowsType]
- supportedIdentityProviders :: Maybe [Text]
- logoutURLs :: Maybe [Text]
- allowedOAuthFlowsUserPoolClient :: Maybe Bool
- idTokenValidity :: Maybe Natural
- tokenValidityUnits :: Maybe TokenValidityUnitsType
- defaultRedirectURI :: Maybe Text
- enableTokenRevocation :: Maybe Bool
- writeAttributes :: Maybe [Text]
- preventUserExistenceErrors :: Maybe PreventUserExistenceErrorTypes
- accessTokenValidity :: Maybe Natural
- readAttributes :: Maybe [Text]
- allowedOAuthScopes :: Maybe [Text]
- allowedOAuthFlows :: Maybe [OAuthFlowType]
- analyticsConfiguration :: Maybe AnalyticsConfigurationType
- clientName :: Maybe Text
- callbackURLs :: Maybe [Text]
- userPoolId :: Text
- clientId :: Sensitive Text
- newUpdateUserPoolClient :: Text -> Text -> UpdateUserPoolClient
- updateUserPoolClient_refreshTokenValidity :: Lens' UpdateUserPoolClient (Maybe Natural)
- updateUserPoolClient_explicitAuthFlows :: Lens' UpdateUserPoolClient (Maybe [ExplicitAuthFlowsType])
- updateUserPoolClient_supportedIdentityProviders :: Lens' UpdateUserPoolClient (Maybe [Text])
- updateUserPoolClient_logoutURLs :: Lens' UpdateUserPoolClient (Maybe [Text])
- updateUserPoolClient_allowedOAuthFlowsUserPoolClient :: Lens' UpdateUserPoolClient (Maybe Bool)
- updateUserPoolClient_idTokenValidity :: Lens' UpdateUserPoolClient (Maybe Natural)
- updateUserPoolClient_tokenValidityUnits :: Lens' UpdateUserPoolClient (Maybe TokenValidityUnitsType)
- updateUserPoolClient_defaultRedirectURI :: Lens' UpdateUserPoolClient (Maybe Text)
- updateUserPoolClient_enableTokenRevocation :: Lens' UpdateUserPoolClient (Maybe Bool)
- updateUserPoolClient_writeAttributes :: Lens' UpdateUserPoolClient (Maybe [Text])
- updateUserPoolClient_preventUserExistenceErrors :: Lens' UpdateUserPoolClient (Maybe PreventUserExistenceErrorTypes)
- updateUserPoolClient_accessTokenValidity :: Lens' UpdateUserPoolClient (Maybe Natural)
- updateUserPoolClient_readAttributes :: Lens' UpdateUserPoolClient (Maybe [Text])
- updateUserPoolClient_allowedOAuthScopes :: Lens' UpdateUserPoolClient (Maybe [Text])
- updateUserPoolClient_allowedOAuthFlows :: Lens' UpdateUserPoolClient (Maybe [OAuthFlowType])
- updateUserPoolClient_analyticsConfiguration :: Lens' UpdateUserPoolClient (Maybe AnalyticsConfigurationType)
- updateUserPoolClient_clientName :: Lens' UpdateUserPoolClient (Maybe Text)
- updateUserPoolClient_callbackURLs :: Lens' UpdateUserPoolClient (Maybe [Text])
- updateUserPoolClient_userPoolId :: Lens' UpdateUserPoolClient Text
- updateUserPoolClient_clientId :: Lens' UpdateUserPoolClient Text
- data UpdateUserPoolClientResponse = UpdateUserPoolClientResponse' {}
- newUpdateUserPoolClientResponse :: Int -> UpdateUserPoolClientResponse
- updateUserPoolClientResponse_userPoolClient :: Lens' UpdateUserPoolClientResponse (Maybe UserPoolClientType)
- updateUserPoolClientResponse_httpStatus :: Lens' UpdateUserPoolClientResponse Int
Creating a Request
data UpdateUserPoolClient Source #
Represents the request to update the user pool client.
See: newUpdateUserPoolClient
smart constructor.
UpdateUserPoolClient' | |
|
Instances
newUpdateUserPoolClient Source #
:: Text | |
-> Text | |
-> UpdateUserPoolClient |
Create a value of UpdateUserPoolClient
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:refreshTokenValidity:UpdateUserPoolClient'
, updateUserPoolClient_refreshTokenValidity
- The time limit, in days, after which the refresh token is no longer
valid and cannot be used.
$sel:explicitAuthFlows:UpdateUserPoolClient'
, updateUserPoolClient_explicitAuthFlows
- The authentication flows that are supported by the user pool clients.
Flow names without the ALLOW_
prefix are deprecated in favor of new
names with the ALLOW_
prefix. Note that values with ALLOW_
prefix
cannot be used along with values without ALLOW_
prefix.
Valid values include:
ALLOW_ADMIN_USER_PASSWORD_AUTH
: Enable admin based user password authentication flowADMIN_USER_PASSWORD_AUTH
. This setting replaces theADMIN_NO_SRP_AUTH
setting. With this authentication flow, Cognito receives the password in the request instead of using the SRP (Secure Remote Password protocol) protocol to verify passwords.ALLOW_CUSTOM_AUTH
: Enable Lambda trigger based authentication.ALLOW_USER_PASSWORD_AUTH
: Enable user password-based authentication. In this flow, Cognito receives the password in the request instead of using the SRP protocol to verify passwords.ALLOW_USER_SRP_AUTH
: Enable SRP based authentication.ALLOW_REFRESH_TOKEN_AUTH
: Enable authflow to refresh tokens.
$sel:supportedIdentityProviders:UpdateUserPoolClient'
, updateUserPoolClient_supportedIdentityProviders
- A list of provider names for the identity providers that are supported
on this client.
$sel:logoutURLs:UpdateUserPoolClient'
, updateUserPoolClient_logoutURLs
- A list of allowed logout URLs for the identity providers.
$sel:allowedOAuthFlowsUserPoolClient:UpdateUserPoolClient'
, updateUserPoolClient_allowedOAuthFlowsUserPoolClient
- Set to true if the client is allowed to follow the OAuth protocol when
interacting with Cognito user pools.
$sel:idTokenValidity:UpdateUserPoolClient'
, updateUserPoolClient_idTokenValidity
- The time limit, after which the ID token is no longer valid and cannot
be used.
$sel:tokenValidityUnits:UpdateUserPoolClient'
, updateUserPoolClient_tokenValidityUnits
- The units in which the validity times are represented in. Default for
RefreshToken is days, and default for ID and access tokens are hours.
$sel:defaultRedirectURI:UpdateUserPoolClient'
, updateUserPoolClient_defaultRedirectURI
- The default redirect URI. Must be in the CallbackURLs
list.
A redirect URI must:
- Be an absolute URI.
- Be registered with the authorization server.
- Not include a fragment component.
See OAuth 2.0 - Redirection Endpoint.
Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.
App callback URLs such as myapp://example are also supported.
$sel:enableTokenRevocation:UpdateUserPoolClient'
, updateUserPoolClient_enableTokenRevocation
- Enables or disables token revocation. For more information about
revoking tokens, see
RevokeToken.
$sel:writeAttributes:UpdateUserPoolClient'
, updateUserPoolClient_writeAttributes
- The writeable attributes of the user pool.
$sel:preventUserExistenceErrors:UpdateUserPoolClient'
, updateUserPoolClient_preventUserExistenceErrors
- Use this setting to choose which errors and responses are returned by
Cognito APIs during authentication, account confirmation, and password
recovery when the user does not exist in the user pool. When set to
ENABLED
and the user does not exist, authentication returns an error
indicating either the username or password was incorrect, and account
confirmation and password recovery return a response indicating a code
was sent to a simulated destination. When set to LEGACY
, those APIs
will return a UserNotFoundException
exception if the user does not
exist in the user pool.
Valid values include:
ENABLED
- This prevents user existence-related errors.LEGACY
- This represents the old behavior of Cognito where user existence related errors are not prevented.
After February 15th 2020, the value of PreventUserExistenceErrors
will
default to ENABLED
for newly created user pool clients if no value is
provided.
$sel:accessTokenValidity:UpdateUserPoolClient'
, updateUserPoolClient_accessTokenValidity
- The time limit, after which the access token is no longer valid and
cannot be used.
$sel:readAttributes:UpdateUserPoolClient'
, updateUserPoolClient_readAttributes
- The read-only attributes of the user pool.
$sel:allowedOAuthScopes:UpdateUserPoolClient'
, updateUserPoolClient_allowedOAuthScopes
- The allowed OAuth scopes. Possible values provided by OAuth are:
phone
, email
, openid
, and profile
. Possible values provided by
Amazon Web Services are: aws.cognito.signin.user.admin
. Custom scopes
created in Resource Servers are also supported.
$sel:allowedOAuthFlows:UpdateUserPoolClient'
, updateUserPoolClient_allowedOAuthFlows
- The allowed OAuth flows.
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 implicit
to specify that the client should get the access token
(and, optionally, ID token, based on scopes) directly.
Set to client_credentials
to specify that the client should get the
access token (and, optionally, ID token, based on scopes) from the token
endpoint using a combination of client and client_secret.
$sel:analyticsConfiguration:UpdateUserPoolClient'
, updateUserPoolClient_analyticsConfiguration
- The Amazon Pinpoint analytics configuration for collecting metrics for
this user pool.
In regions where Pinpoint is not available, Cognito User Pools only supports sending events to Amazon Pinpoint projects in us-east-1. In regions where Pinpoint is available, Cognito User Pools will support sending events to Amazon Pinpoint projects within that same region.
$sel:clientName:UpdateUserPoolClient'
, updateUserPoolClient_clientName
- The client name from the update user pool client request.
$sel:callbackURLs:UpdateUserPoolClient'
, updateUserPoolClient_callbackURLs
- A list of allowed redirect (callback) URLs for the identity providers.
A redirect URI must:
- Be an absolute URI.
- Be registered with the authorization server.
- Not include a fragment component.
See OAuth 2.0 - Redirection Endpoint.
Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.
App callback URLs such as myapp://example are also supported.
$sel:userPoolId:UpdateUserPoolClient'
, updateUserPoolClient_userPoolId
- The user pool ID for the user pool where you want to update the user
pool client.
$sel:clientId:UpdateUserPoolClient'
, updateUserPoolClient_clientId
- The ID of the client associated with the user pool.
Request Lenses
updateUserPoolClient_refreshTokenValidity :: Lens' UpdateUserPoolClient (Maybe Natural) Source #
The time limit, in days, after which the refresh token is no longer valid and cannot be used.
updateUserPoolClient_explicitAuthFlows :: Lens' UpdateUserPoolClient (Maybe [ExplicitAuthFlowsType]) Source #
The authentication flows that are supported by the user pool clients.
Flow names without the ALLOW_
prefix are deprecated in favor of new
names with the ALLOW_
prefix. Note that values with ALLOW_
prefix
cannot be used along with values without ALLOW_
prefix.
Valid values include:
ALLOW_ADMIN_USER_PASSWORD_AUTH
: Enable admin based user password authentication flowADMIN_USER_PASSWORD_AUTH
. This setting replaces theADMIN_NO_SRP_AUTH
setting. With this authentication flow, Cognito receives the password in the request instead of using the SRP (Secure Remote Password protocol) protocol to verify passwords.ALLOW_CUSTOM_AUTH
: Enable Lambda trigger based authentication.ALLOW_USER_PASSWORD_AUTH
: Enable user password-based authentication. In this flow, Cognito receives the password in the request instead of using the SRP protocol to verify passwords.ALLOW_USER_SRP_AUTH
: Enable SRP based authentication.ALLOW_REFRESH_TOKEN_AUTH
: Enable authflow to refresh tokens.
updateUserPoolClient_supportedIdentityProviders :: Lens' UpdateUserPoolClient (Maybe [Text]) Source #
A list of provider names for the identity providers that are supported on this client.
updateUserPoolClient_logoutURLs :: Lens' UpdateUserPoolClient (Maybe [Text]) Source #
A list of allowed logout URLs for the identity providers.
updateUserPoolClient_allowedOAuthFlowsUserPoolClient :: Lens' UpdateUserPoolClient (Maybe Bool) Source #
Set to true if the client is allowed to follow the OAuth protocol when interacting with Cognito user pools.
updateUserPoolClient_idTokenValidity :: Lens' UpdateUserPoolClient (Maybe Natural) Source #
The time limit, after which the ID token is no longer valid and cannot be used.
updateUserPoolClient_tokenValidityUnits :: Lens' UpdateUserPoolClient (Maybe TokenValidityUnitsType) Source #
The units in which the validity times are represented in. Default for RefreshToken is days, and default for ID and access tokens are hours.
updateUserPoolClient_defaultRedirectURI :: Lens' UpdateUserPoolClient (Maybe Text) Source #
The default redirect URI. Must be in the CallbackURLs
list.
A redirect URI must:
- Be an absolute URI.
- Be registered with the authorization server.
- Not include a fragment component.
See OAuth 2.0 - Redirection Endpoint.
Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.
App callback URLs such as myapp://example are also supported.
updateUserPoolClient_enableTokenRevocation :: Lens' UpdateUserPoolClient (Maybe Bool) Source #
Enables or disables token revocation. For more information about revoking tokens, see RevokeToken.
updateUserPoolClient_writeAttributes :: Lens' UpdateUserPoolClient (Maybe [Text]) Source #
The writeable attributes of the user pool.
updateUserPoolClient_preventUserExistenceErrors :: Lens' UpdateUserPoolClient (Maybe PreventUserExistenceErrorTypes) Source #
Use this setting to choose which errors and responses are returned by
Cognito APIs during authentication, account confirmation, and password
recovery when the user does not exist in the user pool. When set to
ENABLED
and the user does not exist, authentication returns an error
indicating either the username or password was incorrect, and account
confirmation and password recovery return a response indicating a code
was sent to a simulated destination. When set to LEGACY
, those APIs
will return a UserNotFoundException
exception if the user does not
exist in the user pool.
Valid values include:
ENABLED
- This prevents user existence-related errors.LEGACY
- This represents the old behavior of Cognito where user existence related errors are not prevented.
After February 15th 2020, the value of PreventUserExistenceErrors
will
default to ENABLED
for newly created user pool clients if no value is
provided.
updateUserPoolClient_accessTokenValidity :: Lens' UpdateUserPoolClient (Maybe Natural) Source #
The time limit, after which the access token is no longer valid and cannot be used.
updateUserPoolClient_readAttributes :: Lens' UpdateUserPoolClient (Maybe [Text]) Source #
The read-only attributes of the user pool.
updateUserPoolClient_allowedOAuthScopes :: Lens' UpdateUserPoolClient (Maybe [Text]) Source #
The allowed OAuth scopes. Possible values provided by OAuth are:
phone
, email
, openid
, and profile
. Possible values provided by
Amazon Web Services are: aws.cognito.signin.user.admin
. Custom scopes
created in Resource Servers are also supported.
updateUserPoolClient_allowedOAuthFlows :: Lens' UpdateUserPoolClient (Maybe [OAuthFlowType]) Source #
The allowed OAuth flows.
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 implicit
to specify that the client should get the access token
(and, optionally, ID token, based on scopes) directly.
Set to client_credentials
to specify that the client should get the
access token (and, optionally, ID token, based on scopes) from the token
endpoint using a combination of client and client_secret.
updateUserPoolClient_analyticsConfiguration :: Lens' UpdateUserPoolClient (Maybe AnalyticsConfigurationType) Source #
The Amazon Pinpoint analytics configuration for collecting metrics for this user pool.
In regions where Pinpoint is not available, Cognito User Pools only supports sending events to Amazon Pinpoint projects in us-east-1. In regions where Pinpoint is available, Cognito User Pools will support sending events to Amazon Pinpoint projects within that same region.
updateUserPoolClient_clientName :: Lens' UpdateUserPoolClient (Maybe Text) Source #
The client name from the update user pool client request.
updateUserPoolClient_callbackURLs :: Lens' UpdateUserPoolClient (Maybe [Text]) Source #
A list of allowed redirect (callback) URLs for the identity providers.
A redirect URI must:
- Be an absolute URI.
- Be registered with the authorization server.
- Not include a fragment component.
See OAuth 2.0 - Redirection Endpoint.
Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.
App callback URLs such as myapp://example are also supported.
updateUserPoolClient_userPoolId :: Lens' UpdateUserPoolClient Text Source #
The user pool ID for the user pool where you want to update the user pool client.
updateUserPoolClient_clientId :: Lens' UpdateUserPoolClient Text Source #
The ID of the client associated with the user pool.
Destructuring the Response
data UpdateUserPoolClientResponse Source #
Represents the response from the server to the request to update the user pool client.
See: newUpdateUserPoolClientResponse
smart constructor.
UpdateUserPoolClientResponse' | |
|
Instances
newUpdateUserPoolClientResponse Source #
Create a value of UpdateUserPoolClientResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:userPoolClient:UpdateUserPoolClientResponse'
, updateUserPoolClientResponse_userPoolClient
- The user pool client value from the response from the server when an
update user pool client request is made.
$sel:httpStatus:UpdateUserPoolClientResponse'
, updateUserPoolClientResponse_httpStatus
- The response's http status code.
Response Lenses
updateUserPoolClientResponse_userPoolClient :: Lens' UpdateUserPoolClientResponse (Maybe UserPoolClientType) Source #
The user pool client value from the response from the server when an update user pool client request is made.
updateUserPoolClientResponse_httpStatus :: Lens' UpdateUserPoolClientResponse Int Source #
The response's http status code.