@aws-sdk/client-fms 3.316.0 → 3.319.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 -1
- package/dist-cjs/FMS.js +8 -0
- package/dist-cjs/commands/GetAdminScopeCommand.js +45 -0
- package/dist-cjs/commands/ListAdminAccountsForOrganizationCommand.js +45 -0
- package/dist-cjs/commands/ListAdminsManagingAccountCommand.js +45 -0
- package/dist-cjs/commands/PutAdminAccountCommand.js +45 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +27 -13
- package/dist-cjs/pagination/ListAdminAccountsForOrganizationPaginator.js +29 -0
- package/dist-cjs/pagination/ListAdminsManagingAccountPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_json1_1.js +192 -2
- package/dist-es/FMS.js +8 -0
- package/dist-es/commands/GetAdminScopeCommand.js +41 -0
- package/dist-es/commands/ListAdminAccountsForOrganizationCommand.js +41 -0
- package/dist-es/commands/ListAdminsManagingAccountCommand.js +41 -0
- package/dist-es/commands/PutAdminAccountCommand.js +41 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +26 -12
- package/dist-es/pagination/ListAdminAccountsForOrganizationPaginator.js +25 -0
- package/dist-es/pagination/ListAdminsManagingAccountPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_1.js +182 -0
- package/dist-types/FMS.d.ts +29 -1
- package/dist-types/FMSClient.d.ts +7 -3
- package/dist-types/commands/AssociateAdminAccountCommand.d.ts +2 -4
- package/dist-types/commands/DisassociateAdminAccountCommand.d.ts +2 -3
- package/dist-types/commands/GetAdminAccountCommand.d.ts +1 -1
- package/dist-types/commands/GetAdminScopeCommand.d.ts +80 -0
- package/dist-types/commands/GetComplianceDetailCommand.d.ts +4 -4
- package/dist-types/commands/ListAdminAccountsForOrganizationCommand.d.ts +79 -0
- package/dist-types/commands/ListAdminsManagingAccountCommand.d.ts +74 -0
- package/dist-types/commands/ListMemberAccountsCommand.d.ts +1 -2
- package/dist-types/commands/PutAdminAccountCommand.d.ts +112 -0
- package/dist-types/commands/PutNotificationChannelCommand.d.ts +2 -3
- package/dist-types/commands/PutPolicyCommand.d.ts +1 -0
- package/dist-types/commands/PutResourceSetCommand.d.ts +1 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +436 -59
- package/dist-types/pagination/ListAdminAccountsForOrganizationPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAdminsManagingAccountPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +36 -0
- package/dist-types/ts3.4/FMS.d.ts +68 -0
- package/dist-types/ts3.4/FMSClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/GetAdminScopeCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListAdminAccountsForOrganizationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListAdminsManagingAccountCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/PutAdminAccountCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +94 -14
- package/dist-types/ts3.4/pagination/ListAdminAccountsForOrganizationPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAdminsManagingAccountPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +48 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ developers who need detailed information about the Firewall Manager API actions,
|
|
|
14
14
|
types, and errors. For detailed information about Firewall Manager features, see the
|
|
15
15
|
<a href="https://docs.aws.amazon.com/waf/latest/developerguide/fms-chapter.html">Firewall Manager Developer Guide</a>.</p>
|
|
16
16
|
<p>Some API actions require explicit resource permissions. For information, see the developer guide topic
|
|
17
|
-
<a href="https://docs.aws.amazon.com/waf/latest/developerguide/fms-
|
|
17
|
+
<a href="https://docs.aws.amazon.com/waf/latest/developerguide/fms-security_iam_service-with-iam.html#fms-security_iam_service-with-iam-roles-service">Service roles for Firewall Manager</a>.
|
|
18
18
|
</p>
|
|
19
19
|
|
|
20
20
|
## Installing
|
|
@@ -307,6 +307,14 @@ GetAdminAccount
|
|
|
307
307
|
|
|
308
308
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-fms/classes/getadminaccountcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-fms/interfaces/getadminaccountcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-fms/interfaces/getadminaccountcommandoutput.html)
|
|
309
309
|
|
|
310
|
+
</details>
|
|
311
|
+
<details>
|
|
312
|
+
<summary>
|
|
313
|
+
GetAdminScope
|
|
314
|
+
</summary>
|
|
315
|
+
|
|
316
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-fms/classes/getadminscopecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-fms/interfaces/getadminscopecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-fms/interfaces/getadminscopecommandoutput.html)
|
|
317
|
+
|
|
310
318
|
</details>
|
|
311
319
|
<details>
|
|
312
320
|
<summary>
|
|
@@ -379,6 +387,22 @@ GetViolationDetails
|
|
|
379
387
|
|
|
380
388
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-fms/classes/getviolationdetailscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-fms/interfaces/getviolationdetailscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-fms/interfaces/getviolationdetailscommandoutput.html)
|
|
381
389
|
|
|
390
|
+
</details>
|
|
391
|
+
<details>
|
|
392
|
+
<summary>
|
|
393
|
+
ListAdminAccountsForOrganization
|
|
394
|
+
</summary>
|
|
395
|
+
|
|
396
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-fms/classes/listadminaccountsfororganizationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-fms/interfaces/listadminaccountsfororganizationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-fms/interfaces/listadminaccountsfororganizationcommandoutput.html)
|
|
397
|
+
|
|
398
|
+
</details>
|
|
399
|
+
<details>
|
|
400
|
+
<summary>
|
|
401
|
+
ListAdminsManagingAccount
|
|
402
|
+
</summary>
|
|
403
|
+
|
|
404
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-fms/classes/listadminsmanagingaccountcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-fms/interfaces/listadminsmanagingaccountcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-fms/interfaces/listadminsmanagingaccountcommandoutput.html)
|
|
405
|
+
|
|
382
406
|
</details>
|
|
383
407
|
<details>
|
|
384
408
|
<summary>
|
|
@@ -459,6 +483,14 @@ ListThirdPartyFirewallFirewallPolicies
|
|
|
459
483
|
|
|
460
484
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-fms/classes/listthirdpartyfirewallfirewallpoliciescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-fms/interfaces/listthirdpartyfirewallfirewallpoliciescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-fms/interfaces/listthirdpartyfirewallfirewallpoliciescommandoutput.html)
|
|
461
485
|
|
|
486
|
+
</details>
|
|
487
|
+
<details>
|
|
488
|
+
<summary>
|
|
489
|
+
PutAdminAccount
|
|
490
|
+
</summary>
|
|
491
|
+
|
|
492
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-fms/classes/putadminaccountcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-fms/interfaces/putadminaccountcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-fms/interfaces/putadminaccountcommandoutput.html)
|
|
493
|
+
|
|
462
494
|
</details>
|
|
463
495
|
<details>
|
|
464
496
|
<summary>
|
package/dist-cjs/FMS.js
CHANGED
|
@@ -14,6 +14,7 @@ const DeleteResourceSetCommand_1 = require("./commands/DeleteResourceSetCommand"
|
|
|
14
14
|
const DisassociateAdminAccountCommand_1 = require("./commands/DisassociateAdminAccountCommand");
|
|
15
15
|
const DisassociateThirdPartyFirewallCommand_1 = require("./commands/DisassociateThirdPartyFirewallCommand");
|
|
16
16
|
const GetAdminAccountCommand_1 = require("./commands/GetAdminAccountCommand");
|
|
17
|
+
const GetAdminScopeCommand_1 = require("./commands/GetAdminScopeCommand");
|
|
17
18
|
const GetAppsListCommand_1 = require("./commands/GetAppsListCommand");
|
|
18
19
|
const GetComplianceDetailCommand_1 = require("./commands/GetComplianceDetailCommand");
|
|
19
20
|
const GetNotificationChannelCommand_1 = require("./commands/GetNotificationChannelCommand");
|
|
@@ -23,6 +24,8 @@ const GetProtocolsListCommand_1 = require("./commands/GetProtocolsListCommand");
|
|
|
23
24
|
const GetResourceSetCommand_1 = require("./commands/GetResourceSetCommand");
|
|
24
25
|
const GetThirdPartyFirewallAssociationStatusCommand_1 = require("./commands/GetThirdPartyFirewallAssociationStatusCommand");
|
|
25
26
|
const GetViolationDetailsCommand_1 = require("./commands/GetViolationDetailsCommand");
|
|
27
|
+
const ListAdminAccountsForOrganizationCommand_1 = require("./commands/ListAdminAccountsForOrganizationCommand");
|
|
28
|
+
const ListAdminsManagingAccountCommand_1 = require("./commands/ListAdminsManagingAccountCommand");
|
|
26
29
|
const ListAppsListsCommand_1 = require("./commands/ListAppsListsCommand");
|
|
27
30
|
const ListComplianceStatusCommand_1 = require("./commands/ListComplianceStatusCommand");
|
|
28
31
|
const ListDiscoveredResourcesCommand_1 = require("./commands/ListDiscoveredResourcesCommand");
|
|
@@ -33,6 +36,7 @@ const ListResourceSetResourcesCommand_1 = require("./commands/ListResourceSetRes
|
|
|
33
36
|
const ListResourceSetsCommand_1 = require("./commands/ListResourceSetsCommand");
|
|
34
37
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
35
38
|
const ListThirdPartyFirewallFirewallPoliciesCommand_1 = require("./commands/ListThirdPartyFirewallFirewallPoliciesCommand");
|
|
39
|
+
const PutAdminAccountCommand_1 = require("./commands/PutAdminAccountCommand");
|
|
36
40
|
const PutAppsListCommand_1 = require("./commands/PutAppsListCommand");
|
|
37
41
|
const PutNotificationChannelCommand_1 = require("./commands/PutNotificationChannelCommand");
|
|
38
42
|
const PutPolicyCommand_1 = require("./commands/PutPolicyCommand");
|
|
@@ -54,6 +58,7 @@ const commands = {
|
|
|
54
58
|
DisassociateAdminAccountCommand: DisassociateAdminAccountCommand_1.DisassociateAdminAccountCommand,
|
|
55
59
|
DisassociateThirdPartyFirewallCommand: DisassociateThirdPartyFirewallCommand_1.DisassociateThirdPartyFirewallCommand,
|
|
56
60
|
GetAdminAccountCommand: GetAdminAccountCommand_1.GetAdminAccountCommand,
|
|
61
|
+
GetAdminScopeCommand: GetAdminScopeCommand_1.GetAdminScopeCommand,
|
|
57
62
|
GetAppsListCommand: GetAppsListCommand_1.GetAppsListCommand,
|
|
58
63
|
GetComplianceDetailCommand: GetComplianceDetailCommand_1.GetComplianceDetailCommand,
|
|
59
64
|
GetNotificationChannelCommand: GetNotificationChannelCommand_1.GetNotificationChannelCommand,
|
|
@@ -63,6 +68,8 @@ const commands = {
|
|
|
63
68
|
GetResourceSetCommand: GetResourceSetCommand_1.GetResourceSetCommand,
|
|
64
69
|
GetThirdPartyFirewallAssociationStatusCommand: GetThirdPartyFirewallAssociationStatusCommand_1.GetThirdPartyFirewallAssociationStatusCommand,
|
|
65
70
|
GetViolationDetailsCommand: GetViolationDetailsCommand_1.GetViolationDetailsCommand,
|
|
71
|
+
ListAdminAccountsForOrganizationCommand: ListAdminAccountsForOrganizationCommand_1.ListAdminAccountsForOrganizationCommand,
|
|
72
|
+
ListAdminsManagingAccountCommand: ListAdminsManagingAccountCommand_1.ListAdminsManagingAccountCommand,
|
|
66
73
|
ListAppsListsCommand: ListAppsListsCommand_1.ListAppsListsCommand,
|
|
67
74
|
ListComplianceStatusCommand: ListComplianceStatusCommand_1.ListComplianceStatusCommand,
|
|
68
75
|
ListDiscoveredResourcesCommand: ListDiscoveredResourcesCommand_1.ListDiscoveredResourcesCommand,
|
|
@@ -73,6 +80,7 @@ const commands = {
|
|
|
73
80
|
ListResourceSetsCommand: ListResourceSetsCommand_1.ListResourceSetsCommand,
|
|
74
81
|
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
75
82
|
ListThirdPartyFirewallFirewallPoliciesCommand: ListThirdPartyFirewallFirewallPoliciesCommand_1.ListThirdPartyFirewallFirewallPoliciesCommand,
|
|
83
|
+
PutAdminAccountCommand: PutAdminAccountCommand_1.PutAdminAccountCommand,
|
|
76
84
|
PutAppsListCommand: PutAppsListCommand_1.PutAppsListCommand,
|
|
77
85
|
PutNotificationChannelCommand: PutNotificationChannelCommand_1.PutNotificationChannelCommand,
|
|
78
86
|
PutPolicyCommand: PutPolicyCommand_1.PutPolicyCommand,
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAdminScopeCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class GetAdminScopeCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetAdminScopeCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "FMSClient";
|
|
27
|
+
const commandName = "GetAdminScopeCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_json1_1_1.se_GetAdminScopeCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_json1_1_1.de_GetAdminScopeCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.GetAdminScopeCommand = GetAdminScopeCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListAdminAccountsForOrganizationCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class ListAdminAccountsForOrganizationCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAdminAccountsForOrganizationCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "FMSClient";
|
|
27
|
+
const commandName = "ListAdminAccountsForOrganizationCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_json1_1_1.se_ListAdminAccountsForOrganizationCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_json1_1_1.de_ListAdminAccountsForOrganizationCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ListAdminAccountsForOrganizationCommand = ListAdminAccountsForOrganizationCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListAdminsManagingAccountCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class ListAdminsManagingAccountCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAdminsManagingAccountCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "FMSClient";
|
|
27
|
+
const commandName = "ListAdminsManagingAccountCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_json1_1_1.se_ListAdminsManagingAccountCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_json1_1_1.de_ListAdminsManagingAccountCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ListAdminsManagingAccountCommand = ListAdminsManagingAccountCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PutAdminAccountCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class PutAdminAccountCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutAdminAccountCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "FMSClient";
|
|
27
|
+
const commandName = "PutAdminAccountCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_json1_1_1.se_PutAdminAccountCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_json1_1_1.de_PutAdminAccountCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.PutAdminAccountCommand = PutAdminAccountCommand;
|
|
@@ -13,6 +13,7 @@ tslib_1.__exportStar(require("./DeleteResourceSetCommand"), exports);
|
|
|
13
13
|
tslib_1.__exportStar(require("./DisassociateAdminAccountCommand"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./DisassociateThirdPartyFirewallCommand"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./GetAdminAccountCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./GetAdminScopeCommand"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./GetAppsListCommand"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./GetComplianceDetailCommand"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./GetNotificationChannelCommand"), exports);
|
|
@@ -22,6 +23,8 @@ tslib_1.__exportStar(require("./GetProtocolsListCommand"), exports);
|
|
|
22
23
|
tslib_1.__exportStar(require("./GetResourceSetCommand"), exports);
|
|
23
24
|
tslib_1.__exportStar(require("./GetThirdPartyFirewallAssociationStatusCommand"), exports);
|
|
24
25
|
tslib_1.__exportStar(require("./GetViolationDetailsCommand"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./ListAdminAccountsForOrganizationCommand"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./ListAdminsManagingAccountCommand"), exports);
|
|
25
28
|
tslib_1.__exportStar(require("./ListAppsListsCommand"), exports);
|
|
26
29
|
tslib_1.__exportStar(require("./ListComplianceStatusCommand"), exports);
|
|
27
30
|
tslib_1.__exportStar(require("./ListDiscoveredResourcesCommand"), exports);
|
|
@@ -32,6 +35,7 @@ tslib_1.__exportStar(require("./ListResourceSetResourcesCommand"), exports);
|
|
|
32
35
|
tslib_1.__exportStar(require("./ListResourceSetsCommand"), exports);
|
|
33
36
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
34
37
|
tslib_1.__exportStar(require("./ListThirdPartyFirewallFirewallPoliciesCommand"), exports);
|
|
38
|
+
tslib_1.__exportStar(require("./PutAdminAccountCommand"), exports);
|
|
35
39
|
tslib_1.__exportStar(require("./PutAppsListCommand"), exports);
|
|
36
40
|
tslib_1.__exportStar(require("./PutNotificationChannelCommand"), exports);
|
|
37
41
|
tslib_1.__exportStar(require("./PutPolicyCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const q = "
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://fms-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://fms-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://fms.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://fms.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PolicyComplianceStatusType = exports.NetworkFirewallOverrideAction = exports.RuleOrder = exports.TargetType = exports.DestinationType = exports.RemediationActionType = exports.MarketplaceSubscriptionOnboardingStatus = exports.
|
|
3
|
+
exports.PolicyComplianceStatusType = exports.NetworkFirewallOverrideAction = exports.RuleOrder = exports.TargetType = exports.DestinationType = exports.RemediationActionType = exports.MarketplaceSubscriptionOnboardingStatus = exports.ResourceSetStatus = exports.InvalidTypeException = exports.FirewallDeploymentModel = exports.CustomerPolicyStatus = exports.CustomerPolicyScopeIdType = exports.ViolationReason = exports.DependentServiceName = exports.FailedItemReason = exports.ThirdPartyFirewallAssociationStatus = exports.ThirdPartyFirewall = exports.ResourceNotFoundException = exports.LimitExceededException = exports.InvalidOperationException = exports.InvalidInputException = exports.InternalErrorException = exports.SecurityServiceType = exports.OrganizationStatus = exports.AccountRoleStatus = void 0;
|
|
4
4
|
const FMSServiceException_1 = require("./FMSServiceException");
|
|
5
5
|
exports.AccountRoleStatus = {
|
|
6
6
|
Creating: "CREATING",
|
|
@@ -9,6 +9,24 @@ exports.AccountRoleStatus = {
|
|
|
9
9
|
PendingDeletion: "PENDING_DELETION",
|
|
10
10
|
Ready: "READY",
|
|
11
11
|
};
|
|
12
|
+
exports.OrganizationStatus = {
|
|
13
|
+
Offboarding: "OFFBOARDING",
|
|
14
|
+
OffboardingComplete: "OFFBOARDING_COMPLETE",
|
|
15
|
+
Onboarding: "ONBOARDING",
|
|
16
|
+
OnboardingComplete: "ONBOARDING_COMPLETE",
|
|
17
|
+
};
|
|
18
|
+
exports.SecurityServiceType = {
|
|
19
|
+
DNS_FIREWALL: "DNS_FIREWALL",
|
|
20
|
+
IMPORT_NETWORK_FIREWALL: "IMPORT_NETWORK_FIREWALL",
|
|
21
|
+
NETWORK_FIREWALL: "NETWORK_FIREWALL",
|
|
22
|
+
SECURITY_GROUPS_COMMON: "SECURITY_GROUPS_COMMON",
|
|
23
|
+
SECURITY_GROUPS_CONTENT_AUDIT: "SECURITY_GROUPS_CONTENT_AUDIT",
|
|
24
|
+
SECURITY_GROUPS_USAGE_AUDIT: "SECURITY_GROUPS_USAGE_AUDIT",
|
|
25
|
+
SHIELD_ADVANCED: "SHIELD_ADVANCED",
|
|
26
|
+
THIRD_PARTY_FIREWALL: "THIRD_PARTY_FIREWALL",
|
|
27
|
+
WAF: "WAF",
|
|
28
|
+
WAFV2: "WAFV2",
|
|
29
|
+
};
|
|
12
30
|
class InternalErrorException extends FMSServiceException_1.FMSServiceException {
|
|
13
31
|
constructor(opts) {
|
|
14
32
|
super({
|
|
@@ -138,22 +156,14 @@ exports.CustomerPolicyScopeIdType = {
|
|
|
138
156
|
ACCOUNT: "ACCOUNT",
|
|
139
157
|
ORG_UNIT: "ORG_UNIT",
|
|
140
158
|
};
|
|
159
|
+
exports.CustomerPolicyStatus = {
|
|
160
|
+
ACTIVE: "ACTIVE",
|
|
161
|
+
OUT_OF_ADMIN_SCOPE: "OUT_OF_ADMIN_SCOPE",
|
|
162
|
+
};
|
|
141
163
|
exports.FirewallDeploymentModel = {
|
|
142
164
|
CENTRALIZED: "CENTRALIZED",
|
|
143
165
|
DISTRIBUTED: "DISTRIBUTED",
|
|
144
166
|
};
|
|
145
|
-
exports.SecurityServiceType = {
|
|
146
|
-
DNS_FIREWALL: "DNS_FIREWALL",
|
|
147
|
-
IMPORT_NETWORK_FIREWALL: "IMPORT_NETWORK_FIREWALL",
|
|
148
|
-
NETWORK_FIREWALL: "NETWORK_FIREWALL",
|
|
149
|
-
SECURITY_GROUPS_COMMON: "SECURITY_GROUPS_COMMON",
|
|
150
|
-
SECURITY_GROUPS_CONTENT_AUDIT: "SECURITY_GROUPS_CONTENT_AUDIT",
|
|
151
|
-
SECURITY_GROUPS_USAGE_AUDIT: "SECURITY_GROUPS_USAGE_AUDIT",
|
|
152
|
-
SHIELD_ADVANCED: "SHIELD_ADVANCED",
|
|
153
|
-
THIRD_PARTY_FIREWALL: "THIRD_PARTY_FIREWALL",
|
|
154
|
-
WAF: "WAF",
|
|
155
|
-
WAFV2: "WAFV2",
|
|
156
|
-
};
|
|
157
167
|
class InvalidTypeException extends FMSServiceException_1.FMSServiceException {
|
|
158
168
|
constructor(opts) {
|
|
159
169
|
super({
|
|
@@ -168,6 +178,10 @@ class InvalidTypeException extends FMSServiceException_1.FMSServiceException {
|
|
|
168
178
|
}
|
|
169
179
|
}
|
|
170
180
|
exports.InvalidTypeException = InvalidTypeException;
|
|
181
|
+
exports.ResourceSetStatus = {
|
|
182
|
+
ACTIVE: "ACTIVE",
|
|
183
|
+
OUT_OF_ADMIN_SCOPE: "OUT_OF_ADMIN_SCOPE",
|
|
184
|
+
};
|
|
171
185
|
exports.MarketplaceSubscriptionOnboardingStatus = {
|
|
172
186
|
COMPLETE: "COMPLETE",
|
|
173
187
|
NOT_COMPLETE: "NOT_COMPLETE",
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListAdminAccountsForOrganization = void 0;
|
|
4
|
+
const ListAdminAccountsForOrganizationCommand_1 = require("../commands/ListAdminAccountsForOrganizationCommand");
|
|
5
|
+
const FMSClient_1 = require("../FMSClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListAdminAccountsForOrganizationCommand_1.ListAdminAccountsForOrganizationCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListAdminAccountsForOrganization(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.NextToken = token;
|
|
15
|
+
input["MaxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof FMSClient_1.FMSClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected FMS | FMSClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.NextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListAdminAccountsForOrganization = paginateListAdminAccountsForOrganization;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListAdminsManagingAccount = void 0;
|
|
4
|
+
const ListAdminsManagingAccountCommand_1 = require("../commands/ListAdminsManagingAccountCommand");
|
|
5
|
+
const FMSClient_1 = require("../FMSClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListAdminsManagingAccountCommand_1.ListAdminsManagingAccountCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListAdminsManagingAccount(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.NextToken = token;
|
|
15
|
+
input["MaxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof FMSClient_1.FMSClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected FMS | FMSClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.NextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListAdminsManagingAccount = paginateListAdminsManagingAccount;
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./ListAdminAccountsForOrganizationPaginator"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ListAdminsManagingAccountPaginator"), exports);
|
|
5
7
|
tslib_1.__exportStar(require("./ListAppsListsPaginator"), exports);
|
|
6
8
|
tslib_1.__exportStar(require("./ListComplianceStatusPaginator"), exports);
|
|
7
9
|
tslib_1.__exportStar(require("./ListMemberAccountsPaginator"), exports);
|