@aws-sdk/client-sns 3.162.0 → 3.166.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 +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.166.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.165.0...v3.166.0) (2022-09-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-sns:** Amazon SNS introduces the Data Protection Policy APIs, which enable customers to attach a data protection policy to an SNS topic. This allows topic owners to enable the new message data protection feature to audit and block sensitive data that is exchanged through their topics. ([fdc8747](https://github.com/aws/aws-sdk-js-v3/commit/fdc8747931bae31e41f0a08e2ccb87e792b0c906))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.165.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.164.0...v3.165.0) (2022-09-06)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-sns
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.163.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.162.0...v3.163.0) (2022-09-01)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-sns
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.162.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.161.0...v3.162.0) (2022-08-31)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-sns
|
package/dist-cjs/SNS.js
CHANGED
|
@@ -12,6 +12,7 @@ const DeleteEndpointCommand_1 = require("./commands/DeleteEndpointCommand");
|
|
|
12
12
|
const DeletePlatformApplicationCommand_1 = require("./commands/DeletePlatformApplicationCommand");
|
|
13
13
|
const DeleteSMSSandboxPhoneNumberCommand_1 = require("./commands/DeleteSMSSandboxPhoneNumberCommand");
|
|
14
14
|
const DeleteTopicCommand_1 = require("./commands/DeleteTopicCommand");
|
|
15
|
+
const GetDataProtectionPolicyCommand_1 = require("./commands/GetDataProtectionPolicyCommand");
|
|
15
16
|
const GetEndpointAttributesCommand_1 = require("./commands/GetEndpointAttributesCommand");
|
|
16
17
|
const GetPlatformApplicationAttributesCommand_1 = require("./commands/GetPlatformApplicationAttributesCommand");
|
|
17
18
|
const GetSMSAttributesCommand_1 = require("./commands/GetSMSAttributesCommand");
|
|
@@ -30,6 +31,7 @@ const ListTopicsCommand_1 = require("./commands/ListTopicsCommand");
|
|
|
30
31
|
const OptInPhoneNumberCommand_1 = require("./commands/OptInPhoneNumberCommand");
|
|
31
32
|
const PublishBatchCommand_1 = require("./commands/PublishBatchCommand");
|
|
32
33
|
const PublishCommand_1 = require("./commands/PublishCommand");
|
|
34
|
+
const PutDataProtectionPolicyCommand_1 = require("./commands/PutDataProtectionPolicyCommand");
|
|
33
35
|
const RemovePermissionCommand_1 = require("./commands/RemovePermissionCommand");
|
|
34
36
|
const SetEndpointAttributesCommand_1 = require("./commands/SetEndpointAttributesCommand");
|
|
35
37
|
const SetPlatformApplicationAttributesCommand_1 = require("./commands/SetPlatformApplicationAttributesCommand");
|
|
@@ -197,6 +199,20 @@ class SNS extends SNSClient_1.SNSClient {
|
|
|
197
199
|
return this.send(command, optionsOrCb);
|
|
198
200
|
}
|
|
199
201
|
}
|
|
202
|
+
getDataProtectionPolicy(args, optionsOrCb, cb) {
|
|
203
|
+
const command = new GetDataProtectionPolicyCommand_1.GetDataProtectionPolicyCommand(args);
|
|
204
|
+
if (typeof optionsOrCb === "function") {
|
|
205
|
+
this.send(command, optionsOrCb);
|
|
206
|
+
}
|
|
207
|
+
else if (typeof cb === "function") {
|
|
208
|
+
if (typeof optionsOrCb !== "object")
|
|
209
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
210
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
211
|
+
}
|
|
212
|
+
else {
|
|
213
|
+
return this.send(command, optionsOrCb);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
200
216
|
getEndpointAttributes(args, optionsOrCb, cb) {
|
|
201
217
|
const command = new GetEndpointAttributesCommand_1.GetEndpointAttributesCommand(args);
|
|
202
218
|
if (typeof optionsOrCb === "function") {
|
|
@@ -449,6 +465,20 @@ class SNS extends SNSClient_1.SNSClient {
|
|
|
449
465
|
return this.send(command, optionsOrCb);
|
|
450
466
|
}
|
|
451
467
|
}
|
|
468
|
+
putDataProtectionPolicy(args, optionsOrCb, cb) {
|
|
469
|
+
const command = new PutDataProtectionPolicyCommand_1.PutDataProtectionPolicyCommand(args);
|
|
470
|
+
if (typeof optionsOrCb === "function") {
|
|
471
|
+
this.send(command, optionsOrCb);
|
|
472
|
+
}
|
|
473
|
+
else if (typeof cb === "function") {
|
|
474
|
+
if (typeof optionsOrCb !== "object")
|
|
475
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
476
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
477
|
+
}
|
|
478
|
+
else {
|
|
479
|
+
return this.send(command, optionsOrCb);
|
|
480
|
+
}
|
|
481
|
+
}
|
|
452
482
|
removePermission(args, optionsOrCb, cb) {
|
|
453
483
|
const command = new RemovePermissionCommand_1.RemovePermissionCommand(args);
|
|
454
484
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetDataProtectionPolicyCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
+
class GetDataProtectionPolicyCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "SNSClient";
|
|
18
|
+
const commandName = "GetDataProtectionPolicyCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetDataProtectionPolicyInputFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetDataProtectionPolicyResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_query_1.serializeAws_queryGetDataProtectionPolicyCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_query_1.deserializeAws_queryGetDataProtectionPolicyCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GetDataProtectionPolicyCommand = GetDataProtectionPolicyCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PutDataProtectionPolicyCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_query_1 = require("../protocols/Aws_query");
|
|
8
|
+
class PutDataProtectionPolicyCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "SNSClient";
|
|
18
|
+
const commandName = "PutDataProtectionPolicyCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.PutDataProtectionPolicyInputFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: (output) => output,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_query_1.serializeAws_queryPutDataProtectionPolicyCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_query_1.deserializeAws_queryPutDataProtectionPolicyCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.PutDataProtectionPolicyCommand = PutDataProtectionPolicyCommand;
|
|
@@ -12,6 +12,7 @@ tslib_1.__exportStar(require("./DeleteEndpointCommand"), exports);
|
|
|
12
12
|
tslib_1.__exportStar(require("./DeletePlatformApplicationCommand"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./DeleteSMSSandboxPhoneNumberCommand"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./DeleteTopicCommand"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./GetDataProtectionPolicyCommand"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./GetEndpointAttributesCommand"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./GetPlatformApplicationAttributesCommand"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./GetSMSAttributesCommand"), exports);
|
|
@@ -30,6 +31,7 @@ tslib_1.__exportStar(require("./ListTopicsCommand"), exports);
|
|
|
30
31
|
tslib_1.__exportStar(require("./OptInPhoneNumberCommand"), exports);
|
|
31
32
|
tslib_1.__exportStar(require("./PublishBatchCommand"), exports);
|
|
32
33
|
tslib_1.__exportStar(require("./PublishCommand"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("./PutDataProtectionPolicyCommand"), exports);
|
|
33
35
|
tslib_1.__exportStar(require("./RemovePermissionCommand"), exports);
|
|
34
36
|
tslib_1.__exportStar(require("./SetEndpointAttributesCommand"), exports);
|
|
35
37
|
tslib_1.__exportStar(require("./SetPlatformApplicationAttributesCommand"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateTopicResponseFilterSensitiveLog = exports.CreateTopicInputFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.CreateSMSSandboxPhoneNumberResultFilterSensitiveLog = exports.CreateSMSSandboxPhoneNumberInputFilterSensitiveLog = exports.CreatePlatformEndpointInputFilterSensitiveLog = exports.CreateEndpointResponseFilterSensitiveLog = exports.CreatePlatformApplicationResponseFilterSensitiveLog = exports.CreatePlatformApplicationInputFilterSensitiveLog = exports.ConfirmSubscriptionResponseFilterSensitiveLog = exports.ConfirmSubscriptionInputFilterSensitiveLog = exports.CheckIfPhoneNumberIsOptedOutResponseFilterSensitiveLog = exports.CheckIfPhoneNumberIsOptedOutInputFilterSensitiveLog = exports.AddPermissionInputFilterSensitiveLog = 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;
|
|
4
|
-
exports.
|
|
5
|
-
exports.VerifySMSSandboxPhoneNumberResultFilterSensitiveLog = exports.VerifySMSSandboxPhoneNumberInputFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.UnsubscribeInputFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.SubscribeResponseFilterSensitiveLog = exports.SubscribeInputFilterSensitiveLog = exports.SetTopicAttributesInputFilterSensitiveLog = exports.SetSubscriptionAttributesInputFilterSensitiveLog = exports.SetSMSAttributesResponseFilterSensitiveLog = exports.SetSMSAttributesInputFilterSensitiveLog = exports.SetPlatformApplicationAttributesInputFilterSensitiveLog = exports.SetEndpointAttributesInputFilterSensitiveLog = exports.RemovePermissionInputFilterSensitiveLog = exports.PublishBatchResponseFilterSensitiveLog = void 0;
|
|
4
|
+
exports.PublishBatchInputFilterSensitiveLog = exports.PublishBatchRequestEntryFilterSensitiveLog = exports.PublishResponseFilterSensitiveLog = exports.PublishInputFilterSensitiveLog = exports.MessageAttributeValueFilterSensitiveLog = exports.OptInPhoneNumberResponseFilterSensitiveLog = exports.OptInPhoneNumberInputFilterSensitiveLog = exports.ListTopicsResponseFilterSensitiveLog = exports.TopicFilterSensitiveLog = exports.ListTopicsInputFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListSubscriptionsByTopicResponseFilterSensitiveLog = exports.ListSubscriptionsByTopicInputFilterSensitiveLog = exports.ListSubscriptionsResponseFilterSensitiveLog = exports.SubscriptionFilterSensitiveLog = exports.ListSubscriptionsInputFilterSensitiveLog = exports.ListSMSSandboxPhoneNumbersResultFilterSensitiveLog = exports.SMSSandboxPhoneNumberFilterSensitiveLog = exports.ListSMSSandboxPhoneNumbersInputFilterSensitiveLog = exports.ListPlatformApplicationsResponseFilterSensitiveLog = exports.PlatformApplicationFilterSensitiveLog = exports.ListPlatformApplicationsInputFilterSensitiveLog = exports.ListPhoneNumbersOptedOutResponseFilterSensitiveLog = exports.ListPhoneNumbersOptedOutInputFilterSensitiveLog = exports.ListOriginationNumbersResultFilterSensitiveLog = exports.PhoneNumberInformationFilterSensitiveLog = exports.ListOriginationNumbersRequestFilterSensitiveLog = exports.ListEndpointsByPlatformApplicationResponseFilterSensitiveLog = exports.EndpointFilterSensitiveLog = exports.ListEndpointsByPlatformApplicationInputFilterSensitiveLog = exports.GetTopicAttributesResponseFilterSensitiveLog = exports.GetTopicAttributesInputFilterSensitiveLog = exports.GetSubscriptionAttributesResponseFilterSensitiveLog = exports.GetSubscriptionAttributesInputFilterSensitiveLog = exports.GetSMSSandboxAccountStatusResultFilterSensitiveLog = exports.GetSMSSandboxAccountStatusInputFilterSensitiveLog = exports.GetSMSAttributesResponseFilterSensitiveLog = exports.GetSMSAttributesInputFilterSensitiveLog = exports.GetPlatformApplicationAttributesResponseFilterSensitiveLog = exports.GetPlatformApplicationAttributesInputFilterSensitiveLog = exports.GetEndpointAttributesResponseFilterSensitiveLog = exports.GetEndpointAttributesInputFilterSensitiveLog = exports.GetDataProtectionPolicyResponseFilterSensitiveLog = exports.GetDataProtectionPolicyInputFilterSensitiveLog = exports.DeleteTopicInputFilterSensitiveLog = exports.DeleteSMSSandboxPhoneNumberResultFilterSensitiveLog = exports.DeleteSMSSandboxPhoneNumberInputFilterSensitiveLog = exports.DeletePlatformApplicationInputFilterSensitiveLog = exports.DeleteEndpointInputFilterSensitiveLog = void 0;
|
|
5
|
+
exports.VerifySMSSandboxPhoneNumberResultFilterSensitiveLog = exports.VerifySMSSandboxPhoneNumberInputFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.UnsubscribeInputFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.SubscribeResponseFilterSensitiveLog = exports.SubscribeInputFilterSensitiveLog = exports.SetTopicAttributesInputFilterSensitiveLog = exports.SetSubscriptionAttributesInputFilterSensitiveLog = exports.SetSMSAttributesResponseFilterSensitiveLog = exports.SetSMSAttributesInputFilterSensitiveLog = exports.SetPlatformApplicationAttributesInputFilterSensitiveLog = exports.SetEndpointAttributesInputFilterSensitiveLog = exports.RemovePermissionInputFilterSensitiveLog = exports.PutDataProtectionPolicyInputFilterSensitiveLog = exports.PublishBatchResponseFilterSensitiveLog = exports.PublishBatchResultEntryFilterSensitiveLog = exports.BatchResultErrorEntryFilterSensitiveLog = void 0;
|
|
6
6
|
const SNSServiceException_1 = require("./SNSServiceException");
|
|
7
7
|
class AuthorizationErrorException extends SNSServiceException_1.SNSServiceException {
|
|
8
8
|
constructor(opts) {
|
|
@@ -532,6 +532,14 @@ const DeleteTopicInputFilterSensitiveLog = (obj) => ({
|
|
|
532
532
|
...obj,
|
|
533
533
|
});
|
|
534
534
|
exports.DeleteTopicInputFilterSensitiveLog = DeleteTopicInputFilterSensitiveLog;
|
|
535
|
+
const GetDataProtectionPolicyInputFilterSensitiveLog = (obj) => ({
|
|
536
|
+
...obj,
|
|
537
|
+
});
|
|
538
|
+
exports.GetDataProtectionPolicyInputFilterSensitiveLog = GetDataProtectionPolicyInputFilterSensitiveLog;
|
|
539
|
+
const GetDataProtectionPolicyResponseFilterSensitiveLog = (obj) => ({
|
|
540
|
+
...obj,
|
|
541
|
+
});
|
|
542
|
+
exports.GetDataProtectionPolicyResponseFilterSensitiveLog = GetDataProtectionPolicyResponseFilterSensitiveLog;
|
|
535
543
|
const GetEndpointAttributesInputFilterSensitiveLog = (obj) => ({
|
|
536
544
|
...obj,
|
|
537
545
|
});
|
|
@@ -716,6 +724,10 @@ const PublishBatchResponseFilterSensitiveLog = (obj) => ({
|
|
|
716
724
|
...obj,
|
|
717
725
|
});
|
|
718
726
|
exports.PublishBatchResponseFilterSensitiveLog = PublishBatchResponseFilterSensitiveLog;
|
|
727
|
+
const PutDataProtectionPolicyInputFilterSensitiveLog = (obj) => ({
|
|
728
|
+
...obj,
|
|
729
|
+
});
|
|
730
|
+
exports.PutDataProtectionPolicyInputFilterSensitiveLog = PutDataProtectionPolicyInputFilterSensitiveLog;
|
|
719
731
|
const RemovePermissionInputFilterSensitiveLog = (obj) => ({
|
|
720
732
|
...obj,
|
|
721
733
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_queryVerifySMSSandboxPhoneNumberCommand = exports.deserializeAws_queryUntagResourceCommand = exports.deserializeAws_queryUnsubscribeCommand = exports.deserializeAws_queryTagResourceCommand = exports.deserializeAws_querySubscribeCommand = exports.deserializeAws_querySetTopicAttributesCommand = exports.deserializeAws_querySetSubscriptionAttributesCommand = exports.deserializeAws_querySetSMSAttributesCommand = exports.deserializeAws_querySetPlatformApplicationAttributesCommand = exports.deserializeAws_querySetEndpointAttributesCommand = exports.deserializeAws_queryRemovePermissionCommand = exports.deserializeAws_queryPublishBatchCommand = exports.deserializeAws_queryPublishCommand = exports.deserializeAws_queryOptInPhoneNumberCommand = exports.deserializeAws_queryListTopicsCommand = exports.deserializeAws_queryListTagsForResourceCommand = exports.deserializeAws_queryListSubscriptionsByTopicCommand = exports.deserializeAws_queryListSubscriptionsCommand = exports.deserializeAws_queryListSMSSandboxPhoneNumbersCommand = exports.deserializeAws_queryListPlatformApplicationsCommand = exports.deserializeAws_queryListPhoneNumbersOptedOutCommand = exports.deserializeAws_queryListOriginationNumbersCommand = exports.deserializeAws_queryListEndpointsByPlatformApplicationCommand = exports.deserializeAws_queryGetTopicAttributesCommand = exports.deserializeAws_queryGetSubscriptionAttributesCommand = exports.deserializeAws_queryGetSMSSandboxAccountStatusCommand = exports.deserializeAws_queryGetSMSAttributesCommand = exports.deserializeAws_queryGetPlatformApplicationAttributesCommand = exports.deserializeAws_queryGetEndpointAttributesCommand = exports.deserializeAws_queryDeleteTopicCommand = void 0;
|
|
3
|
+
exports.deserializeAws_queryDeleteEndpointCommand = exports.deserializeAws_queryCreateTopicCommand = exports.deserializeAws_queryCreateSMSSandboxPhoneNumberCommand = exports.deserializeAws_queryCreatePlatformEndpointCommand = exports.deserializeAws_queryCreatePlatformApplicationCommand = exports.deserializeAws_queryConfirmSubscriptionCommand = exports.deserializeAws_queryCheckIfPhoneNumberIsOptedOutCommand = exports.deserializeAws_queryAddPermissionCommand = exports.serializeAws_queryVerifySMSSandboxPhoneNumberCommand = exports.serializeAws_queryUntagResourceCommand = exports.serializeAws_queryUnsubscribeCommand = exports.serializeAws_queryTagResourceCommand = exports.serializeAws_querySubscribeCommand = exports.serializeAws_querySetTopicAttributesCommand = exports.serializeAws_querySetSubscriptionAttributesCommand = exports.serializeAws_querySetSMSAttributesCommand = exports.serializeAws_querySetPlatformApplicationAttributesCommand = exports.serializeAws_querySetEndpointAttributesCommand = exports.serializeAws_queryRemovePermissionCommand = exports.serializeAws_queryPutDataProtectionPolicyCommand = exports.serializeAws_queryPublishBatchCommand = exports.serializeAws_queryPublishCommand = exports.serializeAws_queryOptInPhoneNumberCommand = exports.serializeAws_queryListTopicsCommand = exports.serializeAws_queryListTagsForResourceCommand = exports.serializeAws_queryListSubscriptionsByTopicCommand = exports.serializeAws_queryListSubscriptionsCommand = exports.serializeAws_queryListSMSSandboxPhoneNumbersCommand = exports.serializeAws_queryListPlatformApplicationsCommand = exports.serializeAws_queryListPhoneNumbersOptedOutCommand = exports.serializeAws_queryListOriginationNumbersCommand = exports.serializeAws_queryListEndpointsByPlatformApplicationCommand = exports.serializeAws_queryGetTopicAttributesCommand = exports.serializeAws_queryGetSubscriptionAttributesCommand = exports.serializeAws_queryGetSMSSandboxAccountStatusCommand = exports.serializeAws_queryGetSMSAttributesCommand = exports.serializeAws_queryGetPlatformApplicationAttributesCommand = exports.serializeAws_queryGetEndpointAttributesCommand = exports.serializeAws_queryGetDataProtectionPolicyCommand = exports.serializeAws_queryDeleteTopicCommand = exports.serializeAws_queryDeleteSMSSandboxPhoneNumberCommand = exports.serializeAws_queryDeletePlatformApplicationCommand = exports.serializeAws_queryDeleteEndpointCommand = exports.serializeAws_queryCreateTopicCommand = exports.serializeAws_queryCreateSMSSandboxPhoneNumberCommand = exports.serializeAws_queryCreatePlatformEndpointCommand = exports.serializeAws_queryCreatePlatformApplicationCommand = exports.serializeAws_queryConfirmSubscriptionCommand = exports.serializeAws_queryCheckIfPhoneNumberIsOptedOutCommand = exports.serializeAws_queryAddPermissionCommand = void 0;
|
|
4
|
+
exports.deserializeAws_queryVerifySMSSandboxPhoneNumberCommand = exports.deserializeAws_queryUntagResourceCommand = exports.deserializeAws_queryUnsubscribeCommand = exports.deserializeAws_queryTagResourceCommand = exports.deserializeAws_querySubscribeCommand = exports.deserializeAws_querySetTopicAttributesCommand = exports.deserializeAws_querySetSubscriptionAttributesCommand = exports.deserializeAws_querySetSMSAttributesCommand = exports.deserializeAws_querySetPlatformApplicationAttributesCommand = exports.deserializeAws_querySetEndpointAttributesCommand = exports.deserializeAws_queryRemovePermissionCommand = exports.deserializeAws_queryPutDataProtectionPolicyCommand = exports.deserializeAws_queryPublishBatchCommand = exports.deserializeAws_queryPublishCommand = exports.deserializeAws_queryOptInPhoneNumberCommand = exports.deserializeAws_queryListTopicsCommand = exports.deserializeAws_queryListTagsForResourceCommand = exports.deserializeAws_queryListSubscriptionsByTopicCommand = exports.deserializeAws_queryListSubscriptionsCommand = exports.deserializeAws_queryListSMSSandboxPhoneNumbersCommand = exports.deserializeAws_queryListPlatformApplicationsCommand = exports.deserializeAws_queryListPhoneNumbersOptedOutCommand = exports.deserializeAws_queryListOriginationNumbersCommand = exports.deserializeAws_queryListEndpointsByPlatformApplicationCommand = exports.deserializeAws_queryGetTopicAttributesCommand = exports.deserializeAws_queryGetSubscriptionAttributesCommand = exports.deserializeAws_queryGetSMSSandboxAccountStatusCommand = exports.deserializeAws_queryGetSMSAttributesCommand = exports.deserializeAws_queryGetPlatformApplicationAttributesCommand = exports.deserializeAws_queryGetEndpointAttributesCommand = exports.deserializeAws_queryGetDataProtectionPolicyCommand = exports.deserializeAws_queryDeleteTopicCommand = exports.deserializeAws_queryDeleteSMSSandboxPhoneNumberCommand = exports.deserializeAws_queryDeletePlatformApplicationCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const entities_1 = require("entities");
|
|
@@ -151,6 +151,19 @@ const serializeAws_queryDeleteTopicCommand = async (input, context) => {
|
|
|
151
151
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
152
152
|
};
|
|
153
153
|
exports.serializeAws_queryDeleteTopicCommand = serializeAws_queryDeleteTopicCommand;
|
|
154
|
+
const serializeAws_queryGetDataProtectionPolicyCommand = async (input, context) => {
|
|
155
|
+
const headers = {
|
|
156
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
157
|
+
};
|
|
158
|
+
let body;
|
|
159
|
+
body = buildFormUrlencodedString({
|
|
160
|
+
...serializeAws_queryGetDataProtectionPolicyInput(input, context),
|
|
161
|
+
Action: "GetDataProtectionPolicy",
|
|
162
|
+
Version: "2010-03-31",
|
|
163
|
+
});
|
|
164
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
165
|
+
};
|
|
166
|
+
exports.serializeAws_queryGetDataProtectionPolicyCommand = serializeAws_queryGetDataProtectionPolicyCommand;
|
|
154
167
|
const serializeAws_queryGetEndpointAttributesCommand = async (input, context) => {
|
|
155
168
|
const headers = {
|
|
156
169
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -385,6 +398,19 @@ const serializeAws_queryPublishBatchCommand = async (input, context) => {
|
|
|
385
398
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
386
399
|
};
|
|
387
400
|
exports.serializeAws_queryPublishBatchCommand = serializeAws_queryPublishBatchCommand;
|
|
401
|
+
const serializeAws_queryPutDataProtectionPolicyCommand = async (input, context) => {
|
|
402
|
+
const headers = {
|
|
403
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
404
|
+
};
|
|
405
|
+
let body;
|
|
406
|
+
body = buildFormUrlencodedString({
|
|
407
|
+
...serializeAws_queryPutDataProtectionPolicyInput(input, context),
|
|
408
|
+
Action: "PutDataProtectionPolicy",
|
|
409
|
+
Version: "2010-03-31",
|
|
410
|
+
});
|
|
411
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
412
|
+
};
|
|
413
|
+
exports.serializeAws_queryPutDataProtectionPolicyCommand = serializeAws_queryPutDataProtectionPolicyCommand;
|
|
388
414
|
const serializeAws_queryRemovePermissionCommand = async (input, context) => {
|
|
389
415
|
const headers = {
|
|
390
416
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -1022,6 +1048,52 @@ const deserializeAws_queryDeleteTopicCommandError = async (output, context) => {
|
|
|
1022
1048
|
});
|
|
1023
1049
|
}
|
|
1024
1050
|
};
|
|
1051
|
+
const deserializeAws_queryGetDataProtectionPolicyCommand = async (output, context) => {
|
|
1052
|
+
if (output.statusCode >= 300) {
|
|
1053
|
+
return deserializeAws_queryGetDataProtectionPolicyCommandError(output, context);
|
|
1054
|
+
}
|
|
1055
|
+
const data = await parseBody(output.body, context);
|
|
1056
|
+
let contents = {};
|
|
1057
|
+
contents = deserializeAws_queryGetDataProtectionPolicyResponse(data.GetDataProtectionPolicyResult, context);
|
|
1058
|
+
const response = {
|
|
1059
|
+
$metadata: deserializeMetadata(output),
|
|
1060
|
+
...contents,
|
|
1061
|
+
};
|
|
1062
|
+
return Promise.resolve(response);
|
|
1063
|
+
};
|
|
1064
|
+
exports.deserializeAws_queryGetDataProtectionPolicyCommand = deserializeAws_queryGetDataProtectionPolicyCommand;
|
|
1065
|
+
const deserializeAws_queryGetDataProtectionPolicyCommandError = async (output, context) => {
|
|
1066
|
+
const parsedOutput = {
|
|
1067
|
+
...output,
|
|
1068
|
+
body: await parseBody(output.body, context),
|
|
1069
|
+
};
|
|
1070
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1071
|
+
switch (errorCode) {
|
|
1072
|
+
case "AuthorizationErrorException":
|
|
1073
|
+
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1074
|
+
throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
1075
|
+
case "InternalErrorException":
|
|
1076
|
+
case "com.amazonaws.sns#InternalErrorException":
|
|
1077
|
+
throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
|
|
1078
|
+
case "InvalidParameterException":
|
|
1079
|
+
case "com.amazonaws.sns#InvalidParameterException":
|
|
1080
|
+
throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
|
|
1081
|
+
case "InvalidSecurityException":
|
|
1082
|
+
case "com.amazonaws.sns#InvalidSecurityException":
|
|
1083
|
+
throw await deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context);
|
|
1084
|
+
case "NotFoundException":
|
|
1085
|
+
case "com.amazonaws.sns#NotFoundException":
|
|
1086
|
+
throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
|
|
1087
|
+
default:
|
|
1088
|
+
const parsedBody = parsedOutput.body;
|
|
1089
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1090
|
+
output,
|
|
1091
|
+
parsedBody: parsedBody.Error,
|
|
1092
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1093
|
+
errorCode,
|
|
1094
|
+
});
|
|
1095
|
+
}
|
|
1096
|
+
};
|
|
1025
1097
|
const deserializeAws_queryGetEndpointAttributesCommand = async (output, context) => {
|
|
1026
1098
|
if (output.statusCode >= 300) {
|
|
1027
1099
|
return deserializeAws_queryGetEndpointAttributesCommandError(output, context);
|
|
@@ -1773,6 +1845,9 @@ const deserializeAws_queryPublishCommandError = async (output, context) => {
|
|
|
1773
1845
|
case "PlatformApplicationDisabledException":
|
|
1774
1846
|
case "com.amazonaws.sns#PlatformApplicationDisabledException":
|
|
1775
1847
|
throw await deserializeAws_queryPlatformApplicationDisabledExceptionResponse(parsedOutput, context);
|
|
1848
|
+
case "ValidationException":
|
|
1849
|
+
case "com.amazonaws.sns#ValidationException":
|
|
1850
|
+
throw await deserializeAws_queryValidationExceptionResponse(parsedOutput, context);
|
|
1776
1851
|
default:
|
|
1777
1852
|
const parsedBody = parsedOutput.body;
|
|
1778
1853
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1861,6 +1936,52 @@ const deserializeAws_queryPublishBatchCommandError = async (output, context) =>
|
|
|
1861
1936
|
case "TooManyEntriesInBatchRequestException":
|
|
1862
1937
|
case "com.amazonaws.sns#TooManyEntriesInBatchRequestException":
|
|
1863
1938
|
throw await deserializeAws_queryTooManyEntriesInBatchRequestExceptionResponse(parsedOutput, context);
|
|
1939
|
+
case "ValidationException":
|
|
1940
|
+
case "com.amazonaws.sns#ValidationException":
|
|
1941
|
+
throw await deserializeAws_queryValidationExceptionResponse(parsedOutput, context);
|
|
1942
|
+
default:
|
|
1943
|
+
const parsedBody = parsedOutput.body;
|
|
1944
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1945
|
+
output,
|
|
1946
|
+
parsedBody: parsedBody.Error,
|
|
1947
|
+
exceptionCtor: SNSServiceException_1.SNSServiceException,
|
|
1948
|
+
errorCode,
|
|
1949
|
+
});
|
|
1950
|
+
}
|
|
1951
|
+
};
|
|
1952
|
+
const deserializeAws_queryPutDataProtectionPolicyCommand = async (output, context) => {
|
|
1953
|
+
if (output.statusCode >= 300) {
|
|
1954
|
+
return deserializeAws_queryPutDataProtectionPolicyCommandError(output, context);
|
|
1955
|
+
}
|
|
1956
|
+
await collectBody(output.body, context);
|
|
1957
|
+
const response = {
|
|
1958
|
+
$metadata: deserializeMetadata(output),
|
|
1959
|
+
};
|
|
1960
|
+
return Promise.resolve(response);
|
|
1961
|
+
};
|
|
1962
|
+
exports.deserializeAws_queryPutDataProtectionPolicyCommand = deserializeAws_queryPutDataProtectionPolicyCommand;
|
|
1963
|
+
const deserializeAws_queryPutDataProtectionPolicyCommandError = async (output, context) => {
|
|
1964
|
+
const parsedOutput = {
|
|
1965
|
+
...output,
|
|
1966
|
+
body: await parseBody(output.body, context),
|
|
1967
|
+
};
|
|
1968
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1969
|
+
switch (errorCode) {
|
|
1970
|
+
case "AuthorizationErrorException":
|
|
1971
|
+
case "com.amazonaws.sns#AuthorizationErrorException":
|
|
1972
|
+
throw await deserializeAws_queryAuthorizationErrorExceptionResponse(parsedOutput, context);
|
|
1973
|
+
case "InternalErrorException":
|
|
1974
|
+
case "com.amazonaws.sns#InternalErrorException":
|
|
1975
|
+
throw await deserializeAws_queryInternalErrorExceptionResponse(parsedOutput, context);
|
|
1976
|
+
case "InvalidParameterException":
|
|
1977
|
+
case "com.amazonaws.sns#InvalidParameterException":
|
|
1978
|
+
throw await deserializeAws_queryInvalidParameterExceptionResponse(parsedOutput, context);
|
|
1979
|
+
case "InvalidSecurityException":
|
|
1980
|
+
case "com.amazonaws.sns#InvalidSecurityException":
|
|
1981
|
+
throw await deserializeAws_queryInvalidSecurityExceptionResponse(parsedOutput, context);
|
|
1982
|
+
case "NotFoundException":
|
|
1983
|
+
case "com.amazonaws.sns#NotFoundException":
|
|
1984
|
+
throw await deserializeAws_queryNotFoundExceptionResponse(parsedOutput, context);
|
|
1864
1985
|
default:
|
|
1865
1986
|
const parsedBody = parsedOutput.body;
|
|
1866
1987
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2778,6 +2899,9 @@ const serializeAws_queryCreateTopicInput = (input, context) => {
|
|
|
2778
2899
|
entries[loc] = value;
|
|
2779
2900
|
});
|
|
2780
2901
|
}
|
|
2902
|
+
if (input.DataProtectionPolicy != null) {
|
|
2903
|
+
entries["DataProtectionPolicy"] = input.DataProtectionPolicy;
|
|
2904
|
+
}
|
|
2781
2905
|
return entries;
|
|
2782
2906
|
};
|
|
2783
2907
|
const serializeAws_queryDelegatesList = (input, context) => {
|
|
@@ -2820,6 +2944,13 @@ const serializeAws_queryDeleteTopicInput = (input, context) => {
|
|
|
2820
2944
|
}
|
|
2821
2945
|
return entries;
|
|
2822
2946
|
};
|
|
2947
|
+
const serializeAws_queryGetDataProtectionPolicyInput = (input, context) => {
|
|
2948
|
+
const entries = {};
|
|
2949
|
+
if (input.ResourceArn != null) {
|
|
2950
|
+
entries["ResourceArn"] = input.ResourceArn;
|
|
2951
|
+
}
|
|
2952
|
+
return entries;
|
|
2953
|
+
};
|
|
2823
2954
|
const serializeAws_queryGetEndpointAttributesInput = (input, context) => {
|
|
2824
2955
|
const entries = {};
|
|
2825
2956
|
if (input.EndpointArn != null) {
|
|
@@ -3090,6 +3221,16 @@ const serializeAws_queryPublishInput = (input, context) => {
|
|
|
3090
3221
|
}
|
|
3091
3222
|
return entries;
|
|
3092
3223
|
};
|
|
3224
|
+
const serializeAws_queryPutDataProtectionPolicyInput = (input, context) => {
|
|
3225
|
+
const entries = {};
|
|
3226
|
+
if (input.ResourceArn != null) {
|
|
3227
|
+
entries["ResourceArn"] = input.ResourceArn;
|
|
3228
|
+
}
|
|
3229
|
+
if (input.DataProtectionPolicy != null) {
|
|
3230
|
+
entries["DataProtectionPolicy"] = input.DataProtectionPolicy;
|
|
3231
|
+
}
|
|
3232
|
+
return entries;
|
|
3233
|
+
};
|
|
3093
3234
|
const serializeAws_queryRemovePermissionInput = (input, context) => {
|
|
3094
3235
|
const entries = {};
|
|
3095
3236
|
if (input.TopicArn != null) {
|
|
@@ -3454,6 +3595,15 @@ const deserializeAws_queryFilterPolicyLimitExceededException = (output, context)
|
|
|
3454
3595
|
}
|
|
3455
3596
|
return contents;
|
|
3456
3597
|
};
|
|
3598
|
+
const deserializeAws_queryGetDataProtectionPolicyResponse = (output, context) => {
|
|
3599
|
+
const contents = {
|
|
3600
|
+
DataProtectionPolicy: undefined,
|
|
3601
|
+
};
|
|
3602
|
+
if (output["DataProtectionPolicy"] !== undefined) {
|
|
3603
|
+
contents.DataProtectionPolicy = (0, smithy_client_1.expectString)(output["DataProtectionPolicy"]);
|
|
3604
|
+
}
|
|
3605
|
+
return contents;
|
|
3606
|
+
};
|
|
3457
3607
|
const deserializeAws_queryGetEndpointAttributesResponse = (output, context) => {
|
|
3458
3608
|
const contents = {
|
|
3459
3609
|
Attributes: undefined,
|
package/dist-es/SNS.js
CHANGED
|
@@ -10,6 +10,7 @@ import { DeleteEndpointCommand, } from "./commands/DeleteEndpointCommand";
|
|
|
10
10
|
import { DeletePlatformApplicationCommand, } from "./commands/DeletePlatformApplicationCommand";
|
|
11
11
|
import { DeleteSMSSandboxPhoneNumberCommand, } from "./commands/DeleteSMSSandboxPhoneNumberCommand";
|
|
12
12
|
import { DeleteTopicCommand } from "./commands/DeleteTopicCommand";
|
|
13
|
+
import { GetDataProtectionPolicyCommand, } from "./commands/GetDataProtectionPolicyCommand";
|
|
13
14
|
import { GetEndpointAttributesCommand, } from "./commands/GetEndpointAttributesCommand";
|
|
14
15
|
import { GetPlatformApplicationAttributesCommand, } from "./commands/GetPlatformApplicationAttributesCommand";
|
|
15
16
|
import { GetSMSAttributesCommand, } from "./commands/GetSMSAttributesCommand";
|
|
@@ -28,6 +29,7 @@ import { ListTopicsCommand } from "./commands/ListTopicsCommand";
|
|
|
28
29
|
import { OptInPhoneNumberCommand, } from "./commands/OptInPhoneNumberCommand";
|
|
29
30
|
import { PublishBatchCommand, } from "./commands/PublishBatchCommand";
|
|
30
31
|
import { PublishCommand } from "./commands/PublishCommand";
|
|
32
|
+
import { PutDataProtectionPolicyCommand, } from "./commands/PutDataProtectionPolicyCommand";
|
|
31
33
|
import { RemovePermissionCommand, } from "./commands/RemovePermissionCommand";
|
|
32
34
|
import { SetEndpointAttributesCommand, } from "./commands/SetEndpointAttributesCommand";
|
|
33
35
|
import { SetPlatformApplicationAttributesCommand, } from "./commands/SetPlatformApplicationAttributesCommand";
|
|
@@ -199,6 +201,20 @@ var SNS = (function (_super) {
|
|
|
199
201
|
return this.send(command, optionsOrCb);
|
|
200
202
|
}
|
|
201
203
|
};
|
|
204
|
+
SNS.prototype.getDataProtectionPolicy = function (args, optionsOrCb, cb) {
|
|
205
|
+
var command = new GetDataProtectionPolicyCommand(args);
|
|
206
|
+
if (typeof optionsOrCb === "function") {
|
|
207
|
+
this.send(command, optionsOrCb);
|
|
208
|
+
}
|
|
209
|
+
else if (typeof cb === "function") {
|
|
210
|
+
if (typeof optionsOrCb !== "object")
|
|
211
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
212
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
return this.send(command, optionsOrCb);
|
|
216
|
+
}
|
|
217
|
+
};
|
|
202
218
|
SNS.prototype.getEndpointAttributes = function (args, optionsOrCb, cb) {
|
|
203
219
|
var command = new GetEndpointAttributesCommand(args);
|
|
204
220
|
if (typeof optionsOrCb === "function") {
|
|
@@ -451,6 +467,20 @@ var SNS = (function (_super) {
|
|
|
451
467
|
return this.send(command, optionsOrCb);
|
|
452
468
|
}
|
|
453
469
|
};
|
|
470
|
+
SNS.prototype.putDataProtectionPolicy = function (args, optionsOrCb, cb) {
|
|
471
|
+
var command = new PutDataProtectionPolicyCommand(args);
|
|
472
|
+
if (typeof optionsOrCb === "function") {
|
|
473
|
+
this.send(command, optionsOrCb);
|
|
474
|
+
}
|
|
475
|
+
else if (typeof cb === "function") {
|
|
476
|
+
if (typeof optionsOrCb !== "object")
|
|
477
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
478
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
479
|
+
}
|
|
480
|
+
else {
|
|
481
|
+
return this.send(command, optionsOrCb);
|
|
482
|
+
}
|
|
483
|
+
};
|
|
454
484
|
SNS.prototype.removePermission = function (args, optionsOrCb, cb) {
|
|
455
485
|
var command = new RemovePermissionCommand(args);
|
|
456
486
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetDataProtectionPolicyInputFilterSensitiveLog, GetDataProtectionPolicyResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_queryGetDataProtectionPolicyCommand, serializeAws_queryGetDataProtectionPolicyCommand, } from "../protocols/Aws_query";
|
|
6
|
+
var GetDataProtectionPolicyCommand = (function (_super) {
|
|
7
|
+
__extends(GetDataProtectionPolicyCommand, _super);
|
|
8
|
+
function GetDataProtectionPolicyCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetDataProtectionPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "SNSClient";
|
|
18
|
+
var commandName = "GetDataProtectionPolicyCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetDataProtectionPolicyInputFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetDataProtectionPolicyResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetDataProtectionPolicyCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_queryGetDataProtectionPolicyCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetDataProtectionPolicyCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_queryGetDataProtectionPolicyCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetDataProtectionPolicyCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetDataProtectionPolicyCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { PutDataProtectionPolicyInputFilterSensitiveLog } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_queryPutDataProtectionPolicyCommand, serializeAws_queryPutDataProtectionPolicyCommand, } from "../protocols/Aws_query";
|
|
6
|
+
var PutDataProtectionPolicyCommand = (function (_super) {
|
|
7
|
+
__extends(PutDataProtectionPolicyCommand, _super);
|
|
8
|
+
function PutDataProtectionPolicyCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
PutDataProtectionPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "SNSClient";
|
|
18
|
+
var commandName = "PutDataProtectionPolicyCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: PutDataProtectionPolicyInputFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
PutDataProtectionPolicyCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_queryPutDataProtectionPolicyCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
PutDataProtectionPolicyCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_queryPutDataProtectionPolicyCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return PutDataProtectionPolicyCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { PutDataProtectionPolicyCommand };
|
|
@@ -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";
|
|
@@ -439,6 +439,8 @@ export var DeletePlatformApplicationInputFilterSensitiveLog = function (obj) { r
|
|
|
439
439
|
export var DeleteSMSSandboxPhoneNumberInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
440
440
|
export var DeleteSMSSandboxPhoneNumberResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
441
441
|
export var DeleteTopicInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
442
|
+
export var GetDataProtectionPolicyInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
443
|
+
export var GetDataProtectionPolicyResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
442
444
|
export var GetEndpointAttributesInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
443
445
|
export var GetEndpointAttributesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
444
446
|
export var GetPlatformApplicationAttributesInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -485,6 +487,7 @@ export var PublishBatchInputFilterSensitiveLog = function (obj) { return (__assi
|
|
|
485
487
|
export var BatchResultErrorEntryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
486
488
|
export var PublishBatchResultEntryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
487
489
|
export var PublishBatchResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
490
|
+
export var PutDataProtectionPolicyInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
488
491
|
export var RemovePermissionInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
489
492
|
export var SetEndpointAttributesInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
490
493
|
export var SetPlatformApplicationAttributesInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|