public class CreateIdentityProviderRequest extends AmazonWebServiceRequest implements Serializable
Creates an identity provider for a user pool.
| Constructor and Description |
|---|
CreateIdentityProviderRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateIdentityProviderRequest |
addAttributeMappingEntry(String key,
String value)
A mapping of identity provider attributes to standard and custom user
pool attributes.
|
CreateIdentityProviderRequest |
addProviderDetailsEntry(String key,
String value)
The identity provider details.
|
CreateIdentityProviderRequest |
clearAttributeMappingEntries()
Removes all the entries added into AttributeMapping.
|
CreateIdentityProviderRequest |
clearProviderDetailsEntries()
Removes all the entries added into ProviderDetails.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAttributeMapping()
A mapping of identity provider attributes to standard and custom user
pool attributes.
|
List<String> |
getIdpIdentifiers()
A list of identity provider identifiers.
|
Map<String,String> |
getProviderDetails()
The identity provider details.
|
String |
getProviderName()
The identity provider name.
|
String |
getProviderType()
The identity provider type.
|
String |
getUserPoolId()
The user pool ID.
|
int |
hashCode() |
void |
setAttributeMapping(Map<String,String> attributeMapping)
A mapping of identity provider attributes to standard and custom user
pool attributes.
|
void |
setIdpIdentifiers(Collection<String> idpIdentifiers)
A list of identity provider identifiers.
|
void |
setProviderDetails(Map<String,String> providerDetails)
The identity provider details.
|
void |
setProviderName(String providerName)
The identity provider name.
|
void |
setProviderType(IdentityProviderTypeType providerType)
The identity provider type.
|
void |
setProviderType(String providerType)
The identity provider type.
|
void |
setUserPoolId(String userPoolId)
The user pool ID.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateIdentityProviderRequest |
withAttributeMapping(Map<String,String> attributeMapping)
A mapping of identity provider attributes to standard and custom user
pool attributes.
|
CreateIdentityProviderRequest |
withIdpIdentifiers(Collection<String> idpIdentifiers)
A list of identity provider identifiers.
|
CreateIdentityProviderRequest |
withIdpIdentifiers(String... idpIdentifiers)
A list of identity provider identifiers.
|
CreateIdentityProviderRequest |
withProviderDetails(Map<String,String> providerDetails)
The identity provider details.
|
CreateIdentityProviderRequest |
withProviderName(String providerName)
The identity provider name.
|
CreateIdentityProviderRequest |
withProviderType(IdentityProviderTypeType providerType)
The identity provider type.
|
CreateIdentityProviderRequest |
withProviderType(String providerType)
The identity provider type.
|
CreateIdentityProviderRequest |
withUserPoolId(String userPoolId)
The user pool ID.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getUserPoolId()
The user pool ID.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
The user pool ID.
public void setUserPoolId(String userPoolId)
The user pool ID.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId - The user pool ID.
public CreateIdentityProviderRequest withUserPoolId(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 String getProviderName()
The identity provider name.
Constraints:
Length: 1 - 32
Pattern: [^_][\p{L}\p{M}\p{S}\p{N}\p{P}][^_]+
The identity provider name.
public void setProviderName(String providerName)
The identity provider name.
Constraints:
Length: 1 - 32
Pattern: [^_][\p{L}\p{M}\p{S}\p{N}\p{P}][^_]+
providerName - The identity provider name.
public CreateIdentityProviderRequest withProviderName(String providerName)
The identity provider 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 identity provider name.
public String getProviderType()
The identity provider type.
Constraints:
Allowed Values: SAML, Facebook, Google, LoginWithAmazon,
SignInWithApple, OIDC
The identity provider type.
IdentityProviderTypeTypepublic void setProviderType(String providerType)
The identity provider type.
Constraints:
Allowed Values: SAML, Facebook, Google, LoginWithAmazon,
SignInWithApple, OIDC
providerType - The identity provider type.
IdentityProviderTypeTypepublic CreateIdentityProviderRequest withProviderType(String providerType)
The identity provider 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 identity provider type.
IdentityProviderTypeTypepublic void setProviderType(IdentityProviderTypeType providerType)
The identity provider type.
Constraints:
Allowed Values: SAML, Facebook, Google, LoginWithAmazon,
SignInWithApple, OIDC
providerType - The identity provider type.
IdentityProviderTypeTypepublic CreateIdentityProviderRequest withProviderType(IdentityProviderTypeType providerType)
The identity provider 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 identity provider type.
IdentityProviderTypeTypepublic Map<String,String> getProviderDetails()
The identity provider details. The following list describes the provider detail keys for each identity provider type.
For Google, Facebook and Login with Amazon:
client_id
client_secret
authorize_scopes
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
authorize_scopes
For SAML providers:
MetadataFile OR MetadataURL
IDPSignout optional
The identity provider details. The following list describes the provider detail keys for each identity provider type.
For Google, Facebook and Login with Amazon:
client_id
client_secret
authorize_scopes
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
authorize_scopes
For SAML providers:
MetadataFile OR MetadataURL
IDPSignout optional
public void setProviderDetails(Map<String,String> providerDetails)
The identity provider details. The following list describes the provider detail keys for each identity provider type.
For Google, Facebook and Login with Amazon:
client_id
client_secret
authorize_scopes
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
authorize_scopes
For SAML providers:
MetadataFile OR MetadataURL
IDPSignout optional
providerDetails - The identity provider details. The following list describes the provider detail keys for each identity provider type.
For Google, Facebook and Login with Amazon:
client_id
client_secret
authorize_scopes
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
authorize_scopes
For SAML providers:
MetadataFile OR MetadataURL
IDPSignout optional
public CreateIdentityProviderRequest withProviderDetails(Map<String,String> providerDetails)
The identity provider details. The following list describes the provider detail keys for each identity provider type.
For Google, Facebook and Login with Amazon:
client_id
client_secret
authorize_scopes
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
authorize_scopes
For SAML providers:
MetadataFile OR MetadataURL
IDPSignout optional
Returns a reference to this object so that method calls can be chained together.
providerDetails - The identity provider details. The following list describes the provider detail keys for each identity provider type.
For Google, Facebook and Login with Amazon:
client_id
client_secret
authorize_scopes
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
authorize_scopes
For SAML providers:
MetadataFile OR MetadataURL
IDPSignout optional
public CreateIdentityProviderRequest addProviderDetailsEntry(String key, String value)
The identity provider details. The following list describes the provider detail keys for each identity provider type.
For Google, Facebook and Login with Amazon:
client_id
client_secret
authorize_scopes
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
authorize_scopes
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 Map<String,String> getAttributeMapping()
A mapping of identity provider attributes to standard and custom user pool attributes.
A mapping of identity provider attributes to standard and custom user pool attributes.
public void setAttributeMapping(Map<String,String> attributeMapping)
A mapping of identity provider attributes to standard and custom user pool attributes.
attributeMapping - A mapping of identity provider attributes to standard and custom user pool attributes.
public CreateIdentityProviderRequest withAttributeMapping(Map<String,String> attributeMapping)
A mapping of identity provider 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 identity provider attributes to standard and custom user pool attributes.
public CreateIdentityProviderRequest addAttributeMappingEntry(String key, String value)
A mapping of identity provider 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 List<String> getIdpIdentifiers()
A list of identity provider identifiers.
A list of identity provider identifiers.
public void setIdpIdentifiers(Collection<String> idpIdentifiers)
A list of identity provider identifiers.
idpIdentifiers - A list of identity provider identifiers.
public CreateIdentityProviderRequest withIdpIdentifiers(String... idpIdentifiers)
A list of identity provider identifiers.
Returns a reference to this object so that method calls can be chained together.
idpIdentifiers - A list of identity provider identifiers.
public CreateIdentityProviderRequest withIdpIdentifiers(Collection<String> idpIdentifiers)
A list of identity provider identifiers.
Returns a reference to this object so that method calls can be chained together.
idpIdentifiers - A list of identity provider identifiers.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.