npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@datafire/amazonaws_cognito_sync

v5.0.0

Published

DataFire integration for Amazon Cognito Sync

Downloads

2

Readme

@datafire/amazonaws_cognito_sync

Client library for Amazon Cognito Sync

Installation and Usage

npm install --save @datafire/amazonaws_cognito_sync
let amazonaws_cognito_sync = require('@datafire/amazonaws_cognito_sync').create({
  accessKeyId: "",
  secretAccessKey: "",
  region: ""
});

amazonaws_cognito_sync.ListIdentityPoolUsage({}).then(data => {
  console.log(data);
});

Description

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.

Actions

ListIdentityPoolUsage

amazonaws_cognito_sync.ListIdentityPoolUsage({}, context)

Input

  • input object

Output

DescribeIdentityPoolUsage

amazonaws_cognito_sync.DescribeIdentityPoolUsage({
  "IdentityPoolId": ""
}, context)

Input

  • input object
    • IdentityPoolId required string

Output

BulkPublish

amazonaws_cognito_sync.BulkPublish({
  "IdentityPoolId": ""
}, context)

Input

  • input object
    • IdentityPoolId required string

Output

GetIdentityPoolConfiguration

amazonaws_cognito_sync.GetIdentityPoolConfiguration({
  "IdentityPoolId": ""
}, context)

Input

  • input object
    • IdentityPoolId required string

Output

SetIdentityPoolConfiguration

amazonaws_cognito_sync.SetIdentityPoolConfiguration({
  "IdentityPoolId": ""
}, context)

Input

Output

GetCognitoEvents

amazonaws_cognito_sync.GetCognitoEvents({
  "IdentityPoolId": ""
}, context)

Input

  • input object
    • IdentityPoolId required string

Output

SetCognitoEvents

amazonaws_cognito_sync.SetCognitoEvents({
  "IdentityPoolId": "",
  "Events": []
}, context)

Input

  • input object
    • IdentityPoolId required string
    • Events required Events

Output

Output schema unknown

GetBulkPublishDetails

amazonaws_cognito_sync.GetBulkPublishDetails({
  "IdentityPoolId": ""
}, context)

Input

  • input object
    • IdentityPoolId required string

Output

DescribeIdentityUsage

amazonaws_cognito_sync.DescribeIdentityUsage({
  "IdentityPoolId": "",
  "IdentityId": ""
}, context)

Input

  • input object
    • IdentityPoolId required string
    • IdentityId required string

Output

ListDatasets

amazonaws_cognito_sync.ListDatasets({
  "IdentityPoolId": "",
  "IdentityId": ""
}, context)

Input

  • input object
    • IdentityPoolId required string
    • IdentityId required string

Output

DeleteDataset

amazonaws_cognito_sync.DeleteDataset({
  "IdentityPoolId": "",
  "IdentityId": "",
  "DatasetName": ""
}, context)

Input

  • input object
    • IdentityPoolId required string
    • IdentityId required string
    • DatasetName required string

Output

DescribeDataset

amazonaws_cognito_sync.DescribeDataset({
  "IdentityPoolId": "",
  "IdentityId": "",
  "DatasetName": ""
}, context)

Input

  • input object
    • IdentityPoolId required string
    • IdentityId required string
    • DatasetName required string

Output

UpdateRecords

amazonaws_cognito_sync.UpdateRecords({
  "IdentityPoolId": "",
  "IdentityId": "",
  "DatasetName": "",
  "SyncSessionToken": ""
}, context)

Input

Output

ListRecords

amazonaws_cognito_sync.ListRecords({
  "IdentityPoolId": "",
  "IdentityId": "",
  "DatasetName": ""
}, context)

Input

  • input object
    • IdentityPoolId required string
    • IdentityId required string
    • DatasetName required string

Output

UnsubscribeFromDataset

amazonaws_cognito_sync.UnsubscribeFromDataset({
  "IdentityPoolId": "",
  "IdentityId": "",
  "DatasetName": "",
  "DeviceId": ""
}, context)

Input

  • input object
    • IdentityPoolId required string
    • IdentityId required string
    • DatasetName required string
    • DeviceId required string

Output

SubscribeToDataset

amazonaws_cognito_sync.SubscribeToDataset({
  "IdentityPoolId": "",
  "IdentityId": "",
  "DatasetName": "",
  "DeviceId": ""
}, context)

Input

  • input object
    • IdentityPoolId required string
    • IdentityId required string
    • DatasetName required string
    • DeviceId required string

Output

RegisterDevice

amazonaws_cognito_sync.RegisterDevice({
  "IdentityPoolId": "",
  "IdentityId": "",
  "Platform": "",
  "Token": ""
}, context)

Input

  • input object
    • IdentityPoolId required string
    • IdentityId required string
    • Platform required Platform
    • Token required PushToken

Output

Definitions

AlreadyStreamedException

  • AlreadyStreamedException object: An exception thrown when a bulk publish operation is requested less than 24 hours after a previous bulk publish operation completed successfully.

ApplicationArn

  • ApplicationArn string

ApplicationArnList

AssumeRoleArn

  • AssumeRoleArn string

Boolean

  • Boolean boolean

BulkPublishRequest

  • BulkPublishRequest object: The input for the BulkPublish operation.

BulkPublishResponse

  • BulkPublishResponse object: The output for the BulkPublish operation.

BulkPublishStatus

  • BulkPublishStatus string (values: NOT_STARTED, IN_PROGRESS, FAILED, SUCCEEDED)

ClientContext

  • ClientContext string

CognitoEventType

  • CognitoEventType string

CognitoStreams

ConcurrentModificationException

  • ConcurrentModificationException object: Thrown if there are parallel requests to modify a resource.

Dataset

  • Dataset object: 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

DatasetName

  • DatasetName string

Date

  • Date string

DeleteDatasetRequest

  • DeleteDatasetRequest object: A request to delete the specific dataset.

DeleteDatasetResponse

  • DeleteDatasetResponse object: Response to a successful DeleteDataset request.

DescribeDatasetRequest

  • DescribeDatasetRequest object: A request for meta data about a dataset (creation date, number of records, size) by owner and dataset name.

DescribeDatasetResponse

  • DescribeDatasetResponse object: Response to a successful DescribeDataset request.

DescribeIdentityPoolUsageRequest

  • DescribeIdentityPoolUsageRequest object: A request for usage information about the identity pool.

DescribeIdentityPoolUsageResponse

  • DescribeIdentityPoolUsageResponse object: Response to a successful DescribeIdentityPoolUsage request.

DescribeIdentityUsageRequest

  • DescribeIdentityUsageRequest object: A request for information about the usage of an identity pool.

DescribeIdentityUsageResponse

  • DescribeIdentityUsageResponse object: The response to a successful DescribeIdentityUsage request.

DeviceId

  • DeviceId string

DuplicateRequestException

  • DuplicateRequestException object: An exception thrown when there is an IN_PROGRESS bulk publish operation for the given identity pool.

Events

ExceptionMessage

  • ExceptionMessage string

GetBulkPublishDetailsRequest

  • GetBulkPublishDetailsRequest object: The input for the GetBulkPublishDetails operation.

GetBulkPublishDetailsResponse

  • GetBulkPublishDetailsResponse object: The output for the GetBulkPublishDetails operation.

GetCognitoEventsRequest

  • GetCognitoEventsRequest object: A request for a list of the configured Cognito Events

GetCognitoEventsResponse

  • GetCognitoEventsResponse object: The response from the GetCognitoEvents request

GetIdentityPoolConfigurationRequest

  • GetIdentityPoolConfigurationRequest object: The input for the GetIdentityPoolConfiguration operation.

GetIdentityPoolConfigurationResponse

IdentityId

  • IdentityId string

IdentityPoolId

  • IdentityPoolId string

IdentityPoolUsage

  • IdentityPoolUsage object: Usage information for the identity pool.

IdentityPoolUsageList

IdentityUsage

Integer

  • Integer integer

IntegerString

  • IntegerString integer

InternalErrorException

  • InternalErrorException object: Indicates an internal service error.

InvalidConfigurationException

InvalidLambdaFunctionOutputException

  • InvalidLambdaFunctionOutputException object: The AWS Lambda function returned invalid output or an exception.

InvalidParameterException

  • InvalidParameterException object: Thrown when a request parameter does not comply with the associated constraints.

LambdaFunctionArn

  • LambdaFunctionArn string

LambdaThrottledException

  • LambdaThrottledException object: AWS Lambda throttled your account, please contact AWS Support

LimitExceededException

  • LimitExceededException object: Thrown when the limit on the number of objects or operations has been exceeded.

ListDatasetsRequest

  • ListDatasetsRequest object: Request for a list of datasets for an identity.

ListDatasetsResponse

  • ListDatasetsResponse object: Returned for a successful ListDatasets request.

ListIdentityPoolUsageRequest

  • ListIdentityPoolUsageRequest object: A request for usage information on an identity pool.

ListIdentityPoolUsageResponse

ListRecordsRequest

  • ListRecordsRequest object: A request for a list of records.

ListRecordsResponse

Long

  • Long integer

MergedDatasetNameList

  • MergedDatasetNameList array

NotAuthorizedException

  • NotAuthorizedException object: Thrown when a user is not authorized to access the requested resource.

Operation

  • Operation string (values: replace, remove)

Platform

  • Platform string (values: APNS, APNS_SANDBOX, GCM, ADM)

PushSync

PushToken

  • PushToken string

Record

RecordKey

  • RecordKey string

RecordList

RecordPatch

RecordPatchList

RecordValue

  • RecordValue string

RegisterDeviceRequest

  • RegisterDeviceRequest object: A request to RegisterDevice.

RegisterDeviceResponse

  • RegisterDeviceResponse object: Response to a RegisterDevice request.

ResourceConflictException

  • ResourceConflictException object: Thrown if an update can't be applied because the resource was changed by another call and this would result in a conflict.

ResourceNotFoundException

  • ResourceNotFoundException object: Thrown if the resource doesn't exist.

SetCognitoEventsRequest

  • SetCognitoEventsRequest object: A request to configure Cognito Events""

SetIdentityPoolConfigurationRequest

  • SetIdentityPoolConfigurationRequest object: The input for the SetIdentityPoolConfiguration operation.

SetIdentityPoolConfigurationResponse

StreamName

  • StreamName string

StreamingStatus

  • StreamingStatus string (values: ENABLED, DISABLED)

String

  • String string

SubscribeToDatasetRequest

  • SubscribeToDatasetRequest object: A request to SubscribeToDatasetRequest.

SubscribeToDatasetResponse

  • SubscribeToDatasetResponse object: Response to a SubscribeToDataset request.

SyncSessionToken

  • SyncSessionToken string

TooManyRequestsException

  • TooManyRequestsException object: Thrown if the request is throttled.

UnsubscribeFromDatasetRequest

  • UnsubscribeFromDatasetRequest object: A request to UnsubscribeFromDataset.

UnsubscribeFromDatasetResponse

  • UnsubscribeFromDatasetResponse object: Response to an UnsubscribeFromDataset request.

UpdateRecordsRequest

  • UpdateRecordsRequest object: A request to post updates to records or add and delete records for a dataset and user.

UpdateRecordsResponse

  • UpdateRecordsResponse object: Returned for a successful UpdateRecordsRequest.