Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates an IdP for a user pool.
Synopsis
- data CreateIdentityProvider = CreateIdentityProvider' {}
- newCreateIdentityProvider :: Text -> Text -> IdentityProviderTypeType -> CreateIdentityProvider
- createIdentityProvider_attributeMapping :: Lens' CreateIdentityProvider (Maybe (HashMap Text Text))
- createIdentityProvider_idpIdentifiers :: Lens' CreateIdentityProvider (Maybe [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:
CreateIdentityProvider
, createIdentityProvider_attributeMapping
- A mapping of IdP attributes to standard and custom user pool attributes.
CreateIdentityProvider
, createIdentityProvider_idpIdentifiers
- A list of IdP identifiers.
CreateIdentityProvider
, createIdentityProvider_userPoolId
- The user pool ID.
CreateIdentityProvider
, createIdentityProvider_providerName
- The IdP name.
CreateIdentityProvider
, createIdentityProvider_providerType
- The IdP type.
CreateIdentityProvider
, createIdentityProvider_providerDetails
- The IdP details. The following list describes the provider detail keys
for each IdP 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 OpenID Connect (OIDC) providers:
- client_id
- client_secret
- attributes_request_method
- oidc_issuer
- authorize_scopes
The following keys are only present if Amazon Cognito didn't discover them at the
oidc_issuer
URL.- authorize_url
- token_url
- attributes_url
- jwks_uri
Amazon Cognito sets the value of the following keys automatically. They are read-only.
- attributes_url_add_attributes
For SAML providers:
- MetadataFile or MetadataURL
- IDPSignout optional
Request Lenses
createIdentityProvider_attributeMapping :: Lens' CreateIdentityProvider (Maybe (HashMap Text Text)) Source #
A mapping of IdP attributes to standard and custom user pool attributes.
createIdentityProvider_idpIdentifiers :: Lens' CreateIdentityProvider (Maybe [Text]) Source #
A list of IdP identifiers.
createIdentityProvider_userPoolId :: Lens' CreateIdentityProvider Text Source #
The user pool ID.
createIdentityProvider_providerName :: Lens' CreateIdentityProvider Text Source #
The IdP name.
createIdentityProvider_providerType :: Lens' CreateIdentityProvider IdentityProviderTypeType Source #
The IdP type.
createIdentityProvider_providerDetails :: Lens' CreateIdentityProvider (HashMap Text Text) Source #
The IdP details. The following list describes the provider detail keys for each IdP 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 OpenID Connect (OIDC) providers:
- client_id
- client_secret
- attributes_request_method
- oidc_issuer
- authorize_scopes
The following keys are only present if Amazon Cognito didn't discover them at the
oidc_issuer
URL.- authorize_url
- token_url
- attributes_url
- jwks_uri
Amazon Cognito sets the value of the following keys automatically. They are read-only.
- attributes_url_add_attributes
For SAML providers:
- MetadataFile or MetadataURL
- IDPSignout optional
Destructuring the Response
data CreateIdentityProviderResponse Source #
See: newCreateIdentityProviderResponse
smart constructor.
CreateIdentityProviderResponse' | |
|
Instances
Generic CreateIdentityProviderResponse Source # | |
Read CreateIdentityProviderResponse Source # | |
Show CreateIdentityProviderResponse Source # | |
NFData CreateIdentityProviderResponse Source # | |
Defined in Amazonka.CognitoIdentityProvider.CreateIdentityProvider rnf :: CreateIdentityProviderResponse -> () # | |
Eq CreateIdentityProviderResponse Source # | |
type Rep CreateIdentityProviderResponse Source # | |
Defined in Amazonka.CognitoIdentityProvider.CreateIdentityProvider type Rep CreateIdentityProviderResponse = D1 ('MetaData "CreateIdentityProviderResponse" "Amazonka.CognitoIdentityProvider.CreateIdentityProvider" "amazonka-cognito-idp-2.0-D1ERgMvEVPG9z8cOLXdU2" '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 IdP object.
Response Lenses
createIdentityProviderResponse_httpStatus :: Lens' CreateIdentityProviderResponse Int Source #
The response's http status code.
createIdentityProviderResponse_identityProvider :: Lens' CreateIdentityProviderResponse IdentityProviderType Source #
The newly created IdP object.