libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CognitoIdentityProvider.CreateIdentityProvider

Description

Creates an identity provider for a user pool.

Synopsis

Creating a Request

data CreateIdentityProvider Source #

See: newCreateIdentityProvider smart constructor.

Constructors

CreateIdentityProvider' 

Fields

  • idpIdentifiers :: Maybe [Text]

    A list of identity provider identifiers.

  • attributeMapping :: Maybe (HashMap Text Text)

    A mapping of identity provider attributes to standard and custom user pool attributes.

  • userPoolId :: Text

    The user pool ID.

  • providerName :: Text

    The identity provider name.

  • providerType :: IdentityProviderTypeType

    The identity provider type.

  • providerDetails :: HashMap Text Text

    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

Instances

Instances details
Eq CreateIdentityProvider Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateIdentityProvider

Read CreateIdentityProvider Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateIdentityProvider

Show CreateIdentityProvider Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateIdentityProvider

Generic CreateIdentityProvider Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateIdentityProvider

Associated Types

type Rep CreateIdentityProvider :: Type -> Type #

NFData CreateIdentityProvider Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateIdentityProvider

Methods

rnf :: CreateIdentityProvider -> () #

Hashable CreateIdentityProvider Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateIdentityProvider

ToJSON CreateIdentityProvider Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateIdentityProvider

AWSRequest CreateIdentityProvider Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateIdentityProvider

Associated Types

type AWSResponse CreateIdentityProvider #

ToHeaders CreateIdentityProvider Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateIdentityProvider

ToPath CreateIdentityProvider Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateIdentityProvider

ToQuery CreateIdentityProvider Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateIdentityProvider

type Rep CreateIdentityProvider Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateIdentityProvider

type Rep CreateIdentityProvider = D1 ('MetaData "CreateIdentityProvider" "Amazonka.CognitoIdentityProvider.CreateIdentityProvider" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "CreateIdentityProvider'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "idpIdentifiers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "attributeMapping") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "userPoolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "providerName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "providerType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 IdentityProviderTypeType) :*: S1 ('MetaSel ('Just "providerDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text Text))))))
type AWSResponse CreateIdentityProvider Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateIdentityProvider

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_attributeMapping :: Lens' CreateIdentityProvider (Maybe (HashMap Text Text)) Source #

A mapping of identity provider attributes to standard and custom user pool attributes.

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.

Constructors

CreateIdentityProviderResponse' 

Fields

Instances

Instances details
Eq CreateIdentityProviderResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateIdentityProvider

Read CreateIdentityProviderResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateIdentityProvider

Show CreateIdentityProviderResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateIdentityProvider

Generic CreateIdentityProviderResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateIdentityProvider

Associated Types

type Rep CreateIdentityProviderResponse :: Type -> Type #

NFData CreateIdentityProviderResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateIdentityProvider

type Rep CreateIdentityProviderResponse Source # 
Instance details

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