public class IdentityProviderType
extends java.lang.Object
implements java.io.Serializable
A container for information about an IdP.
| Constructor and Description |
|---|
IdentityProviderType() |
| Modifier and Type | Method and Description |
|---|---|
IdentityProviderType |
addAttributeMappingEntry(java.lang.String key,
java.lang.String value)
A mapping of IdP attributes to standard and custom user pool attributes.
|
IdentityProviderType |
addProviderDetailsEntry(java.lang.String key,
java.lang.String value)
The IdP details.
|
IdentityProviderType |
clearAttributeMappingEntries()
Removes all the entries added into AttributeMapping.
|
IdentityProviderType |
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.Date |
getCreationDate()
The date and time, in ISO
8601 format, when the item was created.
|
java.util.List<java.lang.String> |
getIdpIdentifiers()
A list of IdP identifiers.
|
java.util.Date |
getLastModifiedDate()
The date and time, in ISO
8601 format, when the item was modified.
|
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 |
setCreationDate(java.util.Date creationDate)
The date and time, in ISO
8601 format, when the item was created.
|
void |
setIdpIdentifiers(java.util.Collection<java.lang.String> idpIdentifiers)
A list of IdP identifiers.
|
void |
setLastModifiedDate(java.util.Date lastModifiedDate)
The date and time, in ISO
8601 format, when the item was modified.
|
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.
|
IdentityProviderType |
withAttributeMapping(java.util.Map<java.lang.String,java.lang.String> attributeMapping)
A mapping of IdP attributes to standard and custom user pool attributes.
|
IdentityProviderType |
withCreationDate(java.util.Date creationDate)
The date and time, in ISO
8601 format, when the item was created.
|
IdentityProviderType |
withIdpIdentifiers(java.util.Collection<java.lang.String> idpIdentifiers)
A list of IdP identifiers.
|
IdentityProviderType |
withIdpIdentifiers(java.lang.String... idpIdentifiers)
A list of IdP identifiers.
|
IdentityProviderType |
withLastModifiedDate(java.util.Date lastModifiedDate)
The date and time, in ISO
8601 format, when the item was modified.
|
IdentityProviderType |
withProviderDetails(java.util.Map<java.lang.String,java.lang.String> providerDetails)
The IdP details.
|
IdentityProviderType |
withProviderName(java.lang.String providerName)
The IdP name.
|
IdentityProviderType |
withProviderType(IdentityProviderTypeType providerType)
The IdP type.
|
IdentityProviderType |
withProviderType(java.lang.String providerType)
The IdP type.
|
IdentityProviderType |
withUserPoolId(java.lang.String userPoolId)
The user pool ID.
|
public 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 IdentityProviderType 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: 1 - 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: 1 - 32
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
providerName - The IdP name.
public IdentityProviderType withProviderName(java.lang.String providerName)
The IdP name.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 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 IdentityProviderType 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 IdentityProviderType 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
You can submit a private_key when you add or update an IdP. Describe operations don't return the private key.
authorize_scopes
For 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
You can submit a private_key when you add or update an IdP. Describe operations don't return the private key.
authorize_scopes
For 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
You can submit a private_key when you add or update an IdP. Describe operations don't return the private key.
authorize_scopes
For 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
You can submit a private_key when you add or update an IdP. Describe operations don't return the private key.
authorize_scopes
For 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 IdentityProviderType 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
You can submit a private_key when you add or update an IdP. Describe operations don't return the private key.
authorize_scopes
For 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
You can submit a private_key when you add or update an IdP. Describe operations don't return the private key.
authorize_scopes
For 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 IdentityProviderType 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
You can submit a private_key when you add or update an IdP. Describe operations don't return the private key.
authorize_scopes
For 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 IdentityProviderType 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 IdentityProviderType 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 IdentityProviderType 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 IdentityProviderType 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 IdentityProviderType 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 IdentityProviderType 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.util.Date getLastModifiedDate()
The date and time, in ISO 8601 format, when the item was modified.
The date and time, in ISO 8601 format, when the item was modified.
public void setLastModifiedDate(java.util.Date lastModifiedDate)
The date and time, in ISO 8601 format, when the item was modified.
lastModifiedDate - The date and time, in ISO 8601 format, when the item was modified.
public IdentityProviderType withLastModifiedDate(java.util.Date lastModifiedDate)
The date and time, in ISO 8601 format, when the item was modified.
Returns a reference to this object so that method calls can be chained together.
lastModifiedDate - The date and time, in ISO 8601 format, when the item was modified.
public java.util.Date getCreationDate()
The date and time, in ISO 8601 format, when the item was created.
The date and time, in ISO 8601 format, when the item was created.
public void setCreationDate(java.util.Date creationDate)
The date and time, in ISO 8601 format, when the item was created.
creationDate - The date and time, in ISO 8601 format, when the item was created.
public IdentityProviderType withCreationDate(java.util.Date creationDate)
The date and time, in ISO 8601 format, when the item was created.
Returns a reference to this object so that method calls can be chained together.
creationDate - The date and time, in ISO 8601 format, when the item was created.
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