public class AmazonCognitoSyncClient extends AmazonWebServiceClient implements AmazonCognitoSync
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<JsonErrorUnmarshaller> |
jsonErrorUnmarshallers
List of exception unmarshallers for all AmazonCognitoSync exceptions.
|
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset| Constructor and Description |
|---|
AmazonCognitoSyncClient()
Constructs a new client to invoke service methods on
AmazonCognitoSync.
|
AmazonCognitoSyncClient(AWSCredentials awsCredentials)
Constructs a new client to invoke service methods on
AmazonCognitoSync using the specified AWS account credentials.
|
AmazonCognitoSyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on
AmazonCognitoSync using the specified AWS account credentials
and client configuration options.
|
AmazonCognitoSyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new client to invoke service methods on
AmazonCognitoSync using the specified AWS account credentials provider.
|
AmazonCognitoSyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on
AmazonCognitoSync using the specified AWS account credentials
provider and client configuration options.
|
AmazonCognitoSyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector)
Constructs a new client to invoke service methods on
AmazonCognitoSync using the specified AWS account credentials
provider, client configuration options and request metric collector.
|
AmazonCognitoSyncClient(ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on
AmazonCognitoSync.
|
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, shutdown, withTimeOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetRegion, shutdownprotected java.util.List<JsonErrorUnmarshaller> jsonErrorUnmarshallers
public AmazonCognitoSyncClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChainpublic AmazonCognitoSyncClient(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 AmazonCognitoSync
(ex: proxy settings, retry counts, etc.).DefaultAWSCredentialsProviderChainpublic AmazonCognitoSyncClient(AWSCredentials awsCredentials)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials - The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.public AmazonCognitoSyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials - The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.clientConfiguration - The client configuration options controlling how this
client connects to AmazonCognitoSync
(ex: proxy settings, retry counts, etc.).public AmazonCognitoSyncClient(AWSCredentialsProvider awsCredentialsProvider)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.public AmazonCognitoSyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.clientConfiguration - The client configuration options controlling how this
client connects to AmazonCognitoSync
(ex: proxy settings, retry counts, etc.).public AmazonCognitoSyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider - The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.clientConfiguration - The client configuration options controlling how this
client connects to AmazonCognitoSync
(ex: proxy settings, retry counts, etc.).requestMetricCollector - optional request metric collectorpublic UpdateRecordsResult updateRecords(UpdateRecordsRequest updateRecordsRequest)
updateRecords in interface AmazonCognitoSyncupdateRecordsRequest - Container for the necessary parameters to
execute the UpdateRecords service method on AmazonCognitoSync.LimitExceededExceptionTooManyRequestsExceptionResourceConflictExceptionInvalidParameterExceptionResourceNotFoundExceptionNotAuthorizedExceptionInternalErrorExceptionAmazonClientException - 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 AmazonCognitoSync indicating
either a problem with the data in the request, or a server side issue.public DescribeIdentityUsageResult describeIdentityUsage(DescribeIdentityUsageRequest describeIdentityUsageRequest)
describeIdentityUsage in interface AmazonCognitoSyncdescribeIdentityUsageRequest - Container for the necessary
parameters to execute the DescribeIdentityUsage service method on
AmazonCognitoSync.InvalidParameterExceptionResourceNotFoundExceptionNotAuthorizedExceptionInternalErrorExceptionAmazonClientException - 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 AmazonCognitoSync indicating
either a problem with the data in the request, or a server side issue.public SetIdentityPoolConfigurationResult setIdentityPoolConfiguration(SetIdentityPoolConfigurationRequest setIdentityPoolConfigurationRequest)
setIdentityPoolConfiguration in interface AmazonCognitoSyncsetIdentityPoolConfigurationRequest - Container for the necessary
parameters to execute the SetIdentityPoolConfiguration service method
on AmazonCognitoSync.InvalidParameterExceptionResourceNotFoundExceptionNotAuthorizedExceptionInternalErrorExceptionAmazonClientException - 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 AmazonCognitoSync indicating
either a problem with the data in the request, or a server side issue.public GetIdentityPoolConfigurationResult getIdentityPoolConfiguration(GetIdentityPoolConfigurationRequest getIdentityPoolConfigurationRequest)
getIdentityPoolConfiguration in interface AmazonCognitoSyncgetIdentityPoolConfigurationRequest - Container for the necessary
parameters to execute the GetIdentityPoolConfiguration service method
on AmazonCognitoSync.InvalidParameterExceptionResourceNotFoundExceptionNotAuthorizedExceptionInternalErrorExceptionAmazonClientException - 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 AmazonCognitoSync indicating
either a problem with the data in the request, or a server side issue.public UnsubscribeFromDatasetResult unsubscribeFromDataset(UnsubscribeFromDatasetRequest unsubscribeFromDatasetRequest)
unsubscribeFromDataset in interface AmazonCognitoSyncunsubscribeFromDatasetRequest - Container for the necessary
parameters to execute the UnsubscribeFromDataset service method on
AmazonCognitoSync.InvalidConfigurationExceptionInvalidParameterExceptionResourceNotFoundExceptionNotAuthorizedExceptionInternalErrorExceptionAmazonClientException - 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 AmazonCognitoSync indicating
either a problem with the data in the request, or a server side issue.public SubscribeToDatasetResult subscribeToDataset(SubscribeToDatasetRequest subscribeToDatasetRequest)
subscribeToDataset in interface AmazonCognitoSyncsubscribeToDatasetRequest - Container for the necessary
parameters to execute the SubscribeToDataset service method on
AmazonCognitoSync.InvalidConfigurationExceptionInvalidParameterExceptionResourceNotFoundExceptionNotAuthorizedExceptionInternalErrorExceptionAmazonClientException - 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 AmazonCognitoSync indicating
either a problem with the data in the request, or a server side issue.public DescribeIdentityPoolUsageResult describeIdentityPoolUsage(DescribeIdentityPoolUsageRequest describeIdentityPoolUsageRequest)
describeIdentityPoolUsage in interface AmazonCognitoSyncdescribeIdentityPoolUsageRequest - Container for the necessary
parameters to execute the DescribeIdentityPoolUsage service method on
AmazonCognitoSync.InvalidParameterExceptionResourceNotFoundExceptionNotAuthorizedExceptionInternalErrorExceptionAmazonClientException - 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 AmazonCognitoSync indicating
either a problem with the data in the request, or a server side issue.public ListDatasetsResult listDatasets(ListDatasetsRequest listDatasetsRequest)
listDatasets in interface AmazonCognitoSynclistDatasetsRequest - Container for the necessary parameters to
execute the ListDatasets service method on AmazonCognitoSync.InvalidParameterExceptionNotAuthorizedExceptionInternalErrorExceptionAmazonClientException - 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 AmazonCognitoSync indicating
either a problem with the data in the request, or a server side issue.public ListIdentityPoolUsageResult listIdentityPoolUsage(ListIdentityPoolUsageRequest listIdentityPoolUsageRequest)
listIdentityPoolUsage in interface AmazonCognitoSynclistIdentityPoolUsageRequest - Container for the necessary
parameters to execute the ListIdentityPoolUsage service method on
AmazonCognitoSync.InvalidParameterExceptionNotAuthorizedExceptionInternalErrorExceptionAmazonClientException - 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 AmazonCognitoSync indicating
either a problem with the data in the request, or a server side issue.public ListRecordsResult listRecords(ListRecordsRequest listRecordsRequest)
listRecords in interface AmazonCognitoSynclistRecordsRequest - Container for the necessary parameters to
execute the ListRecords service method on AmazonCognitoSync.TooManyRequestsExceptionInvalidParameterExceptionNotAuthorizedExceptionInternalErrorExceptionAmazonClientException - 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 AmazonCognitoSync indicating
either a problem with the data in the request, or a server side issue.public DescribeDatasetResult describeDataset(DescribeDatasetRequest describeDatasetRequest)
describeDataset in interface AmazonCognitoSyncdescribeDatasetRequest - Container for the necessary parameters
to execute the DescribeDataset service method on AmazonCognitoSync.InvalidParameterExceptionResourceNotFoundExceptionNotAuthorizedExceptionInternalErrorExceptionAmazonClientException - 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 AmazonCognitoSync indicating
either a problem with the data in the request, or a server side issue.public DeleteDatasetResult deleteDataset(DeleteDatasetRequest deleteDatasetRequest)
deleteDataset in interface AmazonCognitoSyncdeleteDatasetRequest - Container for the necessary parameters to
execute the DeleteDataset service method on AmazonCognitoSync.InvalidParameterExceptionResourceNotFoundExceptionNotAuthorizedExceptionInternalErrorExceptionAmazonClientException - 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 AmazonCognitoSync indicating
either a problem with the data in the request, or a server side issue.public RegisterDeviceResult registerDevice(RegisterDeviceRequest registerDeviceRequest)
registerDevice in interface AmazonCognitoSyncregisterDeviceRequest - Container for the necessary parameters to
execute the RegisterDevice service method on AmazonCognitoSync.InvalidConfigurationExceptionInvalidParameterExceptionResourceNotFoundExceptionNotAuthorizedExceptionInternalErrorExceptionAmazonClientException - 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 AmazonCognitoSync indicating
either a problem with the data in the request, or a server side issue.public void setEndpoint(java.lang.String endpoint)
AmazonWebServiceClientThis method is not threadsafe. Endpoints should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit.
Callers can pass in just the endpoint (ex: "ec2.amazonaws.com") or a full
URL, including the protocol (ex: "https://ec2.amazonaws.com"). If the
protocol is not specified here, the default protocol from this client's
ClientConfiguration will be used, which by default is HTTPS.
For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available endpoints for all AWS services, see: http://developer.amazonwebservices.com/connect/entry.jspa?externalID=3912
setEndpoint in interface AmazonCognitoSyncsetEndpoint in class AmazonWebServiceClientendpoint - The endpoint (ex: "ec2.amazonaws.com") or a full URL,
including the protocol (ex: "https://ec2.amazonaws.com") of
the region specific AWS endpoint this client will communicate
with.public void setEndpoint(java.lang.String endpoint,
java.lang.String serviceName,
java.lang.String regionId)
throws java.lang.IllegalArgumentException
AmazonWebServiceClientOverrides the default endpoint for this client ("http://dynamodb.us-east-1.amazonaws.com/") and explicitly provides an AWS region ID and AWS service name to use when the client calculates a signature for requests. In almost all cases, this region ID and service name are automatically determined from the endpoint, and callers should use the simpler one-argument form of setEndpoint instead of this method.
Callers can pass in just the endpoint (ex:
"dynamodb.us-east-1.amazonaws.com/") or a full URL, including the
protocol (ex: "http://dynamodb.us-east-1.amazonaws.com/"). If the
protocol is not specified here, the default protocol from this client's
ClientConfiguration will be used, which by default is HTTPS.
For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available endpoints for all AWS services, see: http://developer.amazonwebservices.com/connect/entry.jspa?externalID= 3912
setEndpoint in class AmazonWebServiceClientendpoint - The endpoint (ex: "dynamodb.us-east-1.amazonaws.com/") or a
full URL, including the protocol (ex:
"http://dynamodb.us-east-1.amazonaws.com/") of the region
specific AWS endpoint this client will communicate with.serviceName - This parameter is ignored.regionId - The ID of the region in which this service resides AND the
overriding region for signing purposes.java.lang.IllegalArgumentException - If any problems are detected with the specified endpoint.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata in interface AmazonCognitoSyncrequest - The originally executed request