@aws-sdk/client-sns 3.165.0 → 3.169.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 +27 -0
- package/dist-cjs/SNS.js +30 -0
- package/dist-cjs/commands/GetDataProtectionPolicyCommand.js +36 -0
- package/dist-cjs/commands/PutDataProtectionPolicyCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +14 -2
- package/dist-cjs/protocols/Aws_query.js +152 -2
- package/dist-es/SNS.js +30 -0
- package/dist-es/commands/GetDataProtectionPolicyCommand.js +39 -0
- package/dist-es/commands/PutDataProtectionPolicyCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +3 -0
- package/dist-es/protocols/Aws_query.js +199 -8
- package/dist-types/SNS.d.ts +14 -0
- package/dist-types/SNSClient.d.ts +4 -2
- package/dist-types/commands/GetDataProtectionPolicyCommand.d.ts +35 -0
- package/dist-types/commands/PutDataProtectionPolicyCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +47 -0
- package/dist-types/protocols/Aws_query.d.ts +6 -0
- package/dist-types/ts3.4/SNS.d.ts +10 -0
- package/dist-types/ts3.4/SNSClient.d.ts +4 -2
- package/dist-types/ts3.4/commands/GetDataProtectionPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutDataProtectionPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +22 -0
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +6 -0
- package/package.json +34 -33
|
@@ -115,6 +115,16 @@ export var serializeAws_queryDeleteTopicCommand = function (input, context) { re
|
|
|
115
115
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
116
116
|
});
|
|
117
117
|
}); };
|
|
118
|
+
export var serializeAws_queryGetDataProtectionPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
119
|
+
var headers, body;
|
|
120
|
+
return __generator(this, function (_a) {
|
|
121
|
+
headers = {
|
|
122
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
123
|
+
};
|
|
124
|
+
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryGetDataProtectionPolicyInput(input, context)), { Action: "GetDataProtectionPolicy", Version: "2010-03-31" }));
|
|
125
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
126
|
+
});
|
|
127
|
+
}); };
|
|
118
128
|
export var serializeAws_queryGetEndpointAttributesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
119
129
|
var headers, body;
|
|
120
130
|
return __generator(this, function (_a) {
|
|
@@ -295,6 +305,16 @@ export var serializeAws_queryPublishBatchCommand = function (input, context) { r
|
|
|
295
305
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
296
306
|
});
|
|
297
307
|
}); };
|
|
308
|
+
export var serializeAws_queryPutDataProtectionPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
309
|
+
var headers, body;
|
|
310
|
+
return __generator(this, function (_a) {
|
|
311
|
+
headers = {
|
|
312
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
313
|
+
};
|
|
314
|
+
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryPutDataProtectionPolicyInput(input, context)), { Action: "PutDataProtectionPolicy", Version: "2010-03-31" }));
|
|
315
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
316
|
+
});
|
|
317
|
+
}); };
|
|
298
318
|
export var serializeAws_queryRemovePermissionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
299
319
|
var headers, body;
|
|
300
320
|
return __generator(this, function (_a) {
|
|
@@ -1142,6 +1162,73 @@ var deserializeAws_queryDeleteTopicCommandError = function (output, context) { r
|
|
|
1142
1162
|
}
|
|
1143
1163
|
});
|
|
1144
1164
|
}); };
|
|
1165
|
+
export var deserializeAws_queryGetDataProtectionPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1166
|
+
var data, contents, response;
|
|
1167
|
+
return __generator(this, function (_a) {
|
|
1168
|
+
switch (_a.label) {
|
|
1169
|
+
case 0:
|
|
1170
|
+
if (output.statusCode >= 300) {
|
|
1171
|
+
return [2, deserializeAws_queryGetDataProtectionPolicyCommandError(output, context)];
|
|
1172
|
+
}
|
|
1173
|
+
return [4, parseBody(output.body, context)];
|
|
1174
|
+
case 1:
|
|
1175
|
+
data = _a.sent();
|
|
1176
|
+
contents = {};
|
|
1177
|
+
contents = deserializeAws_queryGetDataProtectionPolicyResponse(data.GetDataProtectionPolicyResult, context);
|
|
1178
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1179
|
+
return [2, Promise.resolve(response)];
|
|
1180
|
+
}
|
|
1181
|
+
});
|
|
1182
|
+
}); };
|
|
1183
|
+
var deserializeAws_queryGetDataProtectionPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1184
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1185
|
+
var _c;
|
|
1186
|
+
return __generator(this, function (_d) {
|
|
1187
|
+
switch (_d.label) {
|
|
1188
|
+
case 0:
|
|
1189
|
+
_a = [__assign({}, output)];
|
|
1190
|
+
_c = {};
|
|
1191
|
+
return [4, parseBody(output.body, context)];
|
|
1192
|
+
case 1:
|
|
1193
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1194
|
+
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1195
|
+
_b = errorCode;
|
|
1196
|
+
switch (_b) {
|
|
1197
|
+
case "AuthorizationErrorException": return [3, 2];
|
|
1198
|
+
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
1199
|
+
case "InternalErrorException": return [3, 4];
|
|
1200
|
+
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
1201
|
+
case "InvalidParameterException": return [3, 6];
|
|
1202
|
+
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
1203
|
+
case "InvalidSecurityException": return [3, 8];
|
|
1204
|
+
case "com.amazonaws.sns#InvalidSecurityException": return [3, 8];
|
|
1205
|
+
case "NotFoundException": return [3, 10];
|
|
1206
|
+
case "com.amazonaws.sns#NotFoundException": return [3, 10];
|
|
1207
|
+
}
|
|
1208
|
+
return [3, 12];
|
|
1209
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
1210
|
+
case 3: throw _d.sent();
|
|
1211
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1212
|
+
case 5: throw _d.sent();
|
|
1213
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1214
|
+
case 7: throw _d.sent();
|
|
1215
|
+
case 8: return [4, deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context)];
|
|
1216
|
+
case 9: throw _d.sent();
|
|
1217
|
+
case 10: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1218
|
+
case 11: throw _d.sent();
|
|
1219
|
+
case 12:
|
|
1220
|
+
parsedBody = parsedOutput.body;
|
|
1221
|
+
throwDefaultError({
|
|
1222
|
+
output: output,
|
|
1223
|
+
parsedBody: parsedBody.Error,
|
|
1224
|
+
exceptionCtor: __BaseException,
|
|
1225
|
+
errorCode: errorCode,
|
|
1226
|
+
});
|
|
1227
|
+
_d.label = 13;
|
|
1228
|
+
case 13: return [2];
|
|
1229
|
+
}
|
|
1230
|
+
});
|
|
1231
|
+
}); };
|
|
1145
1232
|
export var deserializeAws_queryGetEndpointAttributesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1146
1233
|
var data, contents, response;
|
|
1147
1234
|
return __generator(this, function (_a) {
|
|
@@ -2210,8 +2297,10 @@ var deserializeAws_queryPublishCommandError = function (output, context) { retur
|
|
|
2210
2297
|
case "com.amazonaws.sns#NotFoundException": return [3, 26];
|
|
2211
2298
|
case "PlatformApplicationDisabledException": return [3, 28];
|
|
2212
2299
|
case "com.amazonaws.sns#PlatformApplicationDisabledException": return [3, 28];
|
|
2300
|
+
case "ValidationException": return [3, 30];
|
|
2301
|
+
case "com.amazonaws.sns#ValidationException": return [3, 30];
|
|
2213
2302
|
}
|
|
2214
|
-
return [3,
|
|
2303
|
+
return [3, 32];
|
|
2215
2304
|
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
2216
2305
|
case 3: throw _d.sent();
|
|
2217
2306
|
case 4: return [4, deserializeAws_queryEndpointDisabledExceptionResponse(parsedOutput, context)];
|
|
@@ -2240,7 +2329,9 @@ var deserializeAws_queryPublishCommandError = function (output, context) { retur
|
|
|
2240
2329
|
case 27: throw _d.sent();
|
|
2241
2330
|
case 28: return [4, deserializeAws_queryPlatformApplicationDisabledExceptionResponse(parsedOutput, context)];
|
|
2242
2331
|
case 29: throw _d.sent();
|
|
2243
|
-
case 30:
|
|
2332
|
+
case 30: return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
2333
|
+
case 31: throw _d.sent();
|
|
2334
|
+
case 32:
|
|
2244
2335
|
parsedBody = parsedOutput.body;
|
|
2245
2336
|
throwDefaultError({
|
|
2246
2337
|
output: output,
|
|
@@ -2248,8 +2339,8 @@ var deserializeAws_queryPublishCommandError = function (output, context) { retur
|
|
|
2248
2339
|
exceptionCtor: __BaseException,
|
|
2249
2340
|
errorCode: errorCode,
|
|
2250
2341
|
});
|
|
2251
|
-
_d.label =
|
|
2252
|
-
case
|
|
2342
|
+
_d.label = 33;
|
|
2343
|
+
case 33: return [2];
|
|
2253
2344
|
}
|
|
2254
2345
|
});
|
|
2255
2346
|
}); };
|
|
@@ -2323,8 +2414,10 @@ var deserializeAws_queryPublishBatchCommandError = function (output, context) {
|
|
|
2323
2414
|
case "com.amazonaws.sns#PlatformApplicationDisabledException": return [3, 36];
|
|
2324
2415
|
case "TooManyEntriesInBatchRequestException": return [3, 38];
|
|
2325
2416
|
case "com.amazonaws.sns#TooManyEntriesInBatchRequestException": return [3, 38];
|
|
2417
|
+
case "ValidationException": return [3, 40];
|
|
2418
|
+
case "com.amazonaws.sns#ValidationException": return [3, 40];
|
|
2326
2419
|
}
|
|
2327
|
-
return [3,
|
|
2420
|
+
return [3, 42];
|
|
2328
2421
|
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
2329
2422
|
case 3: throw _d.sent();
|
|
2330
2423
|
case 4: return [4, deserializeAws_queryBatchEntryIdsNotDistinctExceptionResponse(parsedOutput, context)];
|
|
@@ -2363,7 +2456,9 @@ var deserializeAws_queryPublishBatchCommandError = function (output, context) {
|
|
|
2363
2456
|
case 37: throw _d.sent();
|
|
2364
2457
|
case 38: return [4, deserializeAws_queryTooManyEntriesInBatchRequestExceptionResponse(parsedOutput, context)];
|
|
2365
2458
|
case 39: throw _d.sent();
|
|
2366
|
-
case 40:
|
|
2459
|
+
case 40: return [4, deserializeAws_queryValidationExceptionResponse(parsedOutput, context)];
|
|
2460
|
+
case 41: throw _d.sent();
|
|
2461
|
+
case 42:
|
|
2367
2462
|
parsedBody = parsedOutput.body;
|
|
2368
2463
|
throwDefaultError({
|
|
2369
2464
|
output: output,
|
|
@@ -2371,8 +2466,75 @@ var deserializeAws_queryPublishBatchCommandError = function (output, context) {
|
|
|
2371
2466
|
exceptionCtor: __BaseException,
|
|
2372
2467
|
errorCode: errorCode,
|
|
2373
2468
|
});
|
|
2374
|
-
_d.label =
|
|
2375
|
-
case
|
|
2469
|
+
_d.label = 43;
|
|
2470
|
+
case 43: return [2];
|
|
2471
|
+
}
|
|
2472
|
+
});
|
|
2473
|
+
}); };
|
|
2474
|
+
export var deserializeAws_queryPutDataProtectionPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2475
|
+
var response;
|
|
2476
|
+
return __generator(this, function (_a) {
|
|
2477
|
+
switch (_a.label) {
|
|
2478
|
+
case 0:
|
|
2479
|
+
if (output.statusCode >= 300) {
|
|
2480
|
+
return [2, deserializeAws_queryPutDataProtectionPolicyCommandError(output, context)];
|
|
2481
|
+
}
|
|
2482
|
+
return [4, collectBody(output.body, context)];
|
|
2483
|
+
case 1:
|
|
2484
|
+
_a.sent();
|
|
2485
|
+
response = {
|
|
2486
|
+
$metadata: deserializeMetadata(output),
|
|
2487
|
+
};
|
|
2488
|
+
return [2, Promise.resolve(response)];
|
|
2489
|
+
}
|
|
2490
|
+
});
|
|
2491
|
+
}); };
|
|
2492
|
+
var deserializeAws_queryPutDataProtectionPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2493
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2494
|
+
var _c;
|
|
2495
|
+
return __generator(this, function (_d) {
|
|
2496
|
+
switch (_d.label) {
|
|
2497
|
+
case 0:
|
|
2498
|
+
_a = [__assign({}, output)];
|
|
2499
|
+
_c = {};
|
|
2500
|
+
return [4, parseBody(output.body, context)];
|
|
2501
|
+
case 1:
|
|
2502
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2503
|
+
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2504
|
+
_b = errorCode;
|
|
2505
|
+
switch (_b) {
|
|
2506
|
+
case "AuthorizationErrorException": return [3, 2];
|
|
2507
|
+
case "com.amazonaws.sns#AuthorizationErrorException": return [3, 2];
|
|
2508
|
+
case "InternalErrorException": return [3, 4];
|
|
2509
|
+
case "com.amazonaws.sns#InternalErrorException": return [3, 4];
|
|
2510
|
+
case "InvalidParameterException": return [3, 6];
|
|
2511
|
+
case "com.amazonaws.sns#InvalidParameterException": return [3, 6];
|
|
2512
|
+
case "InvalidSecurityException": return [3, 8];
|
|
2513
|
+
case "com.amazonaws.sns#InvalidSecurityException": return [3, 8];
|
|
2514
|
+
case "NotFoundException": return [3, 10];
|
|
2515
|
+
case "com.amazonaws.sns#NotFoundException": return [3, 10];
|
|
2516
|
+
}
|
|
2517
|
+
return [3, 12];
|
|
2518
|
+
case 2: return [4, deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context)];
|
|
2519
|
+
case 3: throw _d.sent();
|
|
2520
|
+
case 4: return [4, deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context)];
|
|
2521
|
+
case 5: throw _d.sent();
|
|
2522
|
+
case 6: return [4, deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
2523
|
+
case 7: throw _d.sent();
|
|
2524
|
+
case 8: return [4, deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context)];
|
|
2525
|
+
case 9: throw _d.sent();
|
|
2526
|
+
case 10: return [4, deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context)];
|
|
2527
|
+
case 11: throw _d.sent();
|
|
2528
|
+
case 12:
|
|
2529
|
+
parsedBody = parsedOutput.body;
|
|
2530
|
+
throwDefaultError({
|
|
2531
|
+
output: output,
|
|
2532
|
+
parsedBody: parsedBody.Error,
|
|
2533
|
+
exceptionCtor: __BaseException,
|
|
2534
|
+
errorCode: errorCode,
|
|
2535
|
+
});
|
|
2536
|
+
_d.label = 13;
|
|
2537
|
+
case 13: return [2];
|
|
2376
2538
|
}
|
|
2377
2539
|
});
|
|
2378
2540
|
}); };
|
|
@@ -3552,6 +3714,9 @@ var serializeAws_queryCreateTopicInput = function (input, context) {
|
|
|
3552
3714
|
entries[loc] = value;
|
|
3553
3715
|
});
|
|
3554
3716
|
}
|
|
3717
|
+
if (input.DataProtectionPolicy != null) {
|
|
3718
|
+
entries["DataProtectionPolicy"] = input.DataProtectionPolicy;
|
|
3719
|
+
}
|
|
3555
3720
|
return entries;
|
|
3556
3721
|
};
|
|
3557
3722
|
var serializeAws_queryDelegatesList = function (input, context) {
|
|
@@ -3605,6 +3770,13 @@ var serializeAws_queryDeleteTopicInput = function (input, context) {
|
|
|
3605
3770
|
}
|
|
3606
3771
|
return entries;
|
|
3607
3772
|
};
|
|
3773
|
+
var serializeAws_queryGetDataProtectionPolicyInput = function (input, context) {
|
|
3774
|
+
var entries = {};
|
|
3775
|
+
if (input.ResourceArn != null) {
|
|
3776
|
+
entries["ResourceArn"] = input.ResourceArn;
|
|
3777
|
+
}
|
|
3778
|
+
return entries;
|
|
3779
|
+
};
|
|
3608
3780
|
var serializeAws_queryGetEndpointAttributesInput = function (input, context) {
|
|
3609
3781
|
var entries = {};
|
|
3610
3782
|
if (input.EndpointArn != null) {
|
|
@@ -3903,6 +4075,16 @@ var serializeAws_queryPublishInput = function (input, context) {
|
|
|
3903
4075
|
}
|
|
3904
4076
|
return entries;
|
|
3905
4077
|
};
|
|
4078
|
+
var serializeAws_queryPutDataProtectionPolicyInput = function (input, context) {
|
|
4079
|
+
var entries = {};
|
|
4080
|
+
if (input.ResourceArn != null) {
|
|
4081
|
+
entries["ResourceArn"] = input.ResourceArn;
|
|
4082
|
+
}
|
|
4083
|
+
if (input.DataProtectionPolicy != null) {
|
|
4084
|
+
entries["DataProtectionPolicy"] = input.DataProtectionPolicy;
|
|
4085
|
+
}
|
|
4086
|
+
return entries;
|
|
4087
|
+
};
|
|
3906
4088
|
var serializeAws_queryRemovePermissionInput = function (input, context) {
|
|
3907
4089
|
var entries = {};
|
|
3908
4090
|
if (input.TopicArn != null) {
|
|
@@ -4296,6 +4478,15 @@ var deserializeAws_queryFilterPolicyLimitExceededException = function (output, c
|
|
|
4296
4478
|
}
|
|
4297
4479
|
return contents;
|
|
4298
4480
|
};
|
|
4481
|
+
var deserializeAws_queryGetDataProtectionPolicyResponse = function (output, context) {
|
|
4482
|
+
var contents = {
|
|
4483
|
+
DataProtectionPolicy: undefined,
|
|
4484
|
+
};
|
|
4485
|
+
if (output["DataProtectionPolicy"] !== undefined) {
|
|
4486
|
+
contents.DataProtectionPolicy = __expectString(output["DataProtectionPolicy"]);
|
|
4487
|
+
}
|
|
4488
|
+
return contents;
|
|
4489
|
+
};
|
|
4299
4490
|
var deserializeAws_queryGetEndpointAttributesResponse = function (output, context) {
|
|
4300
4491
|
var contents = {
|
|
4301
4492
|
Attributes: undefined,
|
package/dist-types/SNS.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { DeleteEndpointCommandInput, DeleteEndpointCommandOutput } from "./comma
|
|
|
10
10
|
import { DeletePlatformApplicationCommandInput, DeletePlatformApplicationCommandOutput } from "./commands/DeletePlatformApplicationCommand";
|
|
11
11
|
import { DeleteSMSSandboxPhoneNumberCommandInput, DeleteSMSSandboxPhoneNumberCommandOutput } from "./commands/DeleteSMSSandboxPhoneNumberCommand";
|
|
12
12
|
import { DeleteTopicCommandInput, DeleteTopicCommandOutput } from "./commands/DeleteTopicCommand";
|
|
13
|
+
import { GetDataProtectionPolicyCommandInput, GetDataProtectionPolicyCommandOutput } from "./commands/GetDataProtectionPolicyCommand";
|
|
13
14
|
import { GetEndpointAttributesCommandInput, GetEndpointAttributesCommandOutput } from "./commands/GetEndpointAttributesCommand";
|
|
14
15
|
import { GetPlatformApplicationAttributesCommandInput, GetPlatformApplicationAttributesCommandOutput } from "./commands/GetPlatformApplicationAttributesCommand";
|
|
15
16
|
import { GetSMSAttributesCommandInput, GetSMSAttributesCommandOutput } from "./commands/GetSMSAttributesCommand";
|
|
@@ -28,6 +29,7 @@ import { ListTopicsCommandInput, ListTopicsCommandOutput } from "./commands/List
|
|
|
28
29
|
import { OptInPhoneNumberCommandInput, OptInPhoneNumberCommandOutput } from "./commands/OptInPhoneNumberCommand";
|
|
29
30
|
import { PublishBatchCommandInput, PublishBatchCommandOutput } from "./commands/PublishBatchCommand";
|
|
30
31
|
import { PublishCommandInput, PublishCommandOutput } from "./commands/PublishCommand";
|
|
32
|
+
import { PutDataProtectionPolicyCommandInput, PutDataProtectionPolicyCommandOutput } from "./commands/PutDataProtectionPolicyCommand";
|
|
31
33
|
import { RemovePermissionCommandInput, RemovePermissionCommandOutput } from "./commands/RemovePermissionCommand";
|
|
32
34
|
import { SetEndpointAttributesCommandInput, SetEndpointAttributesCommandOutput } from "./commands/SetEndpointAttributesCommand";
|
|
33
35
|
import { SetPlatformApplicationAttributesCommandInput, SetPlatformApplicationAttributesCommandOutput } from "./commands/SetPlatformApplicationAttributesCommand";
|
|
@@ -219,6 +221,12 @@ export declare class SNS extends SNSClient {
|
|
|
219
221
|
deleteTopic(args: DeleteTopicCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTopicCommandOutput>;
|
|
220
222
|
deleteTopic(args: DeleteTopicCommandInput, cb: (err: any, data?: DeleteTopicCommandOutput) => void): void;
|
|
221
223
|
deleteTopic(args: DeleteTopicCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTopicCommandOutput) => void): void;
|
|
224
|
+
/**
|
|
225
|
+
* <p>Retrieves the specified inline <code>DataProtectionPolicy</code> document that is stored in the specified Amazon SNS topic. </p>
|
|
226
|
+
*/
|
|
227
|
+
getDataProtectionPolicy(args: GetDataProtectionPolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetDataProtectionPolicyCommandOutput>;
|
|
228
|
+
getDataProtectionPolicy(args: GetDataProtectionPolicyCommandInput, cb: (err: any, data?: GetDataProtectionPolicyCommandOutput) => void): void;
|
|
229
|
+
getDataProtectionPolicy(args: GetDataProtectionPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDataProtectionPolicyCommandOutput) => void): void;
|
|
222
230
|
/**
|
|
223
231
|
* <p>Retrieves the endpoint attributes for a device on one of the supported push
|
|
224
232
|
* notification services, such as GCM (Firebase Cloud Messaging) and APNS. For more
|
|
@@ -417,6 +425,12 @@ export declare class SNS extends SNSClient {
|
|
|
417
425
|
publishBatch(args: PublishBatchCommandInput, options?: __HttpHandlerOptions): Promise<PublishBatchCommandOutput>;
|
|
418
426
|
publishBatch(args: PublishBatchCommandInput, cb: (err: any, data?: PublishBatchCommandOutput) => void): void;
|
|
419
427
|
publishBatch(args: PublishBatchCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PublishBatchCommandOutput) => void): void;
|
|
428
|
+
/**
|
|
429
|
+
* <p>Adds or updates an inline policy document that is stored in the specified Amazon SNS topic.</p>
|
|
430
|
+
*/
|
|
431
|
+
putDataProtectionPolicy(args: PutDataProtectionPolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutDataProtectionPolicyCommandOutput>;
|
|
432
|
+
putDataProtectionPolicy(args: PutDataProtectionPolicyCommandInput, cb: (err: any, data?: PutDataProtectionPolicyCommandOutput) => void): void;
|
|
433
|
+
putDataProtectionPolicy(args: PutDataProtectionPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutDataProtectionPolicyCommandOutput) => void): void;
|
|
420
434
|
/**
|
|
421
435
|
* <p>Removes a statement from a topic's access control policy.</p>
|
|
422
436
|
*/
|
|
@@ -17,6 +17,7 @@ import { DeleteEndpointCommandInput, DeleteEndpointCommandOutput } from "./comma
|
|
|
17
17
|
import { DeletePlatformApplicationCommandInput, DeletePlatformApplicationCommandOutput } from "./commands/DeletePlatformApplicationCommand";
|
|
18
18
|
import { DeleteSMSSandboxPhoneNumberCommandInput, DeleteSMSSandboxPhoneNumberCommandOutput } from "./commands/DeleteSMSSandboxPhoneNumberCommand";
|
|
19
19
|
import { DeleteTopicCommandInput, DeleteTopicCommandOutput } from "./commands/DeleteTopicCommand";
|
|
20
|
+
import { GetDataProtectionPolicyCommandInput, GetDataProtectionPolicyCommandOutput } from "./commands/GetDataProtectionPolicyCommand";
|
|
20
21
|
import { GetEndpointAttributesCommandInput, GetEndpointAttributesCommandOutput } from "./commands/GetEndpointAttributesCommand";
|
|
21
22
|
import { GetPlatformApplicationAttributesCommandInput, GetPlatformApplicationAttributesCommandOutput } from "./commands/GetPlatformApplicationAttributesCommand";
|
|
22
23
|
import { GetSMSAttributesCommandInput, GetSMSAttributesCommandOutput } from "./commands/GetSMSAttributesCommand";
|
|
@@ -35,6 +36,7 @@ import { ListTopicsCommandInput, ListTopicsCommandOutput } from "./commands/List
|
|
|
35
36
|
import { OptInPhoneNumberCommandInput, OptInPhoneNumberCommandOutput } from "./commands/OptInPhoneNumberCommand";
|
|
36
37
|
import { PublishBatchCommandInput, PublishBatchCommandOutput } from "./commands/PublishBatchCommand";
|
|
37
38
|
import { PublishCommandInput, PublishCommandOutput } from "./commands/PublishCommand";
|
|
39
|
+
import { PutDataProtectionPolicyCommandInput, PutDataProtectionPolicyCommandOutput } from "./commands/PutDataProtectionPolicyCommand";
|
|
38
40
|
import { RemovePermissionCommandInput, RemovePermissionCommandOutput } from "./commands/RemovePermissionCommand";
|
|
39
41
|
import { SetEndpointAttributesCommandInput, SetEndpointAttributesCommandOutput } from "./commands/SetEndpointAttributesCommand";
|
|
40
42
|
import { SetPlatformApplicationAttributesCommandInput, SetPlatformApplicationAttributesCommandOutput } from "./commands/SetPlatformApplicationAttributesCommand";
|
|
@@ -46,8 +48,8 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
|
|
|
46
48
|
import { UnsubscribeCommandInput, UnsubscribeCommandOutput } from "./commands/UnsubscribeCommand";
|
|
47
49
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
48
50
|
import { VerifySMSSandboxPhoneNumberCommandInput, VerifySMSSandboxPhoneNumberCommandOutput } from "./commands/VerifySMSSandboxPhoneNumberCommand";
|
|
49
|
-
export declare type ServiceInputTypes = AddPermissionCommandInput | CheckIfPhoneNumberIsOptedOutCommandInput | ConfirmSubscriptionCommandInput | CreatePlatformApplicationCommandInput | CreatePlatformEndpointCommandInput | CreateSMSSandboxPhoneNumberCommandInput | CreateTopicCommandInput | DeleteEndpointCommandInput | DeletePlatformApplicationCommandInput | DeleteSMSSandboxPhoneNumberCommandInput | DeleteTopicCommandInput | GetEndpointAttributesCommandInput | GetPlatformApplicationAttributesCommandInput | GetSMSAttributesCommandInput | GetSMSSandboxAccountStatusCommandInput | GetSubscriptionAttributesCommandInput | GetTopicAttributesCommandInput | ListEndpointsByPlatformApplicationCommandInput | ListOriginationNumbersCommandInput | ListPhoneNumbersOptedOutCommandInput | ListPlatformApplicationsCommandInput | ListSMSSandboxPhoneNumbersCommandInput | ListSubscriptionsByTopicCommandInput | ListSubscriptionsCommandInput | ListTagsForResourceCommandInput | ListTopicsCommandInput | OptInPhoneNumberCommandInput | PublishBatchCommandInput | PublishCommandInput | RemovePermissionCommandInput | SetEndpointAttributesCommandInput | SetPlatformApplicationAttributesCommandInput | SetSMSAttributesCommandInput | SetSubscriptionAttributesCommandInput | SetTopicAttributesCommandInput | SubscribeCommandInput | TagResourceCommandInput | UnsubscribeCommandInput | UntagResourceCommandInput | VerifySMSSandboxPhoneNumberCommandInput;
|
|
50
|
-
export declare type ServiceOutputTypes = AddPermissionCommandOutput | CheckIfPhoneNumberIsOptedOutCommandOutput | ConfirmSubscriptionCommandOutput | CreatePlatformApplicationCommandOutput | CreatePlatformEndpointCommandOutput | CreateSMSSandboxPhoneNumberCommandOutput | CreateTopicCommandOutput | DeleteEndpointCommandOutput | DeletePlatformApplicationCommandOutput | DeleteSMSSandboxPhoneNumberCommandOutput | DeleteTopicCommandOutput | GetEndpointAttributesCommandOutput | GetPlatformApplicationAttributesCommandOutput | GetSMSAttributesCommandOutput | GetSMSSandboxAccountStatusCommandOutput | GetSubscriptionAttributesCommandOutput | GetTopicAttributesCommandOutput | ListEndpointsByPlatformApplicationCommandOutput | ListOriginationNumbersCommandOutput | ListPhoneNumbersOptedOutCommandOutput | ListPlatformApplicationsCommandOutput | ListSMSSandboxPhoneNumbersCommandOutput | ListSubscriptionsByTopicCommandOutput | ListSubscriptionsCommandOutput | ListTagsForResourceCommandOutput | ListTopicsCommandOutput | OptInPhoneNumberCommandOutput | PublishBatchCommandOutput | PublishCommandOutput | RemovePermissionCommandOutput | SetEndpointAttributesCommandOutput | SetPlatformApplicationAttributesCommandOutput | SetSMSAttributesCommandOutput | SetSubscriptionAttributesCommandOutput | SetTopicAttributesCommandOutput | SubscribeCommandOutput | TagResourceCommandOutput | UnsubscribeCommandOutput | UntagResourceCommandOutput | VerifySMSSandboxPhoneNumberCommandOutput;
|
|
51
|
+
export declare type ServiceInputTypes = AddPermissionCommandInput | CheckIfPhoneNumberIsOptedOutCommandInput | ConfirmSubscriptionCommandInput | CreatePlatformApplicationCommandInput | CreatePlatformEndpointCommandInput | CreateSMSSandboxPhoneNumberCommandInput | CreateTopicCommandInput | DeleteEndpointCommandInput | DeletePlatformApplicationCommandInput | DeleteSMSSandboxPhoneNumberCommandInput | DeleteTopicCommandInput | GetDataProtectionPolicyCommandInput | GetEndpointAttributesCommandInput | GetPlatformApplicationAttributesCommandInput | GetSMSAttributesCommandInput | GetSMSSandboxAccountStatusCommandInput | GetSubscriptionAttributesCommandInput | GetTopicAttributesCommandInput | ListEndpointsByPlatformApplicationCommandInput | ListOriginationNumbersCommandInput | ListPhoneNumbersOptedOutCommandInput | ListPlatformApplicationsCommandInput | ListSMSSandboxPhoneNumbersCommandInput | ListSubscriptionsByTopicCommandInput | ListSubscriptionsCommandInput | ListTagsForResourceCommandInput | ListTopicsCommandInput | OptInPhoneNumberCommandInput | PublishBatchCommandInput | PublishCommandInput | PutDataProtectionPolicyCommandInput | RemovePermissionCommandInput | SetEndpointAttributesCommandInput | SetPlatformApplicationAttributesCommandInput | SetSMSAttributesCommandInput | SetSubscriptionAttributesCommandInput | SetTopicAttributesCommandInput | SubscribeCommandInput | TagResourceCommandInput | UnsubscribeCommandInput | UntagResourceCommandInput | VerifySMSSandboxPhoneNumberCommandInput;
|
|
52
|
+
export declare type ServiceOutputTypes = AddPermissionCommandOutput | CheckIfPhoneNumberIsOptedOutCommandOutput | ConfirmSubscriptionCommandOutput | CreatePlatformApplicationCommandOutput | CreatePlatformEndpointCommandOutput | CreateSMSSandboxPhoneNumberCommandOutput | CreateTopicCommandOutput | DeleteEndpointCommandOutput | DeletePlatformApplicationCommandOutput | DeleteSMSSandboxPhoneNumberCommandOutput | DeleteTopicCommandOutput | GetDataProtectionPolicyCommandOutput | GetEndpointAttributesCommandOutput | GetPlatformApplicationAttributesCommandOutput | GetSMSAttributesCommandOutput | GetSMSSandboxAccountStatusCommandOutput | GetSubscriptionAttributesCommandOutput | GetTopicAttributesCommandOutput | ListEndpointsByPlatformApplicationCommandOutput | ListOriginationNumbersCommandOutput | ListPhoneNumbersOptedOutCommandOutput | ListPlatformApplicationsCommandOutput | ListSMSSandboxPhoneNumbersCommandOutput | ListSubscriptionsByTopicCommandOutput | ListSubscriptionsCommandOutput | ListTagsForResourceCommandOutput | ListTopicsCommandOutput | OptInPhoneNumberCommandOutput | PublishBatchCommandOutput | PublishCommandOutput | PutDataProtectionPolicyCommandOutput | RemovePermissionCommandOutput | SetEndpointAttributesCommandOutput | SetPlatformApplicationAttributesCommandOutput | SetSMSAttributesCommandOutput | SetSubscriptionAttributesCommandOutput | SetTopicAttributesCommandOutput | SubscribeCommandOutput | TagResourceCommandOutput | UnsubscribeCommandOutput | UntagResourceCommandOutput | VerifySMSSandboxPhoneNumberCommandOutput;
|
|
51
53
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
52
54
|
/**
|
|
53
55
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { GetDataProtectionPolicyInput, GetDataProtectionPolicyResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, SNSClientResolvedConfig } from "../SNSClient";
|
|
5
|
+
export interface GetDataProtectionPolicyCommandInput extends GetDataProtectionPolicyInput {
|
|
6
|
+
}
|
|
7
|
+
export interface GetDataProtectionPolicyCommandOutput extends GetDataProtectionPolicyResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Retrieves the specified inline <code>DataProtectionPolicy</code> document that is stored in the specified Amazon SNS topic. </p>
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { SNSClient, GetDataProtectionPolicyCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
15
|
+
* // const { SNSClient, GetDataProtectionPolicyCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
16
|
+
* const client = new SNSClient(config);
|
|
17
|
+
* const command = new GetDataProtectionPolicyCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link GetDataProtectionPolicyCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link GetDataProtectionPolicyCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link SNSClientResolvedConfig | config} for SNSClient's `config` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class GetDataProtectionPolicyCommand extends $Command<GetDataProtectionPolicyCommandInput, GetDataProtectionPolicyCommandOutput, SNSClientResolvedConfig> {
|
|
27
|
+
readonly input: GetDataProtectionPolicyCommandInput;
|
|
28
|
+
constructor(input: GetDataProtectionPolicyCommandInput);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetDataProtectionPolicyCommandInput, GetDataProtectionPolicyCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { PutDataProtectionPolicyInput } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, SNSClientResolvedConfig } from "../SNSClient";
|
|
5
|
+
export interface PutDataProtectionPolicyCommandInput extends PutDataProtectionPolicyInput {
|
|
6
|
+
}
|
|
7
|
+
export interface PutDataProtectionPolicyCommandOutput extends __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Adds or updates an inline policy document that is stored in the specified Amazon SNS topic.</p>
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { SNSClient, PutDataProtectionPolicyCommand } from "@aws-sdk/client-sns"; // ES Modules import
|
|
15
|
+
* // const { SNSClient, PutDataProtectionPolicyCommand } = require("@aws-sdk/client-sns"); // CommonJS import
|
|
16
|
+
* const client = new SNSClient(config);
|
|
17
|
+
* const command = new PutDataProtectionPolicyCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link PutDataProtectionPolicyCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link PutDataProtectionPolicyCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link SNSClientResolvedConfig | config} for SNSClient's `config` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class PutDataProtectionPolicyCommand extends $Command<PutDataProtectionPolicyCommandInput, PutDataProtectionPolicyCommandOutput, SNSClientResolvedConfig> {
|
|
27
|
+
readonly input: PutDataProtectionPolicyCommandInput;
|
|
28
|
+
constructor(input: PutDataProtectionPolicyCommandInput);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SNSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutDataProtectionPolicyCommandInput, PutDataProtectionPolicyCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -9,6 +9,7 @@ export * from "./DeleteEndpointCommand";
|
|
|
9
9
|
export * from "./DeletePlatformApplicationCommand";
|
|
10
10
|
export * from "./DeleteSMSSandboxPhoneNumberCommand";
|
|
11
11
|
export * from "./DeleteTopicCommand";
|
|
12
|
+
export * from "./GetDataProtectionPolicyCommand";
|
|
12
13
|
export * from "./GetEndpointAttributesCommand";
|
|
13
14
|
export * from "./GetPlatformApplicationAttributesCommand";
|
|
14
15
|
export * from "./GetSMSAttributesCommand";
|
|
@@ -27,6 +28,7 @@ export * from "./ListTopicsCommand";
|
|
|
27
28
|
export * from "./OptInPhoneNumberCommand";
|
|
28
29
|
export * from "./PublishBatchCommand";
|
|
29
30
|
export * from "./PublishCommand";
|
|
31
|
+
export * from "./PutDataProtectionPolicyCommand";
|
|
30
32
|
export * from "./RemovePermissionCommand";
|
|
31
33
|
export * from "./SetEndpointAttributesCommand";
|
|
32
34
|
export * from "./SetPlatformApplicationAttributesCommand";
|
|
@@ -398,6 +398,13 @@ export interface CreateTopicInput {
|
|
|
398
398
|
* </note>
|
|
399
399
|
*/
|
|
400
400
|
Tags?: Tag[];
|
|
401
|
+
/**
|
|
402
|
+
* <p>The body of the policy document you want to use for this topic.</p>
|
|
403
|
+
* <p>You can only add one policy per topic.</p>
|
|
404
|
+
* <p>The policy must be in JSON string format.</p>
|
|
405
|
+
* <p>Length Constraints: Maximum length of 30,720.</p>
|
|
406
|
+
*/
|
|
407
|
+
DataProtectionPolicy?: string;
|
|
401
408
|
}
|
|
402
409
|
/**
|
|
403
410
|
* <p>Response from CreateTopic action.</p>
|
|
@@ -510,6 +517,20 @@ export interface DeleteTopicInput {
|
|
|
510
517
|
*/
|
|
511
518
|
TopicArn: string | undefined;
|
|
512
519
|
}
|
|
520
|
+
export interface GetDataProtectionPolicyInput {
|
|
521
|
+
/**
|
|
522
|
+
* <p>The ARN of the topic whose <code>DataProtectionPolicy</code> you want to get.</p>
|
|
523
|
+
* <p>For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>
|
|
524
|
+
* in the Amazon Web Services General Reference.</p>
|
|
525
|
+
*/
|
|
526
|
+
ResourceArn: string | undefined;
|
|
527
|
+
}
|
|
528
|
+
export interface GetDataProtectionPolicyResponse {
|
|
529
|
+
/**
|
|
530
|
+
* <p>Retrieves the <code>DataProtectionPolicy</code> in JSON string format.</p>
|
|
531
|
+
*/
|
|
532
|
+
DataProtectionPolicy?: string;
|
|
533
|
+
}
|
|
513
534
|
/**
|
|
514
535
|
* <p>Input for GetEndpointAttributes action.</p>
|
|
515
536
|
*/
|
|
@@ -1709,6 +1730,20 @@ export declare class TooManyEntriesInBatchRequestException extends __BaseExcepti
|
|
|
1709
1730
|
*/
|
|
1710
1731
|
constructor(opts: __ExceptionOptionType<TooManyEntriesInBatchRequestException, __BaseException>);
|
|
1711
1732
|
}
|
|
1733
|
+
export interface PutDataProtectionPolicyInput {
|
|
1734
|
+
/**
|
|
1735
|
+
* <p>The ARN of the topic whose <code>DataProtectionPolicy</code> you want to add or update.</p>
|
|
1736
|
+
* <p>For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>
|
|
1737
|
+
* in the Amazon Web Services General Reference.</p>
|
|
1738
|
+
*/
|
|
1739
|
+
ResourceArn: string | undefined;
|
|
1740
|
+
/**
|
|
1741
|
+
* <p>The JSON serialization of the topic's <code>DataProtectionPolicy</code>.</p>
|
|
1742
|
+
* <p>The <code>DataProtectionPolicy</code> must be in JSON string format.</p>
|
|
1743
|
+
* <p>Length Constraints: Maximum length of 30,720.</p>
|
|
1744
|
+
*/
|
|
1745
|
+
DataProtectionPolicy: string | undefined;
|
|
1746
|
+
}
|
|
1712
1747
|
/**
|
|
1713
1748
|
* <p>Input for RemovePermission action.</p>
|
|
1714
1749
|
*/
|
|
@@ -2420,6 +2455,14 @@ export declare const DeleteSMSSandboxPhoneNumberResultFilterSensitiveLog: (obj:
|
|
|
2420
2455
|
* @internal
|
|
2421
2456
|
*/
|
|
2422
2457
|
export declare const DeleteTopicInputFilterSensitiveLog: (obj: DeleteTopicInput) => any;
|
|
2458
|
+
/**
|
|
2459
|
+
* @internal
|
|
2460
|
+
*/
|
|
2461
|
+
export declare const GetDataProtectionPolicyInputFilterSensitiveLog: (obj: GetDataProtectionPolicyInput) => any;
|
|
2462
|
+
/**
|
|
2463
|
+
* @internal
|
|
2464
|
+
*/
|
|
2465
|
+
export declare const GetDataProtectionPolicyResponseFilterSensitiveLog: (obj: GetDataProtectionPolicyResponse) => any;
|
|
2423
2466
|
/**
|
|
2424
2467
|
* @internal
|
|
2425
2468
|
*/
|
|
@@ -2604,6 +2647,10 @@ export declare const PublishBatchResultEntryFilterSensitiveLog: (obj: PublishBat
|
|
|
2604
2647
|
* @internal
|
|
2605
2648
|
*/
|
|
2606
2649
|
export declare const PublishBatchResponseFilterSensitiveLog: (obj: PublishBatchResponse) => any;
|
|
2650
|
+
/**
|
|
2651
|
+
* @internal
|
|
2652
|
+
*/
|
|
2653
|
+
export declare const PutDataProtectionPolicyInputFilterSensitiveLog: (obj: PutDataProtectionPolicyInput) => any;
|
|
2607
2654
|
/**
|
|
2608
2655
|
* @internal
|
|
2609
2656
|
*/
|
|
@@ -11,6 +11,7 @@ import { DeleteEndpointCommandInput, DeleteEndpointCommandOutput } from "../comm
|
|
|
11
11
|
import { DeletePlatformApplicationCommandInput, DeletePlatformApplicationCommandOutput } from "../commands/DeletePlatformApplicationCommand";
|
|
12
12
|
import { DeleteSMSSandboxPhoneNumberCommandInput, DeleteSMSSandboxPhoneNumberCommandOutput } from "../commands/DeleteSMSSandboxPhoneNumberCommand";
|
|
13
13
|
import { DeleteTopicCommandInput, DeleteTopicCommandOutput } from "../commands/DeleteTopicCommand";
|
|
14
|
+
import { GetDataProtectionPolicyCommandInput, GetDataProtectionPolicyCommandOutput } from "../commands/GetDataProtectionPolicyCommand";
|
|
14
15
|
import { GetEndpointAttributesCommandInput, GetEndpointAttributesCommandOutput } from "../commands/GetEndpointAttributesCommand";
|
|
15
16
|
import { GetPlatformApplicationAttributesCommandInput, GetPlatformApplicationAttributesCommandOutput } from "../commands/GetPlatformApplicationAttributesCommand";
|
|
16
17
|
import { GetSMSAttributesCommandInput, GetSMSAttributesCommandOutput } from "../commands/GetSMSAttributesCommand";
|
|
@@ -29,6 +30,7 @@ import { ListTopicsCommandInput, ListTopicsCommandOutput } from "../commands/Lis
|
|
|
29
30
|
import { OptInPhoneNumberCommandInput, OptInPhoneNumberCommandOutput } from "../commands/OptInPhoneNumberCommand";
|
|
30
31
|
import { PublishBatchCommandInput, PublishBatchCommandOutput } from "../commands/PublishBatchCommand";
|
|
31
32
|
import { PublishCommandInput, PublishCommandOutput } from "../commands/PublishCommand";
|
|
33
|
+
import { PutDataProtectionPolicyCommandInput, PutDataProtectionPolicyCommandOutput } from "../commands/PutDataProtectionPolicyCommand";
|
|
32
34
|
import { RemovePermissionCommandInput, RemovePermissionCommandOutput } from "../commands/RemovePermissionCommand";
|
|
33
35
|
import { SetEndpointAttributesCommandInput, SetEndpointAttributesCommandOutput } from "../commands/SetEndpointAttributesCommand";
|
|
34
36
|
import { SetPlatformApplicationAttributesCommandInput, SetPlatformApplicationAttributesCommandOutput } from "../commands/SetPlatformApplicationAttributesCommand";
|
|
@@ -51,6 +53,7 @@ export declare const serializeAws_queryDeleteEndpointCommand: (input: DeleteEndp
|
|
|
51
53
|
export declare const serializeAws_queryDeletePlatformApplicationCommand: (input: DeletePlatformApplicationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
52
54
|
export declare const serializeAws_queryDeleteSMSSandboxPhoneNumberCommand: (input: DeleteSMSSandboxPhoneNumberCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
53
55
|
export declare const serializeAws_queryDeleteTopicCommand: (input: DeleteTopicCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
56
|
+
export declare const serializeAws_queryGetDataProtectionPolicyCommand: (input: GetDataProtectionPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
54
57
|
export declare const serializeAws_queryGetEndpointAttributesCommand: (input: GetEndpointAttributesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
55
58
|
export declare const serializeAws_queryGetPlatformApplicationAttributesCommand: (input: GetPlatformApplicationAttributesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
56
59
|
export declare const serializeAws_queryGetSMSAttributesCommand: (input: GetSMSAttributesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -69,6 +72,7 @@ export declare const serializeAws_queryListTopicsCommand: (input: ListTopicsComm
|
|
|
69
72
|
export declare const serializeAws_queryOptInPhoneNumberCommand: (input: OptInPhoneNumberCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
70
73
|
export declare const serializeAws_queryPublishCommand: (input: PublishCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
71
74
|
export declare const serializeAws_queryPublishBatchCommand: (input: PublishBatchCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
75
|
+
export declare const serializeAws_queryPutDataProtectionPolicyCommand: (input: PutDataProtectionPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
72
76
|
export declare const serializeAws_queryRemovePermissionCommand: (input: RemovePermissionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
73
77
|
export declare const serializeAws_querySetEndpointAttributesCommand: (input: SetEndpointAttributesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
74
78
|
export declare const serializeAws_querySetPlatformApplicationAttributesCommand: (input: SetPlatformApplicationAttributesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -91,6 +95,7 @@ export declare const deserializeAws_queryDeleteEndpointCommand: (output: __HttpR
|
|
|
91
95
|
export declare const deserializeAws_queryDeletePlatformApplicationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeletePlatformApplicationCommandOutput>;
|
|
92
96
|
export declare const deserializeAws_queryDeleteSMSSandboxPhoneNumberCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteSMSSandboxPhoneNumberCommandOutput>;
|
|
93
97
|
export declare const deserializeAws_queryDeleteTopicCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteTopicCommandOutput>;
|
|
98
|
+
export declare const deserializeAws_queryGetDataProtectionPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDataProtectionPolicyCommandOutput>;
|
|
94
99
|
export declare const deserializeAws_queryGetEndpointAttributesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetEndpointAttributesCommandOutput>;
|
|
95
100
|
export declare const deserializeAws_queryGetPlatformApplicationAttributesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPlatformApplicationAttributesCommandOutput>;
|
|
96
101
|
export declare const deserializeAws_queryGetSMSAttributesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetSMSAttributesCommandOutput>;
|
|
@@ -109,6 +114,7 @@ export declare const deserializeAws_queryListTopicsCommand: (output: __HttpRespo
|
|
|
109
114
|
export declare const deserializeAws_queryOptInPhoneNumberCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<OptInPhoneNumberCommandOutput>;
|
|
110
115
|
export declare const deserializeAws_queryPublishCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PublishCommandOutput>;
|
|
111
116
|
export declare const deserializeAws_queryPublishBatchCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PublishBatchCommandOutput>;
|
|
117
|
+
export declare const deserializeAws_queryPutDataProtectionPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutDataProtectionPolicyCommandOutput>;
|
|
112
118
|
export declare const deserializeAws_queryRemovePermissionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RemovePermissionCommandOutput>;
|
|
113
119
|
export declare const deserializeAws_querySetEndpointAttributesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SetEndpointAttributesCommandOutput>;
|
|
114
120
|
export declare const deserializeAws_querySetPlatformApplicationAttributesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SetPlatformApplicationAttributesCommandOutput>;
|
|
@@ -10,6 +10,7 @@ import { DeleteEndpointCommandInput, DeleteEndpointCommandOutput } from "./comma
|
|
|
10
10
|
import { DeletePlatformApplicationCommandInput, DeletePlatformApplicationCommandOutput } from "./commands/DeletePlatformApplicationCommand";
|
|
11
11
|
import { DeleteSMSSandboxPhoneNumberCommandInput, DeleteSMSSandboxPhoneNumberCommandOutput } from "./commands/DeleteSMSSandboxPhoneNumberCommand";
|
|
12
12
|
import { DeleteTopicCommandInput, DeleteTopicCommandOutput } from "./commands/DeleteTopicCommand";
|
|
13
|
+
import { GetDataProtectionPolicyCommandInput, GetDataProtectionPolicyCommandOutput } from "./commands/GetDataProtectionPolicyCommand";
|
|
13
14
|
import { GetEndpointAttributesCommandInput, GetEndpointAttributesCommandOutput } from "./commands/GetEndpointAttributesCommand";
|
|
14
15
|
import { GetPlatformApplicationAttributesCommandInput, GetPlatformApplicationAttributesCommandOutput } from "./commands/GetPlatformApplicationAttributesCommand";
|
|
15
16
|
import { GetSMSAttributesCommandInput, GetSMSAttributesCommandOutput } from "./commands/GetSMSAttributesCommand";
|
|
@@ -28,6 +29,7 @@ import { ListTopicsCommandInput, ListTopicsCommandOutput } from "./commands/List
|
|
|
28
29
|
import { OptInPhoneNumberCommandInput, OptInPhoneNumberCommandOutput } from "./commands/OptInPhoneNumberCommand";
|
|
29
30
|
import { PublishBatchCommandInput, PublishBatchCommandOutput } from "./commands/PublishBatchCommand";
|
|
30
31
|
import { PublishCommandInput, PublishCommandOutput } from "./commands/PublishCommand";
|
|
32
|
+
import { PutDataProtectionPolicyCommandInput, PutDataProtectionPolicyCommandOutput } from "./commands/PutDataProtectionPolicyCommand";
|
|
31
33
|
import { RemovePermissionCommandInput, RemovePermissionCommandOutput } from "./commands/RemovePermissionCommand";
|
|
32
34
|
import { SetEndpointAttributesCommandInput, SetEndpointAttributesCommandOutput } from "./commands/SetEndpointAttributesCommand";
|
|
33
35
|
import { SetPlatformApplicationAttributesCommandInput, SetPlatformApplicationAttributesCommandOutput } from "./commands/SetPlatformApplicationAttributesCommand";
|
|
@@ -87,6 +89,10 @@ export declare class SNS extends SNSClient {
|
|
|
87
89
|
deleteTopic(args: DeleteTopicCommandInput, cb: (err: any, data?: DeleteTopicCommandOutput) => void): void;
|
|
88
90
|
deleteTopic(args: DeleteTopicCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTopicCommandOutput) => void): void;
|
|
89
91
|
|
|
92
|
+
getDataProtectionPolicy(args: GetDataProtectionPolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetDataProtectionPolicyCommandOutput>;
|
|
93
|
+
getDataProtectionPolicy(args: GetDataProtectionPolicyCommandInput, cb: (err: any, data?: GetDataProtectionPolicyCommandOutput) => void): void;
|
|
94
|
+
getDataProtectionPolicy(args: GetDataProtectionPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDataProtectionPolicyCommandOutput) => void): void;
|
|
95
|
+
|
|
90
96
|
getEndpointAttributes(args: GetEndpointAttributesCommandInput, options?: __HttpHandlerOptions): Promise<GetEndpointAttributesCommandOutput>;
|
|
91
97
|
getEndpointAttributes(args: GetEndpointAttributesCommandInput, cb: (err: any, data?: GetEndpointAttributesCommandOutput) => void): void;
|
|
92
98
|
getEndpointAttributes(args: GetEndpointAttributesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEndpointAttributesCommandOutput) => void): void;
|
|
@@ -159,6 +165,10 @@ export declare class SNS extends SNSClient {
|
|
|
159
165
|
publishBatch(args: PublishBatchCommandInput, cb: (err: any, data?: PublishBatchCommandOutput) => void): void;
|
|
160
166
|
publishBatch(args: PublishBatchCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PublishBatchCommandOutput) => void): void;
|
|
161
167
|
|
|
168
|
+
putDataProtectionPolicy(args: PutDataProtectionPolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutDataProtectionPolicyCommandOutput>;
|
|
169
|
+
putDataProtectionPolicy(args: PutDataProtectionPolicyCommandInput, cb: (err: any, data?: PutDataProtectionPolicyCommandOutput) => void): void;
|
|
170
|
+
putDataProtectionPolicy(args: PutDataProtectionPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutDataProtectionPolicyCommandOutput) => void): void;
|
|
171
|
+
|
|
162
172
|
removePermission(args: RemovePermissionCommandInput, options?: __HttpHandlerOptions): Promise<RemovePermissionCommandOutput>;
|
|
163
173
|
removePermission(args: RemovePermissionCommandInput, cb: (err: any, data?: RemovePermissionCommandOutput) => void): void;
|
|
164
174
|
removePermission(args: RemovePermissionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RemovePermissionCommandOutput) => void): void;
|