public class CreateIdentityProviderRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Creates an IdP for a user pool.
Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.
Learn more
| Constructor and Description |
|---|
CreateIdentityProviderRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateIdentityProviderRequest |
addAttributeMappingEntry(java.lang.String key,
java.lang.String value)
A mapping of IdP attributes to standard and custom user pool attributes.
|
CreateIdentityProviderRequest |
addProviderDetailsEntry(java.lang.String key,
java.lang.String value)
The IdP details.
|
CreateIdentityProviderRequest |
clearAttributeMappingEntries()
Removes all the entries added into AttributeMapping.
|
CreateIdentityProviderRequest |
clearProviderDetailsEntries()
Removes all the entries added into ProviderDetails.
|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.String> |
getAttributeMapping()
A mapping of IdP attributes to standard and custom user pool attributes.
|
java.util.List<java.lang.String> |
getIdpIdentifiers()
A list of IdP identifiers.
|
java.util.Map<java.lang.String,java.lang.String> |
getProviderDetails()
The IdP details.
|
java.lang.String |
getProviderName()
The IdP name.
|
java.lang.String |
getProviderType()
The IdP type.
|
java.lang.String |
getUserPoolId()
The user pool ID.
|
int |
hashCode() |
void |
setAttributeMapping(java.util.Map<java.lang.String,java.lang.String> attributeMapping)
A mapping of IdP attributes to standard and custom user pool attributes.
|
void |
setIdpIdentifiers(java.util.Collection<java.lang.String> idpIdentifiers)
A list of IdP identifiers.
|
void |
setProviderDetails(java.util.Map<java.lang.String,java.lang.String> providerDetails)
The IdP details.
|
void |
setProviderName(java.lang.String providerName)
The IdP name.
|
void |
setProviderType(IdentityProviderTypeType providerType)
The IdP type.
|
void |
setProviderType(java.lang.String providerType)
The IdP type.
|
void |
setUserPoolId(java.lang.String userPoolId)
The user pool ID.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateIdentityProviderRequest |
withAttributeMapping(java.util.Map<java.lang.String,java.lang.String> attributeMapping)
A mapping of IdP attributes to standard and custom user pool attributes.
|
CreateIdentityProviderRequest |
withIdpIdentifiers(java.util.Collection<java.lang.String> idpIdentifiers)
A list of IdP identifiers.
|
CreateIdentityProviderRequest |
withIdpIdentifiers(java.lang.String... idpIdentifiers)
A list of IdP identifiers.
|
CreateIdentityProviderRequest |
withProviderDetails(java.util.Map<java.lang.String,java.lang.String> providerDetails)
The IdP details.
|
CreateIdentityProviderRequest |
withProviderName(java.lang.String providerName)
The IdP name.
|
CreateIdentityProviderRequest |
withProviderType(IdentityProviderTypeType providerType)
The IdP type.
|
CreateIdentityProviderRequest |
withProviderType(java.lang.String providerType)
The IdP type.
|
CreateIdentityProviderRequest |
withUserPoolId(java.lang.String userPoolId)
The user pool ID.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getUserPoolId()
The user pool ID.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
The user pool ID.
public void setUserPoolId(java.lang.String userPoolId)
The user pool ID.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId - The user pool ID.
public CreateIdentityProviderRequest withUserPoolId(java.lang.String userPoolId)
The user pool ID.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId - The user pool ID.
public java.lang.String getProviderName()
The IdP name.
Constraints:
Length: 3 - 32
Pattern: [^_][\p{L}\p{M}\p{S}\p{N}\p{P}][^_]+
The IdP name.
public void setProviderName(java.lang.String providerName)
The IdP name.
Constraints:
Length: 3 - 32
Pattern: [^_][\p{L}\p{M}\p{S}\p{N}\p{P}][^_]+
providerName - The IdP name.
public CreateIdentityProviderRequest withProviderName(java.lang.String providerName)
The IdP name.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 3 - 32
Pattern: [^_][\p{L}\p{M}\p{S}\p{N}\p{P}][^_]+
providerName - The IdP name.
public java.lang.String getProviderType()
The IdP type.
Constraints:
Allowed Values: SAML, Facebook, Google, LoginWithAmazon,
SignInWithApple, OIDC
The IdP type.
IdentityProviderTypeTypepublic void setProviderType(java.lang.String providerType)
The IdP type.
Constraints:
Allowed Values: SAML, Facebook, Google, LoginWithAmazon,
SignInWithApple, OIDC
providerType - The IdP type.
IdentityProviderTypeTypepublic CreateIdentityProviderRequest withProviderType(java.lang.String providerType)
The IdP type.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SAML, Facebook, Google, LoginWithAmazon,
SignInWithApple, OIDC
providerType - The IdP type.
IdentityProviderTypeTypepublic void setProviderType(IdentityProviderTypeType providerType)
The IdP type.
Constraints:
Allowed Values: SAML, Facebook, Google, LoginWithAmazon,
SignInWithApple, OIDC
providerType - The IdP type.
IdentityProviderTypeTypepublic CreateIdentityProviderRequest withProviderType(IdentityProviderTypeType providerType)
The IdP type.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SAML, Facebook, Google, LoginWithAmazon,
SignInWithApple, OIDC
providerType - The IdP type.
IdentityProviderTypeTypepublic java.util.Map<java.lang.String,java.lang.String> getProviderDetails()
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
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
public void setProviderDetails(java.util.Map<java.lang.String,java.lang.String> 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
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
public CreateIdentityProviderRequest withProviderDetails(java.util.Map<java.lang.String,java.lang.String> 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
Returns a reference to this object so that method calls can be chained together.
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
public CreateIdentityProviderRequest addProviderDetailsEntry(java.lang.String key, java.lang.String value)
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
The method adds a new key-value pair into ProviderDetails parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into ProviderDetails.value - The corresponding value of the entry to be added into
ProviderDetails.public CreateIdentityProviderRequest clearProviderDetailsEntries()
Returns a reference to this object so that method calls can be chained together.
public java.util.Map<java.lang.String,java.lang.String> getAttributeMapping()
A mapping of IdP attributes to standard and custom user pool attributes.
A mapping of IdP attributes to standard and custom user pool attributes.
public void setAttributeMapping(java.util.Map<java.lang.String,java.lang.String> attributeMapping)
A mapping of IdP attributes to standard and custom user pool attributes.
attributeMapping - A mapping of IdP attributes to standard and custom user pool attributes.
public CreateIdentityProviderRequest withAttributeMapping(java.util.Map<java.lang.String,java.lang.String> attributeMapping)
A mapping of IdP attributes to standard and custom user pool attributes.
Returns a reference to this object so that method calls can be chained together.
attributeMapping - A mapping of IdP attributes to standard and custom user pool attributes.
public CreateIdentityProviderRequest addAttributeMappingEntry(java.lang.String key, java.lang.String value)
A mapping of IdP attributes to standard and custom user pool attributes.
The method adds a new key-value pair into AttributeMapping parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into AttributeMapping.value - The corresponding value of the entry to be added into
AttributeMapping.public CreateIdentityProviderRequest clearAttributeMappingEntries()
Returns a reference to this object so that method calls can be chained together.
public java.util.List<java.lang.String> getIdpIdentifiers()
A list of IdP identifiers.
A list of IdP identifiers.
public void setIdpIdentifiers(java.util.Collection<java.lang.String> idpIdentifiers)
A list of IdP identifiers.
idpIdentifiers - A list of IdP identifiers.
public CreateIdentityProviderRequest withIdpIdentifiers(java.lang.String... idpIdentifiers)
A list of IdP identifiers.
Returns a reference to this object so that method calls can be chained together.
idpIdentifiers - A list of IdP identifiers.
public CreateIdentityProviderRequest withIdpIdentifiers(java.util.Collection<java.lang.String> idpIdentifiers)
A list of IdP identifiers.
Returns a reference to this object so that method calls can be chained together.
idpIdentifiers - A list of IdP identifiers.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object