JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.793

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.cognitosync

Class AmazonCognitoSyncClient

  • All Implemented Interfaces:
    AmazonCognitoSync
    Direct Known Subclasses:
    AmazonCognitoSyncAsyncClient


    @ThreadSafe
     @Generated(value="com.amazonaws:aws-java-sdk-code-generator")
    public class AmazonCognitoSyncClient
    extends AmazonWebServiceClient
    implements AmazonCognitoSync 
    Client for accessing Amazon Cognito Sync. All service calls made using this client are blocking, and will not return until the service call completes.

    Amazon Cognito Sync

    Amazon Cognito Sync provides an AWS service and client library that enable cross-device syncing of application-related user data. High-level client libraries are available for both iOS and Android. You can use these libraries to persist data locally so that it's available even if the device is offline. Developer credentials don't need to be stored on the mobile device to access the service. You can use Amazon Cognito to obtain a normalized user ID and credentials. User data is persisted in a dataset that can store up to 1 MB of key-value pairs, and you can have up to 20 datasets per user identity.

    With Amazon Cognito Sync, the data stored for each identity is accessible only to credentials assigned to that identity. In order to use the Cognito Sync service, you need to make API calls using credentials retrieved with Amazon Cognito Identity service.

    If you want to use Cognito Sync in an Android or iOS application, you will probably want to make API calls via the AWS Mobile SDK. To learn more, see the Developer Guide for Android and the Developer Guide for iOS.

    • Constructor Detail

      • AmazonCognitoSyncClient

        @Deprecated
        public AmazonCognitoSyncClient()
        Constructs a new client to invoke service methods on Amazon Cognito Sync. A credentials provider chain will be used that searches for credentials in this order:
        • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
        • Java System Properties - aws.accessKeyId and aws.secretKey
        • Instance profile credentials delivered through the Amazon EC2 metadata service

        All service calls made using this new client object are blocking, and will not return until the service call completes.

        See Also:
        DefaultAWSCredentialsProviderChain
      • AmazonCognitoSyncClient

        @Deprecated
        public AmazonCognitoSyncClient(ClientConfiguration clientConfiguration)
        Constructs a new client to invoke service methods on Amazon Cognito Sync. A credentials provider chain will be used that searches for credentials in this order:
        • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
        • Java System Properties - aws.accessKeyId and aws.secretKey
        • Instance profile credentials delivered through the Amazon EC2 metadata service

        All service calls made using this new client object are blocking, and will not return until the service call completes.

        Parameters:
        clientConfiguration - The client configuration options controlling how this client connects to Amazon Cognito Sync (ex: proxy settings, retry counts, etc.).
        See Also:
        DefaultAWSCredentialsProviderChain
      • AmazonCognitoSyncClient

        @Deprecated
        public AmazonCognitoSyncClient(AWSCredentials awsCredentials)
        Deprecated. use AwsClientBuilder.withCredentials(AWSCredentialsProvider) for example: AmazonCognitoSyncClientBuilder.standard().withCredentials(new AWSStaticCredentialsProvider(awsCredentials)).build();
        Constructs a new client to invoke service methods on Amazon Cognito Sync using the specified AWS account credentials.

        All service calls made using this new client object are blocking, and will not return until the service call completes.

        Parameters:
        awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
      • AmazonCognitoSyncClient

        @Deprecated
        public AmazonCognitoSyncClient(AWSCredentials awsCredentials,
         ClientConfiguration clientConfiguration)
        Constructs a new client to invoke service methods on Amazon Cognito Sync using the specified AWS account credentials and client configuration options.

        All service calls made using this new client object are blocking, and will not return until the service call completes.

        Parameters:
        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 Amazon Cognito Sync (ex: proxy settings, retry counts, etc.).
      • AmazonCognitoSyncClient

        @Deprecated
        public AmazonCognitoSyncClient(AWSCredentialsProvider awsCredentialsProvider)
        Constructs a new client to invoke service methods on Amazon Cognito Sync using the specified AWS account credentials provider.

        All service calls made using this new client object are blocking, and will not return until the service call completes.

        Parameters:
        awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
      • AmazonCognitoSyncClient

        @Deprecated
        public AmazonCognitoSyncClient(AWSCredentialsProvider awsCredentialsProvider,
         ClientConfiguration clientConfiguration)
        Constructs a new client to invoke service methods on Amazon Cognito Sync using the specified AWS account credentials provider and client configuration options.

        All service calls made using this new client object are blocking, and will not return until the service call completes.

        Parameters:
        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 Amazon Cognito Sync (ex: proxy settings, retry counts, etc.).
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /