@aws-sdk/client-sns 3.1045.0 → 3.1047.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/auth/httpAuthSchemeProvider.js +4 -4
- package/dist-cjs/endpoint/bdd.js +2 -2
- package/dist-cjs/endpoint/endpointResolver.js +4 -4
- package/dist-cjs/index.js +100 -101
- package/dist-cjs/models/SNSServiceException.js +3 -3
- package/dist-cjs/runtimeConfig.browser.js +12 -14
- package/dist-cjs/runtimeConfig.js +18 -22
- package/dist-cjs/runtimeConfig.shared.js +9 -10
- package/dist-es/SNS.js +1 -1
- package/dist-es/SNSClient.js +5 -5
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/commands/AddPermissionCommand.js +2 -2
- package/dist-es/commands/CheckIfPhoneNumberIsOptedOutCommand.js +2 -2
- package/dist-es/commands/ConfirmSubscriptionCommand.js +2 -2
- package/dist-es/commands/CreatePlatformApplicationCommand.js +2 -2
- package/dist-es/commands/CreatePlatformEndpointCommand.js +2 -2
- package/dist-es/commands/CreateSMSSandboxPhoneNumberCommand.js +2 -2
- package/dist-es/commands/CreateTopicCommand.js +2 -2
- package/dist-es/commands/DeleteEndpointCommand.js +2 -2
- package/dist-es/commands/DeletePlatformApplicationCommand.js +2 -2
- package/dist-es/commands/DeleteSMSSandboxPhoneNumberCommand.js +2 -2
- package/dist-es/commands/DeleteTopicCommand.js +2 -2
- package/dist-es/commands/GetDataProtectionPolicyCommand.js +2 -2
- package/dist-es/commands/GetEndpointAttributesCommand.js +2 -2
- package/dist-es/commands/GetPlatformApplicationAttributesCommand.js +2 -2
- package/dist-es/commands/GetSMSAttributesCommand.js +2 -2
- package/dist-es/commands/GetSMSSandboxAccountStatusCommand.js +2 -2
- package/dist-es/commands/GetSubscriptionAttributesCommand.js +2 -2
- package/dist-es/commands/GetTopicAttributesCommand.js +2 -2
- package/dist-es/commands/ListEndpointsByPlatformApplicationCommand.js +2 -2
- package/dist-es/commands/ListOriginationNumbersCommand.js +2 -2
- package/dist-es/commands/ListPhoneNumbersOptedOutCommand.js +2 -2
- package/dist-es/commands/ListPlatformApplicationsCommand.js +2 -2
- package/dist-es/commands/ListSMSSandboxPhoneNumbersCommand.js +2 -2
- package/dist-es/commands/ListSubscriptionsByTopicCommand.js +2 -2
- package/dist-es/commands/ListSubscriptionsCommand.js +2 -2
- package/dist-es/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-es/commands/ListTopicsCommand.js +2 -2
- package/dist-es/commands/OptInPhoneNumberCommand.js +2 -2
- package/dist-es/commands/PublishBatchCommand.js +2 -2
- package/dist-es/commands/PublishCommand.js +2 -2
- package/dist-es/commands/PutDataProtectionPolicyCommand.js +2 -2
- package/dist-es/commands/RemovePermissionCommand.js +2 -2
- package/dist-es/commands/SetEndpointAttributesCommand.js +2 -2
- package/dist-es/commands/SetPlatformApplicationAttributesCommand.js +2 -2
- package/dist-es/commands/SetSMSAttributesCommand.js +2 -2
- package/dist-es/commands/SetSubscriptionAttributesCommand.js +2 -2
- package/dist-es/commands/SetTopicAttributesCommand.js +2 -2
- package/dist-es/commands/SubscribeCommand.js +2 -2
- package/dist-es/commands/TagResourceCommand.js +2 -2
- package/dist-es/commands/UnsubscribeCommand.js +2 -2
- package/dist-es/commands/UntagResourceCommand.js +2 -2
- package/dist-es/commands/VerifySMSSandboxPhoneNumberCommand.js +2 -2
- package/dist-es/endpoint/bdd.js +1 -1
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/models/SNSServiceException.js +1 -1
- package/dist-es/runtimeConfig.browser.js +4 -6
- package/dist-es/runtimeConfig.js +4 -8
- package/dist-es/runtimeConfig.shared.js +3 -4
- package/dist-es/runtimeExtensions.js +2 -2
- package/dist-types/SNSClient.d.ts +5 -5
- package/dist-types/commands/AddPermissionCommand.d.ts +6 -4
- package/dist-types/commands/CheckIfPhoneNumberIsOptedOutCommand.d.ts +6 -4
- package/dist-types/commands/ConfirmSubscriptionCommand.d.ts +6 -4
- package/dist-types/commands/CreatePlatformApplicationCommand.d.ts +6 -4
- package/dist-types/commands/CreatePlatformEndpointCommand.d.ts +6 -4
- package/dist-types/commands/CreateSMSSandboxPhoneNumberCommand.d.ts +6 -4
- package/dist-types/commands/CreateTopicCommand.d.ts +6 -4
- package/dist-types/commands/DeleteEndpointCommand.d.ts +6 -4
- package/dist-types/commands/DeletePlatformApplicationCommand.d.ts +6 -4
- package/dist-types/commands/DeleteSMSSandboxPhoneNumberCommand.d.ts +6 -4
- package/dist-types/commands/DeleteTopicCommand.d.ts +6 -4
- package/dist-types/commands/GetDataProtectionPolicyCommand.d.ts +6 -4
- package/dist-types/commands/GetEndpointAttributesCommand.d.ts +6 -4
- package/dist-types/commands/GetPlatformApplicationAttributesCommand.d.ts +6 -4
- package/dist-types/commands/GetSMSAttributesCommand.d.ts +6 -4
- package/dist-types/commands/GetSMSSandboxAccountStatusCommand.d.ts +6 -4
- package/dist-types/commands/GetSubscriptionAttributesCommand.d.ts +6 -4
- package/dist-types/commands/GetTopicAttributesCommand.d.ts +6 -4
- package/dist-types/commands/ListEndpointsByPlatformApplicationCommand.d.ts +6 -4
- package/dist-types/commands/ListOriginationNumbersCommand.d.ts +6 -4
- package/dist-types/commands/ListPhoneNumbersOptedOutCommand.d.ts +6 -4
- package/dist-types/commands/ListPlatformApplicationsCommand.d.ts +6 -4
- package/dist-types/commands/ListSMSSandboxPhoneNumbersCommand.d.ts +6 -4
- package/dist-types/commands/ListSubscriptionsByTopicCommand.d.ts +6 -4
- package/dist-types/commands/ListSubscriptionsCommand.d.ts +6 -4
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -4
- package/dist-types/commands/ListTopicsCommand.d.ts +6 -4
- package/dist-types/commands/OptInPhoneNumberCommand.d.ts +6 -4
- package/dist-types/commands/PublishBatchCommand.d.ts +6 -4
- package/dist-types/commands/PublishCommand.d.ts +6 -4
- package/dist-types/commands/PutDataProtectionPolicyCommand.d.ts +6 -4
- package/dist-types/commands/RemovePermissionCommand.d.ts +6 -4
- package/dist-types/commands/SetEndpointAttributesCommand.d.ts +6 -4
- package/dist-types/commands/SetPlatformApplicationAttributesCommand.d.ts +6 -4
- package/dist-types/commands/SetSMSAttributesCommand.d.ts +6 -4
- package/dist-types/commands/SetSubscriptionAttributesCommand.d.ts +6 -4
- package/dist-types/commands/SetTopicAttributesCommand.d.ts +6 -4
- package/dist-types/commands/SubscribeCommand.d.ts +6 -4
- package/dist-types/commands/TagResourceCommand.d.ts +6 -4
- package/dist-types/commands/UnsubscribeCommand.d.ts +6 -4
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -4
- package/dist-types/commands/VerifySMSSandboxPhoneNumberCommand.d.ts +6 -4
- package/dist-types/endpoint/bdd.d.ts +1 -1
- package/dist-types/extensionConfiguration.d.ts +1 -1
- package/dist-types/models/SNSServiceException.d.ts +1 -1
- package/dist-types/models/errors.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/SNSClient.d.ts +8 -14
- package/dist-types/ts3.4/commands/AddPermissionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CheckIfPhoneNumberIsOptedOutCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ConfirmSubscriptionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreatePlatformApplicationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreatePlatformEndpointCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateSMSSandboxPhoneNumberCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateTopicCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteEndpointCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeletePlatformApplicationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteSMSSandboxPhoneNumberCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteTopicCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetDataProtectionPolicyCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetEndpointAttributesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetPlatformApplicationAttributesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetSMSAttributesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetSMSSandboxAccountStatusCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetSubscriptionAttributesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetTopicAttributesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListEndpointsByPlatformApplicationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListOriginationNumbersCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListPhoneNumbersOptedOutCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListPlatformApplicationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListSMSSandboxPhoneNumbersCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListSubscriptionsByTopicCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListSubscriptionsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListTopicsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/OptInPhoneNumberCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/PublishBatchCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/PublishCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/PutDataProtectionPolicyCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/RemovePermissionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/SetEndpointAttributesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/SetPlatformApplicationAttributesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/SetSMSAttributesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/SetSubscriptionAttributesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/SetTopicAttributesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/SubscribeCommand.d.ts +6 -8
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UnsubscribeCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/VerifySMSSandboxPhoneNumberCommand.d.ts +6 -4
- package/dist-types/ts3.4/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/models/SNSServiceException.d.ts +1 -1
- package/dist-types/ts3.4/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +13 -34
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveHttpAuthSchemeConfig = exports.defaultSNSHttpAuthSchemeProvider = exports.defaultSNSHttpAuthSchemeParametersProvider = void 0;
|
|
4
4
|
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const
|
|
5
|
+
const client_1 = require("@smithy/core/client");
|
|
6
6
|
const defaultSNSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
7
|
return {
|
|
8
|
-
operation: (0,
|
|
9
|
-
region: await (0,
|
|
8
|
+
operation: (0, client_1.getSmithyContext)(context).operation,
|
|
9
|
+
region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
|
|
10
10
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
11
|
})(),
|
|
12
12
|
};
|
|
@@ -40,7 +40,7 @@ exports.defaultSNSHttpAuthSchemeProvider = defaultSNSHttpAuthSchemeProvider;
|
|
|
40
40
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
41
41
|
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
42
42
|
return Object.assign(config_0, {
|
|
43
|
-
authSchemePreference: (0,
|
|
43
|
+
authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.bdd = void 0;
|
|
4
|
-
const
|
|
4
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
5
5
|
const m = "ref";
|
|
6
6
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { [m]: "Region" }, k = {}, l = [j];
|
|
7
7
|
const _data = {
|
|
@@ -52,4 +52,4 @@ const nodes = new Int32Array([
|
|
|
52
52
|
3, r + 1, 15,
|
|
53
53
|
4, r + 2, r + 3,
|
|
54
54
|
]);
|
|
55
|
-
exports.bdd =
|
|
55
|
+
exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultEndpointResolver = void 0;
|
|
4
4
|
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
|
-
const
|
|
5
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
6
|
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new
|
|
7
|
+
const cache = new endpoints_1.EndpointCache({
|
|
8
8
|
size: 50,
|
|
9
9
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
10
|
});
|
|
11
11
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
12
|
-
return cache.get(endpointParams, () => (0,
|
|
12
|
+
return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
|
|
13
13
|
endpointParams: endpointParams,
|
|
14
14
|
logger: context.logger,
|
|
15
15
|
}));
|
|
16
16
|
};
|
|
17
17
|
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
18
|
-
|
|
18
|
+
endpoints_1.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|