@aws-sdk/client-notifications 3.879.0 → 3.880.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/README.md +33 -8
- package/dist-cjs/Notifications.js +8 -0
- package/dist-cjs/commands/AssociateOrganizationalUnitCommand.js +26 -0
- package/dist-cjs/commands/DisassociateOrganizationalUnitCommand.js +26 -0
- package/dist-cjs/commands/ListMemberAccountsCommand.js +26 -0
- package/dist-cjs/commands/ListOrganizationalUnitsCommand.js +26 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +13 -1
- package/dist-cjs/pagination/ListMemberAccountsPaginator.js +7 -0
- package/dist-cjs/pagination/ListOrganizationalUnitsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +125 -2
- package/dist-es/Notifications.js +8 -0
- package/dist-es/commands/AssociateOrganizationalUnitCommand.js +22 -0
- package/dist-es/commands/DisassociateOrganizationalUnitCommand.js +22 -0
- package/dist-es/commands/ListMemberAccountsCommand.js +22 -0
- package/dist-es/commands/ListOrganizationalUnitsCommand.js +22 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/pagination/ListMemberAccountsPaginator.js +4 -0
- package/dist-es/pagination/ListOrganizationalUnitsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +115 -0
- package/dist-types/Notifications.d.ts +29 -8
- package/dist-types/NotificationsClient.d.ts +7 -10
- package/dist-types/commands/AssociateChannelCommand.d.ts +1 -2
- package/dist-types/commands/AssociateManagedNotificationAdditionalChannelCommand.d.ts +1 -2
- package/dist-types/commands/AssociateOrganizationalUnitCommand.d.ts +92 -0
- package/dist-types/commands/CreateEventRuleCommand.d.ts +1 -4
- package/dist-types/commands/DeregisterNotificationHubCommand.d.ts +1 -7
- package/dist-types/commands/DisassociateChannelCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateManagedNotificationAdditionalChannelCommand.d.ts +1 -2
- package/dist-types/commands/DisassociateOrganizationalUnitCommand.d.ts +86 -0
- package/dist-types/commands/GetNotificationConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetNotificationEventCommand.d.ts +2 -6
- package/dist-types/commands/GetNotificationsAccessForOrganizationCommand.d.ts +1 -1
- package/dist-types/commands/ListMemberAccountsCommand.d.ts +101 -0
- package/dist-types/commands/ListNotificationConfigurationsCommand.d.ts +3 -2
- package/dist-types/commands/ListNotificationEventsCommand.d.ts +3 -6
- package/dist-types/commands/ListOrganizationalUnitsCommand.d.ts +92 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -5
- package/dist-types/commands/RegisterNotificationHubCommand.d.ts +1 -3
- package/dist-types/commands/TagResourceCommand.d.ts +1 -5
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -2
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/index.d.ts +1 -8
- package/dist-types/models/models_0.d.ts +303 -1054
- package/dist-types/pagination/ListMemberAccountsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListOrganizationalUnitsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/ts3.4/Notifications.d.ts +68 -0
- package/dist-types/ts3.4/NotificationsClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/AssociateOrganizationalUnitCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DisassociateOrganizationalUnitCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListMemberAccountsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListOrganizationalUnitsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +60 -0
- package/dist-types/ts3.4/pagination/ListMemberAccountsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListOrganizationalUnitsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,14 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
AWS SDK for JavaScript Notifications Client for Node.js, Browser and React Native.
|
|
8
8
|
|
|
9
|
-
<p>The <i>
|
|
10
|
-
<p>User Notification control plane APIs are currently available in US East (Virginia) - <code>us-east-1</code>.</p>
|
|
11
|
-
<p>
|
|
12
|
-
<a href="https://docs.aws.amazon.com/notifications/latest/APIReference/API_GetNotificationEvent.html">GetNotificationEvent</a>
|
|
13
|
-
and <a href="https://docs.aws.amazon.com/notifications/latest/APIReference/API_ListNotificationEvents.html">ListNotificationEvents</a> APIs are currently available in
|
|
14
|
-
<a href="https://docs.aws.amazon.com/notifications/latest/userguide/supported-regions.html">commercial partition Regions</a> and only return notifications stored in the same Region in which they're called.</p>
|
|
15
|
-
<p>The User Notifications console can only be used in US East (Virginia). Your data however, is stored in each Region chosen as a
|
|
16
|
-
<a href="https://docs.aws.amazon.com/notifications/latest/userguide/notification-hubs.html">notification hub</a> in addition to US East (Virginia).</p>
|
|
9
|
+
<p>The <i>User Notifications API Reference</i> provides descriptions, API request parameters, and the JSON response for each of the User Notifications API actions.</p> <p>User Notification control plane APIs are currently available in US East (Virginia) - <code>us-east-1</code>.</p> <p> <a href="https://docs.aws.amazon.com/notifications/latest/APIReference/API_GetNotificationEvent.html">GetNotificationEvent</a> and <a href="https://docs.aws.amazon.com/notifications/latest/APIReference/API_ListNotificationEvents.html">ListNotificationEvents</a> APIs are currently available in <a href="https://docs.aws.amazon.com/notifications/latest/userguide/supported-regions.html">commercial partition Regions</a> and only return notifications stored in the same Region in which they're called.</p> <p>The User Notifications console can only be used in US East (Virginia). Your data however, is stored in each Region chosen as a <a href="https://docs.aws.amazon.com/notifications/latest/userguide/notification-hubs.html">notification hub</a> in addition to US East (Virginia).</p> <note> <p>For information about descriptions, API request parameters, and the JSON response for email contact related API actions, see the <a href="https://docs.aws.amazon.com/notificationscontacts/latest/APIReference/Welcome.html">User Notifications Contacts API Reference Guide</a>.</p> </note>
|
|
17
10
|
|
|
18
11
|
## Installing
|
|
19
12
|
|
|
@@ -233,6 +226,14 @@ AssociateManagedNotificationAdditionalChannel
|
|
|
233
226
|
|
|
234
227
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/notifications/command/AssociateManagedNotificationAdditionalChannelCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-notifications/Interface/AssociateManagedNotificationAdditionalChannelCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-notifications/Interface/AssociateManagedNotificationAdditionalChannelCommandOutput/)
|
|
235
228
|
|
|
229
|
+
</details>
|
|
230
|
+
<details>
|
|
231
|
+
<summary>
|
|
232
|
+
AssociateOrganizationalUnit
|
|
233
|
+
</summary>
|
|
234
|
+
|
|
235
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/notifications/command/AssociateOrganizationalUnitCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-notifications/Interface/AssociateOrganizationalUnitCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-notifications/Interface/AssociateOrganizationalUnitCommandOutput/)
|
|
236
|
+
|
|
236
237
|
</details>
|
|
237
238
|
<details>
|
|
238
239
|
<summary>
|
|
@@ -305,6 +306,14 @@ DisassociateManagedNotificationAdditionalChannel
|
|
|
305
306
|
|
|
306
307
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/notifications/command/DisassociateManagedNotificationAdditionalChannelCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-notifications/Interface/DisassociateManagedNotificationAdditionalChannelCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-notifications/Interface/DisassociateManagedNotificationAdditionalChannelCommandOutput/)
|
|
307
308
|
|
|
309
|
+
</details>
|
|
310
|
+
<details>
|
|
311
|
+
<summary>
|
|
312
|
+
DisassociateOrganizationalUnit
|
|
313
|
+
</summary>
|
|
314
|
+
|
|
315
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/notifications/command/DisassociateOrganizationalUnitCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-notifications/Interface/DisassociateOrganizationalUnitCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-notifications/Interface/DisassociateOrganizationalUnitCommandOutput/)
|
|
316
|
+
|
|
308
317
|
</details>
|
|
309
318
|
<details>
|
|
310
319
|
<summary>
|
|
@@ -417,6 +426,14 @@ ListManagedNotificationEvents
|
|
|
417
426
|
|
|
418
427
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/notifications/command/ListManagedNotificationEventsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-notifications/Interface/ListManagedNotificationEventsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-notifications/Interface/ListManagedNotificationEventsCommandOutput/)
|
|
419
428
|
|
|
429
|
+
</details>
|
|
430
|
+
<details>
|
|
431
|
+
<summary>
|
|
432
|
+
ListMemberAccounts
|
|
433
|
+
</summary>
|
|
434
|
+
|
|
435
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/notifications/command/ListMemberAccountsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-notifications/Interface/ListMemberAccountsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-notifications/Interface/ListMemberAccountsCommandOutput/)
|
|
436
|
+
|
|
420
437
|
</details>
|
|
421
438
|
<details>
|
|
422
439
|
<summary>
|
|
@@ -441,6 +458,14 @@ ListNotificationHubs
|
|
|
441
458
|
|
|
442
459
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/notifications/command/ListNotificationHubsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-notifications/Interface/ListNotificationHubsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-notifications/Interface/ListNotificationHubsCommandOutput/)
|
|
443
460
|
|
|
461
|
+
</details>
|
|
462
|
+
<details>
|
|
463
|
+
<summary>
|
|
464
|
+
ListOrganizationalUnits
|
|
465
|
+
</summary>
|
|
466
|
+
|
|
467
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/notifications/command/ListOrganizationalUnitsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-notifications/Interface/ListOrganizationalUnitsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-notifications/Interface/ListOrganizationalUnitsCommandOutput/)
|
|
468
|
+
|
|
444
469
|
</details>
|
|
445
470
|
<details>
|
|
446
471
|
<summary>
|
|
@@ -5,6 +5,7 @@ const smithy_client_1 = require("@smithy/smithy-client");
|
|
|
5
5
|
const AssociateChannelCommand_1 = require("./commands/AssociateChannelCommand");
|
|
6
6
|
const AssociateManagedNotificationAccountContactCommand_1 = require("./commands/AssociateManagedNotificationAccountContactCommand");
|
|
7
7
|
const AssociateManagedNotificationAdditionalChannelCommand_1 = require("./commands/AssociateManagedNotificationAdditionalChannelCommand");
|
|
8
|
+
const AssociateOrganizationalUnitCommand_1 = require("./commands/AssociateOrganizationalUnitCommand");
|
|
8
9
|
const CreateEventRuleCommand_1 = require("./commands/CreateEventRuleCommand");
|
|
9
10
|
const CreateNotificationConfigurationCommand_1 = require("./commands/CreateNotificationConfigurationCommand");
|
|
10
11
|
const DeleteEventRuleCommand_1 = require("./commands/DeleteEventRuleCommand");
|
|
@@ -14,6 +15,7 @@ const DisableNotificationsAccessForOrganizationCommand_1 = require("./commands/D
|
|
|
14
15
|
const DisassociateChannelCommand_1 = require("./commands/DisassociateChannelCommand");
|
|
15
16
|
const DisassociateManagedNotificationAccountContactCommand_1 = require("./commands/DisassociateManagedNotificationAccountContactCommand");
|
|
16
17
|
const DisassociateManagedNotificationAdditionalChannelCommand_1 = require("./commands/DisassociateManagedNotificationAdditionalChannelCommand");
|
|
18
|
+
const DisassociateOrganizationalUnitCommand_1 = require("./commands/DisassociateOrganizationalUnitCommand");
|
|
17
19
|
const EnableNotificationsAccessForOrganizationCommand_1 = require("./commands/EnableNotificationsAccessForOrganizationCommand");
|
|
18
20
|
const GetEventRuleCommand_1 = require("./commands/GetEventRuleCommand");
|
|
19
21
|
const GetManagedNotificationChildEventCommand_1 = require("./commands/GetManagedNotificationChildEventCommand");
|
|
@@ -28,9 +30,11 @@ const ListManagedNotificationChannelAssociationsCommand_1 = require("./commands/
|
|
|
28
30
|
const ListManagedNotificationChildEventsCommand_1 = require("./commands/ListManagedNotificationChildEventsCommand");
|
|
29
31
|
const ListManagedNotificationConfigurationsCommand_1 = require("./commands/ListManagedNotificationConfigurationsCommand");
|
|
30
32
|
const ListManagedNotificationEventsCommand_1 = require("./commands/ListManagedNotificationEventsCommand");
|
|
33
|
+
const ListMemberAccountsCommand_1 = require("./commands/ListMemberAccountsCommand");
|
|
31
34
|
const ListNotificationConfigurationsCommand_1 = require("./commands/ListNotificationConfigurationsCommand");
|
|
32
35
|
const ListNotificationEventsCommand_1 = require("./commands/ListNotificationEventsCommand");
|
|
33
36
|
const ListNotificationHubsCommand_1 = require("./commands/ListNotificationHubsCommand");
|
|
37
|
+
const ListOrganizationalUnitsCommand_1 = require("./commands/ListOrganizationalUnitsCommand");
|
|
34
38
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
35
39
|
const RegisterNotificationHubCommand_1 = require("./commands/RegisterNotificationHubCommand");
|
|
36
40
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
@@ -42,6 +46,7 @@ const commands = {
|
|
|
42
46
|
AssociateChannelCommand: AssociateChannelCommand_1.AssociateChannelCommand,
|
|
43
47
|
AssociateManagedNotificationAccountContactCommand: AssociateManagedNotificationAccountContactCommand_1.AssociateManagedNotificationAccountContactCommand,
|
|
44
48
|
AssociateManagedNotificationAdditionalChannelCommand: AssociateManagedNotificationAdditionalChannelCommand_1.AssociateManagedNotificationAdditionalChannelCommand,
|
|
49
|
+
AssociateOrganizationalUnitCommand: AssociateOrganizationalUnitCommand_1.AssociateOrganizationalUnitCommand,
|
|
45
50
|
CreateEventRuleCommand: CreateEventRuleCommand_1.CreateEventRuleCommand,
|
|
46
51
|
CreateNotificationConfigurationCommand: CreateNotificationConfigurationCommand_1.CreateNotificationConfigurationCommand,
|
|
47
52
|
DeleteEventRuleCommand: DeleteEventRuleCommand_1.DeleteEventRuleCommand,
|
|
@@ -51,6 +56,7 @@ const commands = {
|
|
|
51
56
|
DisassociateChannelCommand: DisassociateChannelCommand_1.DisassociateChannelCommand,
|
|
52
57
|
DisassociateManagedNotificationAccountContactCommand: DisassociateManagedNotificationAccountContactCommand_1.DisassociateManagedNotificationAccountContactCommand,
|
|
53
58
|
DisassociateManagedNotificationAdditionalChannelCommand: DisassociateManagedNotificationAdditionalChannelCommand_1.DisassociateManagedNotificationAdditionalChannelCommand,
|
|
59
|
+
DisassociateOrganizationalUnitCommand: DisassociateOrganizationalUnitCommand_1.DisassociateOrganizationalUnitCommand,
|
|
54
60
|
EnableNotificationsAccessForOrganizationCommand: EnableNotificationsAccessForOrganizationCommand_1.EnableNotificationsAccessForOrganizationCommand,
|
|
55
61
|
GetEventRuleCommand: GetEventRuleCommand_1.GetEventRuleCommand,
|
|
56
62
|
GetManagedNotificationChildEventCommand: GetManagedNotificationChildEventCommand_1.GetManagedNotificationChildEventCommand,
|
|
@@ -65,9 +71,11 @@ const commands = {
|
|
|
65
71
|
ListManagedNotificationChildEventsCommand: ListManagedNotificationChildEventsCommand_1.ListManagedNotificationChildEventsCommand,
|
|
66
72
|
ListManagedNotificationConfigurationsCommand: ListManagedNotificationConfigurationsCommand_1.ListManagedNotificationConfigurationsCommand,
|
|
67
73
|
ListManagedNotificationEventsCommand: ListManagedNotificationEventsCommand_1.ListManagedNotificationEventsCommand,
|
|
74
|
+
ListMemberAccountsCommand: ListMemberAccountsCommand_1.ListMemberAccountsCommand,
|
|
68
75
|
ListNotificationConfigurationsCommand: ListNotificationConfigurationsCommand_1.ListNotificationConfigurationsCommand,
|
|
69
76
|
ListNotificationEventsCommand: ListNotificationEventsCommand_1.ListNotificationEventsCommand,
|
|
70
77
|
ListNotificationHubsCommand: ListNotificationHubsCommand_1.ListNotificationHubsCommand,
|
|
78
|
+
ListOrganizationalUnitsCommand: ListOrganizationalUnitsCommand_1.ListOrganizationalUnitsCommand,
|
|
71
79
|
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
72
80
|
RegisterNotificationHubCommand: RegisterNotificationHubCommand_1.RegisterNotificationHubCommand,
|
|
73
81
|
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AssociateOrganizationalUnitCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class AssociateOrganizationalUnitCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep(EndpointParameters_1.commonParams)
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
16
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("Notifications", "AssociateOrganizationalUnit", {})
|
|
20
|
+
.n("NotificationsClient", "AssociateOrganizationalUnitCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(Aws_restJson1_1.se_AssociateOrganizationalUnitCommand)
|
|
23
|
+
.de(Aws_restJson1_1.de_AssociateOrganizationalUnitCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
26
|
+
exports.AssociateOrganizationalUnitCommand = AssociateOrganizationalUnitCommand;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DisassociateOrganizationalUnitCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class DisassociateOrganizationalUnitCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep(EndpointParameters_1.commonParams)
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
16
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("Notifications", "DisassociateOrganizationalUnit", {})
|
|
20
|
+
.n("NotificationsClient", "DisassociateOrganizationalUnitCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(Aws_restJson1_1.se_DisassociateOrganizationalUnitCommand)
|
|
23
|
+
.de(Aws_restJson1_1.de_DisassociateOrganizationalUnitCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
26
|
+
exports.DisassociateOrganizationalUnitCommand = DisassociateOrganizationalUnitCommand;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListMemberAccountsCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class ListMemberAccountsCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep(EndpointParameters_1.commonParams)
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
16
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("Notifications", "ListMemberAccounts", {})
|
|
20
|
+
.n("NotificationsClient", "ListMemberAccountsCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(Aws_restJson1_1.se_ListMemberAccountsCommand)
|
|
23
|
+
.de(Aws_restJson1_1.de_ListMemberAccountsCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
26
|
+
exports.ListMemberAccountsCommand = ListMemberAccountsCommand;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListOrganizationalUnitsCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class ListOrganizationalUnitsCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep(EndpointParameters_1.commonParams)
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
16
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("Notifications", "ListOrganizationalUnits", {})
|
|
20
|
+
.n("NotificationsClient", "ListOrganizationalUnitsCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(Aws_restJson1_1.se_ListOrganizationalUnitsCommand)
|
|
23
|
+
.de(Aws_restJson1_1.de_ListOrganizationalUnitsCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
26
|
+
exports.ListOrganizationalUnitsCommand = ListOrganizationalUnitsCommand;
|
|
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./AssociateChannelCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./AssociateManagedNotificationAccountContactCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./AssociateManagedNotificationAdditionalChannelCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./AssociateOrganizationalUnitCommand"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./CreateEventRuleCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./CreateNotificationConfigurationCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./DeleteEventRuleCommand"), exports);
|
|
@@ -13,6 +14,7 @@ tslib_1.__exportStar(require("./DisableNotificationsAccessForOrganizationCommand
|
|
|
13
14
|
tslib_1.__exportStar(require("./DisassociateChannelCommand"), exports);
|
|
14
15
|
tslib_1.__exportStar(require("./DisassociateManagedNotificationAccountContactCommand"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./DisassociateManagedNotificationAdditionalChannelCommand"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./DisassociateOrganizationalUnitCommand"), exports);
|
|
16
18
|
tslib_1.__exportStar(require("./EnableNotificationsAccessForOrganizationCommand"), exports);
|
|
17
19
|
tslib_1.__exportStar(require("./GetEventRuleCommand"), exports);
|
|
18
20
|
tslib_1.__exportStar(require("./GetManagedNotificationChildEventCommand"), exports);
|
|
@@ -27,9 +29,11 @@ tslib_1.__exportStar(require("./ListManagedNotificationChannelAssociationsComman
|
|
|
27
29
|
tslib_1.__exportStar(require("./ListManagedNotificationChildEventsCommand"), exports);
|
|
28
30
|
tslib_1.__exportStar(require("./ListManagedNotificationConfigurationsCommand"), exports);
|
|
29
31
|
tslib_1.__exportStar(require("./ListManagedNotificationEventsCommand"), exports);
|
|
32
|
+
tslib_1.__exportStar(require("./ListMemberAccountsCommand"), exports);
|
|
30
33
|
tslib_1.__exportStar(require("./ListNotificationConfigurationsCommand"), exports);
|
|
31
34
|
tslib_1.__exportStar(require("./ListNotificationEventsCommand"), exports);
|
|
32
35
|
tslib_1.__exportStar(require("./ListNotificationHubsCommand"), exports);
|
|
36
|
+
tslib_1.__exportStar(require("./ListOrganizationalUnitsCommand"), exports);
|
|
33
37
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
34
38
|
tslib_1.__exportStar(require("./RegisterNotificationHubCommand"), exports);
|
|
35
39
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MediaElementType = exports.TextPartType = exports.SchemaVersion = exports.NotificationType = exports.LocaleCode = exports.EventStatus = exports.NotificationHubStatus = exports.NotificationConfigurationStatus = exports.EventRuleStatus = exports.ChannelType = exports.ChannelAssociationOverrideOption = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AggregationEventType = exports.AggregationDuration = exports.AccountContactType = exports.AccessStatus = exports.AccessDeniedException = void 0;
|
|
3
|
+
exports.MemberAccountNotificationConfigurationStatus = exports.MediaElementType = exports.NotificationConfigurationSubtype = exports.TextPartType = exports.SchemaVersion = exports.NotificationType = exports.LocaleCode = exports.EventStatus = exports.NotificationHubStatus = exports.NotificationConfigurationStatus = exports.EventRuleStatus = exports.ChannelType = exports.ChannelAssociationOverrideOption = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AggregationEventType = exports.AggregationDuration = exports.AccountContactType = exports.AccessStatus = exports.AccessDeniedException = void 0;
|
|
4
4
|
const NotificationsServiceException_1 = require("./NotificationsServiceException");
|
|
5
5
|
class AccessDeniedException extends NotificationsServiceException_1.NotificationsServiceException {
|
|
6
6
|
name = "AccessDeniedException";
|
|
@@ -18,6 +18,7 @@ exports.AccessDeniedException = AccessDeniedException;
|
|
|
18
18
|
exports.AccessStatus = {
|
|
19
19
|
DISABLED: "DISABLED",
|
|
20
20
|
ENABLED: "ENABLED",
|
|
21
|
+
FAILED: "FAILED",
|
|
21
22
|
PENDING: "PENDING",
|
|
22
23
|
};
|
|
23
24
|
exports.AccountContactType = {
|
|
@@ -208,6 +209,17 @@ exports.TextPartType = {
|
|
|
208
209
|
PLAIN_TEXT: "PLAIN_TEXT",
|
|
209
210
|
URL: "URL",
|
|
210
211
|
};
|
|
212
|
+
exports.NotificationConfigurationSubtype = {
|
|
213
|
+
ACCOUNT: "ACCOUNT",
|
|
214
|
+
ADMIN_MANAGED: "ADMIN_MANAGED",
|
|
215
|
+
};
|
|
211
216
|
exports.MediaElementType = {
|
|
212
217
|
IMAGE: "IMAGE",
|
|
213
218
|
};
|
|
219
|
+
exports.MemberAccountNotificationConfigurationStatus = {
|
|
220
|
+
ACTIVE: "ACTIVE",
|
|
221
|
+
CREATING: "CREATING",
|
|
222
|
+
DELETING: "DELETING",
|
|
223
|
+
INACTIVE: "INACTIVE",
|
|
224
|
+
PENDING: "PENDING",
|
|
225
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListMemberAccounts = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
|
+
const ListMemberAccountsCommand_1 = require("../commands/ListMemberAccountsCommand");
|
|
6
|
+
const NotificationsClient_1 = require("../NotificationsClient");
|
|
7
|
+
exports.paginateListMemberAccounts = (0, core_1.createPaginator)(NotificationsClient_1.NotificationsClient, ListMemberAccountsCommand_1.ListMemberAccountsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListOrganizationalUnits = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
|
+
const ListOrganizationalUnitsCommand_1 = require("../commands/ListOrganizationalUnitsCommand");
|
|
6
|
+
const NotificationsClient_1 = require("../NotificationsClient");
|
|
7
|
+
exports.paginateListOrganizationalUnits = (0, core_1.createPaginator)(NotificationsClient_1.NotificationsClient, ListOrganizationalUnitsCommand_1.ListOrganizationalUnitsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -8,6 +8,8 @@ tslib_1.__exportStar(require("./ListManagedNotificationChannelAssociationsPagina
|
|
|
8
8
|
tslib_1.__exportStar(require("./ListManagedNotificationChildEventsPaginator"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./ListManagedNotificationConfigurationsPaginator"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./ListManagedNotificationEventsPaginator"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./ListMemberAccountsPaginator"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./ListNotificationConfigurationsPaginator"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./ListNotificationEventsPaginator"), exports);
|
|
13
14
|
tslib_1.__exportStar(require("./ListNotificationHubsPaginator"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./ListOrganizationalUnitsPaginator"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpdateNotificationConfigurationCommand = exports.de_UpdateEventRuleCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RegisterNotificationHubCommand = exports.de_ListTagsForResourceCommand = exports.de_ListNotificationHubsCommand = exports.de_ListNotificationEventsCommand = exports.de_ListNotificationConfigurationsCommand = exports.de_ListManagedNotificationEventsCommand = exports.de_ListManagedNotificationConfigurationsCommand = exports.de_ListManagedNotificationChildEventsCommand = exports.de_ListManagedNotificationChannelAssociationsCommand = exports.de_ListEventRulesCommand = exports.de_ListChannelsCommand = exports.de_GetNotificationsAccessForOrganizationCommand = exports.de_GetNotificationEventCommand = exports.de_GetNotificationConfigurationCommand = exports.de_GetManagedNotificationEventCommand = exports.de_GetManagedNotificationConfigurationCommand = void 0;
|
|
3
|
+
exports.de_DisassociateChannelCommand = exports.de_DisableNotificationsAccessForOrganizationCommand = exports.de_DeregisterNotificationHubCommand = exports.de_DeleteNotificationConfigurationCommand = exports.de_DeleteEventRuleCommand = exports.de_CreateNotificationConfigurationCommand = exports.de_CreateEventRuleCommand = exports.de_AssociateOrganizationalUnitCommand = exports.de_AssociateManagedNotificationAdditionalChannelCommand = exports.de_AssociateManagedNotificationAccountContactCommand = exports.de_AssociateChannelCommand = exports.se_UpdateNotificationConfigurationCommand = exports.se_UpdateEventRuleCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RegisterNotificationHubCommand = exports.se_ListTagsForResourceCommand = exports.se_ListOrganizationalUnitsCommand = exports.se_ListNotificationHubsCommand = exports.se_ListNotificationEventsCommand = exports.se_ListNotificationConfigurationsCommand = exports.se_ListMemberAccountsCommand = exports.se_ListManagedNotificationEventsCommand = exports.se_ListManagedNotificationConfigurationsCommand = exports.se_ListManagedNotificationChildEventsCommand = exports.se_ListManagedNotificationChannelAssociationsCommand = exports.se_ListEventRulesCommand = exports.se_ListChannelsCommand = exports.se_GetNotificationsAccessForOrganizationCommand = exports.se_GetNotificationEventCommand = exports.se_GetNotificationConfigurationCommand = exports.se_GetManagedNotificationEventCommand = exports.se_GetManagedNotificationConfigurationCommand = exports.se_GetManagedNotificationChildEventCommand = exports.se_GetEventRuleCommand = exports.se_EnableNotificationsAccessForOrganizationCommand = exports.se_DisassociateOrganizationalUnitCommand = exports.se_DisassociateManagedNotificationAdditionalChannelCommand = exports.se_DisassociateManagedNotificationAccountContactCommand = exports.se_DisassociateChannelCommand = exports.se_DisableNotificationsAccessForOrganizationCommand = exports.se_DeregisterNotificationHubCommand = exports.se_DeleteNotificationConfigurationCommand = exports.se_DeleteEventRuleCommand = exports.se_CreateNotificationConfigurationCommand = exports.se_CreateEventRuleCommand = exports.se_AssociateOrganizationalUnitCommand = exports.se_AssociateManagedNotificationAdditionalChannelCommand = exports.se_AssociateManagedNotificationAccountContactCommand = exports.se_AssociateChannelCommand = void 0;
|
|
4
|
+
exports.de_UpdateNotificationConfigurationCommand = exports.de_UpdateEventRuleCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RegisterNotificationHubCommand = exports.de_ListTagsForResourceCommand = exports.de_ListOrganizationalUnitsCommand = exports.de_ListNotificationHubsCommand = exports.de_ListNotificationEventsCommand = exports.de_ListNotificationConfigurationsCommand = exports.de_ListMemberAccountsCommand = exports.de_ListManagedNotificationEventsCommand = exports.de_ListManagedNotificationConfigurationsCommand = exports.de_ListManagedNotificationChildEventsCommand = exports.de_ListManagedNotificationChannelAssociationsCommand = exports.de_ListEventRulesCommand = exports.de_ListChannelsCommand = exports.de_GetNotificationsAccessForOrganizationCommand = exports.de_GetNotificationEventCommand = exports.de_GetNotificationConfigurationCommand = exports.de_GetManagedNotificationEventCommand = exports.de_GetManagedNotificationConfigurationCommand = exports.de_GetManagedNotificationChildEventCommand = exports.de_GetEventRuleCommand = exports.de_EnableNotificationsAccessForOrganizationCommand = exports.de_DisassociateOrganizationalUnitCommand = exports.de_DisassociateManagedNotificationAdditionalChannelCommand = exports.de_DisassociateManagedNotificationAccountContactCommand = void 0;
|
|
5
5
|
const core_1 = require("@aws-sdk/core");
|
|
6
6
|
const core_2 = require("@smithy/core");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
@@ -52,6 +52,21 @@ const se_AssociateManagedNotificationAdditionalChannelCommand = async (input, co
|
|
|
52
52
|
return b.build();
|
|
53
53
|
};
|
|
54
54
|
exports.se_AssociateManagedNotificationAdditionalChannelCommand = se_AssociateManagedNotificationAdditionalChannelCommand;
|
|
55
|
+
const se_AssociateOrganizationalUnitCommand = async (input, context) => {
|
|
56
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
57
|
+
const headers = {
|
|
58
|
+
"content-type": "application/json",
|
|
59
|
+
};
|
|
60
|
+
b.bp("/organizational-units/associate/{organizationalUnitId}");
|
|
61
|
+
b.p("organizationalUnitId", () => input.organizationalUnitId, "{organizationalUnitId}", false);
|
|
62
|
+
let body;
|
|
63
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
64
|
+
notificationConfigurationArn: [],
|
|
65
|
+
}));
|
|
66
|
+
b.m("POST").h(headers).b(body);
|
|
67
|
+
return b.build();
|
|
68
|
+
};
|
|
69
|
+
exports.se_AssociateOrganizationalUnitCommand = se_AssociateOrganizationalUnitCommand;
|
|
55
70
|
const se_CreateEventRuleCommand = async (input, context) => {
|
|
56
71
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
57
72
|
const headers = {
|
|
@@ -171,6 +186,21 @@ const se_DisassociateManagedNotificationAdditionalChannelCommand = async (input,
|
|
|
171
186
|
return b.build();
|
|
172
187
|
};
|
|
173
188
|
exports.se_DisassociateManagedNotificationAdditionalChannelCommand = se_DisassociateManagedNotificationAdditionalChannelCommand;
|
|
189
|
+
const se_DisassociateOrganizationalUnitCommand = async (input, context) => {
|
|
190
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
191
|
+
const headers = {
|
|
192
|
+
"content-type": "application/json",
|
|
193
|
+
};
|
|
194
|
+
b.bp("/organizational-units/disassociate/{organizationalUnitId}");
|
|
195
|
+
b.p("organizationalUnitId", () => input.organizationalUnitId, "{organizationalUnitId}", false);
|
|
196
|
+
let body;
|
|
197
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
198
|
+
notificationConfigurationArn: [],
|
|
199
|
+
}));
|
|
200
|
+
b.m("POST").h(headers).b(body);
|
|
201
|
+
return b.build();
|
|
202
|
+
};
|
|
203
|
+
exports.se_DisassociateOrganizationalUnitCommand = se_DisassociateOrganizationalUnitCommand;
|
|
174
204
|
const se_EnableNotificationsAccessForOrganizationCommand = async (input, context) => {
|
|
175
205
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
176
206
|
const headers = {};
|
|
@@ -352,6 +382,23 @@ const se_ListManagedNotificationEventsCommand = async (input, context) => {
|
|
|
352
382
|
return b.build();
|
|
353
383
|
};
|
|
354
384
|
exports.se_ListManagedNotificationEventsCommand = se_ListManagedNotificationEventsCommand;
|
|
385
|
+
const se_ListMemberAccountsCommand = async (input, context) => {
|
|
386
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
387
|
+
const headers = {};
|
|
388
|
+
b.bp("/list-member-accounts");
|
|
389
|
+
const query = (0, smithy_client_1.map)({
|
|
390
|
+
[_nCA]: [, (0, smithy_client_1.expectNonNull)(input[_nCA], `notificationConfigurationArn`)],
|
|
391
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
392
|
+
[_nT]: [, input[_nT]],
|
|
393
|
+
[_mA]: [, input[_mA]],
|
|
394
|
+
[_st]: [, input[_st]],
|
|
395
|
+
[_oUI]: [, input[_oUI]],
|
|
396
|
+
});
|
|
397
|
+
let body;
|
|
398
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
399
|
+
return b.build();
|
|
400
|
+
};
|
|
401
|
+
exports.se_ListMemberAccountsCommand = se_ListMemberAccountsCommand;
|
|
355
402
|
const se_ListNotificationConfigurationsCommand = async (input, context) => {
|
|
356
403
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
357
404
|
const headers = {};
|
|
@@ -360,6 +407,7 @@ const se_ListNotificationConfigurationsCommand = async (input, context) => {
|
|
|
360
407
|
[_eRS]: [, input[_eRS]],
|
|
361
408
|
[_cA]: [, input[_cA]],
|
|
362
409
|
[_st]: [, input[_st]],
|
|
410
|
+
[_su]: [, input[_su]],
|
|
363
411
|
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
364
412
|
[_nT]: [, input[_nT]],
|
|
365
413
|
});
|
|
@@ -381,6 +429,7 @@ const se_ListNotificationEventsCommand = async (input, context) => {
|
|
|
381
429
|
[_aNEA]: [, input[_aNEA]],
|
|
382
430
|
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
383
431
|
[_nT]: [, input[_nT]],
|
|
432
|
+
[_oUI]: [, input[_oUI]],
|
|
384
433
|
});
|
|
385
434
|
let body;
|
|
386
435
|
b.m("GET").h(headers).q(query).b(body);
|
|
@@ -400,6 +449,20 @@ const se_ListNotificationHubsCommand = async (input, context) => {
|
|
|
400
449
|
return b.build();
|
|
401
450
|
};
|
|
402
451
|
exports.se_ListNotificationHubsCommand = se_ListNotificationHubsCommand;
|
|
452
|
+
const se_ListOrganizationalUnitsCommand = async (input, context) => {
|
|
453
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
454
|
+
const headers = {};
|
|
455
|
+
b.bp("/organizational-units");
|
|
456
|
+
const query = (0, smithy_client_1.map)({
|
|
457
|
+
[_nCA]: [, (0, smithy_client_1.expectNonNull)(input[_nCA], `notificationConfigurationArn`)],
|
|
458
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
459
|
+
[_nT]: [, input[_nT]],
|
|
460
|
+
});
|
|
461
|
+
let body;
|
|
462
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
463
|
+
return b.build();
|
|
464
|
+
};
|
|
465
|
+
exports.se_ListOrganizationalUnitsCommand = se_ListOrganizationalUnitsCommand;
|
|
403
466
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
404
467
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
405
468
|
const headers = {};
|
|
@@ -518,6 +581,17 @@ const de_AssociateManagedNotificationAdditionalChannelCommand = async (output, c
|
|
|
518
581
|
return contents;
|
|
519
582
|
};
|
|
520
583
|
exports.de_AssociateManagedNotificationAdditionalChannelCommand = de_AssociateManagedNotificationAdditionalChannelCommand;
|
|
584
|
+
const de_AssociateOrganizationalUnitCommand = async (output, context) => {
|
|
585
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
586
|
+
return de_CommandError(output, context);
|
|
587
|
+
}
|
|
588
|
+
const contents = (0, smithy_client_1.map)({
|
|
589
|
+
$metadata: deserializeMetadata(output),
|
|
590
|
+
});
|
|
591
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
592
|
+
return contents;
|
|
593
|
+
};
|
|
594
|
+
exports.de_AssociateOrganizationalUnitCommand = de_AssociateOrganizationalUnitCommand;
|
|
521
595
|
const de_CreateEventRuleCommand = async (output, context) => {
|
|
522
596
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
523
597
|
return de_CommandError(output, context);
|
|
@@ -633,6 +707,17 @@ const de_DisassociateManagedNotificationAdditionalChannelCommand = async (output
|
|
|
633
707
|
return contents;
|
|
634
708
|
};
|
|
635
709
|
exports.de_DisassociateManagedNotificationAdditionalChannelCommand = de_DisassociateManagedNotificationAdditionalChannelCommand;
|
|
710
|
+
const de_DisassociateOrganizationalUnitCommand = async (output, context) => {
|
|
711
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
712
|
+
return de_CommandError(output, context);
|
|
713
|
+
}
|
|
714
|
+
const contents = (0, smithy_client_1.map)({
|
|
715
|
+
$metadata: deserializeMetadata(output),
|
|
716
|
+
});
|
|
717
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
718
|
+
return contents;
|
|
719
|
+
};
|
|
720
|
+
exports.de_DisassociateOrganizationalUnitCommand = de_DisassociateOrganizationalUnitCommand;
|
|
636
721
|
const de_EnableNotificationsAccessForOrganizationCommand = async (output, context) => {
|
|
637
722
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
638
723
|
return de_CommandError(output, context);
|
|
@@ -737,6 +822,7 @@ const de_GetNotificationConfigurationCommand = async (output, context) => {
|
|
|
737
822
|
description: smithy_client_1.expectString,
|
|
738
823
|
name: smithy_client_1.expectString,
|
|
739
824
|
status: smithy_client_1.expectString,
|
|
825
|
+
subtype: smithy_client_1.expectString,
|
|
740
826
|
});
|
|
741
827
|
Object.assign(contents, doc);
|
|
742
828
|
return contents;
|
|
@@ -871,6 +957,22 @@ const de_ListManagedNotificationEventsCommand = async (output, context) => {
|
|
|
871
957
|
return contents;
|
|
872
958
|
};
|
|
873
959
|
exports.de_ListManagedNotificationEventsCommand = de_ListManagedNotificationEventsCommand;
|
|
960
|
+
const de_ListMemberAccountsCommand = async (output, context) => {
|
|
961
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
962
|
+
return de_CommandError(output, context);
|
|
963
|
+
}
|
|
964
|
+
const contents = (0, smithy_client_1.map)({
|
|
965
|
+
$metadata: deserializeMetadata(output),
|
|
966
|
+
});
|
|
967
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
968
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
969
|
+
memberAccounts: smithy_client_1._json,
|
|
970
|
+
nextToken: smithy_client_1.expectString,
|
|
971
|
+
});
|
|
972
|
+
Object.assign(contents, doc);
|
|
973
|
+
return contents;
|
|
974
|
+
};
|
|
975
|
+
exports.de_ListMemberAccountsCommand = de_ListMemberAccountsCommand;
|
|
874
976
|
const de_ListNotificationConfigurationsCommand = async (output, context) => {
|
|
875
977
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
876
978
|
return de_CommandError(output, context);
|
|
@@ -919,6 +1021,22 @@ const de_ListNotificationHubsCommand = async (output, context) => {
|
|
|
919
1021
|
return contents;
|
|
920
1022
|
};
|
|
921
1023
|
exports.de_ListNotificationHubsCommand = de_ListNotificationHubsCommand;
|
|
1024
|
+
const de_ListOrganizationalUnitsCommand = async (output, context) => {
|
|
1025
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1026
|
+
return de_CommandError(output, context);
|
|
1027
|
+
}
|
|
1028
|
+
const contents = (0, smithy_client_1.map)({
|
|
1029
|
+
$metadata: deserializeMetadata(output),
|
|
1030
|
+
});
|
|
1031
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
1032
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1033
|
+
nextToken: smithy_client_1.expectString,
|
|
1034
|
+
organizationalUnits: smithy_client_1._json,
|
|
1035
|
+
});
|
|
1036
|
+
Object.assign(contents, doc);
|
|
1037
|
+
return contents;
|
|
1038
|
+
};
|
|
1039
|
+
exports.de_ListOrganizationalUnitsCommand = de_ListOrganizationalUnitsCommand;
|
|
922
1040
|
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
923
1041
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
924
1042
|
return de_CommandError(output, context);
|
|
@@ -1258,6 +1376,7 @@ const de_NotificationConfigurationStructure = (output, context) => {
|
|
|
1258
1376
|
description: smithy_client_1.expectString,
|
|
1259
1377
|
name: smithy_client_1.expectString,
|
|
1260
1378
|
status: smithy_client_1.expectString,
|
|
1379
|
+
subtype: smithy_client_1.expectString,
|
|
1261
1380
|
});
|
|
1262
1381
|
};
|
|
1263
1382
|
const de_NotificationEventOverview = (output, context) => {
|
|
@@ -1269,6 +1388,7 @@ const de_NotificationEventOverview = (output, context) => {
|
|
|
1269
1388
|
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1270
1389
|
notificationConfigurationArn: smithy_client_1.expectString,
|
|
1271
1390
|
notificationEvent: smithy_client_1._json,
|
|
1391
|
+
organizationalUnitId: smithy_client_1.expectString,
|
|
1272
1392
|
relatedAccount: smithy_client_1.expectString,
|
|
1273
1393
|
});
|
|
1274
1394
|
};
|
|
@@ -1291,6 +1411,7 @@ const de_NotificationEventSchema = (output, context) => {
|
|
|
1291
1411
|
media: smithy_client_1._json,
|
|
1292
1412
|
messageComponents: smithy_client_1._json,
|
|
1293
1413
|
notificationType: smithy_client_1.expectString,
|
|
1414
|
+
organizationalUnitId: smithy_client_1.expectString,
|
|
1294
1415
|
schemaVersion: smithy_client_1.expectString,
|
|
1295
1416
|
sourceEventDetailUrl: smithy_client_1.expectString,
|
|
1296
1417
|
sourceEventDetailUrlDisplayText: smithy_client_1.expectString,
|
|
@@ -1341,6 +1462,7 @@ const _eRS = "eventRuleSource";
|
|
|
1341
1462
|
const _eT = "endTime";
|
|
1342
1463
|
const _iCE = "includeChildEvents";
|
|
1343
1464
|
const _l = "locale";
|
|
1465
|
+
const _mA = "memberAccount";
|
|
1344
1466
|
const _mNCA = "managedNotificationConfigurationArn";
|
|
1345
1467
|
const _mR = "maxResults";
|
|
1346
1468
|
const _nCA = "notificationConfigurationArn";
|
|
@@ -1352,4 +1474,5 @@ const _ra = "retry-after";
|
|
|
1352
1474
|
const _s = "source";
|
|
1353
1475
|
const _sT = "startTime";
|
|
1354
1476
|
const _st = "status";
|
|
1477
|
+
const _su = "subtype";
|
|
1355
1478
|
const _tK = "tagKeys";
|