packages feed

amazonka-cognito-sync 1.4.2 → 1.4.3

raw patch · 23 files changed

+201/−405 lines, 23 filesdep ~amazonka-cognito-syncdep ~amazonka-coredep ~amazonka-testPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: amazonka-cognito-sync, amazonka-core, amazonka-test

API changes (from Hackage documentation)

Files

README.md view
@@ -8,35 +8,18 @@  ## Version -`1.4.2`+`1.4.3`   ## 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.+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-<http://docs.aws.amazon.com/cognitoidentity/latest/APIReference/Welcome.html Amazon Cognito Identity service>.+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 <http://docs.aws.amazon.com/cognitoidentity/latest/APIReference/Welcome.html 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-<http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/cognito-sync.html Developer Guide for Android>-and the-<http://docs.aws.amazon.com/mobile/sdkforios/developerguide/cognito-sync.html Developer Guide for iOS>.+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 <http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/cognito-sync.html Developer Guide for Android> and the <http://docs.aws.amazon.com/mobile/sdkforios/developerguide/cognito-sync.html Developer Guide for iOS>.  Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-cognito-sync) and the [AWS API Reference](https://aws.amazon.com/documentation/).
amazonka-cognito-sync.cabal view
@@ -1,5 +1,5 @@ name:                  amazonka-cognito-sync-version:               1.4.2+version:               1.4.3 synopsis:              Amazon Cognito Sync SDK. homepage:              https://github.com/brendanhay/amazonka bug-reports:           https://github.com/brendanhay/amazonka/issues@@ -15,28 +15,11 @@ 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.+    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-    <http://docs.aws.amazon.com/cognitoidentity/latest/APIReference/Welcome.html Amazon Cognito Identity service>.+    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 <http://docs.aws.amazon.com/cognitoidentity/latest/APIReference/Welcome.html 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-    <http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/cognito-sync.html Developer Guide for Android>-    and the-    <http://docs.aws.amazon.com/mobile/sdkforios/developerguide/cognito-sync.html Developer Guide for iOS>.+    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 <http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/cognito-sync.html Developer Guide for Android> and the <http://docs.aws.amazon.com/mobile/sdkforios/developerguide/cognito-sync.html Developer Guide for iOS>.     .     The types from this library are intended to be used with     <http://hackage.haskell.org/package/amazonka amazonka>, which provides@@ -89,7 +72,7 @@         , Network.AWS.CognitoSync.Types.Sum      build-depends:-          amazonka-core == 1.4.2.*+          amazonka-core == 1.4.3.*         , base          >= 4.7     && < 5  test-suite amazonka-cognito-sync-test@@ -109,9 +92,9 @@         , Test.AWS.CognitoSync.Internal      build-depends:-          amazonka-core == 1.4.2.*-        , amazonka-test == 1.4.2.*-        , amazonka-cognito-sync == 1.4.2.*+          amazonka-core == 1.4.3.*+        , amazonka-test == 1.4.3.*+        , amazonka-cognito-sync == 1.4.3.*         , base         , bytestring         , tasty
gen/Network/AWS/CognitoSync.hs view
@@ -13,28 +13,11 @@ -- -- 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.+-- 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--- <http://docs.aws.amazon.com/cognitoidentity/latest/APIReference/Welcome.html Amazon Cognito Identity service>.+-- 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 <http://docs.aws.amazon.com/cognitoidentity/latest/APIReference/Welcome.html 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--- <http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/cognito-sync.html Developer Guide for Android>--- and the--- <http://docs.aws.amazon.com/mobile/sdkforios/developerguide/cognito-sync.html Developer Guide for iOS>.+-- 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 <http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/cognito-sync.html Developer Guide for Android> and the <http://docs.aws.amazon.com/mobile/sdkforios/developerguide/cognito-sync.html Developer Guide for iOS>. module Network.AWS.CognitoSync     (     -- * Service Configuration
gen/Network/AWS/CognitoSync/BulkPublish.hs view
@@ -18,15 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- 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.+-- Initiates a bulk publish of all existing datasets for an Identity Pool to the configured stream. Customers are limited to one successful bulk publish per 24 hours. Bulk publish is an asynchronous request, customers can see the status of the request via the GetBulkPublishDetails operation. ----- This API can only be called with developer credentials. You cannot call--- this API with the temporary user credentials provided by Cognito--- Identity.+-- This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity. module Network.AWS.CognitoSync.BulkPublish     (     -- * Creating a Request@@ -70,9 +64,7 @@     { _bpIdentityPoolId = pIdentityPoolId_     } --- | 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.+-- | 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. bpIdentityPoolId :: Lens' BulkPublish Text bpIdentityPoolId = lens _bpIdentityPoolId (\ s a -> s{_bpIdentityPoolId = a}); @@ -132,9 +124,7 @@     , _bprsResponseStatus = pResponseStatus_     } --- | 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.+-- | 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. bprsIdentityPoolId :: Lens' BulkPublishResponse (Maybe Text) bprsIdentityPoolId = lens _bprsIdentityPoolId (\ s a -> s{_bprsIdentityPoolId = a}); 
gen/Network/AWS/CognitoSync/DeleteDataset.hs view
@@ -18,13 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- 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.+-- Deletes the specific dataset. The dataset will be deleted permanently, and the action can\'t be undone. Datasets that this dataset was merged with will no longer report the merge. Any subsequent operation on this dataset will result in a ResourceNotFoundException. ----- This API can be called with temporary user credentials provided by--- Cognito Identity or with developer credentials.+-- This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials. module Network.AWS.CognitoSync.DeleteDataset     (     -- * Creating a Request@@ -80,20 +76,15 @@     , _delDatasetName = pDatasetName_     } --- | 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.+-- | 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. delIdentityPoolId :: Lens' DeleteDataset Text delIdentityPoolId = lens _delIdentityPoolId (\ s a -> s{_delIdentityPoolId = a}); --- | 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.+-- | 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. delIdentityId :: Lens' DeleteDataset Text delIdentityId = lens _delIdentityId (\ s a -> s{_delIdentityId = a}); --- | A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9,--- \'_\' (underscore), \'-\' (dash), and \'.\' (dot).+-- | A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, \'_\' (underscore), \'-\' (dash), and \'.\' (dot). delDatasetName :: Lens' DeleteDataset Text delDatasetName = lens _delDatasetName (\ s a -> s{_delDatasetName = a}); @@ -151,11 +142,7 @@     , _drsResponseStatus = pResponseStatus_     } --- | 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.+-- | 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. drsDataset :: Lens' DeleteDatasetResponse (Maybe Dataset) drsDataset = lens _drsDataset (\ s a -> s{_drsDataset = a}); 
gen/Network/AWS/CognitoSync/DescribeDataset.hs view
@@ -18,14 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- 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.+-- Gets meta data about a dataset by identity and dataset name. With Amazon Cognito Sync, each identity has access only to its own data. Thus, the credentials used to make this API call need to have access to the identity data. ----- This API can be called with temporary user credentials provided by--- Cognito Identity or with developer credentials. You should use Cognito--- Identity credentials to make this API call.+-- This 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. module Network.AWS.CognitoSync.DescribeDataset     (     -- * Creating a Request@@ -51,8 +46,7 @@ import           Network.AWS.Request import           Network.AWS.Response --- | A request for meta data about a dataset (creation date, number of--- records, size) by owner and dataset name.+-- | A request for meta data about a dataset (creation date, number of records, size) by owner and dataset name. -- -- /See:/ 'describeDataset' smart constructor. data DescribeDataset = DescribeDataset'@@ -82,20 +76,15 @@     , _ddDatasetName = pDatasetName_     } --- | 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.+-- | 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. ddIdentityPoolId :: Lens' DescribeDataset Text ddIdentityPoolId = lens _ddIdentityPoolId (\ s a -> s{_ddIdentityPoolId = a}); --- | 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.+-- | 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. ddIdentityId :: Lens' DescribeDataset Text ddIdentityId = lens _ddIdentityId (\ s a -> s{_ddIdentityId = a}); --- | A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9,--- \'_\' (underscore), \'-\' (dash), and \'.\' (dot).+-- | A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, \'_\' (underscore), \'-\' (dash), and \'.\' (dot). ddDatasetName :: Lens' DescribeDataset Text ddDatasetName = lens _ddDatasetName (\ s a -> s{_ddDatasetName = a}); @@ -153,11 +142,7 @@     , _ddrsResponseStatus = pResponseStatus_     } --- | 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.+-- | 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. ddrsDataset :: Lens' DescribeDatasetResponse (Maybe Dataset) ddrsDataset = lens _ddrsDataset (\ s a -> s{_ddrsDataset = a}); 
gen/Network/AWS/CognitoSync/DescribeIdentityPoolUsage.hs view
@@ -18,12 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Gets usage details (for example, data storage) about a particular--- identity pool.+-- Gets usage details (for example, data storage) about a particular identity pool. ----- This API can only be called with developer credentials. You cannot call--- this API with the temporary user credentials provided by Cognito--- Identity.+-- This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity. module Network.AWS.CognitoSync.DescribeIdentityPoolUsage     (     -- * Creating a Request@@ -67,9 +64,7 @@     { _dipuIdentityPoolId = pIdentityPoolId_     } --- | 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.+-- | 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. dipuIdentityPoolId :: Lens' DescribeIdentityPoolUsage Text dipuIdentityPoolId = lens _dipuIdentityPoolId (\ s a -> s{_dipuIdentityPoolId = a}); 
gen/Network/AWS/CognitoSync/DescribeIdentityUsage.hs view
@@ -18,11 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Gets usage information for an identity, including number of datasets and--- data usage.+-- Gets usage information for an identity, including number of datasets and data usage. ----- This API can be called with temporary user credentials provided by--- Cognito Identity or with developer credentials.+-- This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials. module Network.AWS.CognitoSync.DescribeIdentityUsage     (     -- * Creating a Request@@ -72,15 +70,11 @@     , _diuIdentityId = pIdentityId_     } --- | 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.+-- | 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. diuIdentityPoolId :: Lens' DescribeIdentityUsage Text diuIdentityPoolId = lens _diuIdentityPoolId (\ s a -> s{_diuIdentityPoolId = a}); --- | 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.+-- | 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. diuIdentityId :: Lens' DescribeIdentityUsage Text diuIdentityId = lens _diuIdentityId (\ s a -> s{_diuIdentityId = a}); 
gen/Network/AWS/CognitoSync/GetBulkPublishDetails.hs view
@@ -20,9 +20,7 @@ -- -- Get the status of the last BulkPublish operation for an identity pool. ----- This API can only be called with developer credentials. You cannot call--- this API with the temporary user credentials provided by Cognito--- Identity.+-- This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity. module Network.AWS.CognitoSync.GetBulkPublishDetails     (     -- * Creating a Request@@ -70,9 +68,7 @@     { _gbpdIdentityPoolId = pIdentityPoolId_     } --- | 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.+-- | 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. gbpdIdentityPoolId :: Lens' GetBulkPublishDetails Text gbpdIdentityPoolId = lens _gbpdIdentityPoolId (\ s a -> s{_gbpdIdentityPoolId = a}); @@ -158,19 +154,15 @@ gbpdrsBulkPublishStartTime :: Lens' GetBulkPublishDetailsResponse (Maybe UTCTime) gbpdrsBulkPublishStartTime = lens _gbpdrsBulkPublishStartTime (\ s a -> s{_gbpdrsBulkPublishStartTime = a}) . mapping _Time; --- | 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.+-- | 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. gbpdrsIdentityPoolId :: Lens' GetBulkPublishDetailsResponse (Maybe Text) gbpdrsIdentityPoolId = lens _gbpdrsIdentityPoolId (\ s a -> s{_gbpdrsIdentityPoolId = a}); --- | If BulkPublishStatus is SUCCEEDED, the time the last bulk publish--- operation completed.+-- | If BulkPublishStatus is SUCCEEDED, the time the last bulk publish operation completed. gbpdrsBulkPublishCompleteTime :: Lens' GetBulkPublishDetailsResponse (Maybe UTCTime) gbpdrsBulkPublishCompleteTime = lens _gbpdrsBulkPublishCompleteTime (\ s a -> s{_gbpdrsBulkPublishCompleteTime = a}) . mapping _Time; --- | If BulkPublishStatus is FAILED this field will contain the error message--- that caused the bulk publish to fail.+-- | If BulkPublishStatus is FAILED this field will contain the error message that caused the bulk publish to fail. gbpdrsFailureMessage :: Lens' GetBulkPublishDetailsResponse (Maybe Text) gbpdrsFailureMessage = lens _gbpdrsFailureMessage (\ s a -> s{_gbpdrsFailureMessage = a}); @@ -180,11 +172,9 @@ -- -- IN_PROGRESS - Data is being published to the configured stream ----- SUCCEEDED - All data for the identity pool has been 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.+-- FAILED - Some portion of the data has failed to publish, check FailureMessage for the cause. gbpdrsBulkPublishStatus :: Lens' GetBulkPublishDetailsResponse (Maybe BulkPublishStatus) gbpdrsBulkPublishStatus = lens _gbpdrsBulkPublishStatus (\ s a -> s{_gbpdrsBulkPublishStatus = a}); 
gen/Network/AWS/CognitoSync/GetCognitoEvents.hs view
@@ -18,12 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Gets the events and the corresponding Lambda functions associated with--- an identity pool.+-- Gets the events and the corresponding Lambda functions associated with an identity pool. ----- This API can only be called with developer credentials. You cannot call--- this API with the temporary user credentials provided by Cognito--- Identity.+-- This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity. module Network.AWS.CognitoSync.GetCognitoEvents     (     -- * Creating a Request
gen/Network/AWS/CognitoSync/GetIdentityPoolConfiguration.hs view
@@ -20,9 +20,7 @@ -- -- Gets the configuration settings of an identity pool. ----- This API can only be called with developer credentials. You cannot call--- this API with the temporary user credentials provided by Cognito--- Identity.+-- This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity. module Network.AWS.CognitoSync.GetIdentityPoolConfiguration     (     -- * Creating a Request@@ -68,9 +66,7 @@     { _gipcIdentityPoolId = pIdentityPoolId_     } --- | 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.+-- | 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. gipcIdentityPoolId :: Lens' GetIdentityPoolConfiguration Text gipcIdentityPoolId = lens _gipcIdentityPoolId (\ s a -> s{_gipcIdentityPoolId = a}); @@ -139,9 +135,7 @@     , _gipcrsResponseStatus = pResponseStatus_     } --- | A name-spaced GUID (for example,--- us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon--- Cognito.+-- | A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. gipcrsIdentityPoolId :: Lens' GetIdentityPoolConfigurationResponse (Maybe Text) gipcrsIdentityPoolId = lens _gipcrsIdentityPoolId (\ s a -> s{_gipcrsIdentityPoolId = a}); 
gen/Network/AWS/CognitoSync/ListDatasets.hs view
@@ -18,13 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- 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.+-- 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.+-- 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. module Network.AWS.CognitoSync.ListDatasets     (     -- * Creating a Request@@ -94,15 +90,11 @@ ldMaxResults :: Lens' ListDatasets (Maybe Int) ldMaxResults = lens _ldMaxResults (\ s a -> s{_ldMaxResults = a}); --- | 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.+-- | 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. ldIdentityId :: Lens' ListDatasets Text ldIdentityId = lens _ldIdentityId (\ s a -> s{_ldIdentityId = a}); --- | 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.+-- | 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. ldIdentityPoolId :: Lens' ListDatasets Text ldIdentityPoolId = lens _ldIdentityPoolId (\ s a -> s{_ldIdentityPoolId = a}); 
gen/Network/AWS/CognitoSync/ListIdentityPoolUsage.hs view
@@ -20,9 +20,7 @@ -- -- 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.+-- ListIdentityPoolUsage can only be called with developer credentials. You cannot make this API call with the temporary user credentials provided by Cognito Identity. module Network.AWS.CognitoSync.ListIdentityPoolUsage     (     -- * Creating a Request
gen/Network/AWS/CognitoSync/ListRecords.hs view
@@ -18,14 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- 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.+-- 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.+-- 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. module Network.AWS.CognitoSync.ListRecords     (     -- * Creating a Request@@ -125,20 +120,15 @@ lrMaxResults :: Lens' ListRecords (Maybe Int) lrMaxResults = lens _lrMaxResults (\ s a -> s{_lrMaxResults = a}); --- | 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.+-- | 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. lrIdentityPoolId :: Lens' ListRecords Text lrIdentityPoolId = lens _lrIdentityPoolId (\ s a -> s{_lrIdentityPoolId = a}); --- | 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.+-- | 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. lrIdentityId :: Lens' ListRecords Text lrIdentityId = lens _lrIdentityId (\ s a -> s{_lrIdentityId = a}); --- | A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9,--- \'_\' (underscore), \'-\' (dash), and \'.\' (dot).+-- | A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, \'_\' (underscore), \'-\' (dash), and \'.\' (dot). lrDatasetName :: Lens' ListRecords Text lrDatasetName = lens _lrDatasetName (\ s a -> s{_lrDatasetName = a}); 
gen/Network/AWS/CognitoSync/RegisterDevice.hs view
@@ -20,8 +20,7 @@ -- -- Registers a device to receive push sync notifications. ----- This API can only be called with temporary credentials provided by--- Cognito Identity. You cannot call this API with developer credentials.+-- This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials. module Network.AWS.CognitoSync.RegisterDevice     (     -- * Creating a Request@@ -83,9 +82,7 @@     , _rdToken = pToken_     } --- | 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.+-- | 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. rdIdentityPoolId :: Lens' RegisterDevice Text rdIdentityPoolId = lens _rdIdentityPoolId (\ s a -> s{_rdIdentityPoolId = a}); 
gen/Network/AWS/CognitoSync/SetCognitoEvents.hs view
@@ -18,14 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- 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.+-- Sets the AWS Lambda function for a given event type for an identity pool. This request only updates the key\/value pair specified. Other key\/values pairs are not updated. To remove a key value pair, pass a empty value for the particular key. ----- This API can only be called with developer credentials. You cannot call--- this API with the temporary user credentials provided by Cognito--- Identity.+-- This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity. module Network.AWS.CognitoSync.SetCognitoEvents     (     -- * Creating a Request
gen/Network/AWS/CognitoSync/SetIdentityPoolConfiguration.hs view
@@ -20,9 +20,7 @@ -- -- Sets the necessary configuration for push sync. ----- This API can only be called with developer credentials. You cannot call--- this API with the temporary user credentials provided by Cognito--- Identity.+-- This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity. module Network.AWS.CognitoSync.SetIdentityPoolConfiguration     (     -- * Creating a Request@@ -86,9 +84,7 @@ sipcPushSync :: Lens' SetIdentityPoolConfiguration (Maybe PushSync) sipcPushSync = lens _sipcPushSync (\ s a -> s{_sipcPushSync = a}); --- | 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.+-- | 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. sipcIdentityPoolId :: Lens' SetIdentityPoolConfiguration Text sipcIdentityPoolId = lens _sipcIdentityPoolId (\ s a -> s{_sipcIdentityPoolId = a}); @@ -164,9 +160,7 @@     , _sipcrsResponseStatus = pResponseStatus_     } --- | A name-spaced GUID (for example,--- us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon--- Cognito.+-- | A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. sipcrsIdentityPoolId :: Lens' SetIdentityPoolConfigurationResponse (Maybe Text) sipcrsIdentityPoolId = lens _sipcrsIdentityPoolId (\ s a -> s{_sipcrsIdentityPoolId = a}); 
gen/Network/AWS/CognitoSync/SubscribeToDataset.hs view
@@ -18,11 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Subscribes to receive notifications when a dataset is modified by--- another device.+-- Subscribes to receive notifications when a dataset is modified by another device. ----- This API can only be called with temporary credentials provided by--- Cognito Identity. You cannot call this API with developer credentials.+-- This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials. module Network.AWS.CognitoSync.SubscribeToDataset     (     -- * Creating a Request@@ -83,9 +81,7 @@     , _stdDeviceId = pDeviceId_     } --- | 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.+-- | 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. stdIdentityPoolId :: Lens' SubscribeToDataset Text stdIdentityPoolId = lens _stdIdentityPoolId (\ s a -> s{_stdIdentityPoolId = a}); 
gen/Network/AWS/CognitoSync/Types.hs view
@@ -143,8 +143,7 @@       | has (hasStatus 509) e = Just "limit_exceeded"       | otherwise = Nothing --- | Thrown when a request parameter does not comply with the associated--- constraints.+-- | Thrown when a request parameter does not comply with the associated constraints. _InvalidParameterException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidParameterException =     _ServiceError . hasStatus 400 . hasCode "InvalidParameter"@@ -164,8 +163,7 @@ _InvalidConfigurationException =     _ServiceError . hasStatus 400 . hasCode "InvalidConfiguration" --- | An exception thrown when there is an IN_PROGRESS bulk publish operation--- for the given identity pool.+-- | An exception thrown when there is an IN_PROGRESS bulk publish operation for the given identity pool. _DuplicateRequestException :: AsError a => Getting (First ServiceError) a ServiceError _DuplicateRequestException =     _ServiceError . hasStatus 400 . hasCode "DuplicateRequest"@@ -175,8 +173,7 @@ _LambdaThrottledException =     _ServiceError . hasStatus 429 . hasCode "LambdaThrottled" --- | An exception thrown when a bulk publish operation is requested less than--- 24 hours after a previous bulk publish operation completed successfully.+-- | An exception thrown when a bulk publish operation is requested less than 24 hours after a previous bulk publish operation completed successfully. _AlreadyStreamedException :: AsError a => Getting (First ServiceError) a ServiceError _AlreadyStreamedException =     _ServiceError . hasStatus 400 . hasCode "AlreadyStreamed"@@ -196,8 +193,7 @@ _ConcurrentModificationException =     _ServiceError . hasStatus 400 . hasCode "ConcurrentModification" --- | Thrown if an update can\'t be applied because the resource was changed--- by another call and this would result in a conflict.+-- | Thrown if an update can\'t be applied because the resource was changed by another call and this would result in a conflict. _ResourceConflictException :: AsError a => Getting (First ServiceError) a ServiceError _ResourceConflictException =     _ServiceError . hasStatus 409 . hasCode "ResourceConflict"@@ -207,8 +203,7 @@ _ResourceNotFoundException =     _ServiceError . hasStatus 404 . hasCode "ResourceNotFound" --- | Thrown when the limit on the number of objects or operations has been--- exceeded.+-- | Thrown when the limit on the number of objects or operations has been exceeded. _LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError _LimitExceededException =     _ServiceError . hasStatus 400 . hasCode "LimitExceeded"
gen/Network/AWS/CognitoSync/Types/Product.hs view
@@ -52,19 +52,15 @@ -- -- 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.+-- DISABLED - Streaming of updates to identity pool is disabled. Bulk publish will also fail if StreamingStatus is DISABLED. csStreamingStatus :: Lens' CognitoStreams (Maybe StreamingStatus) csStreamingStatus = lens _csStreamingStatus (\ s a -> s{_csStreamingStatus = a}); --- | 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.+-- | 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. csStreamName :: Lens' CognitoStreams (Maybe Text) csStreamName = lens _csStreamName (\ s a -> s{_csStreamName = a}); --- | 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.+-- | 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. csRoleARN :: Lens' CognitoStreams (Maybe Text) csRoleARN = lens _csRoleARN (\ s a -> s{_csRoleARN = a}); @@ -88,11 +84,7 @@                   ("StreamName" .=) <$> _csStreamName,                   ("RoleArn" .=) <$> _csRoleARN]) --- | 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.+-- | 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. -- -- /See:/ 'dataset' smart constructor. data Dataset = Dataset'@@ -147,8 +139,7 @@ dDataStorage :: Lens' Dataset (Maybe Integer) dDataStorage = lens _dDataStorage (\ s a -> s{_dDataStorage = a}); --- | A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9,--- \'_\' (underscore), \'-\' (dash), and \'.\' (dot).+-- | A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, \'_\' (underscore), \'-\' (dash), and \'.\' (dot). dDatasetName :: Lens' Dataset (Maybe Text) dDatasetName = lens _dDatasetName (\ s a -> s{_dDatasetName = a}); @@ -160,9 +151,7 @@ dLastModifiedBy :: Lens' Dataset (Maybe Text) dLastModifiedBy = lens _dLastModifiedBy (\ s a -> s{_dLastModifiedBy = a}); --- | 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.+-- | 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. dIdentityId :: Lens' Dataset (Maybe Text) dIdentityId = lens _dIdentityId (\ s a -> s{_dIdentityId = a}); @@ -217,9 +206,7 @@ ipuLastModifiedDate :: Lens' IdentityPoolUsage (Maybe UTCTime) ipuLastModifiedDate = lens _ipuLastModifiedDate (\ s a -> s{_ipuLastModifiedDate = a}) . mapping _Time; --- | 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.+-- | 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. ipuIdentityPoolId :: Lens' IdentityPoolUsage (Maybe Text) ipuIdentityPoolId = lens _ipuIdentityPoolId (\ s a -> s{_ipuIdentityPoolId = a}); @@ -284,9 +271,7 @@ iuLastModifiedDate :: Lens' IdentityUsage (Maybe UTCTime) iuLastModifiedDate = lens _iuLastModifiedDate (\ s a -> s{_iuLastModifiedDate = a}) . mapping _Time; --- | 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.+-- | 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. iuIdentityPoolId :: Lens' IdentityUsage (Maybe Text) iuIdentityPoolId = lens _iuIdentityPoolId (\ s a -> s{_iuIdentityPoolId = a}); @@ -298,9 +283,7 @@ iuDataStorage :: Lens' IdentityUsage (Maybe Integer) iuDataStorage = lens _iuDataStorage (\ s a -> s{_iuDataStorage = a}); --- | 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.+-- | 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. iuIdentityId :: Lens' IdentityUsage (Maybe Text) iuIdentityId = lens _iuIdentityId (\ s a -> s{_iuIdentityId = a}); @@ -346,8 +329,7 @@ psApplicationARNs :: Lens' PushSync [Text] psApplicationARNs = lens _psApplicationARNs (\ s a -> s{_psApplicationARNs = a}) . _Default . _Coerce; --- | A role configured to allow Cognito to call SNS on behalf of the--- developer.+-- | A role configured to allow Cognito to call SNS on behalf of the developer. psRoleARN :: Lens' PushSync (Maybe Text) psRoleARN = lens _psRoleARN (\ s a -> s{_psRoleARN = a}); 
gen/Network/AWS/CognitoSync/UnsubscribeFromDataset.hs view
@@ -18,11 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Unsubscribes from receiving notifications when a dataset is modified by--- another device.+-- Unsubscribes from receiving notifications when a dataset is modified by another device. ----- This API can only be called with temporary credentials provided by--- Cognito Identity. You cannot call this API with developer credentials.+-- This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials. module Network.AWS.CognitoSync.UnsubscribeFromDataset     (     -- * Creating a Request@@ -83,9 +81,7 @@     , _ufdDeviceId = pDeviceId_     } --- | 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.+-- | 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. ufdIdentityPoolId :: Lens' UnsubscribeFromDataset Text ufdIdentityPoolId = lens _ufdIdentityPoolId (\ s a -> s{_ufdIdentityPoolId = a}); 
gen/Network/AWS/CognitoSync/UpdateRecords.hs view
@@ -18,24 +18,13 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Posts updates to records and adds and deletes records for a dataset and--- user.+-- 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.+-- 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.+-- For example, if the sync count on the server is 5 for a key called highScore and you try and submit a new highScore with sync count of 4, the request will be rejected. To obtain the current sync count for a record, call ListRecords. On a successful update of the record, the response returns the new sync count for that record. You should present that sync count the next time you try to update that same record. When the record does not exist, specify the sync count as 0. ----- This API can be called with temporary user credentials provided by--- Cognito Identity or with developer credentials.+-- This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials. module Network.AWS.CognitoSync.UpdateRecords     (     -- * Creating a Request@@ -65,8 +54,7 @@ import           Network.AWS.Request import           Network.AWS.Response --- | A request to post updates to records or add and delete records for a--- dataset and user.+-- | A request to post updates to records or add and delete records for a dataset and user. -- -- /See:/ 'updateRecords' smart constructor. data UpdateRecords = UpdateRecords'@@ -121,31 +109,23 @@ urDeviceId :: Lens' UpdateRecords (Maybe Text) urDeviceId = lens _urDeviceId (\ s a -> s{_urDeviceId = a}); --- | Intended to supply a device ID that will populate the lastModifiedBy--- field referenced in other methods. The ClientContext field is not yet--- implemented.+-- | Intended to supply a device ID that will populate the lastModifiedBy field referenced in other methods. The ClientContext field is not yet implemented. urClientContext :: Lens' UpdateRecords (Maybe Text) urClientContext = lens _urClientContext (\ s a -> s{_urClientContext = a}); --- | 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.+-- | 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. urIdentityPoolId :: Lens' UpdateRecords Text urIdentityPoolId = lens _urIdentityPoolId (\ s a -> s{_urIdentityPoolId = a}); --- | 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.+-- | 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. urIdentityId :: Lens' UpdateRecords Text urIdentityId = lens _urIdentityId (\ s a -> s{_urIdentityId = a}); --- | A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9,--- \'_\' (underscore), \'-\' (dash), and \'.\' (dot).+-- | A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9, \'_\' (underscore), \'-\' (dash), and \'.\' (dot). urDatasetName :: Lens' UpdateRecords Text urDatasetName = lens _urDatasetName (\ s a -> s{_urDatasetName = a}); --- | The SyncSessionToken returned by a previous call to ListRecords for this--- dataset and identity.+-- | The SyncSessionToken returned by a previous call to ListRecords for this dataset and identity. urSyncSessionToken :: Lens' UpdateRecords Text urSyncSessionToken = lens _urSyncSessionToken (\ s a -> s{_urSyncSessionToken = a}); 
test/Test/AWS/Gen/CognitoSync.hs view
@@ -28,109 +28,109 @@ -- fixtures :: TestTree -- fixtures = --     [ testGroup "request"---         [ testDescribeDataset $+--         [ requestDescribeDataset $ --             describeDataset -----         , testSetCognitoEvents $+--         , requestSetCognitoEvents $ --             setCognitoEvents -----         , testDescribeIdentityPoolUsage $+--         , requestDescribeIdentityPoolUsage $ --             describeIdentityPoolUsage -----         , testGetBulkPublishDetails $+--         , requestGetBulkPublishDetails $ --             getBulkPublishDetails -----         , testListIdentityPoolUsage $+--         , requestListIdentityPoolUsage $ --             listIdentityPoolUsage -----         , testSetIdentityPoolConfiguration $+--         , requestSetIdentityPoolConfiguration $ --             setIdentityPoolConfiguration -----         , testDeleteDataset $+--         , requestDeleteDataset $ --             deleteDataset -----         , testGetCognitoEvents $+--         , requestGetCognitoEvents $ --             getCognitoEvents -----         , testDescribeIdentityUsage $+--         , requestDescribeIdentityUsage $ --             describeIdentityUsage -----         , testRegisterDevice $+--         , requestRegisterDevice $ --             registerDevice -----         , testSubscribeToDataset $+--         , requestSubscribeToDataset $ --             subscribeToDataset -----         , testGetIdentityPoolConfiguration $+--         , requestGetIdentityPoolConfiguration $ --             getIdentityPoolConfiguration -----         , testListRecords $+--         , requestListRecords $ --             listRecords -----         , testUnsubscribeFromDataset $+--         , requestUnsubscribeFromDataset $ --             unsubscribeFromDataset -----         , testUpdateRecords $+--         , requestUpdateRecords $ --             updateRecords -----         , testListDatasets $+--         , requestListDatasets $ --             listDatasets -----         , testBulkPublish $+--         , requestBulkPublish $ --             bulkPublish -- --           ]  --     , testGroup "response"---         [ testDescribeDatasetResponse $+--         [ responseDescribeDataset $ --             describeDatasetResponse -----         , testSetCognitoEventsResponse $+--         , responseSetCognitoEvents $ --             setCognitoEventsResponse -----         , testDescribeIdentityPoolUsageResponse $+--         , responseDescribeIdentityPoolUsage $ --             describeIdentityPoolUsageResponse -----         , testGetBulkPublishDetailsResponse $+--         , responseGetBulkPublishDetails $ --             getBulkPublishDetailsResponse -----         , testListIdentityPoolUsageResponse $+--         , responseListIdentityPoolUsage $ --             listIdentityPoolUsageResponse -----         , testSetIdentityPoolConfigurationResponse $+--         , responseSetIdentityPoolConfiguration $ --             setIdentityPoolConfigurationResponse -----         , testDeleteDatasetResponse $+--         , responseDeleteDataset $ --             deleteDatasetResponse -----         , testGetCognitoEventsResponse $+--         , responseGetCognitoEvents $ --             getCognitoEventsResponse -----         , testDescribeIdentityUsageResponse $+--         , responseDescribeIdentityUsage $ --             describeIdentityUsageResponse -----         , testRegisterDeviceResponse $+--         , responseRegisterDevice $ --             registerDeviceResponse -----         , testSubscribeToDatasetResponse $+--         , responseSubscribeToDataset $ --             subscribeToDatasetResponse -----         , testGetIdentityPoolConfigurationResponse $+--         , responseGetIdentityPoolConfiguration $ --             getIdentityPoolConfigurationResponse -----         , testListRecordsResponse $+--         , responseListRecords $ --             listRecordsResponse -----         , testUnsubscribeFromDatasetResponse $+--         , responseUnsubscribeFromDataset $ --             unsubscribeFromDatasetResponse -----         , testUpdateRecordsResponse $+--         , responseUpdateRecords $ --             updateRecordsResponse -----         , testListDatasetsResponse $+--         , responseListDatasets $ --             listDatasetsResponse -----         , testBulkPublishResponse $+--         , responseBulkPublish $ --             bulkPublishResponse -- --           ]@@ -138,207 +138,207 @@  -- Requests -testDescribeDataset :: DescribeDataset -> TestTree-testDescribeDataset = req+requestDescribeDataset :: DescribeDataset -> TestTree+requestDescribeDataset = req     "DescribeDataset"     "fixture/DescribeDataset.yaml" -testSetCognitoEvents :: SetCognitoEvents -> TestTree-testSetCognitoEvents = req+requestSetCognitoEvents :: SetCognitoEvents -> TestTree+requestSetCognitoEvents = req     "SetCognitoEvents"     "fixture/SetCognitoEvents.yaml" -testDescribeIdentityPoolUsage :: DescribeIdentityPoolUsage -> TestTree-testDescribeIdentityPoolUsage = req+requestDescribeIdentityPoolUsage :: DescribeIdentityPoolUsage -> TestTree+requestDescribeIdentityPoolUsage = req     "DescribeIdentityPoolUsage"     "fixture/DescribeIdentityPoolUsage.yaml" -testGetBulkPublishDetails :: GetBulkPublishDetails -> TestTree-testGetBulkPublishDetails = req+requestGetBulkPublishDetails :: GetBulkPublishDetails -> TestTree+requestGetBulkPublishDetails = req     "GetBulkPublishDetails"     "fixture/GetBulkPublishDetails.yaml" -testListIdentityPoolUsage :: ListIdentityPoolUsage -> TestTree-testListIdentityPoolUsage = req+requestListIdentityPoolUsage :: ListIdentityPoolUsage -> TestTree+requestListIdentityPoolUsage = req     "ListIdentityPoolUsage"     "fixture/ListIdentityPoolUsage.yaml" -testSetIdentityPoolConfiguration :: SetIdentityPoolConfiguration -> TestTree-testSetIdentityPoolConfiguration = req+requestSetIdentityPoolConfiguration :: SetIdentityPoolConfiguration -> TestTree+requestSetIdentityPoolConfiguration = req     "SetIdentityPoolConfiguration"     "fixture/SetIdentityPoolConfiguration.yaml" -testDeleteDataset :: DeleteDataset -> TestTree-testDeleteDataset = req+requestDeleteDataset :: DeleteDataset -> TestTree+requestDeleteDataset = req     "DeleteDataset"     "fixture/DeleteDataset.yaml" -testGetCognitoEvents :: GetCognitoEvents -> TestTree-testGetCognitoEvents = req+requestGetCognitoEvents :: GetCognitoEvents -> TestTree+requestGetCognitoEvents = req     "GetCognitoEvents"     "fixture/GetCognitoEvents.yaml" -testDescribeIdentityUsage :: DescribeIdentityUsage -> TestTree-testDescribeIdentityUsage = req+requestDescribeIdentityUsage :: DescribeIdentityUsage -> TestTree+requestDescribeIdentityUsage = req     "DescribeIdentityUsage"     "fixture/DescribeIdentityUsage.yaml" -testRegisterDevice :: RegisterDevice -> TestTree-testRegisterDevice = req+requestRegisterDevice :: RegisterDevice -> TestTree+requestRegisterDevice = req     "RegisterDevice"     "fixture/RegisterDevice.yaml" -testSubscribeToDataset :: SubscribeToDataset -> TestTree-testSubscribeToDataset = req+requestSubscribeToDataset :: SubscribeToDataset -> TestTree+requestSubscribeToDataset = req     "SubscribeToDataset"     "fixture/SubscribeToDataset.yaml" -testGetIdentityPoolConfiguration :: GetIdentityPoolConfiguration -> TestTree-testGetIdentityPoolConfiguration = req+requestGetIdentityPoolConfiguration :: GetIdentityPoolConfiguration -> TestTree+requestGetIdentityPoolConfiguration = req     "GetIdentityPoolConfiguration"     "fixture/GetIdentityPoolConfiguration.yaml" -testListRecords :: ListRecords -> TestTree-testListRecords = req+requestListRecords :: ListRecords -> TestTree+requestListRecords = req     "ListRecords"     "fixture/ListRecords.yaml" -testUnsubscribeFromDataset :: UnsubscribeFromDataset -> TestTree-testUnsubscribeFromDataset = req+requestUnsubscribeFromDataset :: UnsubscribeFromDataset -> TestTree+requestUnsubscribeFromDataset = req     "UnsubscribeFromDataset"     "fixture/UnsubscribeFromDataset.yaml" -testUpdateRecords :: UpdateRecords -> TestTree-testUpdateRecords = req+requestUpdateRecords :: UpdateRecords -> TestTree+requestUpdateRecords = req     "UpdateRecords"     "fixture/UpdateRecords.yaml" -testListDatasets :: ListDatasets -> TestTree-testListDatasets = req+requestListDatasets :: ListDatasets -> TestTree+requestListDatasets = req     "ListDatasets"     "fixture/ListDatasets.yaml" -testBulkPublish :: BulkPublish -> TestTree-testBulkPublish = req+requestBulkPublish :: BulkPublish -> TestTree+requestBulkPublish = req     "BulkPublish"     "fixture/BulkPublish.yaml"  -- Responses -testDescribeDatasetResponse :: DescribeDatasetResponse -> TestTree-testDescribeDatasetResponse = res+responseDescribeDataset :: DescribeDatasetResponse -> TestTree+responseDescribeDataset = res     "DescribeDatasetResponse"     "fixture/DescribeDatasetResponse.proto"     cognitoSync     (Proxy :: Proxy DescribeDataset) -testSetCognitoEventsResponse :: SetCognitoEventsResponse -> TestTree-testSetCognitoEventsResponse = res+responseSetCognitoEvents :: SetCognitoEventsResponse -> TestTree+responseSetCognitoEvents = res     "SetCognitoEventsResponse"     "fixture/SetCognitoEventsResponse.proto"     cognitoSync     (Proxy :: Proxy SetCognitoEvents) -testDescribeIdentityPoolUsageResponse :: DescribeIdentityPoolUsageResponse -> TestTree-testDescribeIdentityPoolUsageResponse = res+responseDescribeIdentityPoolUsage :: DescribeIdentityPoolUsageResponse -> TestTree+responseDescribeIdentityPoolUsage = res     "DescribeIdentityPoolUsageResponse"     "fixture/DescribeIdentityPoolUsageResponse.proto"     cognitoSync     (Proxy :: Proxy DescribeIdentityPoolUsage) -testGetBulkPublishDetailsResponse :: GetBulkPublishDetailsResponse -> TestTree-testGetBulkPublishDetailsResponse = res+responseGetBulkPublishDetails :: GetBulkPublishDetailsResponse -> TestTree+responseGetBulkPublishDetails = res     "GetBulkPublishDetailsResponse"     "fixture/GetBulkPublishDetailsResponse.proto"     cognitoSync     (Proxy :: Proxy GetBulkPublishDetails) -testListIdentityPoolUsageResponse :: ListIdentityPoolUsageResponse -> TestTree-testListIdentityPoolUsageResponse = res+responseListIdentityPoolUsage :: ListIdentityPoolUsageResponse -> TestTree+responseListIdentityPoolUsage = res     "ListIdentityPoolUsageResponse"     "fixture/ListIdentityPoolUsageResponse.proto"     cognitoSync     (Proxy :: Proxy ListIdentityPoolUsage) -testSetIdentityPoolConfigurationResponse :: SetIdentityPoolConfigurationResponse -> TestTree-testSetIdentityPoolConfigurationResponse = res+responseSetIdentityPoolConfiguration :: SetIdentityPoolConfigurationResponse -> TestTree+responseSetIdentityPoolConfiguration = res     "SetIdentityPoolConfigurationResponse"     "fixture/SetIdentityPoolConfigurationResponse.proto"     cognitoSync     (Proxy :: Proxy SetIdentityPoolConfiguration) -testDeleteDatasetResponse :: DeleteDatasetResponse -> TestTree-testDeleteDatasetResponse = res+responseDeleteDataset :: DeleteDatasetResponse -> TestTree+responseDeleteDataset = res     "DeleteDatasetResponse"     "fixture/DeleteDatasetResponse.proto"     cognitoSync     (Proxy :: Proxy DeleteDataset) -testGetCognitoEventsResponse :: GetCognitoEventsResponse -> TestTree-testGetCognitoEventsResponse = res+responseGetCognitoEvents :: GetCognitoEventsResponse -> TestTree+responseGetCognitoEvents = res     "GetCognitoEventsResponse"     "fixture/GetCognitoEventsResponse.proto"     cognitoSync     (Proxy :: Proxy GetCognitoEvents) -testDescribeIdentityUsageResponse :: DescribeIdentityUsageResponse -> TestTree-testDescribeIdentityUsageResponse = res+responseDescribeIdentityUsage :: DescribeIdentityUsageResponse -> TestTree+responseDescribeIdentityUsage = res     "DescribeIdentityUsageResponse"     "fixture/DescribeIdentityUsageResponse.proto"     cognitoSync     (Proxy :: Proxy DescribeIdentityUsage) -testRegisterDeviceResponse :: RegisterDeviceResponse -> TestTree-testRegisterDeviceResponse = res+responseRegisterDevice :: RegisterDeviceResponse -> TestTree+responseRegisterDevice = res     "RegisterDeviceResponse"     "fixture/RegisterDeviceResponse.proto"     cognitoSync     (Proxy :: Proxy RegisterDevice) -testSubscribeToDatasetResponse :: SubscribeToDatasetResponse -> TestTree-testSubscribeToDatasetResponse = res+responseSubscribeToDataset :: SubscribeToDatasetResponse -> TestTree+responseSubscribeToDataset = res     "SubscribeToDatasetResponse"     "fixture/SubscribeToDatasetResponse.proto"     cognitoSync     (Proxy :: Proxy SubscribeToDataset) -testGetIdentityPoolConfigurationResponse :: GetIdentityPoolConfigurationResponse -> TestTree-testGetIdentityPoolConfigurationResponse = res+responseGetIdentityPoolConfiguration :: GetIdentityPoolConfigurationResponse -> TestTree+responseGetIdentityPoolConfiguration = res     "GetIdentityPoolConfigurationResponse"     "fixture/GetIdentityPoolConfigurationResponse.proto"     cognitoSync     (Proxy :: Proxy GetIdentityPoolConfiguration) -testListRecordsResponse :: ListRecordsResponse -> TestTree-testListRecordsResponse = res+responseListRecords :: ListRecordsResponse -> TestTree+responseListRecords = res     "ListRecordsResponse"     "fixture/ListRecordsResponse.proto"     cognitoSync     (Proxy :: Proxy ListRecords) -testUnsubscribeFromDatasetResponse :: UnsubscribeFromDatasetResponse -> TestTree-testUnsubscribeFromDatasetResponse = res+responseUnsubscribeFromDataset :: UnsubscribeFromDatasetResponse -> TestTree+responseUnsubscribeFromDataset = res     "UnsubscribeFromDatasetResponse"     "fixture/UnsubscribeFromDatasetResponse.proto"     cognitoSync     (Proxy :: Proxy UnsubscribeFromDataset) -testUpdateRecordsResponse :: UpdateRecordsResponse -> TestTree-testUpdateRecordsResponse = res+responseUpdateRecords :: UpdateRecordsResponse -> TestTree+responseUpdateRecords = res     "UpdateRecordsResponse"     "fixture/UpdateRecordsResponse.proto"     cognitoSync     (Proxy :: Proxy UpdateRecords) -testListDatasetsResponse :: ListDatasetsResponse -> TestTree-testListDatasetsResponse = res+responseListDatasets :: ListDatasetsResponse -> TestTree+responseListDatasets = res     "ListDatasetsResponse"     "fixture/ListDatasetsResponse.proto"     cognitoSync     (Proxy :: Proxy ListDatasets) -testBulkPublishResponse :: BulkPublishResponse -> TestTree-testBulkPublishResponse = res+responseBulkPublish :: BulkPublishResponse -> TestTree+responseBulkPublish = res     "BulkPublishResponse"     "fixture/BulkPublishResponse.proto"     cognitoSync