@aws-sdk/client-cognito-sync 3.34.0 → 3.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/CognitoSync.js +0 -16
- package/dist-cjs/CognitoSyncClient.js +35 -0
- package/{dist/cjs → dist-cjs}/commands/BulkPublishCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteDatasetCommand.js +2 -31
- package/{dist/cjs → dist-cjs}/commands/DescribeDatasetCommand.js +2 -30
- package/dist-cjs/commands/DescribeIdentityPoolUsageCommand.js +36 -0
- package/dist-cjs/commands/DescribeIdentityUsageCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/GetBulkPublishDetailsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetCognitoEventsCommand.js +2 -27
- package/dist-cjs/commands/GetIdentityPoolConfigurationCommand.js +36 -0
- package/dist-cjs/commands/ListDatasetsCommand.js +36 -0
- package/dist-cjs/commands/ListIdentityPoolUsageCommand.js +36 -0
- package/dist-cjs/commands/ListRecordsCommand.js +36 -0
- package/dist-cjs/commands/RegisterDeviceCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/SetCognitoEventsCommand.js +2 -27
- package/dist-cjs/commands/SetIdentityPoolConfigurationCommand.js +36 -0
- package/dist-cjs/commands/SubscribeToDatasetCommand.js +36 -0
- package/dist-cjs/commands/UnsubscribeFromDatasetCommand.js +36 -0
- package/dist-cjs/commands/UpdateRecordsCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -160
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +1 -7
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/CognitoSync.js +0 -1
- package/{dist/es → dist-es}/CognitoSyncClient.js +1 -2
- package/{dist/es → dist-es}/commands/BulkPublishCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteDatasetCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeDatasetCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeIdentityPoolUsageCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeIdentityUsageCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetBulkPublishDetailsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetCognitoEventsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetIdentityPoolConfigurationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListDatasetsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListIdentityPoolUsageCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListRecordsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/RegisterDeviceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/SetCognitoEventsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/SetIdentityPoolConfigurationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/SubscribeToDatasetCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UnsubscribeFromDatasetCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateRecordsCommand.js +2 -3
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -1
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/types → dist-types}/CognitoSync.d.ts +1 -1
- package/{dist/types → dist-types}/CognitoSyncClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/BulkPublishCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteDatasetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeDatasetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeIdentityPoolUsageCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeIdentityUsageCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetBulkPublishDetailsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetCognitoEventsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetIdentityPoolConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListDatasetsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListIdentityPoolUsageCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListRecordsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/RegisterDeviceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/SetCognitoEventsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/SetIdentityPoolConfigurationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/SubscribeToDatasetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UnsubscribeFromDatasetCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateRecordsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/dist-types/ts3.4/CognitoSync.d.ts +90 -0
- package/{dist/types → dist-types}/ts3.4/CognitoSyncClient.d.ts +32 -109
- package/dist-types/ts3.4/commands/BulkPublishCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteDatasetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeDatasetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeIdentityPoolUsageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeIdentityUsageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetBulkPublishDetailsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetCognitoEventsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetIdentityPoolConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListDatasetsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListIdentityPoolUsageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListRecordsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RegisterDeviceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SetCognitoEventsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SetIdentityPoolConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SubscribeToDatasetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UnsubscribeFromDatasetCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateRecordsCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +670 -0
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +45 -42
- package/CognitoSync.ts +0 -1129
- package/CognitoSyncClient.ts +0 -319
- package/commands/BulkPublishCommand.ts +0 -94
- package/commands/DeleteDatasetCommand.ts +0 -98
- package/commands/DescribeDatasetCommand.ts +0 -97
- package/commands/DescribeIdentityPoolUsageCommand.ts +0 -145
- package/commands/DescribeIdentityUsageCommand.ts +0 -143
- package/commands/GetBulkPublishDetailsCommand.ts +0 -94
- package/commands/GetCognitoEventsCommand.ts +0 -94
- package/commands/GetIdentityPoolConfigurationCommand.ts +0 -145
- package/commands/ListDatasetsCommand.ts +0 -152
- package/commands/ListIdentityPoolUsageCommand.ts +0 -152
- package/commands/ListRecordsCommand.ts +0 -149
- package/commands/RegisterDeviceCommand.ts +0 -138
- package/commands/SetCognitoEventsCommand.ts +0 -94
- package/commands/SetIdentityPoolConfigurationCommand.ts +0 -149
- package/commands/SubscribeToDatasetCommand.ts +0 -137
- package/commands/UnsubscribeFromDatasetCommand.ts +0 -138
- package/commands/UpdateRecordsCommand.ts +0 -96
- package/dist/cjs/CognitoSync.js.map +0 -1
- package/dist/cjs/CognitoSyncClient.js +0 -56
- package/dist/cjs/CognitoSyncClient.js.map +0 -1
- package/dist/cjs/commands/BulkPublishCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteDatasetCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeDatasetCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeIdentityPoolUsageCommand.js +0 -109
- package/dist/cjs/commands/DescribeIdentityPoolUsageCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeIdentityUsageCommand.js +0 -110
- package/dist/cjs/commands/DescribeIdentityUsageCommand.js.map +0 -1
- package/dist/cjs/commands/GetBulkPublishDetailsCommand.js.map +0 -1
- package/dist/cjs/commands/GetCognitoEventsCommand.js.map +0 -1
- package/dist/cjs/commands/GetIdentityPoolConfigurationCommand.js +0 -107
- package/dist/cjs/commands/GetIdentityPoolConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/ListDatasetsCommand.js +0 -119
- package/dist/cjs/commands/ListDatasetsCommand.js.map +0 -1
- package/dist/cjs/commands/ListIdentityPoolUsageCommand.js +0 -119
- package/dist/cjs/commands/ListIdentityPoolUsageCommand.js.map +0 -1
- package/dist/cjs/commands/ListRecordsCommand.js +0 -116
- package/dist/cjs/commands/ListRecordsCommand.js.map +0 -1
- package/dist/cjs/commands/RegisterDeviceCommand.js +0 -105
- package/dist/cjs/commands/RegisterDeviceCommand.js.map +0 -1
- package/dist/cjs/commands/SetCognitoEventsCommand.js.map +0 -1
- package/dist/cjs/commands/SetIdentityPoolConfigurationCommand.js +0 -111
- package/dist/cjs/commands/SetIdentityPoolConfigurationCommand.js.map +0 -1
- package/dist/cjs/commands/SubscribeToDatasetCommand.js +0 -104
- package/dist/cjs/commands/SubscribeToDatasetCommand.js.map +0 -1
- package/dist/cjs/commands/UnsubscribeFromDatasetCommand.js +0 -105
- package/dist/cjs/commands/UnsubscribeFromDatasetCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateRecordsCommand.js +0 -63
- package/dist/cjs/commands/UpdateRecordsCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/CognitoSync.js.map +0 -1
- package/dist/es/CognitoSyncClient.js.map +0 -1
- package/dist/es/commands/BulkPublishCommand.js.map +0 -1
- package/dist/es/commands/DeleteDatasetCommand.js.map +0 -1
- package/dist/es/commands/DescribeDatasetCommand.js.map +0 -1
- package/dist/es/commands/DescribeIdentityPoolUsageCommand.js.map +0 -1
- package/dist/es/commands/DescribeIdentityUsageCommand.js.map +0 -1
- package/dist/es/commands/GetBulkPublishDetailsCommand.js.map +0 -1
- package/dist/es/commands/GetCognitoEventsCommand.js.map +0 -1
- package/dist/es/commands/GetIdentityPoolConfigurationCommand.js.map +0 -1
- package/dist/es/commands/ListDatasetsCommand.js.map +0 -1
- package/dist/es/commands/ListIdentityPoolUsageCommand.js.map +0 -1
- package/dist/es/commands/ListRecordsCommand.js.map +0 -1
- package/dist/es/commands/RegisterDeviceCommand.js.map +0 -1
- package/dist/es/commands/SetCognitoEventsCommand.js.map +0 -1
- package/dist/es/commands/SetIdentityPoolConfigurationCommand.js.map +0 -1
- package/dist/es/commands/SubscribeToDatasetCommand.js.map +0 -1
- package/dist/es/commands/UnsubscribeFromDatasetCommand.js.map +0 -1
- package/dist/es/commands/UpdateRecordsCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -21
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/CognitoSync.d.ts +0 -642
- package/dist/types/ts3.4/commands/BulkPublishCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DeleteDatasetCommand.d.ts +0 -39
- package/dist/types/ts3.4/commands/DescribeDatasetCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/DescribeIdentityPoolUsageCommand.d.ts +0 -83
- package/dist/types/ts3.4/commands/DescribeIdentityUsageCommand.d.ts +0 -84
- package/dist/types/ts3.4/commands/GetBulkPublishDetailsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/GetCognitoEventsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/GetIdentityPoolConfigurationCommand.d.ts +0 -81
- package/dist/types/ts3.4/commands/ListDatasetsCommand.d.ts +0 -93
- package/dist/types/ts3.4/commands/ListIdentityPoolUsageCommand.d.ts +0 -93
- package/dist/types/ts3.4/commands/ListRecordsCommand.d.ts +0 -90
- package/dist/types/ts3.4/commands/RegisterDeviceCommand.d.ts +0 -79
- package/dist/types/ts3.4/commands/SetCognitoEventsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/SetIdentityPoolConfigurationCommand.d.ts +0 -85
- package/dist/types/ts3.4/commands/SubscribeToDatasetCommand.d.ts +0 -78
- package/dist/types/ts3.4/commands/UnsubscribeFromDatasetCommand.d.ts +0 -79
- package/dist/types/ts3.4/commands/UpdateRecordsCommand.d.ts +0 -37
- package/dist/types/ts3.4/models/models_0.d.ts +0 -1289
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -1578
- package/protocols/Aws_restJson1.ts +0 -2879
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { CognitoSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoSyncClient";
|
|
2
|
-
import { ListRecordsRequest, ListRecordsResponse } from "../models/models_0";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
|
|
5
|
-
export interface ListRecordsCommandInput extends ListRecordsRequest {
|
|
6
|
-
}
|
|
7
|
-
export interface ListRecordsCommandOutput extends ListRecordsResponse, __MetadataBearer {
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* <p>Gets paginated records, optionally changed after a particular sync count for a dataset and
|
|
11
|
-
* identity. With Amazon Cognito Sync, each identity has access only to its own data. Thus,
|
|
12
|
-
* the credentials used to make this API call need to have access to the identity data.</p>
|
|
13
|
-
* <p>ListRecords can be called with temporary user credentials provided by Cognito
|
|
14
|
-
* Identity or with developer credentials. You should use Cognito Identity credentials to make
|
|
15
|
-
* this API call.</p>
|
|
16
|
-
* <examples>
|
|
17
|
-
* <example>
|
|
18
|
-
* <name>ListRecords</name>
|
|
19
|
-
* <description>The following examples have been edited for readability.</description>
|
|
20
|
-
* <request>
|
|
21
|
-
* POST / HTTP/1.1
|
|
22
|
-
* CONTENT-TYPE: application/json
|
|
23
|
-
* X-AMZN-REQUESTID: b3d2e31e-d6b7-4612-8e84-c9ba288dab5d
|
|
24
|
-
* X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.ListRecords
|
|
25
|
-
* HOST: cognito-sync.us-east-1.amazonaws.com:443
|
|
26
|
-
* X-AMZ-DATE: 20141111T183230Z
|
|
27
|
-
* AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<signature>
|
|
28
|
-
*
|
|
29
|
-
* {
|
|
30
|
-
* "Operation": "com.amazonaws.cognito.sync.model#ListRecords",
|
|
31
|
-
* "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
|
|
32
|
-
* "Input":
|
|
33
|
-
* {
|
|
34
|
-
* "IdentityPoolId": "IDENTITY_POOL_ID",
|
|
35
|
-
* "IdentityId": "IDENTITY_ID",
|
|
36
|
-
* "DatasetName": "newDataSet"
|
|
37
|
-
* }
|
|
38
|
-
* }
|
|
39
|
-
* </request>
|
|
40
|
-
* <response>
|
|
41
|
-
* 1.1 200 OK
|
|
42
|
-
* x-amzn-requestid: b3d2e31e-d6b7-4612-8e84-c9ba288dab5d
|
|
43
|
-
* content-type: application/json
|
|
44
|
-
* content-length: 623
|
|
45
|
-
* date: Tue, 11 Nov 2014 18:32:30 GMT
|
|
46
|
-
*
|
|
47
|
-
* {
|
|
48
|
-
* "Output":
|
|
49
|
-
* {
|
|
50
|
-
* "__type": "com.amazonaws.cognito.sync.model#ListRecordsResponse",
|
|
51
|
-
* "Count": 0,
|
|
52
|
-
* "DatasetDeletedAfterRequestedSyncCount": false,
|
|
53
|
-
* "DatasetExists": false,
|
|
54
|
-
* "DatasetSyncCount": 0,
|
|
55
|
-
* "LastModifiedBy": null,
|
|
56
|
-
* "MergedDatasetNames": null,
|
|
57
|
-
* "NextToken": null,
|
|
58
|
-
* "Records": [],
|
|
59
|
-
* "SyncSessionToken": "SYNC_SESSION_TOKEN"
|
|
60
|
-
* },
|
|
61
|
-
* "Version": "1.0"
|
|
62
|
-
* }
|
|
63
|
-
* </response>
|
|
64
|
-
* </example>
|
|
65
|
-
* </examples>
|
|
66
|
-
* @example
|
|
67
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
68
|
-
* ```javascript
|
|
69
|
-
* import { CognitoSyncClient, ListRecordsCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
|
|
70
|
-
* // const { CognitoSyncClient, ListRecordsCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
|
|
71
|
-
* const client = new CognitoSyncClient(config);
|
|
72
|
-
* const command = new ListRecordsCommand(input);
|
|
73
|
-
* const response = await client.send(command);
|
|
74
|
-
* ```
|
|
75
|
-
*
|
|
76
|
-
* @see {@link ListRecordsCommandInput} for command's `input` shape.
|
|
77
|
-
* @see {@link ListRecordsCommandOutput} for command's `response` shape.
|
|
78
|
-
* @see {@link CognitoSyncClientResolvedConfig | config} for command's `input` shape.
|
|
79
|
-
*
|
|
80
|
-
*/
|
|
81
|
-
export declare class ListRecordsCommand extends $Command<ListRecordsCommandInput, ListRecordsCommandOutput, CognitoSyncClientResolvedConfig> {
|
|
82
|
-
readonly input: ListRecordsCommandInput;
|
|
83
|
-
constructor(input: ListRecordsCommandInput);
|
|
84
|
-
/**
|
|
85
|
-
* @internal
|
|
86
|
-
*/
|
|
87
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListRecordsCommandInput, ListRecordsCommandOutput>;
|
|
88
|
-
private serialize;
|
|
89
|
-
private deserialize;
|
|
90
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { CognitoSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoSyncClient";
|
|
2
|
-
import { RegisterDeviceRequest, RegisterDeviceResponse } from "../models/models_0";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
|
|
5
|
-
export interface RegisterDeviceCommandInput extends RegisterDeviceRequest {
|
|
6
|
-
}
|
|
7
|
-
export interface RegisterDeviceCommandOutput extends RegisterDeviceResponse, __MetadataBearer {
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* <p>Registers a device to receive push sync notifications.</p><p>This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.</p>
|
|
11
|
-
* <examples>
|
|
12
|
-
* <example>
|
|
13
|
-
* <name>RegisterDevice</name>
|
|
14
|
-
* <description>The following examples have been edited for readability.</description>
|
|
15
|
-
* <request>
|
|
16
|
-
* POST / HTTP/1.1
|
|
17
|
-
* CONTENT-TYPE: application/json
|
|
18
|
-
* X-AMZN-REQUESTID: 368f9200-3eca-449e-93b3-7b9c08d8e185
|
|
19
|
-
* X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.RegisterDevice
|
|
20
|
-
* HOST: cognito-sync.us-east-1.amazonaws.com
|
|
21
|
-
* X-AMZ-DATE: 20141004T194643Z
|
|
22
|
-
* X-AMZ-SECURITY-TOKEN: <securitytoken>
|
|
23
|
-
* AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
|
|
24
|
-
*
|
|
25
|
-
* {
|
|
26
|
-
* "Operation": "com.amazonaws.cognito.sync.model#RegisterDevice",
|
|
27
|
-
* "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
|
|
28
|
-
* "Input":
|
|
29
|
-
* {
|
|
30
|
-
* "IdentityPoolId": "ID_POOL_ID",
|
|
31
|
-
* "IdentityId": "IDENTITY_ID",
|
|
32
|
-
* "Platform": "GCM",
|
|
33
|
-
* "Token": "PUSH_TOKEN"
|
|
34
|
-
* }
|
|
35
|
-
* }
|
|
36
|
-
* </request>
|
|
37
|
-
* <response>
|
|
38
|
-
* 1.1 200 OK
|
|
39
|
-
* x-amzn-requestid: 368f9200-3eca-449e-93b3-7b9c08d8e185
|
|
40
|
-
* date: Sat, 04 Oct 2014 19:46:44 GMT
|
|
41
|
-
* content-type: application/json
|
|
42
|
-
* content-length: 145
|
|
43
|
-
*
|
|
44
|
-
* {
|
|
45
|
-
* "Output":
|
|
46
|
-
* {
|
|
47
|
-
* "__type": "com.amazonaws.cognito.sync.model#RegisterDeviceResponse",
|
|
48
|
-
* "DeviceId": "5cd28fbe-dd83-47ab-9f83-19093a5fb014"
|
|
49
|
-
* },
|
|
50
|
-
* "Version": "1.0"
|
|
51
|
-
* }
|
|
52
|
-
* </response>
|
|
53
|
-
* </example>
|
|
54
|
-
* </examples>
|
|
55
|
-
* @example
|
|
56
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
57
|
-
* ```javascript
|
|
58
|
-
* import { CognitoSyncClient, RegisterDeviceCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
|
|
59
|
-
* // const { CognitoSyncClient, RegisterDeviceCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
|
|
60
|
-
* const client = new CognitoSyncClient(config);
|
|
61
|
-
* const command = new RegisterDeviceCommand(input);
|
|
62
|
-
* const response = await client.send(command);
|
|
63
|
-
* ```
|
|
64
|
-
*
|
|
65
|
-
* @see {@link RegisterDeviceCommandInput} for command's `input` shape.
|
|
66
|
-
* @see {@link RegisterDeviceCommandOutput} for command's `response` shape.
|
|
67
|
-
* @see {@link CognitoSyncClientResolvedConfig | config} for command's `input` shape.
|
|
68
|
-
*
|
|
69
|
-
*/
|
|
70
|
-
export declare class RegisterDeviceCommand extends $Command<RegisterDeviceCommandInput, RegisterDeviceCommandOutput, CognitoSyncClientResolvedConfig> {
|
|
71
|
-
readonly input: RegisterDeviceCommandInput;
|
|
72
|
-
constructor(input: RegisterDeviceCommandInput);
|
|
73
|
-
/**
|
|
74
|
-
* @internal
|
|
75
|
-
*/
|
|
76
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions): Handler<RegisterDeviceCommandInput, RegisterDeviceCommandOutput>;
|
|
77
|
-
private serialize;
|
|
78
|
-
private deserialize;
|
|
79
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { CognitoSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoSyncClient";
|
|
2
|
-
import { SetCognitoEventsRequest } from "../models/models_0";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
|
|
5
|
-
export interface SetCognitoEventsCommandInput extends SetCognitoEventsRequest {
|
|
6
|
-
}
|
|
7
|
-
export interface SetCognitoEventsCommandOutput extends __MetadataBearer {
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* <p>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.</p><p>This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { CognitoSyncClient, SetCognitoEventsCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
|
|
15
|
-
* // const { CognitoSyncClient, SetCognitoEventsCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
|
|
16
|
-
* const client = new CognitoSyncClient(config);
|
|
17
|
-
* const command = new SetCognitoEventsCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link SetCognitoEventsCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link SetCognitoEventsCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link CognitoSyncClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
export declare class SetCognitoEventsCommand extends $Command<SetCognitoEventsCommandInput, SetCognitoEventsCommandOutput, CognitoSyncClientResolvedConfig> {
|
|
27
|
-
readonly input: SetCognitoEventsCommandInput;
|
|
28
|
-
constructor(input: SetCognitoEventsCommandInput);
|
|
29
|
-
/**
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
32
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SetCognitoEventsCommandInput, SetCognitoEventsCommandOutput>;
|
|
33
|
-
private serialize;
|
|
34
|
-
private deserialize;
|
|
35
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { CognitoSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoSyncClient";
|
|
2
|
-
import { SetIdentityPoolConfigurationRequest, SetIdentityPoolConfigurationResponse } from "../models/models_0";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
|
|
5
|
-
export interface SetIdentityPoolConfigurationCommandInput extends SetIdentityPoolConfigurationRequest {
|
|
6
|
-
}
|
|
7
|
-
export interface SetIdentityPoolConfigurationCommandOutput extends SetIdentityPoolConfigurationResponse, __MetadataBearer {
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* <p>Sets the necessary configuration for push sync.</p><p>This API can only be called with developer credentials. You cannot call this API with the temporary user credentials provided by Cognito Identity.</p>
|
|
11
|
-
* <examples>
|
|
12
|
-
* <example>
|
|
13
|
-
* <name>SetIdentityPoolConfiguration</name>
|
|
14
|
-
* <description>The following examples have been edited for readability.</description>
|
|
15
|
-
* <request>
|
|
16
|
-
* POST / HTTP/1.1
|
|
17
|
-
* CONTENT-TYPE: application/json
|
|
18
|
-
* X-AMZN-REQUESTID: a46db021-f5dd-45d6-af5b-7069fa4a211b
|
|
19
|
-
* X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.SetIdentityPoolConfiguration
|
|
20
|
-
* HOST: cognito-sync.us-east-1.amazonaws.com
|
|
21
|
-
* X-AMZ-DATE: 20141004T200006Z
|
|
22
|
-
* AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
|
|
23
|
-
*
|
|
24
|
-
* {
|
|
25
|
-
* "Operation": "com.amazonaws.cognito.sync.model#SetIdentityPoolConfiguration",
|
|
26
|
-
* "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
|
|
27
|
-
* "Input":
|
|
28
|
-
* {
|
|
29
|
-
* "IdentityPoolId": "ID_POOL_ID",
|
|
30
|
-
* "PushSync":
|
|
31
|
-
* {
|
|
32
|
-
* "ApplicationArns": ["PLATFORMARN1", "PLATFORMARN2"],
|
|
33
|
-
* "RoleArn": "ROLEARN"
|
|
34
|
-
* }
|
|
35
|
-
* }
|
|
36
|
-
* }
|
|
37
|
-
* </request>
|
|
38
|
-
* <response>
|
|
39
|
-
* 1.1 200 OK
|
|
40
|
-
* x-amzn-requestid: a46db021-f5dd-45d6-af5b-7069fa4a211b
|
|
41
|
-
* date: Sat, 04 Oct 2014 20:00:06 GMT
|
|
42
|
-
* content-type: application/json
|
|
43
|
-
* content-length: 332
|
|
44
|
-
*
|
|
45
|
-
* {
|
|
46
|
-
* "Output":
|
|
47
|
-
* {
|
|
48
|
-
* "__type": "com.amazonaws.cognito.sync.model#SetIdentityPoolConfigurationResponse",
|
|
49
|
-
* "IdentityPoolId": "ID_POOL_ID",
|
|
50
|
-
* "PushSync":
|
|
51
|
-
* {
|
|
52
|
-
* "ApplicationArns": ["PLATFORMARN1", "PLATFORMARN2"],
|
|
53
|
-
* "RoleArn": "ROLEARN"
|
|
54
|
-
* }
|
|
55
|
-
* },
|
|
56
|
-
* "Version": "1.0"
|
|
57
|
-
* }
|
|
58
|
-
* </response>
|
|
59
|
-
* </example>
|
|
60
|
-
* </examples>
|
|
61
|
-
* @example
|
|
62
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
63
|
-
* ```javascript
|
|
64
|
-
* import { CognitoSyncClient, SetIdentityPoolConfigurationCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
|
|
65
|
-
* // const { CognitoSyncClient, SetIdentityPoolConfigurationCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
|
|
66
|
-
* const client = new CognitoSyncClient(config);
|
|
67
|
-
* const command = new SetIdentityPoolConfigurationCommand(input);
|
|
68
|
-
* const response = await client.send(command);
|
|
69
|
-
* ```
|
|
70
|
-
*
|
|
71
|
-
* @see {@link SetIdentityPoolConfigurationCommandInput} for command's `input` shape.
|
|
72
|
-
* @see {@link SetIdentityPoolConfigurationCommandOutput} for command's `response` shape.
|
|
73
|
-
* @see {@link CognitoSyncClientResolvedConfig | config} for command's `input` shape.
|
|
74
|
-
*
|
|
75
|
-
*/
|
|
76
|
-
export declare class SetIdentityPoolConfigurationCommand extends $Command<SetIdentityPoolConfigurationCommandInput, SetIdentityPoolConfigurationCommandOutput, CognitoSyncClientResolvedConfig> {
|
|
77
|
-
readonly input: SetIdentityPoolConfigurationCommandInput;
|
|
78
|
-
constructor(input: SetIdentityPoolConfigurationCommandInput);
|
|
79
|
-
/**
|
|
80
|
-
* @internal
|
|
81
|
-
*/
|
|
82
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SetIdentityPoolConfigurationCommandInput, SetIdentityPoolConfigurationCommandOutput>;
|
|
83
|
-
private serialize;
|
|
84
|
-
private deserialize;
|
|
85
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { CognitoSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoSyncClient";
|
|
2
|
-
import { SubscribeToDatasetRequest, SubscribeToDatasetResponse } from "../models/models_0";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
|
|
5
|
-
export interface SubscribeToDatasetCommandInput extends SubscribeToDatasetRequest {
|
|
6
|
-
}
|
|
7
|
-
export interface SubscribeToDatasetCommandOutput extends SubscribeToDatasetResponse, __MetadataBearer {
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* <p>Subscribes to receive notifications when a dataset is modified by another device.</p><p>This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.</p>
|
|
11
|
-
* <examples>
|
|
12
|
-
* <example>
|
|
13
|
-
* <name>SubscribeToDataset</name>
|
|
14
|
-
* <description>The following examples have been edited for readability.</description>
|
|
15
|
-
* <request>
|
|
16
|
-
* POST / HTTP/1.1
|
|
17
|
-
* CONTENT-TYPE: application/json
|
|
18
|
-
* X-AMZN-REQUESTID: 8b9932b7-201d-4418-a960-0a470e11de9f
|
|
19
|
-
* X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.SubscribeToDataset
|
|
20
|
-
* HOST: cognito-sync.us-east-1.amazonaws.com
|
|
21
|
-
* X-AMZ-DATE: 20141004T195350Z
|
|
22
|
-
* X-AMZ-SECURITY-TOKEN: <securitytoken>
|
|
23
|
-
* AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
|
|
24
|
-
*
|
|
25
|
-
* {
|
|
26
|
-
* "Operation": "com.amazonaws.cognito.sync.model#SubscribeToDataset",
|
|
27
|
-
* "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
|
|
28
|
-
* "Input":
|
|
29
|
-
* {
|
|
30
|
-
* "IdentityPoolId": "ID_POOL_ID",
|
|
31
|
-
* "IdentityId": "IDENTITY_ID",
|
|
32
|
-
* "DatasetName": "Rufus",
|
|
33
|
-
* "DeviceId": "5cd28fbe-dd83-47ab-9f83-19093a5fb014"
|
|
34
|
-
* }
|
|
35
|
-
* }
|
|
36
|
-
* </request>
|
|
37
|
-
* <response>
|
|
38
|
-
* 1.1 200 OK
|
|
39
|
-
* x-amzn-requestid: 8b9932b7-201d-4418-a960-0a470e11de9f
|
|
40
|
-
* date: Sat, 04 Oct 2014 19:53:50 GMT
|
|
41
|
-
* content-type: application/json
|
|
42
|
-
* content-length: 99
|
|
43
|
-
*
|
|
44
|
-
* {
|
|
45
|
-
* "Output":
|
|
46
|
-
* {
|
|
47
|
-
* "__type": "com.amazonaws.cognito.sync.model#SubscribeToDatasetResponse"
|
|
48
|
-
* },
|
|
49
|
-
* "Version": "1.0"
|
|
50
|
-
* }
|
|
51
|
-
* </response>
|
|
52
|
-
* </example>
|
|
53
|
-
* </examples>
|
|
54
|
-
* @example
|
|
55
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
56
|
-
* ```javascript
|
|
57
|
-
* import { CognitoSyncClient, SubscribeToDatasetCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
|
|
58
|
-
* // const { CognitoSyncClient, SubscribeToDatasetCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
|
|
59
|
-
* const client = new CognitoSyncClient(config);
|
|
60
|
-
* const command = new SubscribeToDatasetCommand(input);
|
|
61
|
-
* const response = await client.send(command);
|
|
62
|
-
* ```
|
|
63
|
-
*
|
|
64
|
-
* @see {@link SubscribeToDatasetCommandInput} for command's `input` shape.
|
|
65
|
-
* @see {@link SubscribeToDatasetCommandOutput} for command's `response` shape.
|
|
66
|
-
* @see {@link CognitoSyncClientResolvedConfig | config} for command's `input` shape.
|
|
67
|
-
*
|
|
68
|
-
*/
|
|
69
|
-
export declare class SubscribeToDatasetCommand extends $Command<SubscribeToDatasetCommandInput, SubscribeToDatasetCommandOutput, CognitoSyncClientResolvedConfig> {
|
|
70
|
-
readonly input: SubscribeToDatasetCommandInput;
|
|
71
|
-
constructor(input: SubscribeToDatasetCommandInput);
|
|
72
|
-
/**
|
|
73
|
-
* @internal
|
|
74
|
-
*/
|
|
75
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SubscribeToDatasetCommandInput, SubscribeToDatasetCommandOutput>;
|
|
76
|
-
private serialize;
|
|
77
|
-
private deserialize;
|
|
78
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { CognitoSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoSyncClient";
|
|
2
|
-
import { UnsubscribeFromDatasetRequest, UnsubscribeFromDatasetResponse } from "../models/models_0";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
|
|
5
|
-
export interface UnsubscribeFromDatasetCommandInput extends UnsubscribeFromDatasetRequest {
|
|
6
|
-
}
|
|
7
|
-
export interface UnsubscribeFromDatasetCommandOutput extends UnsubscribeFromDatasetResponse, __MetadataBearer {
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* <p>Unsubscribes from receiving notifications when a dataset is modified by another device.</p><p>This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.</p>
|
|
11
|
-
* <examples>
|
|
12
|
-
* <example>
|
|
13
|
-
* <name>UnsubscribeFromDataset</name>
|
|
14
|
-
* <description>The following examples have been edited for readability.</description>
|
|
15
|
-
* <request>
|
|
16
|
-
* POST / HTTP/1.1
|
|
17
|
-
* CONTENT-TYPE: application/json
|
|
18
|
-
* X-AMZ-REQUESTSUPERTRACE: true
|
|
19
|
-
* X-AMZN-REQUESTID: 676896d6-14ca-45b1-8029-6d36b10a077e
|
|
20
|
-
* X-AMZ-TARGET: com.amazonaws.cognito.sync.model.AWSCognitoSyncService.UnsubscribeFromDataset
|
|
21
|
-
* HOST: cognito-sync.us-east-1.amazonaws.com
|
|
22
|
-
* X-AMZ-DATE: 20141004T195446Z
|
|
23
|
-
* X-AMZ-SECURITY-TOKEN: <securitytoken>
|
|
24
|
-
* AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
|
|
25
|
-
*
|
|
26
|
-
* {
|
|
27
|
-
* "Operation": "com.amazonaws.cognito.sync.model#UnsubscribeFromDataset",
|
|
28
|
-
* "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
|
|
29
|
-
* "Input":
|
|
30
|
-
* {
|
|
31
|
-
* "IdentityPoolId": "ID_POOL_ID",
|
|
32
|
-
* "IdentityId": "IDENTITY_ID",
|
|
33
|
-
* "DatasetName": "Rufus",
|
|
34
|
-
* "DeviceId": "5cd28fbe-dd83-47ab-9f83-19093a5fb014"
|
|
35
|
-
* }
|
|
36
|
-
* }
|
|
37
|
-
* </request>
|
|
38
|
-
* <response>
|
|
39
|
-
* 1.1 200 OK
|
|
40
|
-
* x-amzn-requestid: 676896d6-14ca-45b1-8029-6d36b10a077e
|
|
41
|
-
* date: Sat, 04 Oct 2014 19:54:46 GMT
|
|
42
|
-
* content-type: application/json
|
|
43
|
-
* content-length: 103
|
|
44
|
-
*
|
|
45
|
-
* {
|
|
46
|
-
* "Output":
|
|
47
|
-
* {
|
|
48
|
-
* "__type": "com.amazonaws.cognito.sync.model#UnsubscribeFromDatasetResponse"
|
|
49
|
-
* },
|
|
50
|
-
* "Version": "1.0"
|
|
51
|
-
* }
|
|
52
|
-
* </response>
|
|
53
|
-
* </example>
|
|
54
|
-
* </examples>
|
|
55
|
-
* @example
|
|
56
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
57
|
-
* ```javascript
|
|
58
|
-
* import { CognitoSyncClient, UnsubscribeFromDatasetCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
|
|
59
|
-
* // const { CognitoSyncClient, UnsubscribeFromDatasetCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
|
|
60
|
-
* const client = new CognitoSyncClient(config);
|
|
61
|
-
* const command = new UnsubscribeFromDatasetCommand(input);
|
|
62
|
-
* const response = await client.send(command);
|
|
63
|
-
* ```
|
|
64
|
-
*
|
|
65
|
-
* @see {@link UnsubscribeFromDatasetCommandInput} for command's `input` shape.
|
|
66
|
-
* @see {@link UnsubscribeFromDatasetCommandOutput} for command's `response` shape.
|
|
67
|
-
* @see {@link CognitoSyncClientResolvedConfig | config} for command's `input` shape.
|
|
68
|
-
*
|
|
69
|
-
*/
|
|
70
|
-
export declare class UnsubscribeFromDatasetCommand extends $Command<UnsubscribeFromDatasetCommandInput, UnsubscribeFromDatasetCommandOutput, CognitoSyncClientResolvedConfig> {
|
|
71
|
-
readonly input: UnsubscribeFromDatasetCommandInput;
|
|
72
|
-
constructor(input: UnsubscribeFromDatasetCommandInput);
|
|
73
|
-
/**
|
|
74
|
-
* @internal
|
|
75
|
-
*/
|
|
76
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UnsubscribeFromDatasetCommandInput, UnsubscribeFromDatasetCommandOutput>;
|
|
77
|
-
private serialize;
|
|
78
|
-
private deserialize;
|
|
79
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { CognitoSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoSyncClient";
|
|
2
|
-
import { UpdateRecordsRequest, UpdateRecordsResponse } from "../models/models_0";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
|
|
5
|
-
export interface UpdateRecordsCommandInput extends UpdateRecordsRequest {
|
|
6
|
-
}
|
|
7
|
-
export interface UpdateRecordsCommandOutput extends UpdateRecordsResponse, __MetadataBearer {
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* <p>Posts updates to records and adds and deletes records for a dataset and user.</p>
|
|
11
|
-
* <p>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.</p><p>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.</p>
|
|
12
|
-
* <p>This API can be called with temporary user credentials provided by Cognito Identity or with developer credentials.</p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { CognitoSyncClient, UpdateRecordsCommand } from "@aws-sdk/client-cognito-sync"; // ES Modules import
|
|
17
|
-
* // const { CognitoSyncClient, UpdateRecordsCommand } = require("@aws-sdk/client-cognito-sync"); // CommonJS import
|
|
18
|
-
* const client = new CognitoSyncClient(config);
|
|
19
|
-
* const command = new UpdateRecordsCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link UpdateRecordsCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link UpdateRecordsCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link CognitoSyncClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
export declare class UpdateRecordsCommand extends $Command<UpdateRecordsCommandInput, UpdateRecordsCommandOutput, CognitoSyncClientResolvedConfig> {
|
|
29
|
-
readonly input: UpdateRecordsCommandInput;
|
|
30
|
-
constructor(input: UpdateRecordsCommandInput);
|
|
31
|
-
/**
|
|
32
|
-
* @internal
|
|
33
|
-
*/
|
|
34
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateRecordsCommandInput, UpdateRecordsCommandOutput>;
|
|
35
|
-
private serialize;
|
|
36
|
-
private deserialize;
|
|
37
|
-
}
|