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 |
Creates an identity provider for a user pool.
Synopsis
- data CreateIdentityProvider = CreateIdentityProvider' {}
- newCreateIdentityProvider :: Text -> Text -> IdentityProviderTypeType -> CreateIdentityProvider
- createIdentityProvider_idpIdentifiers :: Lens' CreateIdentityProvider (Maybe [Text])
- createIdentityProvider_attributeMapping :: Lens' CreateIdentityProvider (Maybe (HashMap Text Text))
- createIdentityProvider_userPoolId :: Lens' CreateIdentityProvider Text
- createIdentityProvider_providerName :: Lens' CreateIdentityProvider Text
- createIdentityProvider_providerType :: Lens' CreateIdentityProvider IdentityProviderTypeType
- createIdentityProvider_providerDetails :: Lens' CreateIdentityProvider (HashMap Text Text)
- data CreateIdentityProviderResponse = CreateIdentityProviderResponse' {}
- newCreateIdentityProviderResponse :: Int -> IdentityProviderType -> CreateIdentityProviderResponse
- createIdentityProviderResponse_httpStatus :: Lens' CreateIdentityProviderResponse Int
- createIdentityProviderResponse_identityProvider :: Lens' CreateIdentityProviderResponse IdentityProviderType
Creating a Request
data CreateIdentityProvider Source #
See: newCreateIdentityProvider
smart constructor.
CreateIdentityProvider' | |
|
Instances
newCreateIdentityProvider Source #
Create a value of CreateIdentityProvider
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:idpIdentifiers:CreateIdentityProvider'
, createIdentityProvider_idpIdentifiers
- A list of identity provider identifiers.
$sel:attributeMapping:CreateIdentityProvider'
, createIdentityProvider_attributeMapping
- A mapping of identity provider attributes to standard and custom user
pool attributes.
$sel:userPoolId:CreateIdentityProvider'
, createIdentityProvider_userPoolId
- The user pool ID.
$sel:providerName:CreateIdentityProvider'
, createIdentityProvider_providerName
- The identity provider name.
$sel:providerType:CreateIdentityProvider'
, createIdentityProvider_providerType
- The identity provider type.
$sel:providerDetails:CreateIdentityProvider'
, createIdentityProvider_providerDetails
- The identity provider details. The following list describes the provider
detail keys for each identity provider type.
For Google and Login with Amazon:
- client_id
- client_secret
- authorize_scopes
For Facebook:
- client_id
- client_secret
- authorize_scopes
- api_version
For Sign in with Apple:
- client_id
- team_id
- key_id
- private_key
- authorize_scopes
For OIDC providers:
- client_id
- client_secret
- attributes_request_method
- oidc_issuer
- authorize_scopes
- authorize_url /if not available from discovery URL specified by oidc_issuer key/
- token_url /if not available from discovery URL specified by oidc_issuer key/
- attributes_url /if not available from discovery URL specified by oidc_issuer key/
- jwks_uri /if not available from discovery URL specified by oidc_issuer key/
For SAML providers:
- MetadataFile OR MetadataURL
- IDPSignout optional
Request Lenses
createIdentityProvider_idpIdentifiers :: Lens' CreateIdentityProvider (Maybe [Text]) Source #
A list of identity provider identifiers.
createIdentityProvider_attributeMapping :: Lens' CreateIdentityProvider (Maybe (HashMap Text Text)) Source #
A mapping of identity provider attributes to standard and custom user pool attributes.
createIdentityProvider_userPoolId :: Lens' CreateIdentityProvider Text Source #
The user pool ID.
createIdentityProvider_providerName :: Lens' CreateIdentityProvider Text Source #
The identity provider name.
createIdentityProvider_providerType :: Lens' CreateIdentityProvider IdentityProviderTypeType Source #
The identity provider type.
createIdentityProvider_providerDetails :: Lens' CreateIdentityProvider (HashMap Text Text) Source #
The identity provider details. The following list describes the provider detail keys for each identity provider type.
For Google and Login with Amazon:
- client_id
- client_secret
- authorize_scopes
For Facebook:
- client_id
- client_secret
- authorize_scopes
- api_version
For Sign in with Apple:
- client_id
- team_id
- key_id
- private_key
- authorize_scopes
For OIDC providers:
- client_id
- client_secret
- attributes_request_method
- oidc_issuer
- authorize_scopes
- authorize_url /if not available from discovery URL specified by oidc_issuer key/
- token_url /if not available from discovery URL specified by oidc_issuer key/
- attributes_url /if not available from discovery URL specified by oidc_issuer key/
- jwks_uri /if not available from discovery URL specified by oidc_issuer key/
For SAML providers:
- MetadataFile OR MetadataURL
- IDPSignout optional
Destructuring the Response
data CreateIdentityProviderResponse Source #
See: newCreateIdentityProviderResponse
smart constructor.
CreateIdentityProviderResponse' | |
|
Instances
Eq CreateIdentityProviderResponse Source # | |
Read CreateIdentityProviderResponse Source # | |
Show CreateIdentityProviderResponse Source # | |
Generic CreateIdentityProviderResponse Source # | |
NFData CreateIdentityProviderResponse Source # | |
Defined in Amazonka.CognitoIdentityProvider.CreateIdentityProvider rnf :: CreateIdentityProviderResponse -> () # | |
type Rep CreateIdentityProviderResponse Source # | |
Defined in Amazonka.CognitoIdentityProvider.CreateIdentityProvider type Rep CreateIdentityProviderResponse = D1 ('MetaData "CreateIdentityProviderResponse" "Amazonka.CognitoIdentityProvider.CreateIdentityProvider" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "CreateIdentityProviderResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "identityProvider") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 IdentityProviderType))) |
newCreateIdentityProviderResponse Source #
Create a value of CreateIdentityProviderResponse
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:httpStatus:CreateIdentityProviderResponse'
, createIdentityProviderResponse_httpStatus
- The response's http status code.
$sel:identityProvider:CreateIdentityProviderResponse'
, createIdentityProviderResponse_identityProvider
- The newly created identity provider object.
Response Lenses
createIdentityProviderResponse_httpStatus :: Lens' CreateIdentityProviderResponse Int Source #
The response's http status code.
createIdentityProviderResponse_identityProvider :: Lens' CreateIdentityProviderResponse IdentityProviderType Source #
The newly created identity provider object.