@aws-sdk/client-cognito-sync 3.296.0 → 3.297.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/dist-types/CognitoSync.d.ts +114 -96
- package/dist-types/CognitoSyncClient.d.ts +24 -4
- package/dist-types/commands/BulkPublishCommand.d.ts +16 -0
- package/dist-types/commands/DeleteDatasetCommand.d.ts +16 -0
- package/dist-types/commands/DescribeDatasetCommand.d.ts +16 -0
- package/dist-types/commands/DescribeIdentityPoolUsageCommand.d.ts +26 -10
- package/dist-types/commands/DescribeIdentityUsageCommand.d.ts +26 -10
- package/dist-types/commands/GetBulkPublishDetailsCommand.d.ts +16 -0
- package/dist-types/commands/GetCognitoEventsCommand.d.ts +16 -0
- package/dist-types/commands/GetIdentityPoolConfigurationCommand.d.ts +26 -10
- package/dist-types/commands/ListDatasetsCommand.d.ts +26 -10
- package/dist-types/commands/ListIdentityPoolUsageCommand.d.ts +28 -12
- package/dist-types/commands/ListRecordsCommand.d.ts +24 -8
- package/dist-types/commands/RegisterDeviceCommand.d.ts +24 -8
- package/dist-types/commands/SetCognitoEventsCommand.d.ts +16 -0
- package/dist-types/commands/SetIdentityPoolConfigurationCommand.d.ts +28 -12
- package/dist-types/commands/SubscribeToDatasetCommand.d.ts +24 -8
- package/dist-types/commands/UnsubscribeFromDatasetCommand.d.ts +24 -8
- package/dist-types/commands/UpdateRecordsCommand.d.ts +16 -0
- package/dist-types/models/CognitoSyncServiceException.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +67 -0
- package/package.json +3 -3
|
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
|
|
|
4
4
|
import { CognitoSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoSyncClient";
|
|
5
5
|
import { ListIdentityPoolUsageRequest, ListIdentityPoolUsageResponse } from "../models/models_0";
|
|
6
6
|
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
7
9
|
* The input for {@link ListIdentityPoolUsageCommand}.
|
|
8
10
|
*/
|
|
9
11
|
export interface ListIdentityPoolUsageCommandInput extends ListIdentityPoolUsageRequest {
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
12
16
|
* The output of {@link ListIdentityPoolUsageCommand}.
|
|
13
17
|
*/
|
|
14
18
|
export interface ListIdentityPoolUsageCommandOutput extends ListIdentityPoolUsageResponse, __MetadataBearer {
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
21
|
+
* @public
|
|
17
22
|
* <p>Gets a list of identity pools registered with Cognito.</p>
|
|
18
23
|
* <p>ListIdentityPoolUsage can only be called with developer credentials. You
|
|
19
24
|
* cannot make this API call with the temporary user credentials provided by Cognito
|
|
@@ -31,14 +36,14 @@ export interface ListIdentityPoolUsageCommandOutput extends ListIdentityPoolUsag
|
|
|
31
36
|
* X-AMZ-DATE: 20141111T211414Z
|
|
32
37
|
* AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<signature>
|
|
33
38
|
*
|
|
34
|
-
* {
|
|
39
|
+
* \{
|
|
35
40
|
* "Operation": "com.amazonaws.cognito.sync.model#ListIdentityPoolUsage",
|
|
36
41
|
* "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
|
|
37
42
|
* "Input":
|
|
38
|
-
* {
|
|
43
|
+
* \{
|
|
39
44
|
* "MaxResults": "2"
|
|
40
|
-
* }
|
|
41
|
-
* }
|
|
45
|
+
* \}
|
|
46
|
+
* \}
|
|
42
47
|
* </request>
|
|
43
48
|
* <response>
|
|
44
49
|
* 1.1 200 OK
|
|
@@ -47,29 +52,29 @@ export interface ListIdentityPoolUsageCommandOutput extends ListIdentityPoolUsag
|
|
|
47
52
|
* content-length: 519
|
|
48
53
|
* date: Tue, 11 Nov 2014 21:14:14 GMT
|
|
49
54
|
*
|
|
50
|
-
* {
|
|
55
|
+
* \{
|
|
51
56
|
* "Output":
|
|
52
|
-
* {
|
|
57
|
+
* \{
|
|
53
58
|
* "__type": "com.amazonaws.cognito.sync.model#ListIdentityPoolUsageResponse",
|
|
54
59
|
* "Count": 2,
|
|
55
60
|
* "IdentityPoolUsages": [
|
|
56
|
-
* {
|
|
61
|
+
* \{
|
|
57
62
|
* "DataStorage": 0,
|
|
58
63
|
* "IdentityPoolId": "IDENTITY_POOL_ID",
|
|
59
64
|
* "LastModifiedDate": 1.413836234607E9,
|
|
60
65
|
* "SyncSessionsCount": null
|
|
61
|
-
* },
|
|
62
|
-
* {
|
|
66
|
+
* \},
|
|
67
|
+
* \{
|
|
63
68
|
* "DataStorage": 0,
|
|
64
69
|
* "IdentityPoolId": "IDENTITY_POOL_ID",
|
|
65
70
|
* "LastModifiedDate": 1.410892165601E9,
|
|
66
71
|
* "SyncSessionsCount": null
|
|
67
|
-
* }],
|
|
72
|
+
* \}],
|
|
68
73
|
* "MaxResults": 2,
|
|
69
74
|
* "NextToken": "dXMtZWFzdC0xOjBjMWJhMDUyLWUwOTgtNDFmYS1hNzZlLWVhYTJjMTI1Zjg2MQ=="
|
|
70
|
-
* },
|
|
75
|
+
* \},
|
|
71
76
|
* "Version": "1.0"
|
|
72
|
-
* }
|
|
77
|
+
* \}
|
|
73
78
|
* </response>
|
|
74
79
|
* </example>
|
|
75
80
|
* </examples>
|
|
@@ -83,6 +88,8 @@ export interface ListIdentityPoolUsageCommandOutput extends ListIdentityPoolUsag
|
|
|
83
88
|
* const response = await client.send(command);
|
|
84
89
|
* ```
|
|
85
90
|
*
|
|
91
|
+
* @param ListIdentityPoolUsageCommandInput - {@link ListIdentityPoolUsageCommandInput}
|
|
92
|
+
* @returns {@link ListIdentityPoolUsageCommandOutput}
|
|
86
93
|
* @see {@link ListIdentityPoolUsageCommandInput} for command's `input` shape.
|
|
87
94
|
* @see {@link ListIdentityPoolUsageCommandOutput} for command's `response` shape.
|
|
88
95
|
* @see {@link CognitoSyncClientResolvedConfig | config} for CognitoSyncClient's `config` shape.
|
|
@@ -108,11 +115,20 @@ export interface ListIdentityPoolUsageCommandOutput extends ListIdentityPoolUsag
|
|
|
108
115
|
export declare class ListIdentityPoolUsageCommand extends $Command<ListIdentityPoolUsageCommandInput, ListIdentityPoolUsageCommandOutput, CognitoSyncClientResolvedConfig> {
|
|
109
116
|
readonly input: ListIdentityPoolUsageCommandInput;
|
|
110
117
|
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
118
|
+
/**
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
111
121
|
constructor(input: ListIdentityPoolUsageCommandInput);
|
|
112
122
|
/**
|
|
113
123
|
* @internal
|
|
114
124
|
*/
|
|
115
125
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListIdentityPoolUsageCommandInput, ListIdentityPoolUsageCommandOutput>;
|
|
126
|
+
/**
|
|
127
|
+
* @internal
|
|
128
|
+
*/
|
|
116
129
|
private serialize;
|
|
130
|
+
/**
|
|
131
|
+
* @internal
|
|
132
|
+
*/
|
|
117
133
|
private deserialize;
|
|
118
134
|
}
|
|
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
|
|
|
4
4
|
import { CognitoSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoSyncClient";
|
|
5
5
|
import { ListRecordsRequest, ListRecordsResponse } from "../models/models_0";
|
|
6
6
|
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
7
9
|
* The input for {@link ListRecordsCommand}.
|
|
8
10
|
*/
|
|
9
11
|
export interface ListRecordsCommandInput extends ListRecordsRequest {
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
12
16
|
* The output of {@link ListRecordsCommand}.
|
|
13
17
|
*/
|
|
14
18
|
export interface ListRecordsCommandOutput extends ListRecordsResponse, __MetadataBearer {
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
21
|
+
* @public
|
|
17
22
|
* <p>Gets paginated records, optionally changed after a particular sync count for a dataset and
|
|
18
23
|
* identity. With Amazon Cognito Sync, each identity has access only to its own data. Thus,
|
|
19
24
|
* the credentials used to make this API call need to have access to the identity data.</p>
|
|
@@ -33,16 +38,16 @@ export interface ListRecordsCommandOutput extends ListRecordsResponse, __Metadat
|
|
|
33
38
|
* X-AMZ-DATE: 20141111T183230Z
|
|
34
39
|
* AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;host;x-amz-date;x-amz-target;x-amzn-requestid, Signature=<signature>
|
|
35
40
|
*
|
|
36
|
-
* {
|
|
41
|
+
* \{
|
|
37
42
|
* "Operation": "com.amazonaws.cognito.sync.model#ListRecords",
|
|
38
43
|
* "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
|
|
39
44
|
* "Input":
|
|
40
|
-
* {
|
|
45
|
+
* \{
|
|
41
46
|
* "IdentityPoolId": "IDENTITY_POOL_ID",
|
|
42
47
|
* "IdentityId": "IDENTITY_ID",
|
|
43
48
|
* "DatasetName": "newDataSet"
|
|
44
|
-
* }
|
|
45
|
-
* }
|
|
49
|
+
* \}
|
|
50
|
+
* \}
|
|
46
51
|
* </request>
|
|
47
52
|
* <response>
|
|
48
53
|
* 1.1 200 OK
|
|
@@ -51,9 +56,9 @@ export interface ListRecordsCommandOutput extends ListRecordsResponse, __Metadat
|
|
|
51
56
|
* content-length: 623
|
|
52
57
|
* date: Tue, 11 Nov 2014 18:32:30 GMT
|
|
53
58
|
*
|
|
54
|
-
* {
|
|
59
|
+
* \{
|
|
55
60
|
* "Output":
|
|
56
|
-
* {
|
|
61
|
+
* \{
|
|
57
62
|
* "__type": "com.amazonaws.cognito.sync.model#ListRecordsResponse",
|
|
58
63
|
* "Count": 0,
|
|
59
64
|
* "DatasetDeletedAfterRequestedSyncCount": false,
|
|
@@ -64,9 +69,9 @@ export interface ListRecordsCommandOutput extends ListRecordsResponse, __Metadat
|
|
|
64
69
|
* "NextToken": null,
|
|
65
70
|
* "Records": [],
|
|
66
71
|
* "SyncSessionToken": "SYNC_SESSION_TOKEN"
|
|
67
|
-
* },
|
|
72
|
+
* \},
|
|
68
73
|
* "Version": "1.0"
|
|
69
|
-
* }
|
|
74
|
+
* \}
|
|
70
75
|
* </response>
|
|
71
76
|
* </example>
|
|
72
77
|
* </examples>
|
|
@@ -80,6 +85,8 @@ export interface ListRecordsCommandOutput extends ListRecordsResponse, __Metadat
|
|
|
80
85
|
* const response = await client.send(command);
|
|
81
86
|
* ```
|
|
82
87
|
*
|
|
88
|
+
* @param ListRecordsCommandInput - {@link ListRecordsCommandInput}
|
|
89
|
+
* @returns {@link ListRecordsCommandOutput}
|
|
83
90
|
* @see {@link ListRecordsCommandInput} for command's `input` shape.
|
|
84
91
|
* @see {@link ListRecordsCommandOutput} for command's `response` shape.
|
|
85
92
|
* @see {@link CognitoSyncClientResolvedConfig | config} for CognitoSyncClient's `config` shape.
|
|
@@ -105,11 +112,20 @@ export interface ListRecordsCommandOutput extends ListRecordsResponse, __Metadat
|
|
|
105
112
|
export declare class ListRecordsCommand extends $Command<ListRecordsCommandInput, ListRecordsCommandOutput, CognitoSyncClientResolvedConfig> {
|
|
106
113
|
readonly input: ListRecordsCommandInput;
|
|
107
114
|
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
115
|
+
/**
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
108
118
|
constructor(input: ListRecordsCommandInput);
|
|
109
119
|
/**
|
|
110
120
|
* @internal
|
|
111
121
|
*/
|
|
112
122
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListRecordsCommandInput, ListRecordsCommandOutput>;
|
|
123
|
+
/**
|
|
124
|
+
* @internal
|
|
125
|
+
*/
|
|
113
126
|
private serialize;
|
|
127
|
+
/**
|
|
128
|
+
* @internal
|
|
129
|
+
*/
|
|
114
130
|
private deserialize;
|
|
115
131
|
}
|
|
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
|
|
|
4
4
|
import { CognitoSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoSyncClient";
|
|
5
5
|
import { RegisterDeviceRequest, RegisterDeviceResponse } from "../models/models_0";
|
|
6
6
|
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
7
9
|
* The input for {@link RegisterDeviceCommand}.
|
|
8
10
|
*/
|
|
9
11
|
export interface RegisterDeviceCommandInput extends RegisterDeviceRequest {
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
12
16
|
* The output of {@link RegisterDeviceCommand}.
|
|
13
17
|
*/
|
|
14
18
|
export interface RegisterDeviceCommandOutput extends RegisterDeviceResponse, __MetadataBearer {
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
21
|
+
* @public
|
|
17
22
|
* <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>
|
|
18
23
|
* <examples>
|
|
19
24
|
* <example>
|
|
@@ -29,17 +34,17 @@ export interface RegisterDeviceCommandOutput extends RegisterDeviceResponse, __M
|
|
|
29
34
|
* X-AMZ-SECURITY-TOKEN: <securitytoken>
|
|
30
35
|
* AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
|
|
31
36
|
*
|
|
32
|
-
* {
|
|
37
|
+
* \{
|
|
33
38
|
* "Operation": "com.amazonaws.cognito.sync.model#RegisterDevice",
|
|
34
39
|
* "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
|
|
35
40
|
* "Input":
|
|
36
|
-
* {
|
|
41
|
+
* \{
|
|
37
42
|
* "IdentityPoolId": "ID_POOL_ID",
|
|
38
43
|
* "IdentityId": "IDENTITY_ID",
|
|
39
44
|
* "Platform": "GCM",
|
|
40
45
|
* "Token": "PUSH_TOKEN"
|
|
41
|
-
* }
|
|
42
|
-
* }
|
|
46
|
+
* \}
|
|
47
|
+
* \}
|
|
43
48
|
* </request>
|
|
44
49
|
* <response>
|
|
45
50
|
* 1.1 200 OK
|
|
@@ -48,14 +53,14 @@ export interface RegisterDeviceCommandOutput extends RegisterDeviceResponse, __M
|
|
|
48
53
|
* content-type: application/json
|
|
49
54
|
* content-length: 145
|
|
50
55
|
*
|
|
51
|
-
* {
|
|
56
|
+
* \{
|
|
52
57
|
* "Output":
|
|
53
|
-
* {
|
|
58
|
+
* \{
|
|
54
59
|
* "__type": "com.amazonaws.cognito.sync.model#RegisterDeviceResponse",
|
|
55
60
|
* "DeviceId": "5cd28fbe-dd83-47ab-9f83-19093a5fb014"
|
|
56
|
-
* },
|
|
61
|
+
* \},
|
|
57
62
|
* "Version": "1.0"
|
|
58
|
-
* }
|
|
63
|
+
* \}
|
|
59
64
|
* </response>
|
|
60
65
|
* </example>
|
|
61
66
|
* </examples>
|
|
@@ -69,6 +74,8 @@ export interface RegisterDeviceCommandOutput extends RegisterDeviceResponse, __M
|
|
|
69
74
|
* const response = await client.send(command);
|
|
70
75
|
* ```
|
|
71
76
|
*
|
|
77
|
+
* @param RegisterDeviceCommandInput - {@link RegisterDeviceCommandInput}
|
|
78
|
+
* @returns {@link RegisterDeviceCommandOutput}
|
|
72
79
|
* @see {@link RegisterDeviceCommandInput} for command's `input` shape.
|
|
73
80
|
* @see {@link RegisterDeviceCommandOutput} for command's `response` shape.
|
|
74
81
|
* @see {@link CognitoSyncClientResolvedConfig | config} for CognitoSyncClient's `config` shape.
|
|
@@ -100,11 +107,20 @@ export interface RegisterDeviceCommandOutput extends RegisterDeviceResponse, __M
|
|
|
100
107
|
export declare class RegisterDeviceCommand extends $Command<RegisterDeviceCommandInput, RegisterDeviceCommandOutput, CognitoSyncClientResolvedConfig> {
|
|
101
108
|
readonly input: RegisterDeviceCommandInput;
|
|
102
109
|
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
110
|
+
/**
|
|
111
|
+
* @public
|
|
112
|
+
*/
|
|
103
113
|
constructor(input: RegisterDeviceCommandInput);
|
|
104
114
|
/**
|
|
105
115
|
* @internal
|
|
106
116
|
*/
|
|
107
117
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions): Handler<RegisterDeviceCommandInput, RegisterDeviceCommandOutput>;
|
|
118
|
+
/**
|
|
119
|
+
* @internal
|
|
120
|
+
*/
|
|
108
121
|
private serialize;
|
|
122
|
+
/**
|
|
123
|
+
* @internal
|
|
124
|
+
*/
|
|
109
125
|
private deserialize;
|
|
110
126
|
}
|
|
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
|
|
|
4
4
|
import { CognitoSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoSyncClient";
|
|
5
5
|
import { SetCognitoEventsRequest } from "../models/models_0";
|
|
6
6
|
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
7
9
|
* The input for {@link SetCognitoEventsCommand}.
|
|
8
10
|
*/
|
|
9
11
|
export interface SetCognitoEventsCommandInput extends SetCognitoEventsRequest {
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
12
16
|
* The output of {@link SetCognitoEventsCommand}.
|
|
13
17
|
*/
|
|
14
18
|
export interface SetCognitoEventsCommandOutput extends __MetadataBearer {
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
21
|
+
* @public
|
|
17
22
|
* <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>
|
|
18
23
|
* @example
|
|
19
24
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -25,6 +30,8 @@ export interface SetCognitoEventsCommandOutput extends __MetadataBearer {
|
|
|
25
30
|
* const response = await client.send(command);
|
|
26
31
|
* ```
|
|
27
32
|
*
|
|
33
|
+
* @param SetCognitoEventsCommandInput - {@link SetCognitoEventsCommandInput}
|
|
34
|
+
* @returns {@link SetCognitoEventsCommandOutput}
|
|
28
35
|
* @see {@link SetCognitoEventsCommandInput} for command's `input` shape.
|
|
29
36
|
* @see {@link SetCognitoEventsCommandOutput} for command's `response` shape.
|
|
30
37
|
* @see {@link CognitoSyncClientResolvedConfig | config} for CognitoSyncClient's `config` shape.
|
|
@@ -54,11 +61,20 @@ export interface SetCognitoEventsCommandOutput extends __MetadataBearer {
|
|
|
54
61
|
export declare class SetCognitoEventsCommand extends $Command<SetCognitoEventsCommandInput, SetCognitoEventsCommandOutput, CognitoSyncClientResolvedConfig> {
|
|
55
62
|
readonly input: SetCognitoEventsCommandInput;
|
|
56
63
|
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
64
|
+
/**
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
57
67
|
constructor(input: SetCognitoEventsCommandInput);
|
|
58
68
|
/**
|
|
59
69
|
* @internal
|
|
60
70
|
*/
|
|
61
71
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SetCognitoEventsCommandInput, SetCognitoEventsCommandOutput>;
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
62
75
|
private serialize;
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
63
79
|
private deserialize;
|
|
64
80
|
}
|
|
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
|
|
|
4
4
|
import { CognitoSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoSyncClient";
|
|
5
5
|
import { SetIdentityPoolConfigurationRequest, SetIdentityPoolConfigurationResponse } from "../models/models_0";
|
|
6
6
|
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
7
9
|
* The input for {@link SetIdentityPoolConfigurationCommand}.
|
|
8
10
|
*/
|
|
9
11
|
export interface SetIdentityPoolConfigurationCommandInput extends SetIdentityPoolConfigurationRequest {
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
12
16
|
* The output of {@link SetIdentityPoolConfigurationCommand}.
|
|
13
17
|
*/
|
|
14
18
|
export interface SetIdentityPoolConfigurationCommandOutput extends SetIdentityPoolConfigurationResponse, __MetadataBearer {
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
21
|
+
* @public
|
|
17
22
|
* <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>
|
|
18
23
|
* <examples>
|
|
19
24
|
* <example>
|
|
@@ -28,19 +33,19 @@ export interface SetIdentityPoolConfigurationCommandOutput extends SetIdentityPo
|
|
|
28
33
|
* X-AMZ-DATE: 20141004T200006Z
|
|
29
34
|
* AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
|
|
30
35
|
*
|
|
31
|
-
* {
|
|
36
|
+
* \{
|
|
32
37
|
* "Operation": "com.amazonaws.cognito.sync.model#SetIdentityPoolConfiguration",
|
|
33
38
|
* "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
|
|
34
39
|
* "Input":
|
|
35
|
-
* {
|
|
40
|
+
* \{
|
|
36
41
|
* "IdentityPoolId": "ID_POOL_ID",
|
|
37
42
|
* "PushSync":
|
|
38
|
-
* {
|
|
43
|
+
* \{
|
|
39
44
|
* "ApplicationArns": ["PLATFORMARN1", "PLATFORMARN2"],
|
|
40
45
|
* "RoleArn": "ROLEARN"
|
|
41
|
-
* }
|
|
42
|
-
* }
|
|
43
|
-
* }
|
|
46
|
+
* \}
|
|
47
|
+
* \}
|
|
48
|
+
* \}
|
|
44
49
|
* </request>
|
|
45
50
|
* <response>
|
|
46
51
|
* 1.1 200 OK
|
|
@@ -49,19 +54,19 @@ export interface SetIdentityPoolConfigurationCommandOutput extends SetIdentityPo
|
|
|
49
54
|
* content-type: application/json
|
|
50
55
|
* content-length: 332
|
|
51
56
|
*
|
|
52
|
-
* {
|
|
57
|
+
* \{
|
|
53
58
|
* "Output":
|
|
54
|
-
* {
|
|
59
|
+
* \{
|
|
55
60
|
* "__type": "com.amazonaws.cognito.sync.model#SetIdentityPoolConfigurationResponse",
|
|
56
61
|
* "IdentityPoolId": "ID_POOL_ID",
|
|
57
62
|
* "PushSync":
|
|
58
|
-
* {
|
|
63
|
+
* \{
|
|
59
64
|
* "ApplicationArns": ["PLATFORMARN1", "PLATFORMARN2"],
|
|
60
65
|
* "RoleArn": "ROLEARN"
|
|
61
|
-
* }
|
|
62
|
-
* },
|
|
66
|
+
* \}
|
|
67
|
+
* \},
|
|
63
68
|
* "Version": "1.0"
|
|
64
|
-
* }
|
|
69
|
+
* \}
|
|
65
70
|
* </response>
|
|
66
71
|
* </example>
|
|
67
72
|
* </examples>
|
|
@@ -75,6 +80,8 @@ export interface SetIdentityPoolConfigurationCommandOutput extends SetIdentityPo
|
|
|
75
80
|
* const response = await client.send(command);
|
|
76
81
|
* ```
|
|
77
82
|
*
|
|
83
|
+
* @param SetIdentityPoolConfigurationCommandInput - {@link SetIdentityPoolConfigurationCommandInput}
|
|
84
|
+
* @returns {@link SetIdentityPoolConfigurationCommandOutput}
|
|
78
85
|
* @see {@link SetIdentityPoolConfigurationCommandInput} for command's `input` shape.
|
|
79
86
|
* @see {@link SetIdentityPoolConfigurationCommandOutput} for command's `response` shape.
|
|
80
87
|
* @see {@link CognitoSyncClientResolvedConfig | config} for CognitoSyncClient's `config` shape.
|
|
@@ -107,11 +114,20 @@ export interface SetIdentityPoolConfigurationCommandOutput extends SetIdentityPo
|
|
|
107
114
|
export declare class SetIdentityPoolConfigurationCommand extends $Command<SetIdentityPoolConfigurationCommandInput, SetIdentityPoolConfigurationCommandOutput, CognitoSyncClientResolvedConfig> {
|
|
108
115
|
readonly input: SetIdentityPoolConfigurationCommandInput;
|
|
109
116
|
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
117
|
+
/**
|
|
118
|
+
* @public
|
|
119
|
+
*/
|
|
110
120
|
constructor(input: SetIdentityPoolConfigurationCommandInput);
|
|
111
121
|
/**
|
|
112
122
|
* @internal
|
|
113
123
|
*/
|
|
114
124
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SetIdentityPoolConfigurationCommandInput, SetIdentityPoolConfigurationCommandOutput>;
|
|
125
|
+
/**
|
|
126
|
+
* @internal
|
|
127
|
+
*/
|
|
115
128
|
private serialize;
|
|
129
|
+
/**
|
|
130
|
+
* @internal
|
|
131
|
+
*/
|
|
116
132
|
private deserialize;
|
|
117
133
|
}
|
|
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
|
|
|
4
4
|
import { CognitoSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoSyncClient";
|
|
5
5
|
import { SubscribeToDatasetRequest, SubscribeToDatasetResponse } from "../models/models_0";
|
|
6
6
|
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
7
9
|
* The input for {@link SubscribeToDatasetCommand}.
|
|
8
10
|
*/
|
|
9
11
|
export interface SubscribeToDatasetCommandInput extends SubscribeToDatasetRequest {
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
12
16
|
* The output of {@link SubscribeToDatasetCommand}.
|
|
13
17
|
*/
|
|
14
18
|
export interface SubscribeToDatasetCommandOutput extends SubscribeToDatasetResponse, __MetadataBearer {
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
21
|
+
* @public
|
|
17
22
|
* <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>
|
|
18
23
|
* <examples>
|
|
19
24
|
* <example>
|
|
@@ -29,17 +34,17 @@ export interface SubscribeToDatasetCommandOutput extends SubscribeToDatasetRespo
|
|
|
29
34
|
* X-AMZ-SECURITY-TOKEN: <securitytoken>
|
|
30
35
|
* AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
|
|
31
36
|
*
|
|
32
|
-
* {
|
|
37
|
+
* \{
|
|
33
38
|
* "Operation": "com.amazonaws.cognito.sync.model#SubscribeToDataset",
|
|
34
39
|
* "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
|
|
35
40
|
* "Input":
|
|
36
|
-
* {
|
|
41
|
+
* \{
|
|
37
42
|
* "IdentityPoolId": "ID_POOL_ID",
|
|
38
43
|
* "IdentityId": "IDENTITY_ID",
|
|
39
44
|
* "DatasetName": "Rufus",
|
|
40
45
|
* "DeviceId": "5cd28fbe-dd83-47ab-9f83-19093a5fb014"
|
|
41
|
-
* }
|
|
42
|
-
* }
|
|
46
|
+
* \}
|
|
47
|
+
* \}
|
|
43
48
|
* </request>
|
|
44
49
|
* <response>
|
|
45
50
|
* 1.1 200 OK
|
|
@@ -48,13 +53,13 @@ export interface SubscribeToDatasetCommandOutput extends SubscribeToDatasetRespo
|
|
|
48
53
|
* content-type: application/json
|
|
49
54
|
* content-length: 99
|
|
50
55
|
*
|
|
51
|
-
* {
|
|
56
|
+
* \{
|
|
52
57
|
* "Output":
|
|
53
|
-
* {
|
|
58
|
+
* \{
|
|
54
59
|
* "__type": "com.amazonaws.cognito.sync.model#SubscribeToDatasetResponse"
|
|
55
|
-
* },
|
|
60
|
+
* \},
|
|
56
61
|
* "Version": "1.0"
|
|
57
|
-
* }
|
|
62
|
+
* \}
|
|
58
63
|
* </response>
|
|
59
64
|
* </example>
|
|
60
65
|
* </examples>
|
|
@@ -68,6 +73,8 @@ export interface SubscribeToDatasetCommandOutput extends SubscribeToDatasetRespo
|
|
|
68
73
|
* const response = await client.send(command);
|
|
69
74
|
* ```
|
|
70
75
|
*
|
|
76
|
+
* @param SubscribeToDatasetCommandInput - {@link SubscribeToDatasetCommandInput}
|
|
77
|
+
* @returns {@link SubscribeToDatasetCommandOutput}
|
|
71
78
|
* @see {@link SubscribeToDatasetCommandInput} for command's `input` shape.
|
|
72
79
|
* @see {@link SubscribeToDatasetCommandOutput} for command's `response` shape.
|
|
73
80
|
* @see {@link CognitoSyncClientResolvedConfig | config} for CognitoSyncClient's `config` shape.
|
|
@@ -99,11 +106,20 @@ export interface SubscribeToDatasetCommandOutput extends SubscribeToDatasetRespo
|
|
|
99
106
|
export declare class SubscribeToDatasetCommand extends $Command<SubscribeToDatasetCommandInput, SubscribeToDatasetCommandOutput, CognitoSyncClientResolvedConfig> {
|
|
100
107
|
readonly input: SubscribeToDatasetCommandInput;
|
|
101
108
|
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
109
|
+
/**
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
102
112
|
constructor(input: SubscribeToDatasetCommandInput);
|
|
103
113
|
/**
|
|
104
114
|
* @internal
|
|
105
115
|
*/
|
|
106
116
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SubscribeToDatasetCommandInput, SubscribeToDatasetCommandOutput>;
|
|
117
|
+
/**
|
|
118
|
+
* @internal
|
|
119
|
+
*/
|
|
107
120
|
private serialize;
|
|
121
|
+
/**
|
|
122
|
+
* @internal
|
|
123
|
+
*/
|
|
108
124
|
private deserialize;
|
|
109
125
|
}
|
|
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
|
|
|
4
4
|
import { CognitoSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoSyncClient";
|
|
5
5
|
import { UnsubscribeFromDatasetRequest, UnsubscribeFromDatasetResponse } from "../models/models_0";
|
|
6
6
|
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
7
9
|
* The input for {@link UnsubscribeFromDatasetCommand}.
|
|
8
10
|
*/
|
|
9
11
|
export interface UnsubscribeFromDatasetCommandInput extends UnsubscribeFromDatasetRequest {
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
12
16
|
* The output of {@link UnsubscribeFromDatasetCommand}.
|
|
13
17
|
*/
|
|
14
18
|
export interface UnsubscribeFromDatasetCommandOutput extends UnsubscribeFromDatasetResponse, __MetadataBearer {
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
21
|
+
* @public
|
|
17
22
|
* <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>
|
|
18
23
|
* <examples>
|
|
19
24
|
* <example>
|
|
@@ -30,17 +35,17 @@ export interface UnsubscribeFromDatasetCommandOutput extends UnsubscribeFromData
|
|
|
30
35
|
* X-AMZ-SECURITY-TOKEN: <securitytoken>
|
|
31
36
|
* AUTHORIZATION: AWS4-HMAC-SHA256 Credential=<credential>, SignedHeaders=content-type;content-length;host;x-amz-date;x-amz-target, Signature=<signature>
|
|
32
37
|
*
|
|
33
|
-
* {
|
|
38
|
+
* \{
|
|
34
39
|
* "Operation": "com.amazonaws.cognito.sync.model#UnsubscribeFromDataset",
|
|
35
40
|
* "Service": "com.amazonaws.cognito.sync.model#AWSCognitoSyncService",
|
|
36
41
|
* "Input":
|
|
37
|
-
* {
|
|
42
|
+
* \{
|
|
38
43
|
* "IdentityPoolId": "ID_POOL_ID",
|
|
39
44
|
* "IdentityId": "IDENTITY_ID",
|
|
40
45
|
* "DatasetName": "Rufus",
|
|
41
46
|
* "DeviceId": "5cd28fbe-dd83-47ab-9f83-19093a5fb014"
|
|
42
|
-
* }
|
|
43
|
-
* }
|
|
47
|
+
* \}
|
|
48
|
+
* \}
|
|
44
49
|
* </request>
|
|
45
50
|
* <response>
|
|
46
51
|
* 1.1 200 OK
|
|
@@ -49,13 +54,13 @@ export interface UnsubscribeFromDatasetCommandOutput extends UnsubscribeFromData
|
|
|
49
54
|
* content-type: application/json
|
|
50
55
|
* content-length: 103
|
|
51
56
|
*
|
|
52
|
-
* {
|
|
57
|
+
* \{
|
|
53
58
|
* "Output":
|
|
54
|
-
* {
|
|
59
|
+
* \{
|
|
55
60
|
* "__type": "com.amazonaws.cognito.sync.model#UnsubscribeFromDatasetResponse"
|
|
56
|
-
* },
|
|
61
|
+
* \},
|
|
57
62
|
* "Version": "1.0"
|
|
58
|
-
* }
|
|
63
|
+
* \}
|
|
59
64
|
* </response>
|
|
60
65
|
* </example>
|
|
61
66
|
* </examples>
|
|
@@ -69,6 +74,8 @@ export interface UnsubscribeFromDatasetCommandOutput extends UnsubscribeFromData
|
|
|
69
74
|
* const response = await client.send(command);
|
|
70
75
|
* ```
|
|
71
76
|
*
|
|
77
|
+
* @param UnsubscribeFromDatasetCommandInput - {@link UnsubscribeFromDatasetCommandInput}
|
|
78
|
+
* @returns {@link UnsubscribeFromDatasetCommandOutput}
|
|
72
79
|
* @see {@link UnsubscribeFromDatasetCommandInput} for command's `input` shape.
|
|
73
80
|
* @see {@link UnsubscribeFromDatasetCommandOutput} for command's `response` shape.
|
|
74
81
|
* @see {@link CognitoSyncClientResolvedConfig | config} for CognitoSyncClient's `config` shape.
|
|
@@ -100,11 +107,20 @@ export interface UnsubscribeFromDatasetCommandOutput extends UnsubscribeFromData
|
|
|
100
107
|
export declare class UnsubscribeFromDatasetCommand extends $Command<UnsubscribeFromDatasetCommandInput, UnsubscribeFromDatasetCommandOutput, CognitoSyncClientResolvedConfig> {
|
|
101
108
|
readonly input: UnsubscribeFromDatasetCommandInput;
|
|
102
109
|
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
110
|
+
/**
|
|
111
|
+
* @public
|
|
112
|
+
*/
|
|
103
113
|
constructor(input: UnsubscribeFromDatasetCommandInput);
|
|
104
114
|
/**
|
|
105
115
|
* @internal
|
|
106
116
|
*/
|
|
107
117
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CognitoSyncClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UnsubscribeFromDatasetCommandInput, UnsubscribeFromDatasetCommandOutput>;
|
|
118
|
+
/**
|
|
119
|
+
* @internal
|
|
120
|
+
*/
|
|
108
121
|
private serialize;
|
|
122
|
+
/**
|
|
123
|
+
* @internal
|
|
124
|
+
*/
|
|
109
125
|
private deserialize;
|
|
110
126
|
}
|