{ "version": "2.0", "metadata": { "apiVersion": "2014-06-30", "endpointPrefix": "cognito-sync", "jsonVersion": "1.1", "protocol": "rest-json", "serviceFullName": "Amazon Cognito Sync", "serviceId": "Cognito Sync", "signatureVersion": "v4", "uid": "cognito-sync-2014-06-30" }, "operations": { "BulkPublish": { "name": "BulkPublish", "http": { "method": "POST", "requestUri": "/identitypools/{IdentityPoolId}/bulkpublish", "responseCode": 200 }, "input": { "shape": "BulkPublishRequest" }, "output": { "shape": "BulkPublishResponse" }, "errors": [ { "shape": "NotAuthorizedException" }, { "shape": "InvalidParameterException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalErrorException" }, { "shape": "DuplicateRequestException" }, { "shape": "AlreadyStreamedException" } ], "documentation": "

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.

" }, "DeleteDataset": { "name": "DeleteDataset", "http": { "method": "DELETE", "requestUri": "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}", "responseCode": 200 }, "input": { "shape": "DeleteDatasetRequest" }, "output": { "shape": "DeleteDatasetResponse" }, "errors": [ { "shape": "NotAuthorizedException" }, { "shape": "InvalidParameterException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalErrorException" }, { "shape": "TooManyRequestsException" }, { "shape": "ResourceConflictException" } ], "documentation": "

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.

" }, "DescribeDataset": { "name": "DescribeDataset", "http": { "method": "GET", "requestUri": "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}", "responseCode": 200 }, "input": { "shape": "DescribeDatasetRequest" }, "output": { "shape": "DescribeDatasetResponse" }, "errors": [ { "shape": "NotAuthorizedException" }, { "shape": "InvalidParameterException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalErrorException" }, { "shape": "TooManyRequestsException" } ], "documentation": "

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.

" }, "DescribeIdentityPoolUsage": { "name": "DescribeIdentityPoolUsage", "http": { "method": "GET", "requestUri": "/identitypools/{IdentityPoolId}", "responseCode": 200 }, "input": { "shape": "DescribeIdentityPoolUsageRequest" }, "output": { "shape": "DescribeIdentityPoolUsageResponse" }, "errors": [ { "shape": "NotAuthorizedException" }, { "shape": "InvalidParameterException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalErrorException" }, { "shape": "TooManyRequestsException" } ], "documentation": "

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.

" }, "DescribeIdentityUsage": { "name": "DescribeIdentityUsage", "http": { "method": "GET", "requestUri": "/identitypools/{IdentityPoolId}/identities/{IdentityId}", "responseCode": 200 }, "input": { "shape": "DescribeIdentityUsageRequest" }, "output": { "shape": "DescribeIdentityUsageResponse" }, "errors": [ { "shape": "NotAuthorizedException" }, { "shape": "InvalidParameterException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalErrorException" }, { "shape": "TooManyRequestsException" } ], "documentation": "

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.

" }, "GetBulkPublishDetails": { "name": "GetBulkPublishDetails", "http": { "method": "POST", "requestUri": "/identitypools/{IdentityPoolId}/getBulkPublishDetails", "responseCode": 200 }, "input": { "shape": "GetBulkPublishDetailsRequest" }, "output": { "shape": "GetBulkPublishDetailsResponse" }, "errors": [ { "shape": "NotAuthorizedException" }, { "shape": "InvalidParameterException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalErrorException" } ], "documentation": "

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.

" }, "GetCognitoEvents": { "name": "GetCognitoEvents", "http": { "method": "GET", "requestUri": "/identitypools/{IdentityPoolId}/events", "responseCode": 200 }, "input": { "shape": "GetCognitoEventsRequest" }, "output": { "shape": "GetCognitoEventsResponse" }, "errors": [ { "shape": "InvalidParameterException" }, { "shape": "ResourceNotFoundException" }, { "shape": "NotAuthorizedException" }, { "shape": "InternalErrorException" }, { "shape": "TooManyRequestsException" } ], "documentation": "

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.

" }, "GetIdentityPoolConfiguration": { "name": "GetIdentityPoolConfiguration", "http": { "method": "GET", "requestUri": "/identitypools/{IdentityPoolId}/configuration", "responseCode": 200 }, "input": { "shape": "GetIdentityPoolConfigurationRequest" }, "output": { "shape": "GetIdentityPoolConfigurationResponse" }, "errors": [ { "shape": "NotAuthorizedException" }, { "shape": "InvalidParameterException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalErrorException" }, { "shape": "TooManyRequestsException" } ], "documentation": "

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.

" }, "ListDatasets": { "name": "ListDatasets", "http": { "method": "GET", "requestUri": "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets", "responseCode": 200 }, "input": { "shape": "ListDatasetsRequest" }, "output": { "shape": "ListDatasetsResponse" }, "errors": [ { "shape": "NotAuthorizedException" }, { "shape": "InvalidParameterException" }, { "shape": "InternalErrorException" }, { "shape": "TooManyRequestsException" } ], "documentation": "

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.

" }, "ListIdentityPoolUsage": { "name": "ListIdentityPoolUsage", "http": { "method": "GET", "requestUri": "/identitypools", "responseCode": 200 }, "input": { "shape": "ListIdentityPoolUsageRequest" }, "output": { "shape": "ListIdentityPoolUsageResponse" }, "errors": [ { "shape": "NotAuthorizedException" }, { "shape": "InvalidParameterException" }, { "shape": "InternalErrorException" }, { "shape": "TooManyRequestsException" } ], "documentation": "

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.

" }, "ListRecords": { "name": "ListRecords", "http": { "method": "GET", "requestUri": "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/records", "responseCode": 200 }, "input": { "shape": "ListRecordsRequest" }, "output": { "shape": "ListRecordsResponse" }, "errors": [ { "shape": "InvalidParameterException" }, { "shape": "NotAuthorizedException" }, { "shape": "TooManyRequestsException" }, { "shape": "InternalErrorException" } ], "documentation": "

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.

" }, "RegisterDevice": { "name": "RegisterDevice", "http": { "method": "POST", "requestUri": "/identitypools/{IdentityPoolId}/identity/{IdentityId}/device", "responseCode": 200 }, "input": { "shape": "RegisterDeviceRequest" }, "output": { "shape": "RegisterDeviceResponse" }, "errors": [ { "shape": "NotAuthorizedException" }, { "shape": "InvalidParameterException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalErrorException" }, { "shape": "InvalidConfigurationException" }, { "shape": "TooManyRequestsException" } ], "documentation": "

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.

" }, "SetCognitoEvents": { "name": "SetCognitoEvents", "http": { "method": "POST", "requestUri": "/identitypools/{IdentityPoolId}/events", "responseCode": 200 }, "input": { "shape": "SetCognitoEventsRequest" }, "errors": [ { "shape": "InvalidParameterException" }, { "shape": "ResourceNotFoundException" }, { "shape": "NotAuthorizedException" }, { "shape": "InternalErrorException" }, { "shape": "TooManyRequestsException" } ], "documentation": "

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.

" }, "SetIdentityPoolConfiguration": { "name": "SetIdentityPoolConfiguration", "http": { "method": "POST", "requestUri": "/identitypools/{IdentityPoolId}/configuration", "responseCode": 200 }, "input": { "shape": "SetIdentityPoolConfigurationRequest" }, "output": { "shape": "SetIdentityPoolConfigurationResponse" }, "errors": [ { "shape": "NotAuthorizedException" }, { "shape": "InvalidParameterException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalErrorException" }, { "shape": "TooManyRequestsException" }, { "shape": "ConcurrentModificationException" } ], "documentation": "

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.

" }, "SubscribeToDataset": { "name": "SubscribeToDataset", "http": { "method": "POST", "requestUri": "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}", "responseCode": 200 }, "input": { "shape": "SubscribeToDatasetRequest" }, "output": { "shape": "SubscribeToDatasetResponse" }, "errors": [ { "shape": "NotAuthorizedException" }, { "shape": "InvalidParameterException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalErrorException" }, { "shape": "InvalidConfigurationException" }, { "shape": "TooManyRequestsException" } ], "documentation": "

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.

" }, "UnsubscribeFromDataset": { "name": "UnsubscribeFromDataset", "http": { "method": "DELETE", "requestUri": "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}", "responseCode": 200 }, "input": { "shape": "UnsubscribeFromDatasetRequest" }, "output": { "shape": "UnsubscribeFromDatasetResponse" }, "errors": [ { "shape": "NotAuthorizedException" }, { "shape": "InvalidParameterException" }, { "shape": "ResourceNotFoundException" }, { "shape": "InternalErrorException" }, { "shape": "InvalidConfigurationException" }, { "shape": "TooManyRequestsException" } ], "documentation": "

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.

" }, "UpdateRecords": { "name": "UpdateRecords", "http": { "method": "POST", "requestUri": "/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}", "responseCode": 200 }, "input": { "shape": "UpdateRecordsRequest" }, "output": { "shape": "UpdateRecordsResponse" }, "errors": [ { "shape": "InvalidParameterException" }, { "shape": "LimitExceededException" }, { "shape": "NotAuthorizedException" }, { "shape": "ResourceNotFoundException" }, { "shape": "ResourceConflictException" }, { "shape": "InvalidLambdaFunctionOutputException" }, { "shape": "LambdaThrottledException" }, { "shape": "TooManyRequestsException" }, { "shape": "InternalErrorException" } ], "documentation": "

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.

" } }, "shapes": { "ApplicationArn": { "type": "string", "pattern": "arn:aws:sns:[-0-9a-z]+:\\d+:app/[A-Z_]+/[a-zA-Z0-9_.-]+" }, "ApplicationArnList": { "type": "list", "member": { "shape": "ApplicationArn" } }, "AssumeRoleArn": { "type": "string", "max": 2048, "min": 20, "pattern": "arn:aws:iam::\\d+:role/.*" }, "Boolean": { "type": "boolean" }, "BulkPublishRequest": { "type": "structure", "required": [ "IdentityPoolId" ], "members": { "IdentityPoolId": { "shape": "IdentityPoolId", "documentation": "A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.", "location": "uri", "locationName": "IdentityPoolId" } }, "documentation": "The input for the BulkPublish operation." }, "BulkPublishResponse": { "type": "structure", "members": { "IdentityPoolId": { "shape": "IdentityPoolId", "documentation": "A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region." } }, "documentation": "The output for the BulkPublish operation." }, "BulkPublishStatus": { "type": "string", "enum": [ "NOT_STARTED", "IN_PROGRESS", "FAILED", "SUCCEEDED" ] }, "ClientContext": { "type": "string" }, "CognitoEventType": { "type": "string" }, "CognitoStreams": { "type": "structure", "members": { "StreamName": { "shape": "StreamName", "documentation": "The name of the Cognito stream to receive updates. This stream must be in the developers account and in the same region as the identity pool." }, "RoleArn": { "shape": "AssumeRoleArn", "documentation": "The ARN of the role Amazon Cognito can assume in order to publish to the stream. This role must grant access to Amazon Cognito (cognito-sync) to invoke PutRecord on your Cognito stream." }, "StreamingStatus": { "shape": "StreamingStatus", "documentation": "Status of the Cognito streams. Valid values are:

ENABLED - Streaming of updates to identity pool is enabled.

DISABLED - Streaming of updates to identity pool is disabled. Bulk publish will also fail if StreamingStatus is DISABLED.

" } }, "documentation": "Configuration options for configure Cognito streams." }, "Dataset": { "type": "structure", "members": { "IdentityId": { "shape": "IdentityId", "documentation": "A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region." }, "DatasetName": { "shape": "DatasetName", "documentation": "A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot)." }, "CreationDate": { "shape": "Date", "documentation": "Date on which the dataset was created." }, "LastModifiedDate": { "shape": "Date", "documentation": "Date when the dataset was last modified." }, "LastModifiedBy": { "shape": "String", "documentation": "The device that made the last change to this dataset." }, "DataStorage": { "shape": "Long", "documentation": "Total size in bytes of the records in this dataset." }, "NumRecords": { "shape": "Long", "documentation": "Number of records in this dataset." } }, "documentation": "A collection of data for an identity pool. An identity pool can have multiple datasets. A dataset is per identity and can be general or associated with a particular entity in an application (like a saved game). Datasets are automatically created if they don't exist. Data is synced by dataset, and a dataset can hold up to 1MB of key-value pairs." }, "DatasetList": { "type": "list", "member": { "shape": "Dataset" } }, "DatasetName": { "type": "string", "max": 128, "min": 1, "pattern": "[a-zA-Z0-9_.:-]+" }, "Date": { "type": "timestamp" }, "DeleteDatasetRequest": { "type": "structure", "required": [ "IdentityPoolId", "IdentityId", "DatasetName" ], "members": { "IdentityPoolId": { "shape": "IdentityPoolId", "documentation": "A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.", "location": "uri", "locationName": "IdentityPoolId" }, "IdentityId": { "shape": "IdentityId", "documentation": "A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.", "location": "uri", "locationName": "IdentityId" }, "DatasetName": { "shape": "DatasetName", "documentation": "A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).", "location": "uri", "locationName": "DatasetName" } }, "documentation": "A request to delete the specific dataset." }, "DeleteDatasetResponse": { "type": "structure", "members": { "Dataset": { "shape": "Dataset", "documentation": "A collection of data for an identity pool. An identity pool can have multiple datasets. A dataset is per identity and can be general or associated with a particular entity in an application (like a saved game). Datasets are automatically created if they don't exist. Data is synced by dataset, and a dataset can hold up to 1MB of key-value pairs." } }, "documentation": "Response to a successful DeleteDataset request." }, "DescribeDatasetRequest": { "type": "structure", "required": [ "IdentityPoolId", "IdentityId", "DatasetName" ], "members": { "IdentityPoolId": { "shape": "IdentityPoolId", "documentation": "A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.", "location": "uri", "locationName": "IdentityPoolId" }, "IdentityId": { "shape": "IdentityId", "documentation": "A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.", "location": "uri", "locationName": "IdentityId" }, "DatasetName": { "shape": "DatasetName", "documentation": "A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).", "location": "uri", "locationName": "DatasetName" } }, "documentation": "A request for meta data about a dataset (creation date, number of records, size) by owner and dataset name." }, "DescribeDatasetResponse": { "type": "structure", "members": { "Dataset": { "shape": "Dataset", "documentation": "Meta data for a collection of data for an identity. An identity can have multiple datasets. A dataset can be general or associated with a particular entity in an application (like a saved game). Datasets are automatically created if they don't exist. Data is synced by dataset, and a dataset can hold up to 1MB of key-value pairs." } }, "documentation": "Response to a successful DescribeDataset request." }, "DescribeIdentityPoolUsageRequest": { "type": "structure", "required": [ "IdentityPoolId" ], "members": { "IdentityPoolId": { "shape": "IdentityPoolId", "documentation": "A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.", "location": "uri", "locationName": "IdentityPoolId" } }, "documentation": "A request for usage information about the identity pool." }, "DescribeIdentityPoolUsageResponse": { "type": "structure", "members": { "IdentityPoolUsage": { "shape": "IdentityPoolUsage", "documentation": "Information about the usage of the identity pool." } }, "documentation": "Response to a successful DescribeIdentityPoolUsage request." }, "DescribeIdentityUsageRequest": { "type": "structure", "required": [ "IdentityPoolId", "IdentityId" ], "members": { "IdentityPoolId": { "shape": "IdentityPoolId", "documentation": "A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.", "location": "uri", "locationName": "IdentityPoolId" }, "IdentityId": { "shape": "IdentityId", "documentation": "A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.", "location": "uri", "locationName": "IdentityId" } }, "documentation": "A request for information about the usage of an identity pool." }, "DescribeIdentityUsageResponse": { "type": "structure", "members": { "IdentityUsage": { "shape": "IdentityUsage", "documentation": "Usage information for the identity." } }, "documentation": "The response to a successful DescribeIdentityUsage request." }, "DeviceId": { "type": "string", "max": 256, "min": 1 }, "Events": { "type": "map", "key": { "shape": "CognitoEventType" }, "value": { "shape": "LambdaFunctionArn" }, "max": 1 }, "GetBulkPublishDetailsRequest": { "type": "structure", "required": [ "IdentityPoolId" ], "members": { "IdentityPoolId": { "shape": "IdentityPoolId", "documentation": "A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.", "location": "uri", "locationName": "IdentityPoolId" } }, "documentation": "The input for the GetBulkPublishDetails operation." }, "GetBulkPublishDetailsResponse": { "type": "structure", "members": { "IdentityPoolId": { "shape": "IdentityPoolId", "documentation": "A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region." }, "BulkPublishStartTime": { "shape": "Date", "documentation": "The date/time at which the last bulk publish was initiated." }, "BulkPublishCompleteTime": { "shape": "Date", "documentation": "If BulkPublishStatus is SUCCEEDED, the time the last bulk publish operation completed." }, "BulkPublishStatus": { "shape": "BulkPublishStatus", "documentation": "Status of the last bulk publish operation, valid values are:

NOT_STARTED - No bulk publish has been requested for this identity pool

IN_PROGRESS - Data is being published to the configured stream

SUCCEEDED - All data for the identity pool has been published to the configured stream

FAILED - Some portion of the data has failed to publish, check FailureMessage for the cause.

" }, "FailureMessage": { "shape": "String", "documentation": "If BulkPublishStatus is FAILED this field will contain the error message that caused the bulk publish to fail." } }, "documentation": "The output for the GetBulkPublishDetails operation." }, "GetCognitoEventsRequest": { "type": "structure", "required": [ "IdentityPoolId" ], "members": { "IdentityPoolId": { "shape": "IdentityPoolId", "documentation": "

The Cognito Identity Pool ID for the request

", "location": "uri", "locationName": "IdentityPoolId" } }, "documentation": "

A request for a list of the configured Cognito Events

" }, "GetCognitoEventsResponse": { "type": "structure", "members": { "Events": { "shape": "Events", "documentation": "

The Cognito Events returned from the GetCognitoEvents request

" } }, "documentation": "

The response from the GetCognitoEvents request

" }, "GetIdentityPoolConfigurationRequest": { "type": "structure", "required": [ "IdentityPoolId" ], "members": { "IdentityPoolId": { "shape": "IdentityPoolId", "documentation": "

A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. This is the ID of the pool for which to return a configuration.

", "location": "uri", "locationName": "IdentityPoolId" } }, "documentation": "

The input for the GetIdentityPoolConfiguration operation.

" }, "GetIdentityPoolConfigurationResponse": { "type": "structure", "members": { "IdentityPoolId": { "shape": "IdentityPoolId", "documentation": "

A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.

" }, "PushSync": { "shape": "PushSync", "documentation": "

Options to apply to this identity pool for push synchronization.

" }, "CognitoStreams": { "shape": "CognitoStreams", "documentation": "Options to apply to this identity pool for Amazon Cognito streams." } }, "documentation": "

The output for the GetIdentityPoolConfiguration operation.

" }, "IdentityId": { "type": "string", "max": 55, "min": 1, "pattern": "[\\w-]+:[0-9a-f-]+" }, "IdentityPoolId": { "type": "string", "max": 55, "min": 1, "pattern": "[\\w-]+:[0-9a-f-]+" }, "IdentityPoolUsage": { "type": "structure", "members": { "IdentityPoolId": { "shape": "IdentityPoolId", "documentation": "A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region." }, "SyncSessionsCount": { "shape": "Long", "documentation": "Number of sync sessions for the identity pool." }, "DataStorage": { "shape": "Long", "documentation": "Data storage information for the identity pool." }, "LastModifiedDate": { "shape": "Date", "documentation": "Date on which the identity pool was last modified." } }, "documentation": "Usage information for the identity pool." }, "IdentityPoolUsageList": { "type": "list", "member": { "shape": "IdentityPoolUsage" } }, "IdentityUsage": { "type": "structure", "members": { "IdentityId": { "shape": "IdentityId", "documentation": "A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region." }, "IdentityPoolId": { "shape": "IdentityPoolId", "documentation": "A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region." }, "LastModifiedDate": { "shape": "Date", "documentation": "Date on which the identity was last modified." }, "DatasetCount": { "shape": "Integer", "documentation": "Number of datasets for the identity." }, "DataStorage": { "shape": "Long", "documentation": "Total data storage for this identity." } }, "documentation": "Usage information for the identity." }, "Integer": { "type": "integer" }, "IntegerString": { "type": "integer" }, "LambdaFunctionArn": { "type": "string" }, "ListDatasetsRequest": { "type": "structure", "required": [ "IdentityId", "IdentityPoolId" ], "members": { "IdentityPoolId": { "shape": "IdentityPoolId", "documentation": "A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.", "location": "uri", "locationName": "IdentityPoolId" }, "IdentityId": { "shape": "IdentityId", "documentation": "A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.", "location": "uri", "locationName": "IdentityId" }, "NextToken": { "shape": "String", "documentation": "A pagination token for obtaining the next page of results.", "location": "querystring", "locationName": "nextToken" }, "MaxResults": { "shape": "IntegerString", "documentation": "The maximum number of results to be returned.", "location": "querystring", "locationName": "maxResults" } }, "documentation": "Request for a list of datasets for an identity." }, "ListDatasetsResponse": { "type": "structure", "members": { "Datasets": { "shape": "DatasetList", "documentation": "A set of datasets." }, "Count": { "shape": "Integer", "documentation": "Number of datasets returned." }, "NextToken": { "shape": "String", "documentation": "A pagination token for obtaining the next page of results." } }, "documentation": "Returned for a successful ListDatasets request." }, "ListIdentityPoolUsageRequest": { "type": "structure", "members": { "NextToken": { "shape": "String", "documentation": "A pagination token for obtaining the next page of results.", "location": "querystring", "locationName": "nextToken" }, "MaxResults": { "shape": "IntegerString", "documentation": "The maximum number of results to be returned.", "location": "querystring", "locationName": "maxResults" } }, "documentation": "A request for usage information on an identity pool." }, "ListIdentityPoolUsageResponse": { "type": "structure", "members": { "IdentityPoolUsages": { "shape": "IdentityPoolUsageList", "documentation": "Usage information for the identity pools." }, "MaxResults": { "shape": "Integer", "documentation": "The maximum number of results to be returned." }, "Count": { "shape": "Integer", "documentation": "Total number of identities for the identity pool." }, "NextToken": { "shape": "String", "documentation": "A pagination token for obtaining the next page of results." } }, "documentation": "Returned for a successful ListIdentityPoolUsage request." }, "ListRecordsRequest": { "type": "structure", "required": [ "IdentityPoolId", "IdentityId", "DatasetName" ], "members": { "IdentityPoolId": { "shape": "IdentityPoolId", "documentation": "A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.", "location": "uri", "locationName": "IdentityPoolId" }, "IdentityId": { "shape": "IdentityId", "documentation": "A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.", "location": "uri", "locationName": "IdentityId" }, "DatasetName": { "shape": "DatasetName", "documentation": "A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).", "location": "uri", "locationName": "DatasetName" }, "LastSyncCount": { "shape": "Long", "documentation": "The last server sync count for this record.", "location": "querystring", "locationName": "lastSyncCount" }, "NextToken": { "shape": "String", "documentation": "A pagination token for obtaining the next page of results.", "location": "querystring", "locationName": "nextToken" }, "MaxResults": { "shape": "IntegerString", "documentation": "The maximum number of results to be returned.", "location": "querystring", "locationName": "maxResults" }, "SyncSessionToken": { "shape": "SyncSessionToken", "documentation": "A token containing a session ID, identity ID, and expiration.", "location": "querystring", "locationName": "syncSessionToken" } }, "documentation": "A request for a list of records." }, "ListRecordsResponse": { "type": "structure", "members": { "Records": { "shape": "RecordList", "documentation": "A list of all records." }, "NextToken": { "shape": "String", "documentation": "A pagination token for obtaining the next page of results." }, "Count": { "shape": "Integer", "documentation": "Total number of records." }, "DatasetSyncCount": { "shape": "Long", "documentation": "Server sync count for this dataset." }, "LastModifiedBy": { "shape": "String", "documentation": "The user/device that made the last change to this record." }, "MergedDatasetNames": { "shape": "MergedDatasetNameList", "documentation": "Names of merged datasets." }, "DatasetExists": { "shape": "Boolean", "documentation": "Indicates whether the dataset exists." }, "DatasetDeletedAfterRequestedSyncCount": { "shape": "Boolean", "documentation": "A boolean value specifying whether to delete the dataset locally." }, "SyncSessionToken": { "shape": "String", "documentation": "A token containing a session ID, identity ID, and expiration." } }, "documentation": "Returned for a successful ListRecordsRequest." }, "Long": { "type": "long" }, "MergedDatasetNameList": { "type": "list", "member": { "shape": "String" } }, "Operation": { "type": "string", "enum": [ "replace", "remove" ] }, "Platform": { "type": "string", "enum": [ "APNS", "APNS_SANDBOX", "GCM", "ADM" ] }, "PushSync": { "type": "structure", "members": { "ApplicationArns": { "shape": "ApplicationArnList", "documentation": "

List of SNS platform application ARNs that could be used by clients.

" }, "RoleArn": { "shape": "AssumeRoleArn", "documentation": "

A role configured to allow Cognito to call SNS on behalf of the developer.

" } }, "documentation": "

Configuration options to be applied to the identity pool.

" }, "PushToken": { "type": "string" }, "Record": { "type": "structure", "members": { "Key": { "shape": "RecordKey", "documentation": "The key for the record." }, "Value": { "shape": "RecordValue", "documentation": "The value for the record." }, "SyncCount": { "shape": "Long", "documentation": "The server sync count for this record." }, "LastModifiedDate": { "shape": "Date", "documentation": "The date on which the record was last modified." }, "LastModifiedBy": { "shape": "String", "documentation": "The user/device that made the last change to this record." }, "DeviceLastModifiedDate": { "shape": "Date", "documentation": "The last modified date of the client device." } }, "documentation": "The basic data structure of a dataset." }, "RecordKey": { "type": "string", "max": 1024, "min": 1 }, "RecordList": { "type": "list", "member": { "shape": "Record" } }, "RecordPatch": { "type": "structure", "required": [ "Op", "Key", "SyncCount" ], "members": { "Op": { "shape": "Operation", "documentation": "An operation, either replace or remove." }, "Key": { "shape": "RecordKey", "documentation": "The key associated with the record patch." }, "Value": { "shape": "RecordValue", "documentation": "The value associated with the record patch." }, "SyncCount": { "shape": "Long", "documentation": "Last known server sync count for this record. Set to 0 if unknown." }, "DeviceLastModifiedDate": { "shape": "Date", "documentation": "The last modified date of the client device." } }, "documentation": "An update operation for a record." }, "RecordPatchList": { "type": "list", "member": { "shape": "RecordPatch" } }, "RecordValue": { "type": "string", "max": 1048575 }, "RegisterDeviceRequest": { "type": "structure", "required": [ "IdentityPoolId", "IdentityId", "Platform", "Token" ], "members": { "IdentityPoolId": { "shape": "IdentityPoolId", "documentation": "

A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. Here, the ID of the pool that the identity belongs to.

", "location": "uri", "locationName": "IdentityPoolId" }, "IdentityId": { "shape": "IdentityId", "documentation": "

The unique ID for this identity.

", "location": "uri", "locationName": "IdentityId" }, "Platform": { "shape": "Platform", "documentation": "

The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).

" }, "Token": { "shape": "PushToken", "documentation": "

The push token.

" } }, "documentation": "

A request to RegisterDevice.

" }, "RegisterDeviceResponse": { "type": "structure", "members": { "DeviceId": { "shape": "DeviceId", "documentation": "

The unique ID generated for this device by Cognito.

" } }, "documentation": "

Response to a RegisterDevice request.

" }, "SetCognitoEventsRequest": { "type": "structure", "required": [ "IdentityPoolId", "Events" ], "members": { "IdentityPoolId": { "shape": "IdentityPoolId", "documentation": "

The Cognito Identity Pool to use when configuring Cognito Events

", "location": "uri", "locationName": "IdentityPoolId" }, "Events": { "shape": "Events", "documentation": "

The events to configure

" } }, "documentation": "

A request to configure Cognito Events\"

\"" }, "SetIdentityPoolConfigurationRequest": { "type": "structure", "required": [ "IdentityPoolId" ], "members": { "IdentityPoolId": { "shape": "IdentityPoolId", "documentation": "

A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. This is the ID of the pool to modify.

", "location": "uri", "locationName": "IdentityPoolId" }, "PushSync": { "shape": "PushSync", "documentation": "

Options to apply to this identity pool for push synchronization.

" }, "CognitoStreams": { "shape": "CognitoStreams", "documentation": "Options to apply to this identity pool for Amazon Cognito streams." } }, "documentation": "

The input for the SetIdentityPoolConfiguration operation.

" }, "SetIdentityPoolConfigurationResponse": { "type": "structure", "members": { "IdentityPoolId": { "shape": "IdentityPoolId", "documentation": "

A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.

" }, "PushSync": { "shape": "PushSync", "documentation": "

Options to apply to this identity pool for push synchronization.

" }, "CognitoStreams": { "shape": "CognitoStreams", "documentation": "Options to apply to this identity pool for Amazon Cognito streams." } }, "documentation": "

The output for the SetIdentityPoolConfiguration operation

" }, "StreamName": { "type": "string", "max": 128, "min": 1 }, "StreamingStatus": { "type": "string", "enum": [ "ENABLED", "DISABLED" ] }, "String": { "type": "string" }, "SubscribeToDatasetRequest": { "type": "structure", "required": [ "IdentityPoolId", "IdentityId", "DatasetName", "DeviceId" ], "members": { "IdentityPoolId": { "shape": "IdentityPoolId", "documentation": "

A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. The ID of the pool to which the identity belongs.

", "location": "uri", "locationName": "IdentityPoolId" }, "IdentityId": { "shape": "IdentityId", "documentation": "

Unique ID for this identity.

", "location": "uri", "locationName": "IdentityId" }, "DatasetName": { "shape": "DatasetName", "documentation": "

The name of the dataset to subcribe to.

", "location": "uri", "locationName": "DatasetName" }, "DeviceId": { "shape": "DeviceId", "documentation": "

The unique ID generated for this device by Cognito.

", "location": "uri", "locationName": "DeviceId" } }, "documentation": "

A request to SubscribeToDatasetRequest.

" }, "SubscribeToDatasetResponse": { "type": "structure", "members": {}, "documentation": "

Response to a SubscribeToDataset request.

" }, "SyncSessionToken": { "type": "string" }, "UnsubscribeFromDatasetRequest": { "type": "structure", "required": [ "IdentityPoolId", "IdentityId", "DatasetName", "DeviceId" ], "members": { "IdentityPoolId": { "shape": "IdentityPoolId", "documentation": "

A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. The ID of the pool to which this identity belongs.

", "location": "uri", "locationName": "IdentityPoolId" }, "IdentityId": { "shape": "IdentityId", "documentation": "

Unique ID for this identity.

", "location": "uri", "locationName": "IdentityId" }, "DatasetName": { "shape": "DatasetName", "documentation": "

The name of the dataset from which to unsubcribe.

", "location": "uri", "locationName": "DatasetName" }, "DeviceId": { "shape": "DeviceId", "documentation": "

The unique ID generated for this device by Cognito.

", "location": "uri", "locationName": "DeviceId" } }, "documentation": "

A request to UnsubscribeFromDataset.

" }, "UnsubscribeFromDatasetResponse": { "type": "structure", "members": {}, "documentation": "

Response to an UnsubscribeFromDataset request.

" }, "UpdateRecordsRequest": { "type": "structure", "required": [ "IdentityPoolId", "IdentityId", "DatasetName", "SyncSessionToken" ], "members": { "IdentityPoolId": { "shape": "IdentityPoolId", "documentation": "A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.", "location": "uri", "locationName": "IdentityPoolId" }, "IdentityId": { "shape": "IdentityId", "documentation": "A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region.", "location": "uri", "locationName": "IdentityId" }, "DatasetName": { "shape": "DatasetName", "documentation": "A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).", "location": "uri", "locationName": "DatasetName" }, "DeviceId": { "shape": "DeviceId", "documentation": "

The unique ID generated for this device by Cognito.

" }, "RecordPatches": { "shape": "RecordPatchList", "documentation": "A list of patch operations." }, "SyncSessionToken": { "shape": "SyncSessionToken", "documentation": "The SyncSessionToken returned by a previous call to ListRecords for this dataset and identity." }, "ClientContext": { "shape": "ClientContext", "documentation": "Intended to supply a device ID that will populate the lastModifiedBy field referenced in other methods. The ClientContext field is not yet implemented.", "location": "header", "locationName": "x-amz-Client-Context" } }, "documentation": "A request to post updates to records or add and delete records for a dataset and user." }, "UpdateRecordsResponse": { "type": "structure", "members": { "Records": { "shape": "RecordList", "documentation": "A list of records that have been updated." } }, "documentation": "Returned for a successful UpdateRecordsRequest." } }, "documentation": "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.

" }