public class AmazonCognitoIdentityAsyncClient extends AmazonCognitoIdentityClient implements AmazonCognitoIdentityAsync
Amazon Cognito is a web service that facilitates the delivery of scoped, temporary credentials to mobile devices or other untrusted environments. Amazon Cognito uniquely identifies a device or user and supplies the user with a consistent identity throughout the lifetime of an application.
Amazon Cognito lets users authenticate with third-party identity providers (Facebook, Google, or Login with Amazon). As a developer, you decide which identity providers to trust. You can also choose to support unauthenticated access from your application. Your users are provided with Cognito tokens that uniquely identify their device and any information provided about third-party logins.
jsonErrorUnmarshallers
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset
Constructor and Description |
---|
AmazonCognitoIdentityAsyncClient()
Constructs a new asynchronous client to invoke service methods on
AmazonCognitoIdentity.
|
AmazonCognitoIdentityAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on
AmazonCognitoIdentity using the specified AWS account credentials.
|
AmazonCognitoIdentityAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonCognitoIdentity using the specified AWS account credentials,
executor service, and client configuration options.
|
AmazonCognitoIdentityAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonCognitoIdentity using the specified AWS account credentials
and executor service.
|
AmazonCognitoIdentityAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on
AmazonCognitoIdentity using the specified AWS account credentials provider.
|
AmazonCognitoIdentityAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on
AmazonCognitoIdentity using the specified AWS account credentials
provider and client configuration options.
|
AmazonCognitoIdentityAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonCognitoIdentity using the specified AWS account credentials
provider, executor service, and client configuration options.
|
AmazonCognitoIdentityAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonCognitoIdentity using the specified AWS account credentials provider
and executor service.
|
AmazonCognitoIdentityAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on
AmazonCognitoIdentity.
|
Modifier and Type | Method and Description |
---|---|
Future<CreateIdentityPoolResult> |
createIdentityPoolAsync(CreateIdentityPoolRequest createIdentityPoolRequest)
Creates a new identity pool.
|
Future<CreateIdentityPoolResult> |
createIdentityPoolAsync(CreateIdentityPoolRequest createIdentityPoolRequest,
AsyncHandler<CreateIdentityPoolRequest,CreateIdentityPoolResult> asyncHandler)
Creates a new identity pool.
|
Future<Void> |
deleteIdentityPoolAsync(DeleteIdentityPoolRequest deleteIdentityPoolRequest)
Deletes a user pool.
|
Future<Void> |
deleteIdentityPoolAsync(DeleteIdentityPoolRequest deleteIdentityPoolRequest,
AsyncHandler<DeleteIdentityPoolRequest,Void> asyncHandler)
Deletes a user pool.
|
Future<DescribeIdentityPoolResult> |
describeIdentityPoolAsync(DescribeIdentityPoolRequest describeIdentityPoolRequest)
Gets details about a particular identity pool, including the pool
name, ID description, creation date, and current number of users.
|
Future<DescribeIdentityPoolResult> |
describeIdentityPoolAsync(DescribeIdentityPoolRequest describeIdentityPoolRequest,
AsyncHandler<DescribeIdentityPoolRequest,DescribeIdentityPoolResult> asyncHandler)
Gets details about a particular identity pool, including the pool
name, ID description, creation date, and current number of users.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this async client to execute
requests.
|
Future<GetIdResult> |
getIdAsync(GetIdRequest getIdRequest)
Generates (or retrieves) a Cognito ID.
|
Future<GetIdResult> |
getIdAsync(GetIdRequest getIdRequest,
AsyncHandler<GetIdRequest,GetIdResult> asyncHandler)
Generates (or retrieves) a Cognito ID.
|
Future<GetOpenIdTokenResult> |
getOpenIdTokenAsync(GetOpenIdTokenRequest getOpenIdTokenRequest)
Gets an OpenID token, using a known Cognito ID.
|
Future<GetOpenIdTokenResult> |
getOpenIdTokenAsync(GetOpenIdTokenRequest getOpenIdTokenRequest,
AsyncHandler<GetOpenIdTokenRequest,GetOpenIdTokenResult> asyncHandler)
Gets an OpenID token, using a known Cognito ID.
|
Future<ListIdentitiesResult> |
listIdentitiesAsync(ListIdentitiesRequest listIdentitiesRequest)
Lists the identities in a pool.
|
Future<ListIdentitiesResult> |
listIdentitiesAsync(ListIdentitiesRequest listIdentitiesRequest,
AsyncHandler<ListIdentitiesRequest,ListIdentitiesResult> asyncHandler)
Lists the identities in a pool.
|
Future<ListIdentityPoolsResult> |
listIdentityPoolsAsync(ListIdentityPoolsRequest listIdentityPoolsRequest)
Lists all of the Cognito identity pools registered for your account.
|
Future<ListIdentityPoolsResult> |
listIdentityPoolsAsync(ListIdentityPoolsRequest listIdentityPoolsRequest,
AsyncHandler<ListIdentityPoolsRequest,ListIdentityPoolsResult> asyncHandler)
Lists all of the Cognito identity pools registered for your account.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
Future<Void> |
unlinkIdentityAsync(UnlinkIdentityRequest unlinkIdentityRequest)
Unlinks a federated identity from an existing account.
|
Future<Void> |
unlinkIdentityAsync(UnlinkIdentityRequest unlinkIdentityRequest,
AsyncHandler<UnlinkIdentityRequest,Void> asyncHandler)
Unlinks a federated identity from an existing account.
|
Future<UpdateIdentityPoolResult> |
updateIdentityPoolAsync(UpdateIdentityPoolRequest updateIdentityPoolRequest)
Updates a user pool.
|
Future<UpdateIdentityPoolResult> |
updateIdentityPoolAsync(UpdateIdentityPoolRequest updateIdentityPoolRequest,
AsyncHandler<UpdateIdentityPoolRequest,UpdateIdentityPoolResult> asyncHandler)
Updates a user pool.
|
createIdentityPool, deleteIdentityPool, describeIdentityPool, getCachedResponseMetadata, getId, getOpenIdToken, listIdentities, listIdentityPools, setEndpoint, setEndpoint, unlinkIdentity, updateIdentityPool
addRequestHandler, addRequestHandler, configSigner, configSigner, convertToHttpRequest, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setConfiguration, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withTimeOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createIdentityPool, deleteIdentityPool, describeIdentityPool, getCachedResponseMetadata, getId, getOpenIdToken, listIdentities, listIdentityPools, setEndpoint, setRegion, unlinkIdentity, updateIdentityPool
public AmazonCognitoIdentityAsyncClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain
public AmazonCognitoIdentityAsyncClient(ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration
- The client configuration options controlling how this
client connects to AmazonCognitoIdentity
(ex: proxy settings, retry counts, etc.).DefaultAWSCredentialsProviderChain
public AmazonCognitoIdentityAsyncClient(AWSCredentials awsCredentials)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentials
- The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.public AmazonCognitoIdentityAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentials
- The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.executorService
- The executor service by which all asynchronous requests will
be executed.public AmazonCognitoIdentityAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentials
- The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy
settings, etc).executorService
- The executor service by which all asynchronous requests will
be executed.public AmazonCognitoIdentityAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.public AmazonCognitoIdentityAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.executorService
- The executor service by which all asynchronous requests will
be executed.public AmazonCognitoIdentityAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy
settings, etc).public AmazonCognitoIdentityAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy
settings, etc).executorService
- The executor service by which all asynchronous requests will
be executed.public ExecutorService getExecutorService()
public void shutdown()
shutdown
in interface AmazonCognitoIdentity
shutdown
in class AmazonWebServiceClient
public Future<ListIdentityPoolsResult> listIdentityPoolsAsync(ListIdentityPoolsRequest listIdentityPoolsRequest) throws AmazonServiceException, AmazonClientException
Lists all of the Cognito identity pools registered for your account.
listIdentityPoolsAsync
in interface AmazonCognitoIdentityAsync
listIdentityPoolsRequest
- Container for the necessary parameters
to execute the ListIdentityPools operation on AmazonCognitoIdentity.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonCognitoIdentity indicating
either a problem with the data in the request, or a server side issue.public Future<ListIdentityPoolsResult> listIdentityPoolsAsync(ListIdentityPoolsRequest listIdentityPoolsRequest, AsyncHandler<ListIdentityPoolsRequest,ListIdentityPoolsResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists all of the Cognito identity pools registered for your account.
listIdentityPoolsAsync
in interface AmazonCognitoIdentityAsync
listIdentityPoolsRequest
- Container for the necessary parameters
to execute the ListIdentityPools operation on AmazonCognitoIdentity.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonCognitoIdentity indicating
either a problem with the data in the request, or a server side issue.public Future<GetOpenIdTokenResult> getOpenIdTokenAsync(GetOpenIdTokenRequest getOpenIdTokenRequest) throws AmazonServiceException, AmazonClientException
Gets an OpenID token, using a known Cognito ID. This known Cognito ID is returned from GetId. You can optionally add additional logins for the identity. Supplying multiple logins creates an implicit link.
getOpenIdTokenAsync
in interface AmazonCognitoIdentityAsync
getOpenIdTokenRequest
- Container for the necessary parameters to
execute the GetOpenIdToken operation on AmazonCognitoIdentity.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonCognitoIdentity indicating
either a problem with the data in the request, or a server side issue.public Future<GetOpenIdTokenResult> getOpenIdTokenAsync(GetOpenIdTokenRequest getOpenIdTokenRequest, AsyncHandler<GetOpenIdTokenRequest,GetOpenIdTokenResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Gets an OpenID token, using a known Cognito ID. This known Cognito ID is returned from GetId. You can optionally add additional logins for the identity. Supplying multiple logins creates an implicit link.
getOpenIdTokenAsync
in interface AmazonCognitoIdentityAsync
getOpenIdTokenRequest
- Container for the necessary parameters to
execute the GetOpenIdToken operation on AmazonCognitoIdentity.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonCognitoIdentity indicating
either a problem with the data in the request, or a server side issue.public Future<Void> unlinkIdentityAsync(UnlinkIdentityRequest unlinkIdentityRequest) throws AmazonServiceException, AmazonClientException
Unlinks a federated identity from an existing account. Unlinked logins will be considered new identities next time they are seen. Removing the last linked login will make this identity inaccessible.
unlinkIdentityAsync
in interface AmazonCognitoIdentityAsync
unlinkIdentityRequest
- Container for the necessary parameters to
execute the UnlinkIdentity operation on AmazonCognitoIdentity.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonCognitoIdentity indicating
either a problem with the data in the request, or a server side issue.public Future<Void> unlinkIdentityAsync(UnlinkIdentityRequest unlinkIdentityRequest, AsyncHandler<UnlinkIdentityRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Unlinks a federated identity from an existing account. Unlinked logins will be considered new identities next time they are seen. Removing the last linked login will make this identity inaccessible.
unlinkIdentityAsync
in interface AmazonCognitoIdentityAsync
unlinkIdentityRequest
- Container for the necessary parameters to
execute the UnlinkIdentity operation on AmazonCognitoIdentity.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonCognitoIdentity indicating
either a problem with the data in the request, or a server side issue.public Future<DescribeIdentityPoolResult> describeIdentityPoolAsync(DescribeIdentityPoolRequest describeIdentityPoolRequest) throws AmazonServiceException, AmazonClientException
Gets details about a particular identity pool, including the pool name, ID description, creation date, and current number of users.
describeIdentityPoolAsync
in interface AmazonCognitoIdentityAsync
describeIdentityPoolRequest
- Container for the necessary
parameters to execute the DescribeIdentityPool operation on
AmazonCognitoIdentity.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonCognitoIdentity indicating
either a problem with the data in the request, or a server side issue.public Future<DescribeIdentityPoolResult> describeIdentityPoolAsync(DescribeIdentityPoolRequest describeIdentityPoolRequest, AsyncHandler<DescribeIdentityPoolRequest,DescribeIdentityPoolResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Gets details about a particular identity pool, including the pool name, ID description, creation date, and current number of users.
describeIdentityPoolAsync
in interface AmazonCognitoIdentityAsync
describeIdentityPoolRequest
- Container for the necessary
parameters to execute the DescribeIdentityPool operation on
AmazonCognitoIdentity.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonCognitoIdentity indicating
either a problem with the data in the request, or a server side issue.public Future<GetIdResult> getIdAsync(GetIdRequest getIdRequest) throws AmazonServiceException, AmazonClientException
Generates (or retrieves) a Cognito ID. Supplying multiple logins will create an implicit linked account.
getIdAsync
in interface AmazonCognitoIdentityAsync
getIdRequest
- Container for the necessary parameters to execute
the GetId operation on AmazonCognitoIdentity.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonCognitoIdentity indicating
either a problem with the data in the request, or a server side issue.public Future<GetIdResult> getIdAsync(GetIdRequest getIdRequest, AsyncHandler<GetIdRequest,GetIdResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Generates (or retrieves) a Cognito ID. Supplying multiple logins will create an implicit linked account.
getIdAsync
in interface AmazonCognitoIdentityAsync
getIdRequest
- Container for the necessary parameters to execute
the GetId operation on AmazonCognitoIdentity.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonCognitoIdentity indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteIdentityPoolAsync(DeleteIdentityPoolRequest deleteIdentityPoolRequest) throws AmazonServiceException, AmazonClientException
Deletes a user pool. Once a pool is deleted, users will not be able to authenticate with the pool.
deleteIdentityPoolAsync
in interface AmazonCognitoIdentityAsync
deleteIdentityPoolRequest
- Container for the necessary
parameters to execute the DeleteIdentityPool operation on
AmazonCognitoIdentity.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonCognitoIdentity indicating
either a problem with the data in the request, or a server side issue.public Future<Void> deleteIdentityPoolAsync(DeleteIdentityPoolRequest deleteIdentityPoolRequest, AsyncHandler<DeleteIdentityPoolRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes a user pool. Once a pool is deleted, users will not be able to authenticate with the pool.
deleteIdentityPoolAsync
in interface AmazonCognitoIdentityAsync
deleteIdentityPoolRequest
- Container for the necessary
parameters to execute the DeleteIdentityPool operation on
AmazonCognitoIdentity.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonCognitoIdentity indicating
either a problem with the data in the request, or a server side issue.public Future<ListIdentitiesResult> listIdentitiesAsync(ListIdentitiesRequest listIdentitiesRequest) throws AmazonServiceException, AmazonClientException
Lists the identities in a pool.
listIdentitiesAsync
in interface AmazonCognitoIdentityAsync
listIdentitiesRequest
- Container for the necessary parameters to
execute the ListIdentities operation on AmazonCognitoIdentity.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonCognitoIdentity indicating
either a problem with the data in the request, or a server side issue.public Future<ListIdentitiesResult> listIdentitiesAsync(ListIdentitiesRequest listIdentitiesRequest, AsyncHandler<ListIdentitiesRequest,ListIdentitiesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists the identities in a pool.
listIdentitiesAsync
in interface AmazonCognitoIdentityAsync
listIdentitiesRequest
- Container for the necessary parameters to
execute the ListIdentities operation on AmazonCognitoIdentity.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonCognitoIdentity indicating
either a problem with the data in the request, or a server side issue.public Future<UpdateIdentityPoolResult> updateIdentityPoolAsync(UpdateIdentityPoolRequest updateIdentityPoolRequest) throws AmazonServiceException, AmazonClientException
Updates a user pool.
updateIdentityPoolAsync
in interface AmazonCognitoIdentityAsync
updateIdentityPoolRequest
- Container for the necessary
parameters to execute the UpdateIdentityPool operation on
AmazonCognitoIdentity.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonCognitoIdentity indicating
either a problem with the data in the request, or a server side issue.public Future<UpdateIdentityPoolResult> updateIdentityPoolAsync(UpdateIdentityPoolRequest updateIdentityPoolRequest, AsyncHandler<UpdateIdentityPoolRequest,UpdateIdentityPoolResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Updates a user pool.
updateIdentityPoolAsync
in interface AmazonCognitoIdentityAsync
updateIdentityPoolRequest
- Container for the necessary
parameters to execute the UpdateIdentityPool operation on
AmazonCognitoIdentity.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonCognitoIdentity indicating
either a problem with the data in the request, or a server side issue.public Future<CreateIdentityPoolResult> createIdentityPoolAsync(CreateIdentityPoolRequest createIdentityPoolRequest) throws AmazonServiceException, AmazonClientException
Creates a new identity pool. The identity pool is a store of user identity information that is specific to your AWS account.
createIdentityPoolAsync
in interface AmazonCognitoIdentityAsync
createIdentityPoolRequest
- Container for the necessary
parameters to execute the CreateIdentityPool operation on
AmazonCognitoIdentity.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonCognitoIdentity indicating
either a problem with the data in the request, or a server side issue.public Future<CreateIdentityPoolResult> createIdentityPoolAsync(CreateIdentityPoolRequest createIdentityPoolRequest, AsyncHandler<CreateIdentityPoolRequest,CreateIdentityPoolResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Creates a new identity pool. The identity pool is a store of user identity information that is specific to your AWS account.
createIdentityPoolAsync
in interface AmazonCognitoIdentityAsync
createIdentityPoolRequest
- Container for the necessary
parameters to execute the CreateIdentityPool operation on
AmazonCognitoIdentity.asyncHandler
- Asynchronous callback handler for events in the
life-cycle of the request. Users could provide the implementation of
the four callback methods in this interface to process the operation
result or handle the exception.AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.AmazonServiceException
- If an error response is returned by AmazonCognitoIdentity indicating
either a problem with the data in the request, or a server side issue.Copyright © 2014. All rights reserved.