123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032 |
- //
- // Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
- //
- // Licensed under the Apache License, Version 2.0 (the "License").
- // You may not use this file except in compliance with the License.
- // A copy of the License is located at
- //
- // http://aws.amazon.com/apache2.0
- //
- // or in the "license" file accompanying this file. This file is distributed
- // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
- // express or implied. See the License for the specific language governing
- // permissions and limitations under the License.
- //
-
- #import <Foundation/Foundation.h>
- #import <AWSCore/AWSNetworking.h>
- #import <AWSCore/AWSModel.h>
-
- NS_ASSUME_NONNULL_BEGIN
-
- FOUNDATION_EXPORT NSString *const AWSCognitoSyncErrorDomain;
-
- typedef NS_ENUM(NSInteger, AWSCognitoSyncErrorType) {
- AWSCognitoSyncErrorUnknown,
- AWSCognitoSyncErrorAlreadyStreamed,
- AWSCognitoSyncErrorConcurrentModification,
- AWSCognitoSyncErrorDuplicateRequest,
- AWSCognitoSyncErrorInternalError,
- AWSCognitoSyncErrorInvalidConfiguration,
- AWSCognitoSyncErrorInvalidLambdaFunctionOutput,
- AWSCognitoSyncErrorInvalidParameter,
- AWSCognitoSyncErrorLambdaThrottled,
- AWSCognitoSyncErrorLimitExceeded,
- AWSCognitoSyncErrorNotAuthorized,
- AWSCognitoSyncErrorResourceConflict,
- AWSCognitoSyncErrorResourceNotFound,
- AWSCognitoSyncErrorTooManyRequests,
- };
-
- typedef NS_ENUM(NSInteger, AWSCognitoSyncBulkPublishStatus) {
- AWSCognitoSyncBulkPublishStatusUnknown,
- AWSCognitoSyncBulkPublishStatusNotStarted,
- AWSCognitoSyncBulkPublishStatusInProgress,
- AWSCognitoSyncBulkPublishStatusFailed,
- AWSCognitoSyncBulkPublishStatusSucceeded,
- };
-
- typedef NS_ENUM(NSInteger, AWSCognitoSyncOperation) {
- AWSCognitoSyncOperationUnknown,
- AWSCognitoSyncOperationReplace,
- AWSCognitoSyncOperationRemove,
- };
-
- typedef NS_ENUM(NSInteger, AWSCognitoSyncPlatform) {
- AWSCognitoSyncPlatformUnknown,
- AWSCognitoSyncPlatformApns,
- AWSCognitoSyncPlatformApnsSandbox,
- AWSCognitoSyncPlatformGcm,
- AWSCognitoSyncPlatformAdm,
- };
-
- typedef NS_ENUM(NSInteger, AWSCognitoSyncStreamingStatus) {
- AWSCognitoSyncStreamingStatusUnknown,
- AWSCognitoSyncStreamingStatusEnabled,
- AWSCognitoSyncStreamingStatusDisabled,
- };
-
- @class AWSCognitoSyncBulkPublishRequest;
- @class AWSCognitoSyncBulkPublishResponse;
- @class AWSCognitoSyncCognitoStreams;
- @class AWSCognitoSyncDataset;
- @class AWSCognitoSyncDeleteDatasetRequest;
- @class AWSCognitoSyncDeleteDatasetResponse;
- @class AWSCognitoSyncDescribeDatasetRequest;
- @class AWSCognitoSyncDescribeDatasetResponse;
- @class AWSCognitoSyncDescribeIdentityPoolUsageRequest;
- @class AWSCognitoSyncDescribeIdentityPoolUsageResponse;
- @class AWSCognitoSyncDescribeIdentityUsageRequest;
- @class AWSCognitoSyncDescribeIdentityUsageResponse;
- @class AWSCognitoSyncGetBulkPublishDetailsRequest;
- @class AWSCognitoSyncGetBulkPublishDetailsResponse;
- @class AWSCognitoSyncGetCognitoEventsRequest;
- @class AWSCognitoSyncGetCognitoEventsResponse;
- @class AWSCognitoSyncGetIdentityPoolConfigurationRequest;
- @class AWSCognitoSyncGetIdentityPoolConfigurationResponse;
- @class AWSCognitoSyncIdentityPoolUsage;
- @class AWSCognitoSyncIdentityUsage;
- @class AWSCognitoSyncListDatasetsRequest;
- @class AWSCognitoSyncListDatasetsResponse;
- @class AWSCognitoSyncListIdentityPoolUsageRequest;
- @class AWSCognitoSyncListIdentityPoolUsageResponse;
- @class AWSCognitoSyncListRecordsRequest;
- @class AWSCognitoSyncListRecordsResponse;
- @class AWSCognitoSyncPushSync;
- @class AWSCognitoSyncRecord;
- @class AWSCognitoSyncRecordPatch;
- @class AWSCognitoSyncRegisterDeviceRequest;
- @class AWSCognitoSyncRegisterDeviceResponse;
- @class AWSCognitoSyncSetCognitoEventsRequest;
- @class AWSCognitoSyncSetIdentityPoolConfigurationRequest;
- @class AWSCognitoSyncSetIdentityPoolConfigurationResponse;
- @class AWSCognitoSyncSubscribeToDatasetRequest;
- @class AWSCognitoSyncSubscribeToDatasetResponse;
- @class AWSCognitoSyncUnsubscribeFromDatasetRequest;
- @class AWSCognitoSyncUnsubscribeFromDatasetResponse;
- @class AWSCognitoSyncUpdateRecordsRequest;
- @class AWSCognitoSyncUpdateRecordsResponse;
-
- /**
- The input for the BulkPublish operation.
- Required parameters: [IdentityPoolId]
- */
- @interface AWSCognitoSyncBulkPublishRequest : AWSRequest
-
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- @end
-
- /**
- The output for the BulkPublish operation.
- */
- @interface AWSCognitoSyncBulkPublishResponse : AWSModel
-
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- @end
-
- /**
- Configuration options for configure Cognito streams.
- */
- @interface AWSCognitoSyncCognitoStreams : AWSModel
-
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable roleArn;
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable streamName;
-
- /**
- Status of the Cognito streams. Valid values are: <p>ENABLED - Streaming of updates to identity pool is enabled.</p><p>DISABLED - Streaming of updates to identity pool is disabled. Bulk publish will also fail if StreamingStatus is DISABLED.</p>
- */
- @property (nonatomic, assign) AWSCognitoSyncStreamingStatus streamingStatus;
-
- @end
-
- /**
- 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.
- */
- @interface AWSCognitoSyncDataset : AWSModel
-
-
- /**
- Date on which the dataset was created.
- */
- @property (nonatomic, strong) NSDate * _Nullable creationDate;
-
- /**
- Total size in bytes of the records in this dataset.
- */
- @property (nonatomic, strong) NSNumber * _Nullable dataStorage;
-
- /**
- A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).
- */
- @property (nonatomic, strong) NSString * _Nullable datasetName;
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- /**
- The device that made the last change to this dataset.
- */
- @property (nonatomic, strong) NSString * _Nullable lastModifiedBy;
-
- /**
- Date when the dataset was last modified.
- */
- @property (nonatomic, strong) NSDate * _Nullable lastModifiedDate;
-
- /**
- Number of records in this dataset.
- */
- @property (nonatomic, strong) NSNumber * _Nullable numRecords;
-
- @end
-
- /**
- A request to delete the specific dataset.
- Required parameters: [IdentityPoolId, IdentityId, DatasetName]
- */
- @interface AWSCognitoSyncDeleteDatasetRequest : AWSRequest
-
-
- /**
- A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).
- */
- @property (nonatomic, strong) NSString * _Nullable datasetName;
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- @end
-
- /**
- Response to a successful DeleteDataset request.
- */
- @interface AWSCognitoSyncDeleteDatasetResponse : AWSModel
-
-
- /**
- 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.
- */
- @property (nonatomic, strong) AWSCognitoSyncDataset * _Nullable dataset;
-
- @end
-
- /**
- A request for meta data about a dataset (creation date, number of records, size) by owner and dataset name.
- Required parameters: [IdentityPoolId, IdentityId, DatasetName]
- */
- @interface AWSCognitoSyncDescribeDatasetRequest : AWSRequest
-
-
- /**
- A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).
- */
- @property (nonatomic, strong) NSString * _Nullable datasetName;
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- @end
-
- /**
- Response to a successful DescribeDataset request.
- */
- @interface AWSCognitoSyncDescribeDatasetResponse : AWSModel
-
-
- /**
- 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.
- */
- @property (nonatomic, strong) AWSCognitoSyncDataset * _Nullable dataset;
-
- @end
-
- /**
- A request for usage information about the identity pool.
- Required parameters: [IdentityPoolId]
- */
- @interface AWSCognitoSyncDescribeIdentityPoolUsageRequest : AWSRequest
-
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- @end
-
- /**
- Response to a successful DescribeIdentityPoolUsage request.
- */
- @interface AWSCognitoSyncDescribeIdentityPoolUsageResponse : AWSModel
-
-
- /**
- Information about the usage of the identity pool.
- */
- @property (nonatomic, strong) AWSCognitoSyncIdentityPoolUsage * _Nullable identityPoolUsage;
-
- @end
-
- /**
- A request for information about the usage of an identity pool.
- Required parameters: [IdentityPoolId, IdentityId]
- */
- @interface AWSCognitoSyncDescribeIdentityUsageRequest : AWSRequest
-
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- @end
-
- /**
- The response to a successful DescribeIdentityUsage request.
- */
- @interface AWSCognitoSyncDescribeIdentityUsageResponse : AWSModel
-
-
- /**
- Usage information for the identity.
- */
- @property (nonatomic, strong) AWSCognitoSyncIdentityUsage * _Nullable identityUsage;
-
- @end
-
- /**
- The input for the GetBulkPublishDetails operation.
- Required parameters: [IdentityPoolId]
- */
- @interface AWSCognitoSyncGetBulkPublishDetailsRequest : AWSRequest
-
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- @end
-
- /**
- The output for the GetBulkPublishDetails operation.
- */
- @interface AWSCognitoSyncGetBulkPublishDetailsResponse : AWSModel
-
-
- /**
- If BulkPublishStatus is SUCCEEDED, the time the last bulk publish operation completed.
- */
- @property (nonatomic, strong) NSDate * _Nullable bulkPublishCompleteTime;
-
- /**
- The date/time at which the last bulk publish was initiated.
- */
- @property (nonatomic, strong) NSDate * _Nullable bulkPublishStartTime;
-
- /**
- Status of the last bulk publish operation, valid values are: <p>NOT_STARTED - No bulk publish has been requested for this identity pool</p><p>IN_PROGRESS - Data is being published to the configured stream</p><p>SUCCEEDED - All data for the identity pool has been published to the configured stream</p><p>FAILED - Some portion of the data has failed to publish, check FailureMessage for the cause.</p>
- */
- @property (nonatomic, assign) AWSCognitoSyncBulkPublishStatus bulkPublishStatus;
-
- /**
- If BulkPublishStatus is FAILED this field will contain the error message that caused the bulk publish to fail.
- */
- @property (nonatomic, strong) NSString * _Nullable failureMessage;
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- @end
-
- /**
- <p>A request for a list of the configured Cognito Events</p>
- Required parameters: [IdentityPoolId]
- */
- @interface AWSCognitoSyncGetCognitoEventsRequest : AWSRequest
-
-
- /**
- <p>The Cognito Identity Pool ID for the request</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- @end
-
- /**
- <p>The response from the GetCognitoEvents request</p>
- */
- @interface AWSCognitoSyncGetCognitoEventsResponse : AWSModel
-
-
- /**
- <p>The Cognito Events returned from the GetCognitoEvents request</p>
- */
- @property (nonatomic, strong) NSDictionary<NSString *, NSString *> * _Nullable events;
-
- @end
-
- /**
- <p>The input for the GetIdentityPoolConfiguration operation.</p>
- Required parameters: [IdentityPoolId]
- */
- @interface AWSCognitoSyncGetIdentityPoolConfigurationRequest : AWSRequest
-
-
- /**
- <p>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.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- @end
-
- /**
- <p>The output for the GetIdentityPoolConfiguration operation.</p>
- */
- @interface AWSCognitoSyncGetIdentityPoolConfigurationResponse : AWSModel
-
-
- /**
- Options to apply to this identity pool for Amazon Cognito streams.
- */
- @property (nonatomic, strong) AWSCognitoSyncCognitoStreams * _Nullable cognitoStreams;
-
- /**
- <p>A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- /**
- <p>Options to apply to this identity pool for push synchronization.</p>
- */
- @property (nonatomic, strong) AWSCognitoSyncPushSync * _Nullable pushSync;
-
- @end
-
- /**
- Usage information for the identity pool.
- */
- @interface AWSCognitoSyncIdentityPoolUsage : AWSModel
-
-
- /**
- Data storage information for the identity pool.
- */
- @property (nonatomic, strong) NSNumber * _Nullable dataStorage;
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- /**
- Date on which the identity pool was last modified.
- */
- @property (nonatomic, strong) NSDate * _Nullable lastModifiedDate;
-
- /**
- Number of sync sessions for the identity pool.
- */
- @property (nonatomic, strong) NSNumber * _Nullable syncSessionsCount;
-
- @end
-
- /**
- Usage information for the identity.
- */
- @interface AWSCognitoSyncIdentityUsage : AWSModel
-
-
- /**
- Total data storage for this identity.
- */
- @property (nonatomic, strong) NSNumber * _Nullable dataStorage;
-
- /**
- Number of datasets for the identity.
- */
- @property (nonatomic, strong) NSNumber * _Nullable datasetCount;
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- /**
- Date on which the identity was last modified.
- */
- @property (nonatomic, strong) NSDate * _Nullable lastModifiedDate;
-
- @end
-
- /**
- Request for a list of datasets for an identity.
- Required parameters: [IdentityId, IdentityPoolId]
- */
- @interface AWSCognitoSyncListDatasetsRequest : AWSRequest
-
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- /**
- The maximum number of results to be returned.
- */
- @property (nonatomic, strong) NSNumber * _Nullable maxResults;
-
- /**
- A pagination token for obtaining the next page of results.
- */
- @property (nonatomic, strong) NSString * _Nullable nextToken;
-
- @end
-
- /**
- Returned for a successful ListDatasets request.
- */
- @interface AWSCognitoSyncListDatasetsResponse : AWSModel
-
-
- /**
- Number of datasets returned.
- */
- @property (nonatomic, strong) NSNumber * _Nullable count;
-
- /**
- A set of datasets.
- */
- @property (nonatomic, strong) NSArray<AWSCognitoSyncDataset *> * _Nullable datasets;
-
- /**
- A pagination token for obtaining the next page of results.
- */
- @property (nonatomic, strong) NSString * _Nullable nextToken;
-
- @end
-
- /**
- A request for usage information on an identity pool.
- */
- @interface AWSCognitoSyncListIdentityPoolUsageRequest : AWSRequest
-
-
- /**
- The maximum number of results to be returned.
- */
- @property (nonatomic, strong) NSNumber * _Nullable maxResults;
-
- /**
- A pagination token for obtaining the next page of results.
- */
- @property (nonatomic, strong) NSString * _Nullable nextToken;
-
- @end
-
- /**
- Returned for a successful ListIdentityPoolUsage request.
- */
- @interface AWSCognitoSyncListIdentityPoolUsageResponse : AWSModel
-
-
- /**
- Total number of identities for the identity pool.
- */
- @property (nonatomic, strong) NSNumber * _Nullable count;
-
- /**
- Usage information for the identity pools.
- */
- @property (nonatomic, strong) NSArray<AWSCognitoSyncIdentityPoolUsage *> * _Nullable identityPoolUsages;
-
- /**
- The maximum number of results to be returned.
- */
- @property (nonatomic, strong) NSNumber * _Nullable maxResults;
-
- /**
- A pagination token for obtaining the next page of results.
- */
- @property (nonatomic, strong) NSString * _Nullable nextToken;
-
- @end
-
- /**
- A request for a list of records.
- Required parameters: [IdentityPoolId, IdentityId, DatasetName]
- */
- @interface AWSCognitoSyncListRecordsRequest : AWSRequest
-
-
- /**
- A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).
- */
- @property (nonatomic, strong) NSString * _Nullable datasetName;
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- /**
- The last server sync count for this record.
- */
- @property (nonatomic, strong) NSNumber * _Nullable lastSyncCount;
-
- /**
- The maximum number of results to be returned.
- */
- @property (nonatomic, strong) NSNumber * _Nullable maxResults;
-
- /**
- A pagination token for obtaining the next page of results.
- */
- @property (nonatomic, strong) NSString * _Nullable nextToken;
-
- /**
- A token containing a session ID, identity ID, and expiration.
- */
- @property (nonatomic, strong) NSString * _Nullable syncSessionToken;
-
- @end
-
- /**
- Returned for a successful ListRecordsRequest.
- */
- @interface AWSCognitoSyncListRecordsResponse : AWSModel
-
-
- /**
- Total number of records.
- */
- @property (nonatomic, strong) NSNumber * _Nullable count;
-
- /**
- A boolean value specifying whether to delete the dataset locally.
- */
- @property (nonatomic, strong) NSNumber * _Nullable datasetDeletedAfterRequestedSyncCount;
-
- /**
- Indicates whether the dataset exists.
- */
- @property (nonatomic, strong) NSNumber * _Nullable datasetExists;
-
- /**
- Server sync count for this dataset.
- */
- @property (nonatomic, strong) NSNumber * _Nullable datasetSyncCount;
-
- /**
- The user/device that made the last change to this record.
- */
- @property (nonatomic, strong) NSString * _Nullable lastModifiedBy;
-
- /**
- Names of merged datasets.
- */
- @property (nonatomic, strong) NSArray<NSString *> * _Nullable mergedDatasetNames;
-
- /**
- A pagination token for obtaining the next page of results.
- */
- @property (nonatomic, strong) NSString * _Nullable nextToken;
-
- /**
- A list of all records.
- */
- @property (nonatomic, strong) NSArray<AWSCognitoSyncRecord *> * _Nullable records;
-
- /**
- A token containing a session ID, identity ID, and expiration.
- */
- @property (nonatomic, strong) NSString * _Nullable syncSessionToken;
-
- @end
-
- /**
- <p>Configuration options to be applied to the identity pool.</p>
- */
- @interface AWSCognitoSyncPushSync : AWSModel
-
-
- /**
- <p>List of SNS platform application ARNs that could be used by clients.</p>
- */
- @property (nonatomic, strong) NSArray<NSString *> * _Nullable applicationArns;
-
- /**
- <p>A role configured to allow Cognito to call SNS on behalf of the developer.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable roleArn;
-
- @end
-
- /**
- The basic data structure of a dataset.
- */
- @interface AWSCognitoSyncRecord : AWSModel
-
-
- /**
- The last modified date of the client device.
- */
- @property (nonatomic, strong) NSDate * _Nullable deviceLastModifiedDate;
-
- /**
- The key for the record.
- */
- @property (nonatomic, strong) NSString * _Nullable key;
-
- /**
- The user/device that made the last change to this record.
- */
- @property (nonatomic, strong) NSString * _Nullable lastModifiedBy;
-
- /**
- The date on which the record was last modified.
- */
- @property (nonatomic, strong) NSDate * _Nullable lastModifiedDate;
-
- /**
- The server sync count for this record.
- */
- @property (nonatomic, strong) NSNumber * _Nullable syncCount;
-
- /**
- The value for the record.
- */
- @property (nonatomic, strong) NSString * _Nullable value;
-
- @end
-
- /**
- An update operation for a record.
- Required parameters: [Op, Key, SyncCount]
- */
- @interface AWSCognitoSyncRecordPatch : AWSModel
-
-
- /**
- The last modified date of the client device.
- */
- @property (nonatomic, strong) NSDate * _Nullable deviceLastModifiedDate;
-
- /**
- The key associated with the record patch.
- */
- @property (nonatomic, strong) NSString * _Nullable key;
-
- /**
- An operation, either replace or remove.
- */
- @property (nonatomic, assign) AWSCognitoSyncOperation op;
-
- /**
- Last known server sync count for this record. Set to 0 if unknown.
- */
- @property (nonatomic, strong) NSNumber * _Nullable syncCount;
-
- /**
- The value associated with the record patch.
- */
- @property (nonatomic, strong) NSString * _Nullable value;
-
- @end
-
- /**
- <p>A request to RegisterDevice.</p>
- Required parameters: [IdentityPoolId, IdentityId, Platform, Token]
- */
- @interface AWSCognitoSyncRegisterDeviceRequest : AWSRequest
-
-
- /**
- <p>The unique ID for this identity.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- /**
- <p>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.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- /**
- <p>The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).</p>
- */
- @property (nonatomic, assign) AWSCognitoSyncPlatform platform;
-
- /**
- <p>The push token.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable token;
-
- @end
-
- /**
- <p>Response to a RegisterDevice request.</p>
- */
- @interface AWSCognitoSyncRegisterDeviceResponse : AWSModel
-
-
- /**
- <p>The unique ID generated for this device by Cognito.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable deviceId;
-
- @end
-
- /**
- <p>A request to configure Cognito Events"</p>"
- Required parameters: [IdentityPoolId, Events]
- */
- @interface AWSCognitoSyncSetCognitoEventsRequest : AWSRequest
-
-
- /**
- <p>The events to configure</p>
- */
- @property (nonatomic, strong) NSDictionary<NSString *, NSString *> * _Nullable events;
-
- /**
- <p>The Cognito Identity Pool to use when configuring Cognito Events</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- @end
-
- /**
- <p>The input for the SetIdentityPoolConfiguration operation.</p>
- Required parameters: [IdentityPoolId]
- */
- @interface AWSCognitoSyncSetIdentityPoolConfigurationRequest : AWSRequest
-
-
- /**
- Options to apply to this identity pool for Amazon Cognito streams.
- */
- @property (nonatomic, strong) AWSCognitoSyncCognitoStreams * _Nullable cognitoStreams;
-
- /**
- <p>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.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- /**
- <p>Options to apply to this identity pool for push synchronization.</p>
- */
- @property (nonatomic, strong) AWSCognitoSyncPushSync * _Nullable pushSync;
-
- @end
-
- /**
- <p>The output for the SetIdentityPoolConfiguration operation</p>
- */
- @interface AWSCognitoSyncSetIdentityPoolConfigurationResponse : AWSModel
-
-
- /**
- Options to apply to this identity pool for Amazon Cognito streams.
- */
- @property (nonatomic, strong) AWSCognitoSyncCognitoStreams * _Nullable cognitoStreams;
-
- /**
- <p>A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- /**
- <p>Options to apply to this identity pool for push synchronization.</p>
- */
- @property (nonatomic, strong) AWSCognitoSyncPushSync * _Nullable pushSync;
-
- @end
-
- /**
- <p>A request to SubscribeToDatasetRequest.</p>
- Required parameters: [IdentityPoolId, IdentityId, DatasetName, DeviceId]
- */
- @interface AWSCognitoSyncSubscribeToDatasetRequest : AWSRequest
-
-
- /**
- <p>The name of the dataset to subcribe to.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable datasetName;
-
- /**
- <p>The unique ID generated for this device by Cognito.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable deviceId;
-
- /**
- <p>Unique ID for this identity.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- /**
- <p>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.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- @end
-
- /**
- <p>Response to a SubscribeToDataset request.</p>
- */
- @interface AWSCognitoSyncSubscribeToDatasetResponse : AWSModel
-
-
- @end
-
- /**
- <p>A request to UnsubscribeFromDataset.</p>
- Required parameters: [IdentityPoolId, IdentityId, DatasetName, DeviceId]
- */
- @interface AWSCognitoSyncUnsubscribeFromDatasetRequest : AWSRequest
-
-
- /**
- <p>The name of the dataset from which to unsubcribe.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable datasetName;
-
- /**
- <p>The unique ID generated for this device by Cognito.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable deviceId;
-
- /**
- <p>Unique ID for this identity.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- /**
- <p>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.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- @end
-
- /**
- <p>Response to an UnsubscribeFromDataset request.</p>
- */
- @interface AWSCognitoSyncUnsubscribeFromDatasetResponse : AWSModel
-
-
- @end
-
- /**
- A request to post updates to records or add and delete records for a dataset and user.
- Required parameters: [IdentityPoolId, IdentityId, DatasetName, SyncSessionToken]
- */
- @interface AWSCognitoSyncUpdateRecordsRequest : AWSRequest
-
-
- /**
- Intended to supply a device ID that will populate the lastModifiedBy field referenced in other methods. The ClientContext field is not yet implemented.
- */
- @property (nonatomic, strong) NSString * _Nullable clientContext;
-
- /**
- A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, '_' (underscore), '-' (dash), and '.' (dot).
- */
- @property (nonatomic, strong) NSString * _Nullable datasetName;
-
- /**
- <p>The unique ID generated for this device by Cognito.</p>
- */
- @property (nonatomic, strong) NSString * _Nullable deviceId;
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable identityId;
-
- /**
- 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.
- */
- @property (nonatomic, strong) NSString * _Nullable identityPoolId;
-
- /**
- A list of patch operations.
- */
- @property (nonatomic, strong) NSArray<AWSCognitoSyncRecordPatch *> * _Nullable recordPatches;
-
- /**
- The SyncSessionToken returned by a previous call to ListRecords for this dataset and identity.
- */
- @property (nonatomic, strong) NSString * _Nullable syncSessionToken;
-
- @end
-
- /**
- Returned for a successful UpdateRecordsRequest.
- */
- @interface AWSCognitoSyncUpdateRecordsResponse : AWSModel
-
-
- /**
- A list of records that have been updated.
- */
- @property (nonatomic, strong) NSArray<AWSCognitoSyncRecord *> * _Nullable records;
-
- @end
-
- NS_ASSUME_NONNULL_END
|