create_identity_provider(**kwargs)¶Creates an IdP for a user pool.
See also: AWS API Documentation
Request Syntax
response = client.create_identity_provider(
    UserPoolId='string',
    ProviderName='string',
    ProviderType='SAML'|'Facebook'|'Google'|'LoginWithAmazon'|'SignInWithApple'|'OIDC',
    ProviderDetails={
        'string': 'string'
    },
    AttributeMapping={
        'string': 'string'
    },
    IdpIdentifiers=[
        'string',
    ]
)
[REQUIRED]
The user pool ID.
[REQUIRED]
The IdP name.
[REQUIRED]
The IdP type.
[REQUIRED]
The IdP details. The following list describes the provider detail keys for each IdP type.
oidc_issuer URL.A mapping of IdP attributes to standard and custom user pool attributes.
A list of IdP identifiers.
dict
Response Syntax
{
    'IdentityProvider': {
        'UserPoolId': 'string',
        'ProviderName': 'string',
        'ProviderType': 'SAML'|'Facebook'|'Google'|'LoginWithAmazon'|'SignInWithApple'|'OIDC',
        'ProviderDetails': {
            'string': 'string'
        },
        'AttributeMapping': {
            'string': 'string'
        },
        'IdpIdentifiers': [
            'string',
        ],
        'LastModifiedDate': datetime(2015, 1, 1),
        'CreationDate': datetime(2015, 1, 1)
    }
}
Response Structure
(dict) --
IdentityProvider (dict) --
The newly created IdP object.
UserPoolId (string) --
The user pool ID.
ProviderName (string) --
The IdP name.
ProviderType (string) --
The IdP type.
ProviderDetails (dict) --
The IdP details. The following list describes the provider detail keys for each IdP type.
oidc_issuer URL.AttributeMapping (dict) --
A mapping of IdP attributes to standard and custom user pool attributes.
IdpIdentifiers (list) --
A list of IdP identifiers.
LastModifiedDate (datetime) --
The date the IdP was last modified.
CreationDate (datetime) --
The date the IdP was created.
Exceptions
CognitoIdentityProvider.Client.exceptions.InvalidParameterExceptionCognitoIdentityProvider.Client.exceptions.DuplicateProviderExceptionCognitoIdentityProvider.Client.exceptions.ResourceNotFoundExceptionCognitoIdentityProvider.Client.exceptions.NotAuthorizedExceptionCognitoIdentityProvider.Client.exceptions.TooManyRequestsExceptionCognitoIdentityProvider.Client.exceptions.LimitExceededExceptionCognitoIdentityProvider.Client.exceptions.InternalErrorException