@aws-sdk/client-fms 3.316.0 → 3.318.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 +1 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { FMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FMSClient";
|
|
5
|
+
import { ListAdminsManagingAccountRequest, ListAdminsManagingAccountResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
9
|
+
* The input for {@link ListAdminsManagingAccountCommand}.
|
|
10
|
+
*/
|
|
11
|
+
export interface ListAdminsManagingAccountCommandInput extends ListAdminsManagingAccountRequest {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
16
|
+
* The output of {@link ListAdminsManagingAccountCommand}.
|
|
17
|
+
*/
|
|
18
|
+
export interface ListAdminsManagingAccountCommandOutput extends ListAdminsManagingAccountResponse, __MetadataBearer {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @public
|
|
22
|
+
* <p>Lists the accounts that are managing the specified Organizations member account. This is useful for any member account so that they can view the accounts who are managing their account. This operation only returns the managing administrators that have the requested account within their <a>AdminScope</a>.</p>
|
|
23
|
+
* @example
|
|
24
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
25
|
+
* ```javascript
|
|
26
|
+
* import { FMSClient, ListAdminsManagingAccountCommand } from "@aws-sdk/client-fms"; // ES Modules import
|
|
27
|
+
* // const { FMSClient, ListAdminsManagingAccountCommand } = require("@aws-sdk/client-fms"); // CommonJS import
|
|
28
|
+
* const client = new FMSClient(config);
|
|
29
|
+
* const input = { // ListAdminsManagingAccountRequest
|
|
30
|
+
* NextToken: "STRING_VALUE",
|
|
31
|
+
* MaxResults: Number("int"),
|
|
32
|
+
* };
|
|
33
|
+
* const command = new ListAdminsManagingAccountCommand(input);
|
|
34
|
+
* const response = await client.send(command);
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @param ListAdminsManagingAccountCommandInput - {@link ListAdminsManagingAccountCommandInput}
|
|
38
|
+
* @returns {@link ListAdminsManagingAccountCommandOutput}
|
|
39
|
+
* @see {@link ListAdminsManagingAccountCommandInput} for command's `input` shape.
|
|
40
|
+
* @see {@link ListAdminsManagingAccountCommandOutput} for command's `response` shape.
|
|
41
|
+
* @see {@link FMSClientResolvedConfig | config} for FMSClient's `config` shape.
|
|
42
|
+
*
|
|
43
|
+
* @throws {@link InternalErrorException} (client fault)
|
|
44
|
+
* <p>The operation failed because of a system problem, even though the request was valid. Retry
|
|
45
|
+
* your request.</p>
|
|
46
|
+
*
|
|
47
|
+
* @throws {@link InvalidInputException} (client fault)
|
|
48
|
+
* <p>The parameters of the request were invalid.</p>
|
|
49
|
+
*
|
|
50
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
51
|
+
* <p>The specified resource was not found.</p>
|
|
52
|
+
*
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
export declare class ListAdminsManagingAccountCommand extends $Command<ListAdminsManagingAccountCommandInput, ListAdminsManagingAccountCommandOutput, FMSClientResolvedConfig> {
|
|
56
|
+
readonly input: ListAdminsManagingAccountCommandInput;
|
|
57
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
58
|
+
/**
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
constructor(input: ListAdminsManagingAccountCommandInput);
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListAdminsManagingAccountCommandInput, ListAdminsManagingAccountCommandOutput>;
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
private serialize;
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
73
|
+
private deserialize;
|
|
74
|
+
}
|
|
@@ -21,8 +21,7 @@ export interface ListMemberAccountsCommandOutput extends ListMemberAccountsRespo
|
|
|
21
21
|
* @public
|
|
22
22
|
* <p>Returns a <code>MemberAccounts</code> object that lists the member accounts in the
|
|
23
23
|
* administrator's Amazon Web Services organization.</p>
|
|
24
|
-
* <p>
|
|
25
|
-
* Firewall Manager administrator.</p>
|
|
24
|
+
* <p>Either an Firewall Manager administrator or the organization's management account can make this request.</p>
|
|
26
25
|
* @example
|
|
27
26
|
* Use a bare-bones client and the command you need to make an API call.
|
|
28
27
|
* ```javascript
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { FMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FMSClient";
|
|
5
|
+
import { PutAdminAccountRequest } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
9
|
+
* The input for {@link PutAdminAccountCommand}.
|
|
10
|
+
*/
|
|
11
|
+
export interface PutAdminAccountCommandInput extends PutAdminAccountRequest {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
16
|
+
* The output of {@link PutAdminAccountCommand}.
|
|
17
|
+
*/
|
|
18
|
+
export interface PutAdminAccountCommandOutput extends __MetadataBearer {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @public
|
|
22
|
+
* <p>Creates or updates an Firewall Manager administrator account. The account must be a member of the organization that was onboarded to Firewall Manager by <a>AssociateAdminAccount</a>. Only the organization's management account can create an Firewall Manager administrator account. When you create an Firewall Manager administrator account, the service checks to see if the account is already a delegated administrator within Organizations. If the account isn't a delegated administrator, Firewall Manager calls Organizations to delegate the account within Organizations. For more information about administrator accounts within Organizations, see
|
|
23
|
+
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts.html">Managing the Amazon Web Services Accounts in Your Organization</a>.</p>
|
|
24
|
+
* @example
|
|
25
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
26
|
+
* ```javascript
|
|
27
|
+
* import { FMSClient, PutAdminAccountCommand } from "@aws-sdk/client-fms"; // ES Modules import
|
|
28
|
+
* // const { FMSClient, PutAdminAccountCommand } = require("@aws-sdk/client-fms"); // CommonJS import
|
|
29
|
+
* const client = new FMSClient(config);
|
|
30
|
+
* const input = { // PutAdminAccountRequest
|
|
31
|
+
* AdminAccount: "STRING_VALUE", // required
|
|
32
|
+
* AdminScope: { // AdminScope
|
|
33
|
+
* AccountScope: { // AccountScope
|
|
34
|
+
* Accounts: [ // AccountIdList
|
|
35
|
+
* "STRING_VALUE",
|
|
36
|
+
* ],
|
|
37
|
+
* AllAccountsEnabled: true || false,
|
|
38
|
+
* ExcludeSpecifiedAccounts: true || false,
|
|
39
|
+
* },
|
|
40
|
+
* OrganizationalUnitScope: { // OrganizationalUnitScope
|
|
41
|
+
* OrganizationalUnits: [ // OrganizationalUnitIdList
|
|
42
|
+
* "STRING_VALUE",
|
|
43
|
+
* ],
|
|
44
|
+
* AllOrganizationalUnitsEnabled: true || false,
|
|
45
|
+
* ExcludeSpecifiedOrganizationalUnits: true || false,
|
|
46
|
+
* },
|
|
47
|
+
* RegionScope: { // RegionScope
|
|
48
|
+
* Regions: [ // AWSRegionList
|
|
49
|
+
* "STRING_VALUE",
|
|
50
|
+
* ],
|
|
51
|
+
* AllRegionsEnabled: true || false,
|
|
52
|
+
* },
|
|
53
|
+
* PolicyTypeScope: { // PolicyTypeScope
|
|
54
|
+
* PolicyTypes: [ // SecurityServiceTypeList
|
|
55
|
+
* "WAF" || "WAFV2" || "SHIELD_ADVANCED" || "SECURITY_GROUPS_COMMON" || "SECURITY_GROUPS_CONTENT_AUDIT" || "SECURITY_GROUPS_USAGE_AUDIT" || "NETWORK_FIREWALL" || "DNS_FIREWALL" || "THIRD_PARTY_FIREWALL" || "IMPORT_NETWORK_FIREWALL",
|
|
56
|
+
* ],
|
|
57
|
+
* AllPolicyTypesEnabled: true || false,
|
|
58
|
+
* },
|
|
59
|
+
* },
|
|
60
|
+
* };
|
|
61
|
+
* const command = new PutAdminAccountCommand(input);
|
|
62
|
+
* const response = await client.send(command);
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param PutAdminAccountCommandInput - {@link PutAdminAccountCommandInput}
|
|
66
|
+
* @returns {@link PutAdminAccountCommandOutput}
|
|
67
|
+
* @see {@link PutAdminAccountCommandInput} for command's `input` shape.
|
|
68
|
+
* @see {@link PutAdminAccountCommandOutput} for command's `response` shape.
|
|
69
|
+
* @see {@link FMSClientResolvedConfig | config} for FMSClient's `config` shape.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link InternalErrorException} (client fault)
|
|
72
|
+
* <p>The operation failed because of a system problem, even though the request was valid. Retry
|
|
73
|
+
* your request.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link InvalidInputException} (client fault)
|
|
76
|
+
* <p>The parameters of the request were invalid.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link InvalidOperationException} (client fault)
|
|
79
|
+
* <p>The operation failed because there was nothing to do or the operation wasn't possible. For example, you might have
|
|
80
|
+
* submitted an <code>AssociateAdminAccount</code> request for an account ID that
|
|
81
|
+
* was already set as the Firewall Manager administrator. Or you might have tried to access a Region
|
|
82
|
+
* that's disabled by default, and that you need to enable for the Firewall Manager
|
|
83
|
+
* administrator account and for Organizations before you can access it.</p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
86
|
+
* <p>The operation exceeds a resource limit, for example, the maximum number of
|
|
87
|
+
* <code>policy</code> objects that you can create for an Amazon Web Services account. For more information,
|
|
88
|
+
* see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/fms-limits.html">Firewall
|
|
89
|
+
* Manager Limits</a> in the <i>WAF Developer Guide</i>.</p>
|
|
90
|
+
*
|
|
91
|
+
*
|
|
92
|
+
*/
|
|
93
|
+
export declare class PutAdminAccountCommand extends $Command<PutAdminAccountCommandInput, PutAdminAccountCommandOutput, FMSClientResolvedConfig> {
|
|
94
|
+
readonly input: PutAdminAccountCommandInput;
|
|
95
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
96
|
+
/**
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
constructor(input: PutAdminAccountCommandInput);
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: FMSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutAdminAccountCommandInput, PutAdminAccountCommandOutput>;
|
|
104
|
+
/**
|
|
105
|
+
* @internal
|
|
106
|
+
*/
|
|
107
|
+
private serialize;
|
|
108
|
+
/**
|
|
109
|
+
* @internal
|
|
110
|
+
*/
|
|
111
|
+
private deserialize;
|
|
112
|
+
}
|
|
@@ -21,9 +21,8 @@ export interface PutNotificationChannelCommandOutput extends __MetadataBearer {
|
|
|
21
21
|
* @public
|
|
22
22
|
* <p>Designates the IAM role and Amazon Simple Notification Service (SNS) topic that
|
|
23
23
|
* Firewall Manager uses to record SNS logs.</p>
|
|
24
|
-
* <p>To perform this action outside of the console, you must configure the SNS topic to allow the Firewall Manager
|
|
25
|
-
*
|
|
26
|
-
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/fms-api-permissions-ref.html">Firewall Manager required permissions for API actions</a> in the <i>Firewall Manager Developer Guide</i>.</p>
|
|
24
|
+
* <p>To perform this action outside of the console, you must first configure the SNS topic's access policy to allow the <code>SnsRoleName</code> to publish SNS logs. If the <code>SnsRoleName</code> provided is a role other than the <code>AWSServiceRoleForFMS</code> service-linked role, this role must have a trust relationship configured to allow the Firewall Manager service principal <code>fms.amazonaws.com</code> to assume this role. For information about configuring an SNS access policy, see
|
|
25
|
+
* <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> in the <i>Firewall Manager Developer Guide</i>.</p>
|
|
27
26
|
* @example
|
|
28
27
|
* Use a bare-bones client and the command you need to make an API call.
|
|
29
28
|
* ```javascript
|
|
@@ -102,6 +102,7 @@ export interface PutPolicyCommandOutput extends PutPolicyResponse, __MetadataBea
|
|
|
102
102
|
* "STRING_VALUE",
|
|
103
103
|
* ],
|
|
104
104
|
* PolicyDescription: "STRING_VALUE",
|
|
105
|
+
* PolicyStatus: "ACTIVE" || "OUT_OF_ADMIN_SCOPE",
|
|
105
106
|
* },
|
|
106
107
|
* TagList: [ // TagList
|
|
107
108
|
* { // Tag
|
|
@@ -10,6 +10,7 @@ export * from "./DeleteResourceSetCommand";
|
|
|
10
10
|
export * from "./DisassociateAdminAccountCommand";
|
|
11
11
|
export * from "./DisassociateThirdPartyFirewallCommand";
|
|
12
12
|
export * from "./GetAdminAccountCommand";
|
|
13
|
+
export * from "./GetAdminScopeCommand";
|
|
13
14
|
export * from "./GetAppsListCommand";
|
|
14
15
|
export * from "./GetComplianceDetailCommand";
|
|
15
16
|
export * from "./GetNotificationChannelCommand";
|
|
@@ -19,6 +20,8 @@ export * from "./GetProtocolsListCommand";
|
|
|
19
20
|
export * from "./GetResourceSetCommand";
|
|
20
21
|
export * from "./GetThirdPartyFirewallAssociationStatusCommand";
|
|
21
22
|
export * from "./GetViolationDetailsCommand";
|
|
23
|
+
export * from "./ListAdminAccountsForOrganizationCommand";
|
|
24
|
+
export * from "./ListAdminsManagingAccountCommand";
|
|
22
25
|
export * from "./ListAppsListsCommand";
|
|
23
26
|
export * from "./ListComplianceStatusCommand";
|
|
24
27
|
export * from "./ListDiscoveredResourcesCommand";
|
|
@@ -29,6 +32,7 @@ export * from "./ListResourceSetResourcesCommand";
|
|
|
29
32
|
export * from "./ListResourceSetsCommand";
|
|
30
33
|
export * from "./ListTagsForResourceCommand";
|
|
31
34
|
export * from "./ListThirdPartyFirewallFirewallPoliciesCommand";
|
|
35
|
+
export * from "./PutAdminAccountCommand";
|
|
32
36
|
export * from "./PutAppsListCommand";
|
|
33
37
|
export * from "./PutNotificationChannelCommand";
|
|
34
38
|
export * from "./PutPolicyCommand";
|
|
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
|
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
-
Region
|
|
15
|
+
Region?: string;
|
|
16
16
|
UseDualStack?: boolean;
|
|
17
17
|
UseFIPS?: boolean;
|
|
18
18
|
Endpoint?: string;
|