import { CognitoSyncClient } from "./CognitoSyncClient"; import { BulkPublishInput } from "./types/BulkPublishInput"; import { BulkPublishOutput } from "./types/BulkPublishOutput"; import { DeleteDatasetInput } from "./types/DeleteDatasetInput"; import { DeleteDatasetOutput } from "./types/DeleteDatasetOutput"; import { DescribeDatasetInput } from "./types/DescribeDatasetInput"; import { DescribeDatasetOutput } from "./types/DescribeDatasetOutput"; import { DescribeIdentityPoolUsageInput } from "./types/DescribeIdentityPoolUsageInput"; import { DescribeIdentityPoolUsageOutput } from "./types/DescribeIdentityPoolUsageOutput"; import { DescribeIdentityUsageInput } from "./types/DescribeIdentityUsageInput"; import { DescribeIdentityUsageOutput } from "./types/DescribeIdentityUsageOutput"; import { GetBulkPublishDetailsInput } from "./types/GetBulkPublishDetailsInput"; import { GetBulkPublishDetailsOutput } from "./types/GetBulkPublishDetailsOutput"; import { GetCognitoEventsInput } from "./types/GetCognitoEventsInput"; import { GetCognitoEventsOutput } from "./types/GetCognitoEventsOutput"; import { GetIdentityPoolConfigurationInput } from "./types/GetIdentityPoolConfigurationInput"; import { GetIdentityPoolConfigurationOutput } from "./types/GetIdentityPoolConfigurationOutput"; import { ListDatasetsInput } from "./types/ListDatasetsInput"; import { ListDatasetsOutput } from "./types/ListDatasetsOutput"; import { ListIdentityPoolUsageInput } from "./types/ListIdentityPoolUsageInput"; import { ListIdentityPoolUsageOutput } from "./types/ListIdentityPoolUsageOutput"; import { ListRecordsInput } from "./types/ListRecordsInput"; import { ListRecordsOutput } from "./types/ListRecordsOutput"; import { RegisterDeviceInput } from "./types/RegisterDeviceInput"; import { RegisterDeviceOutput } from "./types/RegisterDeviceOutput"; import { SetCognitoEventsInput } from "./types/SetCognitoEventsInput"; import { SetCognitoEventsOutput } from "./types/SetCognitoEventsOutput"; import { SetIdentityPoolConfigurationInput } from "./types/SetIdentityPoolConfigurationInput"; import { SetIdentityPoolConfigurationOutput } from "./types/SetIdentityPoolConfigurationOutput"; import { SubscribeToDatasetInput } from "./types/SubscribeToDatasetInput"; import { SubscribeToDatasetOutput } from "./types/SubscribeToDatasetOutput"; import { UnsubscribeFromDatasetInput } from "./types/UnsubscribeFromDatasetInput"; import { UnsubscribeFromDatasetOutput } from "./types/UnsubscribeFromDatasetOutput"; import { UpdateRecordsInput } from "./types/UpdateRecordsInput"; import { UpdateRecordsOutput } from "./types/UpdateRecordsOutput"; export declare class CognitoSync extends CognitoSyncClient { /** *

Initiates a bulk publish of all existing datasets for an Identity Pool to the configured stream. Customers are limited to one successful bulk publish per 24 hours. Bulk publish is an asynchronous request, customers can see the status of the request via the GetBulkPublishDetails operation.

This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.

* * This operation may fail with one of the following errors: * - {NotAuthorizedException} Thrown when a user is not authorized to access the requested resource. * - {InvalidParameterException} Thrown when a request parameter does not comply with the associated constraints. * - {ResourceNotFoundException} Thrown if the resource doesn't exist. * - {InternalErrorException} Indicates an internal service error. * - {DuplicateRequestException} An exception thrown when there is an IN_PROGRESS bulk publish operation for the given identity pool. * - {AlreadyStreamedException} An exception thrown when a bulk publish operation is requested less than 24 hours after a previous bulk publish operation completed successfully. * - {Error} An error originating from the SDK or customizations rather than the service */ bulkPublish(args: BulkPublishInput): Promise; bulkPublish(args: BulkPublishInput, cb: (err: any, data?: BulkPublishOutput) => void): void; /** *

Deletes the specific dataset. The dataset will be deleted permanently, and the action can't be undone. Datasets that this dataset was merged with will no longer report the merge. Any subsequent operation on this dataset will result in a ResourceNotFoundException.

This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials.

* * This operation may fail with one of the following errors: * - {NotAuthorizedException} Thrown when a user is not authorized to access the requested resource. * - {InvalidParameterException} Thrown when a request parameter does not comply with the associated constraints. * - {ResourceNotFoundException} Thrown if the resource doesn't exist. * - {InternalErrorException} Indicates an internal service error. * - {TooManyRequestsException} Thrown if the request is throttled. * - {ResourceConflictException} Thrown if an update can't be applied because the resource was changed by another call and this would result in a conflict. * - {Error} An error originating from the SDK or customizations rather than the service */ deleteDataset(args: DeleteDatasetInput): Promise; deleteDataset(args: DeleteDatasetInput, cb: (err: any, data?: DeleteDatasetOutput) => void): void; /** *

Gets meta data about a dataset by identity and dataset name. With Amazon Cognito Sync, each identity has access only to its own data. Thus, the credentials used to make this API call need to have access to the identity data.

This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials. You should use Cognito Identity credentials to make this API call.

* * This operation may fail with one of the following errors: * - {NotAuthorizedException} Thrown when a user is not authorized to access the requested resource. * - {InvalidParameterException} Thrown when a request parameter does not comply with the associated constraints. * - {ResourceNotFoundException} Thrown if the resource doesn't exist. * - {InternalErrorException} Indicates an internal service error. * - {TooManyRequestsException} Thrown if the request is throttled. * - {Error} An error originating from the SDK or customizations rather than the service */ describeDataset(args: DescribeDatasetInput): Promise; describeDataset(args: DescribeDatasetInput, cb: (err: any, data?: DescribeDatasetOutput) => void): void; /** *

Gets usage details (for example, data storage) about a particular identity pool.

This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.

* * This operation may fail with one of the following errors: * - {NotAuthorizedException} Thrown when a user is not authorized to access the requested resource. * - {InvalidParameterException} Thrown when a request parameter does not comply with the associated constraints. * - {ResourceNotFoundException} Thrown if the resource doesn't exist. * - {InternalErrorException} Indicates an internal service error. * - {TooManyRequestsException} Thrown if the request is throttled. * - {Error} An error originating from the SDK or customizations rather than the service */ describeIdentityPoolUsage(args: DescribeIdentityPoolUsageInput): Promise; describeIdentityPoolUsage(args: DescribeIdentityPoolUsageInput, cb: (err: any, data?: DescribeIdentityPoolUsageOutput) => void): void; /** *

Gets usage information for an identity, including number of datasets and data usage.

This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials.

* * This operation may fail with one of the following errors: * - {NotAuthorizedException} Thrown when a user is not authorized to access the requested resource. * - {InvalidParameterException} Thrown when a request parameter does not comply with the associated constraints. * - {ResourceNotFoundException} Thrown if the resource doesn't exist. * - {InternalErrorException} Indicates an internal service error. * - {TooManyRequestsException} Thrown if the request is throttled. * - {Error} An error originating from the SDK or customizations rather than the service */ describeIdentityUsage(args: DescribeIdentityUsageInput): Promise; describeIdentityUsage(args: DescribeIdentityUsageInput, cb: (err: any, data?: DescribeIdentityUsageOutput) => void): void; /** *

Get the status of the last BulkPublish operation for an identity pool.

This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.

* * This operation may fail with one of the following errors: * - {NotAuthorizedException} Thrown when a user is not authorized to access the requested resource. * - {InvalidParameterException} Thrown when a request parameter does not comply with the associated constraints. * - {ResourceNotFoundException} Thrown if the resource doesn't exist. * - {InternalErrorException} Indicates an internal service error. * - {Error} An error originating from the SDK or customizations rather than the service */ getBulkPublishDetails(args: GetBulkPublishDetailsInput): Promise; getBulkPublishDetails(args: GetBulkPublishDetailsInput, cb: (err: any, data?: GetBulkPublishDetailsOutput) => void): void; /** *

Gets the events and the corresponding Lambda functions associated with an identity pool.

This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.

* * This operation may fail with one of the following errors: * - {InvalidParameterException} Thrown when a request parameter does not comply with the associated constraints. * - {ResourceNotFoundException} Thrown if the resource doesn't exist. * - {NotAuthorizedException} Thrown when a user is not authorized to access the requested resource. * - {InternalErrorException} Indicates an internal service error. * - {TooManyRequestsException} Thrown if the request is throttled. * - {Error} An error originating from the SDK or customizations rather than the service */ getCognitoEvents(args: GetCognitoEventsInput): Promise; getCognitoEvents(args: GetCognitoEventsInput, cb: (err: any, data?: GetCognitoEventsOutput) => void): void; /** *

Gets the configuration settings of an identity pool.

This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.

* * This operation may fail with one of the following errors: * - {NotAuthorizedException} Thrown when a user is not authorized to access the requested resource. * - {InvalidParameterException} Thrown when a request parameter does not comply with the associated constraints. * - {ResourceNotFoundException} Thrown if the resource doesn't exist. * - {InternalErrorException} Indicates an internal service error. * - {TooManyRequestsException} Thrown if the request is throttled. * - {Error} An error originating from the SDK or customizations rather than the service */ getIdentityPoolConfiguration(args: GetIdentityPoolConfigurationInput): Promise; getIdentityPoolConfiguration(args: GetIdentityPoolConfigurationInput, cb: (err: any, data?: GetIdentityPoolConfigurationOutput) => void): void; /** *

Lists datasets for an identity. With Amazon Cognito Sync, each identity has access only to its own data. Thus, the credentials used to make this API call need to have access to the identity data.

ListDatasets can be called with temporary user credentials provided by Cognito Identity or with developer credentials. You should use the Cognito Identity credentials to make this API call.

* * This operation may fail with one of the following errors: * - {NotAuthorizedException} Thrown when a user is not authorized to access the requested resource. * - {InvalidParameterException} Thrown when a request parameter does not comply with the associated constraints. * - {InternalErrorException} Indicates an internal service error. * - {TooManyRequestsException} Thrown if the request is throttled. * - {Error} An error originating from the SDK or customizations rather than the service */ listDatasets(args: ListDatasetsInput): Promise; listDatasets(args: ListDatasetsInput, cb: (err: any, data?: ListDatasetsOutput) => void): void; /** *

Gets a list of identity pools registered with Cognito.

ListIdentityPoolUsage can only be called with developer credentials. You cannot make this API call with the temporary user credentials provided by Cognito Identity.

* * This operation may fail with one of the following errors: * - {NotAuthorizedException} Thrown when a user is not authorized to access the requested resource. * - {InvalidParameterException} Thrown when a request parameter does not comply with the associated constraints. * - {InternalErrorException} Indicates an internal service error. * - {TooManyRequestsException} Thrown if the request is throttled. * - {Error} An error originating from the SDK or customizations rather than the service */ listIdentityPoolUsage(args: ListIdentityPoolUsageInput): Promise; listIdentityPoolUsage(args: ListIdentityPoolUsageInput, cb: (err: any, data?: ListIdentityPoolUsageOutput) => void): void; /** *

Gets paginated records, optionally changed after a particular sync count for a dataset and identity. With Amazon Cognito Sync, each identity has access only to its own data. Thus, the credentials used to make this API call need to have access to the identity data.

ListRecords can be called with temporary user credentials provided by Cognito Identity or with developer credentials. You should use Cognito Identity credentials to make this API call.

* * This operation may fail with one of the following errors: * - {InvalidParameterException} Thrown when a request parameter does not comply with the associated constraints. * - {NotAuthorizedException} Thrown when a user is not authorized to access the requested resource. * - {TooManyRequestsException} Thrown if the request is throttled. * - {InternalErrorException} Indicates an internal service error. * - {Error} An error originating from the SDK or customizations rather than the service */ listRecords(args: ListRecordsInput): Promise; listRecords(args: ListRecordsInput, cb: (err: any, data?: ListRecordsOutput) => void): void; /** *

Registers a device to receive push sync notifications.

This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.

* * This operation may fail with one of the following errors: * - {NotAuthorizedException} Thrown when a user is not authorized to access the requested resource. * - {InvalidParameterException} Thrown when a request parameter does not comply with the associated constraints. * - {ResourceNotFoundException} Thrown if the resource doesn't exist. * - {InternalErrorException} Indicates an internal service error. * - {InvalidConfigurationException} InvalidConfigurationException shape * - {TooManyRequestsException} Thrown if the request is throttled. * - {Error} An error originating from the SDK or customizations rather than the service */ registerDevice(args: RegisterDeviceInput): Promise; registerDevice(args: RegisterDeviceInput, cb: (err: any, data?: RegisterDeviceOutput) => void): void; /** *

Sets the AWS Lambda function for a given event type for an identity pool. This request only updates the key/value pair specified. Other key/values pairs are not updated. To remove a key value pair, pass a empty value for the particular key.

This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.

* * This operation may fail with one of the following errors: * - {InvalidParameterException} Thrown when a request parameter does not comply with the associated constraints. * - {ResourceNotFoundException} Thrown if the resource doesn't exist. * - {NotAuthorizedException} Thrown when a user is not authorized to access the requested resource. * - {InternalErrorException} Indicates an internal service error. * - {TooManyRequestsException} Thrown if the request is throttled. * - {Error} An error originating from the SDK or customizations rather than the service */ setCognitoEvents(args: SetCognitoEventsInput): Promise; setCognitoEvents(args: SetCognitoEventsInput, cb: (err: any, data?: SetCognitoEventsOutput) => void): void; /** *

Sets the necessary configuration for push sync.

This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.

* * This operation may fail with one of the following errors: * - {NotAuthorizedException} Thrown when a user is not authorized to access the requested resource. * - {InvalidParameterException} Thrown when a request parameter does not comply with the associated constraints. * - {ResourceNotFoundException} Thrown if the resource doesn't exist. * - {InternalErrorException} Indicates an internal service error. * - {TooManyRequestsException} Thrown if the request is throttled. * - {ConcurrentModificationException}

Thrown if there are parallel requests to modify a resource.

* - {Error} An error originating from the SDK or customizations rather than the service */ setIdentityPoolConfiguration(args: SetIdentityPoolConfigurationInput): Promise; setIdentityPoolConfiguration(args: SetIdentityPoolConfigurationInput, cb: (err: any, data?: SetIdentityPoolConfigurationOutput) => void): void; /** *

Subscribes to receive notifications when a dataset is modified by another device.

This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.

* * This operation may fail with one of the following errors: * - {NotAuthorizedException} Thrown when a user is not authorized to access the requested resource. * - {InvalidParameterException} Thrown when a request parameter does not comply with the associated constraints. * - {ResourceNotFoundException} Thrown if the resource doesn't exist. * - {InternalErrorException} Indicates an internal service error. * - {InvalidConfigurationException} InvalidConfigurationException shape * - {TooManyRequestsException} Thrown if the request is throttled. * - {Error} An error originating from the SDK or customizations rather than the service */ subscribeToDataset(args: SubscribeToDatasetInput): Promise; subscribeToDataset(args: SubscribeToDatasetInput, cb: (err: any, data?: SubscribeToDatasetOutput) => void): void; /** *

Unsubscribes from receiving notifications when a dataset is modified by another device.

This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.

* * This operation may fail with one of the following errors: * - {NotAuthorizedException} Thrown when a user is not authorized to access the requested resource. * - {InvalidParameterException} Thrown when a request parameter does not comply with the associated constraints. * - {ResourceNotFoundException} Thrown if the resource doesn't exist. * - {InternalErrorException} Indicates an internal service error. * - {InvalidConfigurationException} InvalidConfigurationException shape * - {TooManyRequestsException} Thrown if the request is throttled. * - {Error} An error originating from the SDK or customizations rather than the service */ unsubscribeFromDataset(args: UnsubscribeFromDatasetInput): Promise; unsubscribeFromDataset(args: UnsubscribeFromDatasetInput, cb: (err: any, data?: UnsubscribeFromDatasetOutput) => void): void; /** *

Posts updates to records and adds and deletes records for a dataset and user.

The sync count in the record patch is your last known sync count for that record. The server will reject an UpdateRecords request with a ResourceConflictException if you try to patch a record with a new value but a stale sync count.

For example, if the sync count on the server is 5 for a key called highScore and you try and submit a new highScore with sync count of 4, the request will be rejected. To obtain the current sync count for a record, call ListRecords. On a successful update of the record, the response returns the new sync count for that record. You should present that sync count the next time you try to update that same record. When the record does not exist, specify the sync count as 0.

This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials.

* * This operation may fail with one of the following errors: * - {InvalidParameterException} Thrown when a request parameter does not comply with the associated constraints. * - {LimitExceededException} Thrown when the limit on the number of objects or operations has been exceeded. * - {NotAuthorizedException} Thrown when a user is not authorized to access the requested resource. * - {ResourceNotFoundException} Thrown if the resource doesn't exist. * - {ResourceConflictException} Thrown if an update can't be applied because the resource was changed by another call and this would result in a conflict. * - {InvalidLambdaFunctionOutputException}

The AWS Lambda function returned invalid output or an exception.

* - {LambdaThrottledException}

AWS Lambda throttled your account, please contact AWS Support

* - {TooManyRequestsException} Thrown if the request is throttled. * - {InternalErrorException} Indicates an internal service error. * - {Error} An error originating from the SDK or customizations rather than the service */ updateRecords(args: UpdateRecordsInput): Promise; updateRecords(args: UpdateRecordsInput, cb: (err: any, data?: UpdateRecordsOutput) => void): void; }