@aws-sdk/client-notifications 3.698.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/LICENSE +201 -0
- package/README.md +380 -0
- package/dist-cjs/Notifications.js +53 -0
- package/dist-cjs/NotificationsClient.js +50 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/AssociateChannelCommand.js +26 -0
- package/dist-cjs/commands/CreateEventRuleCommand.js +26 -0
- package/dist-cjs/commands/CreateNotificationConfigurationCommand.js +26 -0
- package/dist-cjs/commands/DeleteEventRuleCommand.js +26 -0
- package/dist-cjs/commands/DeleteNotificationConfigurationCommand.js +26 -0
- package/dist-cjs/commands/DeregisterNotificationHubCommand.js +26 -0
- package/dist-cjs/commands/DisassociateChannelCommand.js +26 -0
- package/dist-cjs/commands/GetEventRuleCommand.js +26 -0
- package/dist-cjs/commands/GetNotificationConfigurationCommand.js +26 -0
- package/dist-cjs/commands/GetNotificationEventCommand.js +26 -0
- package/dist-cjs/commands/ListChannelsCommand.js +26 -0
- package/dist-cjs/commands/ListEventRulesCommand.js +26 -0
- package/dist-cjs/commands/ListNotificationConfigurationsCommand.js +26 -0
- package/dist-cjs/commands/ListNotificationEventsCommand.js +26 -0
- package/dist-cjs/commands/ListNotificationHubsCommand.js +26 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +26 -0
- package/dist-cjs/commands/RegisterNotificationHubCommand.js +26 -0
- package/dist-cjs/commands/TagResourceCommand.js +26 -0
- package/dist-cjs/commands/UntagResourceCommand.js +26 -0
- package/dist-cjs/commands/UpdateEventRuleCommand.js +26 -0
- package/dist-cjs/commands/UpdateNotificationConfigurationCommand.js +26 -0
- package/dist-cjs/commands/index.js +24 -0
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/NotificationsServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +181 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListChannelsPaginator.js +7 -0
- package/dist-cjs/pagination/ListEventRulesPaginator.js +7 -0
- package/dist-cjs/pagination/ListNotificationConfigurationsPaginator.js +7 -0
- package/dist-cjs/pagination/ListNotificationEventsPaginator.js +7 -0
- package/dist-cjs/pagination/ListNotificationHubsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +9 -0
- package/dist-cjs/protocols/Aws_restJson1.js +885 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +25 -0
- package/dist-es/Notifications.js +49 -0
- package/dist-es/NotificationsClient.js +46 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/AssociateChannelCommand.js +22 -0
- package/dist-es/commands/CreateEventRuleCommand.js +22 -0
- package/dist-es/commands/CreateNotificationConfigurationCommand.js +22 -0
- package/dist-es/commands/DeleteEventRuleCommand.js +22 -0
- package/dist-es/commands/DeleteNotificationConfigurationCommand.js +22 -0
- package/dist-es/commands/DeregisterNotificationHubCommand.js +22 -0
- package/dist-es/commands/DisassociateChannelCommand.js +22 -0
- package/dist-es/commands/GetEventRuleCommand.js +22 -0
- package/dist-es/commands/GetNotificationConfigurationCommand.js +22 -0
- package/dist-es/commands/GetNotificationEventCommand.js +22 -0
- package/dist-es/commands/ListChannelsCommand.js +22 -0
- package/dist-es/commands/ListEventRulesCommand.js +22 -0
- package/dist-es/commands/ListNotificationConfigurationsCommand.js +22 -0
- package/dist-es/commands/ListNotificationEventsCommand.js +22 -0
- package/dist-es/commands/ListNotificationHubsCommand.js +22 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
- package/dist-es/commands/RegisterNotificationHubCommand.js +22 -0
- package/dist-es/commands/TagResourceCommand.js +22 -0
- package/dist-es/commands/UntagResourceCommand.js +22 -0
- package/dist-es/commands/UpdateEventRuleCommand.js +22 -0
- package/dist-es/commands/UpdateNotificationConfigurationCommand.js +22 -0
- package/dist-es/commands/index.js +21 -0
- package/dist-es/endpoint/EndpointParameters.js +12 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/NotificationsServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +171 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListChannelsPaginator.js +4 -0
- package/dist-es/pagination/ListEventRulesPaginator.js +4 -0
- package/dist-es/pagination/ListNotificationConfigurationsPaginator.js +4 -0
- package/dist-es/pagination/ListNotificationEventsPaginator.js +4 -0
- package/dist-es/pagination/ListNotificationHubsPaginator.js +4 -0
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +840 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +21 -0
- package/dist-types/Notifications.d.ts +167 -0
- package/dist-types/NotificationsClient.d.ts +197 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/AssociateChannelCommand.d.ts +92 -0
- package/dist-types/commands/CreateEventRuleCommand.d.ts +105 -0
- package/dist-types/commands/CreateNotificationConfigurationCommand.d.ts +95 -0
- package/dist-types/commands/DeleteEventRuleCommand.d.ts +87 -0
- package/dist-types/commands/DeleteNotificationConfigurationCommand.d.ts +87 -0
- package/dist-types/commands/DeregisterNotificationHubCommand.d.ts +96 -0
- package/dist-types/commands/DisassociateChannelCommand.d.ts +85 -0
- package/dist-types/commands/GetEventRuleCommand.d.ts +103 -0
- package/dist-types/commands/GetNotificationConfigurationCommand.d.ts +91 -0
- package/dist-types/commands/GetNotificationEventCommand.d.ts +154 -0
- package/dist-types/commands/ListChannelsCommand.d.ts +91 -0
- package/dist-types/commands/ListEventRulesCommand.d.ts +110 -0
- package/dist-types/commands/ListNotificationConfigurationsCommand.d.ts +97 -0
- package/dist-types/commands/ListNotificationEventsCommand.d.ts +118 -0
- package/dist-types/commands/ListNotificationHubsCommand.d.ts +95 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +92 -0
- package/dist-types/commands/RegisterNotificationHubCommand.d.ts +96 -0
- package/dist-types/commands/TagResourceCommand.d.ts +91 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +88 -0
- package/dist-types/commands/UpdateEventRuleCommand.d.ts +100 -0
- package/dist-types/commands/UpdateNotificationConfigurationCommand.d.ts +92 -0
- package/dist-types/commands/index.d.ts +21 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +21 -0
- package/dist-types/models/NotificationsServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2354 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListChannelsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListEventRulesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListNotificationConfigurationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListNotificationEventsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListNotificationHubsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +191 -0
- package/dist-types/runtimeConfig.browser.d.ts +48 -0
- package/dist-types/runtimeConfig.d.ts +48 -0
- package/dist-types/runtimeConfig.native.d.ts +47 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/Notifications.d.ts +367 -0
- package/dist-types/ts3.4/NotificationsClient.d.ts +245 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/commands/AssociateChannelCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateEventRuleCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateNotificationConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteEventRuleCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteNotificationConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeregisterNotificationHubCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DisassociateChannelCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetEventRuleCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetNotificationConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetNotificationEventCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListChannelsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListEventRulesCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListNotificationConfigurationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListNotificationEventsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListNotificationHubsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/RegisterNotificationHubCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateEventRuleCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateNotificationConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +21 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/NotificationsServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +447 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListChannelsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListEventRulesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListNotificationConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListNotificationEventsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListNotificationHubsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +257 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +94 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +101 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListNotificationConfigurationsCommand, se_ListNotificationConfigurationsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListNotificationConfigurationsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("Notifications", "ListNotificationConfigurations", {})
|
|
17
|
+
.n("NotificationsClient", "ListNotificationConfigurationsCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_ListNotificationConfigurationsCommand)
|
|
20
|
+
.de(de_ListNotificationConfigurationsCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListNotificationEventsCommand, se_ListNotificationEventsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListNotificationEventsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("Notifications", "ListNotificationEvents", {})
|
|
17
|
+
.n("NotificationsClient", "ListNotificationEventsCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_ListNotificationEventsCommand)
|
|
20
|
+
.de(de_ListNotificationEventsCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListNotificationHubsCommand, se_ListNotificationHubsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListNotificationHubsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("Notifications", "ListNotificationHubs", {})
|
|
17
|
+
.n("NotificationsClient", "ListNotificationHubsCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_ListNotificationHubsCommand)
|
|
20
|
+
.de(de_ListNotificationHubsCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListTagsForResourceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("Notifications", "ListTagsForResource", {})
|
|
17
|
+
.n("NotificationsClient", "ListTagsForResourceCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_ListTagsForResourceCommand)
|
|
20
|
+
.de(de_ListTagsForResourceCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_RegisterNotificationHubCommand, se_RegisterNotificationHubCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class RegisterNotificationHubCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("Notifications", "RegisterNotificationHub", {})
|
|
17
|
+
.n("NotificationsClient", "RegisterNotificationHubCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_RegisterNotificationHubCommand)
|
|
20
|
+
.de(de_RegisterNotificationHubCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class TagResourceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("Notifications", "TagResource", {})
|
|
17
|
+
.n("NotificationsClient", "TagResourceCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_TagResourceCommand)
|
|
20
|
+
.de(de_TagResourceCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UntagResourceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("Notifications", "UntagResource", {})
|
|
17
|
+
.n("NotificationsClient", "UntagResourceCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_UntagResourceCommand)
|
|
20
|
+
.de(de_UntagResourceCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_UpdateEventRuleCommand, se_UpdateEventRuleCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateEventRuleCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("Notifications", "UpdateEventRule", {})
|
|
17
|
+
.n("NotificationsClient", "UpdateEventRuleCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_UpdateEventRuleCommand)
|
|
20
|
+
.de(de_UpdateEventRuleCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_UpdateNotificationConfigurationCommand, se_UpdateNotificationConfigurationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateNotificationConfigurationCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("Notifications", "UpdateNotificationConfiguration", {})
|
|
17
|
+
.n("NotificationsClient", "UpdateNotificationConfigurationCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_UpdateNotificationConfigurationCommand)
|
|
20
|
+
.de(de_UpdateNotificationConfigurationCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from "./AssociateChannelCommand";
|
|
2
|
+
export * from "./CreateEventRuleCommand";
|
|
3
|
+
export * from "./CreateNotificationConfigurationCommand";
|
|
4
|
+
export * from "./DeleteEventRuleCommand";
|
|
5
|
+
export * from "./DeleteNotificationConfigurationCommand";
|
|
6
|
+
export * from "./DeregisterNotificationHubCommand";
|
|
7
|
+
export * from "./DisassociateChannelCommand";
|
|
8
|
+
export * from "./GetEventRuleCommand";
|
|
9
|
+
export * from "./GetNotificationConfigurationCommand";
|
|
10
|
+
export * from "./GetNotificationEventCommand";
|
|
11
|
+
export * from "./ListChannelsCommand";
|
|
12
|
+
export * from "./ListEventRulesCommand";
|
|
13
|
+
export * from "./ListNotificationConfigurationsCommand";
|
|
14
|
+
export * from "./ListNotificationEventsCommand";
|
|
15
|
+
export * from "./ListNotificationHubsCommand";
|
|
16
|
+
export * from "./ListTagsForResourceCommand";
|
|
17
|
+
export * from "./RegisterNotificationHubCommand";
|
|
18
|
+
export * from "./TagResourceCommand";
|
|
19
|
+
export * from "./UntagResourceCommand";
|
|
20
|
+
export * from "./UpdateEventRuleCommand";
|
|
21
|
+
export * from "./UpdateNotificationConfigurationCommand";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
+
return {
|
|
3
|
+
...options,
|
|
4
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
5
|
+
defaultSigningName: "notifications",
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export const commonParams = {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
|
|
2
|
+
import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
|
|
3
|
+
import { ruleSet } from "./ruleset";
|
|
4
|
+
const cache = new EndpointCache({
|
|
5
|
+
size: 50,
|
|
6
|
+
params: ["Endpoint", "Region", "UseFIPS"],
|
|
7
|
+
});
|
|
8
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
|
|
10
|
+
endpointParams: endpointParams,
|
|
11
|
+
logger: context.logger,
|
|
12
|
+
}));
|
|
13
|
+
};
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const l = "ref";
|
|
2
|
+
const a = true, b = false, c = "isSet", d = "error", e = "endpoint", f = "tree", g = { "required": false, "type": "String" }, h = { [l]: "Endpoint" }, i = {}, j = [{ "fn": "booleanEquals", "argv": [{ [l]: "UseFIPS" }, true] }], k = [{ [l]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { UseFIPS: { required: a, default: b, type: "Boolean" }, Endpoint: g, Region: g }, rules: [{ conditions: [{ fn: c, argv: [h] }], rules: [{ conditions: j, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { endpoint: { url: h, properties: i, headers: i }, type: e }], type: f }, { rules: [{ conditions: [{ fn: c, argv: k }], rules: [{ conditions: [{ fn: "aws.partition", argv: k, assign: "PartitionResult" }], rules: [{ conditions: j, endpoint: { url: "https://notifications-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: i, headers: i }, type: e }, { endpoint: { url: "https://notifications.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: i, headers: i }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
|
|
4
|
+
export const ruleSet = _data;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class NotificationsServiceException extends __ServiceException {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
Object.setPrototypeOf(this, NotificationsServiceException.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { NotificationsServiceException as __BaseException } from "./NotificationsServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
constructor(opts) {
|
|
4
|
+
super({
|
|
5
|
+
name: "AccessDeniedException",
|
|
6
|
+
$fault: "client",
|
|
7
|
+
...opts,
|
|
8
|
+
});
|
|
9
|
+
this.name = "AccessDeniedException";
|
|
10
|
+
this.$fault = "client";
|
|
11
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export const AggregationDuration = {
|
|
15
|
+
LONG: "LONG",
|
|
16
|
+
NONE: "NONE",
|
|
17
|
+
SHORT: "SHORT",
|
|
18
|
+
};
|
|
19
|
+
export const AggregationEventType = {
|
|
20
|
+
AGGREGATE: "AGGREGATE",
|
|
21
|
+
CHILD: "CHILD",
|
|
22
|
+
NONE: "NONE",
|
|
23
|
+
};
|
|
24
|
+
export class ConflictException extends __BaseException {
|
|
25
|
+
constructor(opts) {
|
|
26
|
+
super({
|
|
27
|
+
name: "ConflictException",
|
|
28
|
+
$fault: "client",
|
|
29
|
+
...opts,
|
|
30
|
+
});
|
|
31
|
+
this.name = "ConflictException";
|
|
32
|
+
this.$fault = "client";
|
|
33
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
34
|
+
this.resourceId = opts.resourceId;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export class InternalServerException extends __BaseException {
|
|
38
|
+
constructor(opts) {
|
|
39
|
+
super({
|
|
40
|
+
name: "InternalServerException",
|
|
41
|
+
$fault: "server",
|
|
42
|
+
...opts,
|
|
43
|
+
});
|
|
44
|
+
this.name = "InternalServerException";
|
|
45
|
+
this.$fault = "server";
|
|
46
|
+
this.$retryable = {};
|
|
47
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
51
|
+
constructor(opts) {
|
|
52
|
+
super({
|
|
53
|
+
name: "ResourceNotFoundException",
|
|
54
|
+
$fault: "client",
|
|
55
|
+
...opts,
|
|
56
|
+
});
|
|
57
|
+
this.name = "ResourceNotFoundException";
|
|
58
|
+
this.$fault = "client";
|
|
59
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
60
|
+
this.resourceId = opts.resourceId;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
64
|
+
constructor(opts) {
|
|
65
|
+
super({
|
|
66
|
+
name: "ServiceQuotaExceededException",
|
|
67
|
+
$fault: "client",
|
|
68
|
+
...opts,
|
|
69
|
+
});
|
|
70
|
+
this.name = "ServiceQuotaExceededException";
|
|
71
|
+
this.$fault = "client";
|
|
72
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
73
|
+
this.resourceType = opts.resourceType;
|
|
74
|
+
this.resourceId = opts.resourceId;
|
|
75
|
+
this.serviceCode = opts.serviceCode;
|
|
76
|
+
this.quotaCode = opts.quotaCode;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
export class ThrottlingException extends __BaseException {
|
|
80
|
+
constructor(opts) {
|
|
81
|
+
super({
|
|
82
|
+
name: "ThrottlingException",
|
|
83
|
+
$fault: "client",
|
|
84
|
+
...opts,
|
|
85
|
+
});
|
|
86
|
+
this.name = "ThrottlingException";
|
|
87
|
+
this.$fault = "client";
|
|
88
|
+
this.$retryable = {
|
|
89
|
+
throttling: true,
|
|
90
|
+
};
|
|
91
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
92
|
+
this.serviceCode = opts.serviceCode;
|
|
93
|
+
this.quotaCode = opts.quotaCode;
|
|
94
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
export const ValidationExceptionReason = {
|
|
98
|
+
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
99
|
+
OTHER: "other",
|
|
100
|
+
};
|
|
101
|
+
export class ValidationException extends __BaseException {
|
|
102
|
+
constructor(opts) {
|
|
103
|
+
super({
|
|
104
|
+
name: "ValidationException",
|
|
105
|
+
$fault: "client",
|
|
106
|
+
...opts,
|
|
107
|
+
});
|
|
108
|
+
this.name = "ValidationException";
|
|
109
|
+
this.$fault = "client";
|
|
110
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
111
|
+
this.reason = opts.reason;
|
|
112
|
+
this.fieldList = opts.fieldList;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
export const EventRuleStatus = {
|
|
116
|
+
ACTIVE: "ACTIVE",
|
|
117
|
+
CREATING: "CREATING",
|
|
118
|
+
DELETING: "DELETING",
|
|
119
|
+
INACTIVE: "INACTIVE",
|
|
120
|
+
UPDATING: "UPDATING",
|
|
121
|
+
};
|
|
122
|
+
export const NotificationConfigurationStatus = {
|
|
123
|
+
ACTIVE: "ACTIVE",
|
|
124
|
+
DELETING: "DELETING",
|
|
125
|
+
INACTIVE: "INACTIVE",
|
|
126
|
+
PARTIALLY_ACTIVE: "PARTIALLY_ACTIVE",
|
|
127
|
+
};
|
|
128
|
+
export const NotificationHubStatus = {
|
|
129
|
+
ACTIVE: "ACTIVE",
|
|
130
|
+
DEREGISTERING: "DEREGISTERING",
|
|
131
|
+
INACTIVE: "INACTIVE",
|
|
132
|
+
REGISTERING: "REGISTERING",
|
|
133
|
+
};
|
|
134
|
+
export const EventStatus = {
|
|
135
|
+
HEALTHY: "HEALTHY",
|
|
136
|
+
UNHEALTHY: "UNHEALTHY",
|
|
137
|
+
};
|
|
138
|
+
export const LocaleCode = {
|
|
139
|
+
de_DE: "de_DE",
|
|
140
|
+
en_CA: "en_CA",
|
|
141
|
+
en_UK: "en_UK",
|
|
142
|
+
en_US: "en_US",
|
|
143
|
+
es_ES: "es_ES",
|
|
144
|
+
fr_CA: "fr_CA",
|
|
145
|
+
fr_FR: "fr_FR",
|
|
146
|
+
id_ID: "id_ID",
|
|
147
|
+
it_IT: "it_IT",
|
|
148
|
+
ja_JP: "ja_JP",
|
|
149
|
+
ko_KR: "ko_KR",
|
|
150
|
+
pt_BR: "pt_BR",
|
|
151
|
+
tr_TR: "tr_TR",
|
|
152
|
+
zh_CN: "zh_CN",
|
|
153
|
+
zh_TW: "zh_TW",
|
|
154
|
+
};
|
|
155
|
+
export const MediaElementType = {
|
|
156
|
+
IMAGE: "IMAGE",
|
|
157
|
+
};
|
|
158
|
+
export const NotificationType = {
|
|
159
|
+
ALERT: "ALERT",
|
|
160
|
+
ANNOUNCEMENT: "ANNOUNCEMENT",
|
|
161
|
+
INFORMATIONAL: "INFORMATIONAL",
|
|
162
|
+
WARNING: "WARNING",
|
|
163
|
+
};
|
|
164
|
+
export const SchemaVersion = {
|
|
165
|
+
SCHEMA_VERSION_1_0: "v1.0",
|
|
166
|
+
};
|
|
167
|
+
export const TextPartType = {
|
|
168
|
+
LOCALIZED_TEXT: "LOCALIZED_TEXT",
|
|
169
|
+
PLAIN_TEXT: "PLAIN_TEXT",
|
|
170
|
+
URL: "URL",
|
|
171
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListChannelsCommand, } from "../commands/ListChannelsCommand";
|
|
3
|
+
import { NotificationsClient } from "../NotificationsClient";
|
|
4
|
+
export const paginateListChannels = createPaginator(NotificationsClient, ListChannelsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListEventRulesCommand, } from "../commands/ListEventRulesCommand";
|
|
3
|
+
import { NotificationsClient } from "../NotificationsClient";
|
|
4
|
+
export const paginateListEventRules = createPaginator(NotificationsClient, ListEventRulesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListNotificationConfigurationsCommand, } from "../commands/ListNotificationConfigurationsCommand";
|
|
3
|
+
import { NotificationsClient } from "../NotificationsClient";
|
|
4
|
+
export const paginateListNotificationConfigurations = createPaginator(NotificationsClient, ListNotificationConfigurationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListNotificationEventsCommand, } from "../commands/ListNotificationEventsCommand";
|
|
3
|
+
import { NotificationsClient } from "../NotificationsClient";
|
|
4
|
+
export const paginateListNotificationEvents = createPaginator(NotificationsClient, ListNotificationEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListNotificationHubsCommand, } from "../commands/ListNotificationHubsCommand";
|
|
3
|
+
import { NotificationsClient } from "../NotificationsClient";
|
|
4
|
+
export const paginateListNotificationHubs = createPaginator(NotificationsClient, ListNotificationHubsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./Interfaces";
|
|
2
|
+
export * from "./ListChannelsPaginator";
|
|
3
|
+
export * from "./ListEventRulesPaginator";
|
|
4
|
+
export * from "./ListNotificationConfigurationsPaginator";
|
|
5
|
+
export * from "./ListNotificationEventsPaginator";
|
|
6
|
+
export * from "./ListNotificationHubsPaginator";
|