@aws-sdk/client-sns 3.436.0 → 3.437.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-cjs/models/models_0.js +27 -1
- package/dist-cjs/protocols/Aws_query.js +44 -0
- package/dist-es/models/models_0.js +24 -0
- package/dist-es/protocols/Aws_query.js +45 -1
- package/dist-types/commands/ConfirmSubscriptionCommand.d.ts +3 -0
- package/dist-types/commands/DeleteTopicCommand.d.ts +3 -0
- package/dist-types/commands/PublishBatchCommand.d.ts +2 -3
- package/dist-types/commands/PublishCommand.d.ts +2 -3
- package/dist-types/commands/SetSubscriptionAttributesCommand.d.ts +3 -0
- package/dist-types/commands/SubscribeCommand.d.ts +4 -1
- package/dist-types/models/models_0.d.ts +73 -5
- package/dist-types/ts3.4/models/models_0.d.ts +14 -0
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VerificationException = exports.TooManyEntriesInBatchRequestException = exports.InvalidBatchEntryIdException = exports.EmptyBatchRequestException = exports.BatchRequestTooLongException = exports.BatchEntryIdsNotDistinctException = exports.PlatformApplicationDisabledException = exports.KMSThrottlingException = exports.KMSOptInRequired = exports.KMSNotFoundException = exports.KMSInvalidStateException = exports.KMSDisabledException = exports.KMSAccessDeniedException = exports.InvalidParameterValueException = exports.EndpointDisabledException = exports.SMSSandboxPhoneNumberVerificationStatus = exports.ValidationException = exports.RouteType = exports.NumberCapability = exports.ResourceNotFoundException = exports.TopicLimitExceededException = exports.TagPolicyException = exports.TagLimitExceededException = exports.StaleTagException = exports.InvalidSecurityException = exports.ConcurrentAccessException = exports.UserErrorException = exports.OptedOutException = exports.LanguageCodeString = exports.SubscriptionLimitExceededException = exports.FilterPolicyLimitExceededException = exports.ThrottledException = exports.NotFoundException = exports.InvalidParameterException = exports.InternalErrorException = exports.AuthorizationErrorException = void 0;
|
|
3
|
+
exports.VerificationException = exports.TooManyEntriesInBatchRequestException = exports.InvalidBatchEntryIdException = exports.EmptyBatchRequestException = exports.BatchRequestTooLongException = exports.BatchEntryIdsNotDistinctException = exports.PlatformApplicationDisabledException = exports.KMSThrottlingException = exports.KMSOptInRequired = exports.KMSNotFoundException = exports.KMSInvalidStateException = exports.KMSDisabledException = exports.KMSAccessDeniedException = exports.InvalidParameterValueException = exports.EndpointDisabledException = exports.SMSSandboxPhoneNumberVerificationStatus = exports.ValidationException = exports.RouteType = exports.NumberCapability = exports.InvalidStateException = exports.ResourceNotFoundException = exports.TopicLimitExceededException = exports.TagPolicyException = exports.TagLimitExceededException = exports.StaleTagException = exports.InvalidSecurityException = exports.ConcurrentAccessException = exports.UserErrorException = exports.OptedOutException = exports.LanguageCodeString = exports.SubscriptionLimitExceededException = exports.ReplayLimitExceededException = exports.FilterPolicyLimitExceededException = exports.ThrottledException = exports.NotFoundException = exports.InvalidParameterException = exports.InternalErrorException = exports.AuthorizationErrorException = void 0;
|
|
4
4
|
const SNSServiceException_1 = require("./SNSServiceException");
|
|
5
5
|
class AuthorizationErrorException extends SNSServiceException_1.SNSServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -80,6 +80,19 @@ class FilterPolicyLimitExceededException extends SNSServiceException_1.SNSServic
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
exports.FilterPolicyLimitExceededException = FilterPolicyLimitExceededException;
|
|
83
|
+
class ReplayLimitExceededException extends SNSServiceException_1.SNSServiceException {
|
|
84
|
+
constructor(opts) {
|
|
85
|
+
super({
|
|
86
|
+
name: "ReplayLimitExceededException",
|
|
87
|
+
$fault: "client",
|
|
88
|
+
...opts,
|
|
89
|
+
});
|
|
90
|
+
this.name = "ReplayLimitExceededException";
|
|
91
|
+
this.$fault = "client";
|
|
92
|
+
Object.setPrototypeOf(this, ReplayLimitExceededException.prototype);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.ReplayLimitExceededException = ReplayLimitExceededException;
|
|
83
96
|
class SubscriptionLimitExceededException extends SNSServiceException_1.SNSServiceException {
|
|
84
97
|
constructor(opts) {
|
|
85
98
|
super({
|
|
@@ -225,6 +238,19 @@ class ResourceNotFoundException extends SNSServiceException_1.SNSServiceExceptio
|
|
|
225
238
|
}
|
|
226
239
|
}
|
|
227
240
|
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
241
|
+
class InvalidStateException extends SNSServiceException_1.SNSServiceException {
|
|
242
|
+
constructor(opts) {
|
|
243
|
+
super({
|
|
244
|
+
name: "InvalidStateException",
|
|
245
|
+
$fault: "client",
|
|
246
|
+
...opts,
|
|
247
|
+
});
|
|
248
|
+
this.name = "InvalidStateException";
|
|
249
|
+
this.$fault = "client";
|
|
250
|
+
Object.setPrototypeOf(this, InvalidStateException.prototype);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
exports.InvalidStateException = InvalidStateException;
|
|
228
254
|
exports.NumberCapability = {
|
|
229
255
|
MMS: "MMS",
|
|
230
256
|
SMS: "SMS",
|
|
@@ -586,6 +586,9 @@ const de_ConfirmSubscriptionCommandError = async (output, context) => {
|
|
|
586
586
|
case "NotFound":
|
|
587
587
|
case "com.amazonaws.sns#NotFoundException":
|
|
588
588
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
589
|
+
case "ReplayLimitExceeded":
|
|
590
|
+
case "com.amazonaws.sns#ReplayLimitExceededException":
|
|
591
|
+
throw await de_ReplayLimitExceededExceptionRes(parsedOutput, context);
|
|
589
592
|
case "SubscriptionLimitExceeded":
|
|
590
593
|
case "com.amazonaws.sns#SubscriptionLimitExceededException":
|
|
591
594
|
throw await de_SubscriptionLimitExceededExceptionRes(parsedOutput, context);
|
|
@@ -934,6 +937,9 @@ const de_DeleteTopicCommandError = async (output, context) => {
|
|
|
934
937
|
case "InvalidParameter":
|
|
935
938
|
case "com.amazonaws.sns#InvalidParameterException":
|
|
936
939
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
940
|
+
case "InvalidState":
|
|
941
|
+
case "com.amazonaws.sns#InvalidStateException":
|
|
942
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
937
943
|
case "NotFound":
|
|
938
944
|
case "com.amazonaws.sns#NotFoundException":
|
|
939
945
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
@@ -2068,6 +2074,9 @@ const de_SetSubscriptionAttributesCommandError = async (output, context) => {
|
|
|
2068
2074
|
case "NotFound":
|
|
2069
2075
|
case "com.amazonaws.sns#NotFoundException":
|
|
2070
2076
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2077
|
+
case "ReplayLimitExceeded":
|
|
2078
|
+
case "com.amazonaws.sns#ReplayLimitExceededException":
|
|
2079
|
+
throw await de_ReplayLimitExceededExceptionRes(parsedOutput, context);
|
|
2071
2080
|
default:
|
|
2072
2081
|
const parsedBody = parsedOutput.body;
|
|
2073
2082
|
return throwDefaultError({
|
|
@@ -2158,6 +2167,9 @@ const de_SubscribeCommandError = async (output, context) => {
|
|
|
2158
2167
|
case "NotFound":
|
|
2159
2168
|
case "com.amazonaws.sns#NotFoundException":
|
|
2160
2169
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2170
|
+
case "ReplayLimitExceeded":
|
|
2171
|
+
case "com.amazonaws.sns#ReplayLimitExceededException":
|
|
2172
|
+
throw await de_ReplayLimitExceededExceptionRes(parsedOutput, context);
|
|
2161
2173
|
case "SubscriptionLimitExceeded":
|
|
2162
2174
|
case "com.amazonaws.sns#SubscriptionLimitExceededException":
|
|
2163
2175
|
throw await de_SubscriptionLimitExceededExceptionRes(parsedOutput, context);
|
|
@@ -2470,6 +2482,15 @@ const de_InvalidSecurityExceptionRes = async (parsedOutput, context) => {
|
|
|
2470
2482
|
});
|
|
2471
2483
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2472
2484
|
};
|
|
2485
|
+
const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
2486
|
+
const body = parsedOutput.body;
|
|
2487
|
+
const deserialized = de_InvalidStateException(body.Error, context);
|
|
2488
|
+
const exception = new models_0_1.InvalidStateException({
|
|
2489
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2490
|
+
...deserialized,
|
|
2491
|
+
});
|
|
2492
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2493
|
+
};
|
|
2473
2494
|
const de_KMSAccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2474
2495
|
const body = parsedOutput.body;
|
|
2475
2496
|
const deserialized = de_KMSAccessDeniedException(body.Error, context);
|
|
@@ -2551,6 +2572,15 @@ const de_PlatformApplicationDisabledExceptionRes = async (parsedOutput, context)
|
|
|
2551
2572
|
});
|
|
2552
2573
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2553
2574
|
};
|
|
2575
|
+
const de_ReplayLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2576
|
+
const body = parsedOutput.body;
|
|
2577
|
+
const deserialized = de_ReplayLimitExceededException(body.Error, context);
|
|
2578
|
+
const exception = new models_0_1.ReplayLimitExceededException({
|
|
2579
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2580
|
+
...deserialized,
|
|
2581
|
+
});
|
|
2582
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2583
|
+
};
|
|
2554
2584
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2555
2585
|
const body = parsedOutput.body;
|
|
2556
2586
|
const deserialized = de_ResourceNotFoundException(body.Error, context);
|
|
@@ -3556,6 +3586,13 @@ const de_InvalidSecurityException = (output, context) => {
|
|
|
3556
3586
|
}
|
|
3557
3587
|
return contents;
|
|
3558
3588
|
};
|
|
3589
|
+
const de_InvalidStateException = (output, context) => {
|
|
3590
|
+
const contents = {};
|
|
3591
|
+
if (output["message"] !== undefined) {
|
|
3592
|
+
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
3593
|
+
}
|
|
3594
|
+
return contents;
|
|
3595
|
+
};
|
|
3559
3596
|
const de_KMSAccessDeniedException = (output, context) => {
|
|
3560
3597
|
const contents = {};
|
|
3561
3598
|
if (output["message"] !== undefined) {
|
|
@@ -3865,6 +3902,13 @@ const de_PublishResponse = (output, context) => {
|
|
|
3865
3902
|
}
|
|
3866
3903
|
return contents;
|
|
3867
3904
|
};
|
|
3905
|
+
const de_ReplayLimitExceededException = (output, context) => {
|
|
3906
|
+
const contents = {};
|
|
3907
|
+
if (output["message"] !== undefined) {
|
|
3908
|
+
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
3909
|
+
}
|
|
3910
|
+
return contents;
|
|
3911
|
+
};
|
|
3868
3912
|
const de_ResourceNotFoundException = (output, context) => {
|
|
3869
3913
|
const contents = {};
|
|
3870
3914
|
if (output["message"] !== undefined) {
|
|
@@ -71,6 +71,18 @@ export class FilterPolicyLimitExceededException extends __BaseException {
|
|
|
71
71
|
Object.setPrototypeOf(this, FilterPolicyLimitExceededException.prototype);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
+
export class ReplayLimitExceededException extends __BaseException {
|
|
75
|
+
constructor(opts) {
|
|
76
|
+
super({
|
|
77
|
+
name: "ReplayLimitExceededException",
|
|
78
|
+
$fault: "client",
|
|
79
|
+
...opts,
|
|
80
|
+
});
|
|
81
|
+
this.name = "ReplayLimitExceededException";
|
|
82
|
+
this.$fault = "client";
|
|
83
|
+
Object.setPrototypeOf(this, ReplayLimitExceededException.prototype);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
74
86
|
export class SubscriptionLimitExceededException extends __BaseException {
|
|
75
87
|
constructor(opts) {
|
|
76
88
|
super({
|
|
@@ -206,6 +218,18 @@ export class ResourceNotFoundException extends __BaseException {
|
|
|
206
218
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
207
219
|
}
|
|
208
220
|
}
|
|
221
|
+
export class InvalidStateException extends __BaseException {
|
|
222
|
+
constructor(opts) {
|
|
223
|
+
super({
|
|
224
|
+
name: "InvalidStateException",
|
|
225
|
+
$fault: "client",
|
|
226
|
+
...opts,
|
|
227
|
+
});
|
|
228
|
+
this.name = "InvalidStateException";
|
|
229
|
+
this.$fault = "client";
|
|
230
|
+
Object.setPrototypeOf(this, InvalidStateException.prototype);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
209
233
|
export const NumberCapability = {
|
|
210
234
|
MMS: "MMS",
|
|
211
235
|
SMS: "SMS",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
2
|
import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { XMLParser } from "fast-xml-parser";
|
|
4
|
-
import { AuthorizationErrorException, BatchEntryIdsNotDistinctException, BatchRequestTooLongException, ConcurrentAccessException, EmptyBatchRequestException, EndpointDisabledException, FilterPolicyLimitExceededException, InternalErrorException, InvalidBatchEntryIdException, InvalidParameterException, InvalidParameterValueException, InvalidSecurityException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, KMSOptInRequired, KMSThrottlingException, NotFoundException, OptedOutException, PlatformApplicationDisabledException, ResourceNotFoundException, StaleTagException, SubscriptionLimitExceededException, TagLimitExceededException, TagPolicyException, ThrottledException, TooManyEntriesInBatchRequestException, TopicLimitExceededException, UserErrorException, ValidationException, VerificationException, } from "../models/models_0";
|
|
4
|
+
import { AuthorizationErrorException, BatchEntryIdsNotDistinctException, BatchRequestTooLongException, ConcurrentAccessException, EmptyBatchRequestException, EndpointDisabledException, FilterPolicyLimitExceededException, InternalErrorException, InvalidBatchEntryIdException, InvalidParameterException, InvalidParameterValueException, InvalidSecurityException, InvalidStateException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, KMSOptInRequired, KMSThrottlingException, NotFoundException, OptedOutException, PlatformApplicationDisabledException, ReplayLimitExceededException, ResourceNotFoundException, StaleTagException, SubscriptionLimitExceededException, TagLimitExceededException, TagPolicyException, ThrottledException, TooManyEntriesInBatchRequestException, TopicLimitExceededException, UserErrorException, ValidationException, VerificationException, } from "../models/models_0";
|
|
5
5
|
import { SNSServiceException as __BaseException } from "../models/SNSServiceException";
|
|
6
6
|
export const se_AddPermissionCommand = async (input, context) => {
|
|
7
7
|
const headers = SHARED_HEADERS;
|
|
@@ -537,6 +537,9 @@ const de_ConfirmSubscriptionCommandError = async (output, context) => {
|
|
|
537
537
|
case "NotFound":
|
|
538
538
|
case "com.amazonaws.sns#NotFoundException":
|
|
539
539
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
540
|
+
case "ReplayLimitExceeded":
|
|
541
|
+
case "com.amazonaws.sns#ReplayLimitExceededException":
|
|
542
|
+
throw await de_ReplayLimitExceededExceptionRes(parsedOutput, context);
|
|
540
543
|
case "SubscriptionLimitExceeded":
|
|
541
544
|
case "com.amazonaws.sns#SubscriptionLimitExceededException":
|
|
542
545
|
throw await de_SubscriptionLimitExceededExceptionRes(parsedOutput, context);
|
|
@@ -877,6 +880,9 @@ const de_DeleteTopicCommandError = async (output, context) => {
|
|
|
877
880
|
case "InvalidParameter":
|
|
878
881
|
case "com.amazonaws.sns#InvalidParameterException":
|
|
879
882
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
883
|
+
case "InvalidState":
|
|
884
|
+
case "com.amazonaws.sns#InvalidStateException":
|
|
885
|
+
throw await de_InvalidStateExceptionRes(parsedOutput, context);
|
|
880
886
|
case "NotFound":
|
|
881
887
|
case "com.amazonaws.sns#NotFoundException":
|
|
882
888
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1986,6 +1992,9 @@ const de_SetSubscriptionAttributesCommandError = async (output, context) => {
|
|
|
1986
1992
|
case "NotFound":
|
|
1987
1993
|
case "com.amazonaws.sns#NotFoundException":
|
|
1988
1994
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1995
|
+
case "ReplayLimitExceeded":
|
|
1996
|
+
case "com.amazonaws.sns#ReplayLimitExceededException":
|
|
1997
|
+
throw await de_ReplayLimitExceededExceptionRes(parsedOutput, context);
|
|
1989
1998
|
default:
|
|
1990
1999
|
const parsedBody = parsedOutput.body;
|
|
1991
2000
|
return throwDefaultError({
|
|
@@ -2074,6 +2083,9 @@ const de_SubscribeCommandError = async (output, context) => {
|
|
|
2074
2083
|
case "NotFound":
|
|
2075
2084
|
case "com.amazonaws.sns#NotFoundException":
|
|
2076
2085
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2086
|
+
case "ReplayLimitExceeded":
|
|
2087
|
+
case "com.amazonaws.sns#ReplayLimitExceededException":
|
|
2088
|
+
throw await de_ReplayLimitExceededExceptionRes(parsedOutput, context);
|
|
2077
2089
|
case "SubscriptionLimitExceeded":
|
|
2078
2090
|
case "com.amazonaws.sns#SubscriptionLimitExceededException":
|
|
2079
2091
|
throw await de_SubscriptionLimitExceededExceptionRes(parsedOutput, context);
|
|
@@ -2382,6 +2394,15 @@ const de_InvalidSecurityExceptionRes = async (parsedOutput, context) => {
|
|
|
2382
2394
|
});
|
|
2383
2395
|
return __decorateServiceException(exception, body);
|
|
2384
2396
|
};
|
|
2397
|
+
const de_InvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
2398
|
+
const body = parsedOutput.body;
|
|
2399
|
+
const deserialized = de_InvalidStateException(body.Error, context);
|
|
2400
|
+
const exception = new InvalidStateException({
|
|
2401
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2402
|
+
...deserialized,
|
|
2403
|
+
});
|
|
2404
|
+
return __decorateServiceException(exception, body);
|
|
2405
|
+
};
|
|
2385
2406
|
const de_KMSAccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2386
2407
|
const body = parsedOutput.body;
|
|
2387
2408
|
const deserialized = de_KMSAccessDeniedException(body.Error, context);
|
|
@@ -2463,6 +2484,15 @@ const de_PlatformApplicationDisabledExceptionRes = async (parsedOutput, context)
|
|
|
2463
2484
|
});
|
|
2464
2485
|
return __decorateServiceException(exception, body);
|
|
2465
2486
|
};
|
|
2487
|
+
const de_ReplayLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2488
|
+
const body = parsedOutput.body;
|
|
2489
|
+
const deserialized = de_ReplayLimitExceededException(body.Error, context);
|
|
2490
|
+
const exception = new ReplayLimitExceededException({
|
|
2491
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2492
|
+
...deserialized,
|
|
2493
|
+
});
|
|
2494
|
+
return __decorateServiceException(exception, body);
|
|
2495
|
+
};
|
|
2466
2496
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2467
2497
|
const body = parsedOutput.body;
|
|
2468
2498
|
const deserialized = de_ResourceNotFoundException(body.Error, context);
|
|
@@ -3468,6 +3498,13 @@ const de_InvalidSecurityException = (output, context) => {
|
|
|
3468
3498
|
}
|
|
3469
3499
|
return contents;
|
|
3470
3500
|
};
|
|
3501
|
+
const de_InvalidStateException = (output, context) => {
|
|
3502
|
+
const contents = {};
|
|
3503
|
+
if (output["message"] !== undefined) {
|
|
3504
|
+
contents.message = __expectString(output["message"]);
|
|
3505
|
+
}
|
|
3506
|
+
return contents;
|
|
3507
|
+
};
|
|
3471
3508
|
const de_KMSAccessDeniedException = (output, context) => {
|
|
3472
3509
|
const contents = {};
|
|
3473
3510
|
if (output["message"] !== undefined) {
|
|
@@ -3777,6 +3814,13 @@ const de_PublishResponse = (output, context) => {
|
|
|
3777
3814
|
}
|
|
3778
3815
|
return contents;
|
|
3779
3816
|
};
|
|
3817
|
+
const de_ReplayLimitExceededException = (output, context) => {
|
|
3818
|
+
const contents = {};
|
|
3819
|
+
if (output["message"] !== undefined) {
|
|
3820
|
+
contents.message = __expectString(output["message"]);
|
|
3821
|
+
}
|
|
3822
|
+
return contents;
|
|
3823
|
+
};
|
|
3780
3824
|
const de_ResourceNotFoundException = (output, context) => {
|
|
3781
3825
|
const contents = {};
|
|
3782
3826
|
if (output["message"] !== undefined) {
|
|
@@ -71,6 +71,9 @@ export interface ConfirmSubscriptionCommandOutput extends ConfirmSubscriptionRes
|
|
|
71
71
|
* @throws {@link NotFoundException} (client fault)
|
|
72
72
|
* <p>Indicates that the requested resource does not exist.</p>
|
|
73
73
|
*
|
|
74
|
+
* @throws {@link ReplayLimitExceededException} (client fault)
|
|
75
|
+
* <p>Indicates that the request parameter has exceeded the maximum number of concurrent message replays.</p>
|
|
76
|
+
*
|
|
74
77
|
* @throws {@link SubscriptionLimitExceededException} (client fault)
|
|
75
78
|
* <p>Indicates that the customer already owns the maximum allowed number of
|
|
76
79
|
* subscriptions.</p>
|
|
@@ -62,6 +62,9 @@ export interface DeleteTopicCommandOutput extends __MetadataBearer {
|
|
|
62
62
|
* <p>Indicates that a request parameter does not comply with the associated
|
|
63
63
|
* constraints.</p>
|
|
64
64
|
*
|
|
65
|
+
* @throws {@link InvalidStateException} (client fault)
|
|
66
|
+
* <p>Indicates that the specified state is not a valid state for an event source.</p>
|
|
67
|
+
*
|
|
65
68
|
* @throws {@link NotFoundException} (client fault)
|
|
66
69
|
* <p>Indicates that the requested resource does not exist.</p>
|
|
67
70
|
*
|
|
@@ -135,13 +135,12 @@ export interface PublishBatchCommandOutput extends PublishBatchResponse, __Metad
|
|
|
135
135
|
* to.</p>
|
|
136
136
|
*
|
|
137
137
|
* @throws {@link KMSDisabledException} (client fault)
|
|
138
|
-
* <p>The request was rejected because the specified
|
|
138
|
+
* <p>The request was rejected because the specified Amazon Web Services KMS key isn't
|
|
139
139
|
* enabled.</p>
|
|
140
140
|
*
|
|
141
141
|
* @throws {@link KMSInvalidStateException} (client fault)
|
|
142
142
|
* <p>The request was rejected because the state of the specified resource isn't valid for
|
|
143
|
-
* this request. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">
|
|
144
|
-
* Customer Master Key</a> in the <i>Key Management Service Developer
|
|
143
|
+
* this request. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of Amazon Web Services KMS keys</a> in the <i>Key Management Service Developer
|
|
145
144
|
* Guide</i>.</p>
|
|
146
145
|
*
|
|
147
146
|
* @throws {@link KMSNotFoundException} (client fault)
|
|
@@ -104,13 +104,12 @@ export interface PublishCommandOutput extends PublishResponse, __MetadataBearer
|
|
|
104
104
|
* to.</p>
|
|
105
105
|
*
|
|
106
106
|
* @throws {@link KMSDisabledException} (client fault)
|
|
107
|
-
* <p>The request was rejected because the specified
|
|
107
|
+
* <p>The request was rejected because the specified Amazon Web Services KMS key isn't
|
|
108
108
|
* enabled.</p>
|
|
109
109
|
*
|
|
110
110
|
* @throws {@link KMSInvalidStateException} (client fault)
|
|
111
111
|
* <p>The request was rejected because the state of the specified resource isn't valid for
|
|
112
|
-
* this request. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">
|
|
113
|
-
* Customer Master Key</a> in the <i>Key Management Service Developer
|
|
112
|
+
* this request. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of Amazon Web Services KMS keys</a> in the <i>Key Management Service Developer
|
|
114
113
|
* Guide</i>.</p>
|
|
115
114
|
*
|
|
116
115
|
* @throws {@link KMSNotFoundException} (client fault)
|
|
@@ -66,6 +66,9 @@ export interface SetSubscriptionAttributesCommandOutput extends __MetadataBearer
|
|
|
66
66
|
* @throws {@link NotFoundException} (client fault)
|
|
67
67
|
* <p>Indicates that the requested resource does not exist.</p>
|
|
68
68
|
*
|
|
69
|
+
* @throws {@link ReplayLimitExceededException} (client fault)
|
|
70
|
+
* <p>Indicates that the request parameter has exceeded the maximum number of concurrent message replays.</p>
|
|
71
|
+
*
|
|
69
72
|
* @throws {@link SNSServiceException}
|
|
70
73
|
* <p>Base exception class for all service exceptions from SNS service.</p>
|
|
71
74
|
*
|
|
@@ -27,7 +27,7 @@ export interface SubscribeCommandOutput extends SubscribeResponse, __MetadataBea
|
|
|
27
27
|
* if the endpoint and the topic are not in the same Amazon Web Services account, the endpoint owner must
|
|
28
28
|
* run the <code>ConfirmSubscription</code> action to confirm the subscription.</p>
|
|
29
29
|
* <p>You call the <code>ConfirmSubscription</code> action with the token from the
|
|
30
|
-
* subscription response. Confirmation tokens are valid for
|
|
30
|
+
* subscription response. Confirmation tokens are valid for two days.</p>
|
|
31
31
|
* <p>This action is throttled at 100 transactions per second (TPS).</p>
|
|
32
32
|
* @example
|
|
33
33
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -80,6 +80,9 @@ export interface SubscribeCommandOutput extends SubscribeResponse, __MetadataBea
|
|
|
80
80
|
* @throws {@link NotFoundException} (client fault)
|
|
81
81
|
* <p>Indicates that the requested resource does not exist.</p>
|
|
82
82
|
*
|
|
83
|
+
* @throws {@link ReplayLimitExceededException} (client fault)
|
|
84
|
+
* <p>Indicates that the request parameter has exceeded the maximum number of concurrent message replays.</p>
|
|
85
|
+
*
|
|
83
86
|
* @throws {@link SubscriptionLimitExceededException} (client fault)
|
|
84
87
|
* <p>Indicates that the customer already owns the maximum allowed number of
|
|
85
88
|
* subscriptions.</p>
|
|
@@ -172,6 +172,18 @@ export declare class FilterPolicyLimitExceededException extends __BaseException
|
|
|
172
172
|
*/
|
|
173
173
|
constructor(opts: __ExceptionOptionType<FilterPolicyLimitExceededException, __BaseException>);
|
|
174
174
|
}
|
|
175
|
+
/**
|
|
176
|
+
* @public
|
|
177
|
+
* <p>Indicates that the request parameter has exceeded the maximum number of concurrent message replays.</p>
|
|
178
|
+
*/
|
|
179
|
+
export declare class ReplayLimitExceededException extends __BaseException {
|
|
180
|
+
readonly name: "ReplayLimitExceededException";
|
|
181
|
+
readonly $fault: "client";
|
|
182
|
+
/**
|
|
183
|
+
* @internal
|
|
184
|
+
*/
|
|
185
|
+
constructor(opts: __ExceptionOptionType<ReplayLimitExceededException, __BaseException>);
|
|
186
|
+
}
|
|
175
187
|
/**
|
|
176
188
|
* @public
|
|
177
189
|
* <p>Indicates that the customer already owns the maximum allowed number of
|
|
@@ -435,8 +447,15 @@ export interface CreateTopicInput {
|
|
|
435
447
|
* <ul>
|
|
436
448
|
* <li>
|
|
437
449
|
* <p>
|
|
438
|
-
* <code>
|
|
439
|
-
*
|
|
450
|
+
* <code>ArchivePolicy</code> – Adds or updates an inline policy document
|
|
451
|
+
* to archive messages stored in the specified Amazon SNS topic.</p>
|
|
452
|
+
* </li>
|
|
453
|
+
* <li>
|
|
454
|
+
* <p>
|
|
455
|
+
* <code>BeginningArchiveTime</code> – The earliest starting point at
|
|
456
|
+
* which a message in the topic’s archive can be replayed from. This point in time
|
|
457
|
+
* is based on the configured message retention period set by the topic’s message
|
|
458
|
+
* archiving policy.</p>
|
|
440
459
|
* </li>
|
|
441
460
|
* <li>
|
|
442
461
|
* <p>
|
|
@@ -615,6 +634,18 @@ export interface DeleteTopicInput {
|
|
|
615
634
|
*/
|
|
616
635
|
TopicArn: string | undefined;
|
|
617
636
|
}
|
|
637
|
+
/**
|
|
638
|
+
* @public
|
|
639
|
+
* <p>Indicates that the specified state is not a valid state for an event source.</p>
|
|
640
|
+
*/
|
|
641
|
+
export declare class InvalidStateException extends __BaseException {
|
|
642
|
+
readonly name: "InvalidStateException";
|
|
643
|
+
readonly $fault: "client";
|
|
644
|
+
/**
|
|
645
|
+
* @internal
|
|
646
|
+
*/
|
|
647
|
+
constructor(opts: __ExceptionOptionType<InvalidStateException, __BaseException>);
|
|
648
|
+
}
|
|
618
649
|
/**
|
|
619
650
|
* @public
|
|
620
651
|
*/
|
|
@@ -1545,7 +1576,7 @@ export declare class KMSAccessDeniedException extends __BaseException {
|
|
|
1545
1576
|
}
|
|
1546
1577
|
/**
|
|
1547
1578
|
* @public
|
|
1548
|
-
* <p>The request was rejected because the specified
|
|
1579
|
+
* <p>The request was rejected because the specified Amazon Web Services KMS key isn't
|
|
1549
1580
|
* enabled.</p>
|
|
1550
1581
|
*/
|
|
1551
1582
|
export declare class KMSDisabledException extends __BaseException {
|
|
@@ -1559,8 +1590,7 @@ export declare class KMSDisabledException extends __BaseException {
|
|
|
1559
1590
|
/**
|
|
1560
1591
|
* @public
|
|
1561
1592
|
* <p>The request was rejected because the state of the specified resource isn't valid for
|
|
1562
|
-
* this request. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">
|
|
1563
|
-
* Customer Master Key</a> in the <i>Key Management Service Developer
|
|
1593
|
+
* this request. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of Amazon Web Services KMS keys</a> in the <i>Key Management Service Developer
|
|
1564
1594
|
* Guide</i>.</p>
|
|
1565
1595
|
*/
|
|
1566
1596
|
export declare class KMSInvalidStateException extends __BaseException {
|
|
@@ -2894,6 +2924,44 @@ export interface SubscribeInput {
|
|
|
2894
2924
|
* to Kinesis Data Firehose delivery streams</a> in the <i>Amazon SNS Developer Guide</i>.</p>
|
|
2895
2925
|
* </li>
|
|
2896
2926
|
* </ul>
|
|
2927
|
+
* <p>The following attributes apply only to <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html">FIFO topics</a>:</p>
|
|
2928
|
+
* <ul>
|
|
2929
|
+
* <li>
|
|
2930
|
+
* <p>
|
|
2931
|
+
* <code>ReplayPolicy</code> – Adds or updates an inline policy document
|
|
2932
|
+
* for a subscription to replay messages stored in the specified Amazon SNS
|
|
2933
|
+
* topic.</p>
|
|
2934
|
+
* </li>
|
|
2935
|
+
* <li>
|
|
2936
|
+
* <p>
|
|
2937
|
+
* <code>ReplayStatus</code> – Retrieves the status of the subscription
|
|
2938
|
+
* message replay, which can be one of the following:</p>
|
|
2939
|
+
* <ul>
|
|
2940
|
+
* <li>
|
|
2941
|
+
* <p>
|
|
2942
|
+
* <code>Completed</code> – The replay has successfully
|
|
2943
|
+
* redelivered all messages, and is now delivering newly published
|
|
2944
|
+
* messages. If an ending point was specified in the
|
|
2945
|
+
* <code>ReplayPolicy</code> then the subscription will no longer
|
|
2946
|
+
* receive newly published messages.</p>
|
|
2947
|
+
* </li>
|
|
2948
|
+
* <li>
|
|
2949
|
+
* <p>
|
|
2950
|
+
* <code>In progress</code> – The replay is currently replaying
|
|
2951
|
+
* the selected messages.</p>
|
|
2952
|
+
* </li>
|
|
2953
|
+
* <li>
|
|
2954
|
+
* <p>
|
|
2955
|
+
* <code>Failed</code> – The replay was unable to complete.</p>
|
|
2956
|
+
* </li>
|
|
2957
|
+
* <li>
|
|
2958
|
+
* <p>
|
|
2959
|
+
* <code>Pending</code> – The default state while the replay
|
|
2960
|
+
* initiates.</p>
|
|
2961
|
+
* </li>
|
|
2962
|
+
* </ul>
|
|
2963
|
+
* </li>
|
|
2964
|
+
* </ul>
|
|
2897
2965
|
*/
|
|
2898
2966
|
Attributes?: Record<string, string>;
|
|
2899
2967
|
/**
|
|
@@ -61,6 +61,13 @@ export declare class FilterPolicyLimitExceededException extends __BaseException
|
|
|
61
61
|
>
|
|
62
62
|
);
|
|
63
63
|
}
|
|
64
|
+
export declare class ReplayLimitExceededException extends __BaseException {
|
|
65
|
+
readonly name: "ReplayLimitExceededException";
|
|
66
|
+
readonly $fault: "client";
|
|
67
|
+
constructor(
|
|
68
|
+
opts: __ExceptionOptionType<ReplayLimitExceededException, __BaseException>
|
|
69
|
+
);
|
|
70
|
+
}
|
|
64
71
|
export declare class SubscriptionLimitExceededException extends __BaseException {
|
|
65
72
|
readonly name: "SubscriptionLimitExceededException";
|
|
66
73
|
readonly $fault: "client";
|
|
@@ -191,6 +198,13 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
191
198
|
export interface DeleteTopicInput {
|
|
192
199
|
TopicArn: string | undefined;
|
|
193
200
|
}
|
|
201
|
+
export declare class InvalidStateException extends __BaseException {
|
|
202
|
+
readonly name: "InvalidStateException";
|
|
203
|
+
readonly $fault: "client";
|
|
204
|
+
constructor(
|
|
205
|
+
opts: __ExceptionOptionType<InvalidStateException, __BaseException>
|
|
206
|
+
);
|
|
207
|
+
}
|
|
194
208
|
export interface GetDataProtectionPolicyInput {
|
|
195
209
|
ResourceArn: string | undefined;
|
|
196
210
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sns",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sns Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.437.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.437.0",
|
|
25
25
|
"@aws-sdk/core": "3.436.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.437.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.433.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.433.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.433.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@aws-sdk/types": "3.433.0",
|
|
34
34
|
"@aws-sdk/util-endpoints": "3.433.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-browser": "3.433.0",
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "3.437.0",
|
|
37
37
|
"@smithy/config-resolver": "^2.0.16",
|
|
38
38
|
"@smithy/fetch-http-handler": "^2.2.4",
|
|
39
39
|
"@smithy/hash-node": "^2.0.12",
|