@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.
Files changed (60) hide show
  1. package/README.md +33 -1
  2. package/dist-cjs/FMS.js +8 -0
  3. package/dist-cjs/commands/GetAdminScopeCommand.js +45 -0
  4. package/dist-cjs/commands/ListAdminAccountsForOrganizationCommand.js +45 -0
  5. package/dist-cjs/commands/ListAdminsManagingAccountCommand.js +45 -0
  6. package/dist-cjs/commands/PutAdminAccountCommand.js +45 -0
  7. package/dist-cjs/commands/index.js +4 -0
  8. package/dist-cjs/endpoint/ruleset.js +3 -3
  9. package/dist-cjs/models/models_0.js +27 -13
  10. package/dist-cjs/pagination/ListAdminAccountsForOrganizationPaginator.js +29 -0
  11. package/dist-cjs/pagination/ListAdminsManagingAccountPaginator.js +29 -0
  12. package/dist-cjs/pagination/index.js +2 -0
  13. package/dist-cjs/protocols/Aws_json1_1.js +192 -2
  14. package/dist-es/FMS.js +8 -0
  15. package/dist-es/commands/GetAdminScopeCommand.js +41 -0
  16. package/dist-es/commands/ListAdminAccountsForOrganizationCommand.js +41 -0
  17. package/dist-es/commands/ListAdminsManagingAccountCommand.js +41 -0
  18. package/dist-es/commands/PutAdminAccountCommand.js +41 -0
  19. package/dist-es/commands/index.js +4 -0
  20. package/dist-es/endpoint/ruleset.js +3 -3
  21. package/dist-es/models/models_0.js +26 -12
  22. package/dist-es/pagination/ListAdminAccountsForOrganizationPaginator.js +25 -0
  23. package/dist-es/pagination/ListAdminsManagingAccountPaginator.js +25 -0
  24. package/dist-es/pagination/index.js +2 -0
  25. package/dist-es/protocols/Aws_json1_1.js +182 -0
  26. package/dist-types/FMS.d.ts +29 -1
  27. package/dist-types/FMSClient.d.ts +7 -3
  28. package/dist-types/commands/AssociateAdminAccountCommand.d.ts +2 -4
  29. package/dist-types/commands/DisassociateAdminAccountCommand.d.ts +2 -3
  30. package/dist-types/commands/GetAdminAccountCommand.d.ts +1 -1
  31. package/dist-types/commands/GetAdminScopeCommand.d.ts +80 -0
  32. package/dist-types/commands/GetComplianceDetailCommand.d.ts +4 -4
  33. package/dist-types/commands/ListAdminAccountsForOrganizationCommand.d.ts +79 -0
  34. package/dist-types/commands/ListAdminsManagingAccountCommand.d.ts +74 -0
  35. package/dist-types/commands/ListMemberAccountsCommand.d.ts +1 -2
  36. package/dist-types/commands/PutAdminAccountCommand.d.ts +112 -0
  37. package/dist-types/commands/PutNotificationChannelCommand.d.ts +2 -3
  38. package/dist-types/commands/PutPolicyCommand.d.ts +1 -0
  39. package/dist-types/commands/PutResourceSetCommand.d.ts +1 -0
  40. package/dist-types/commands/index.d.ts +4 -0
  41. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  42. package/dist-types/models/models_0.d.ts +436 -59
  43. package/dist-types/pagination/ListAdminAccountsForOrganizationPaginator.d.ts +7 -0
  44. package/dist-types/pagination/ListAdminsManagingAccountPaginator.d.ts +7 -0
  45. package/dist-types/pagination/index.d.ts +2 -0
  46. package/dist-types/protocols/Aws_json1_1.d.ts +36 -0
  47. package/dist-types/ts3.4/FMS.d.ts +68 -0
  48. package/dist-types/ts3.4/FMSClient.d.ts +24 -0
  49. package/dist-types/ts3.4/commands/GetAdminScopeCommand.d.ts +37 -0
  50. package/dist-types/ts3.4/commands/ListAdminAccountsForOrganizationCommand.d.ts +41 -0
  51. package/dist-types/ts3.4/commands/ListAdminsManagingAccountCommand.d.ts +41 -0
  52. package/dist-types/ts3.4/commands/PutAdminAccountCommand.d.ts +32 -0
  53. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  54. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  55. package/dist-types/ts3.4/models/models_0.d.ts +94 -14
  56. package/dist-types/ts3.4/pagination/ListAdminAccountsForOrganizationPaginator.d.ts +11 -0
  57. package/dist-types/ts3.4/pagination/ListAdminsManagingAccountPaginator.d.ts +11 -0
  58. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  59. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +48 -0
  60. package/package.json +1 -1
@@ -9,10 +9,61 @@ export declare const AccountRoleStatus: {
9
9
  };
10
10
  export type AccountRoleStatus =
11
11
  (typeof AccountRoleStatus)[keyof typeof AccountRoleStatus];
12
+ export interface AccountScope {
13
+ Accounts?: string[];
14
+ AllAccountsEnabled?: boolean;
15
+ ExcludeSpecifiedAccounts?: boolean;
16
+ }
12
17
  export interface ActionTarget {
13
18
  ResourceId?: string;
14
19
  Description?: string;
15
20
  }
21
+ export declare const OrganizationStatus: {
22
+ readonly Offboarding: "OFFBOARDING";
23
+ readonly OffboardingComplete: "OFFBOARDING_COMPLETE";
24
+ readonly Onboarding: "ONBOARDING";
25
+ readonly OnboardingComplete: "ONBOARDING_COMPLETE";
26
+ };
27
+ export type OrganizationStatus =
28
+ (typeof OrganizationStatus)[keyof typeof OrganizationStatus];
29
+ export interface AdminAccountSummary {
30
+ AdminAccount?: string;
31
+ DefaultAdmin?: boolean;
32
+ Status?: OrganizationStatus | string;
33
+ }
34
+ export interface OrganizationalUnitScope {
35
+ OrganizationalUnits?: string[];
36
+ AllOrganizationalUnitsEnabled?: boolean;
37
+ ExcludeSpecifiedOrganizationalUnits?: boolean;
38
+ }
39
+ export declare const SecurityServiceType: {
40
+ readonly DNS_FIREWALL: "DNS_FIREWALL";
41
+ readonly IMPORT_NETWORK_FIREWALL: "IMPORT_NETWORK_FIREWALL";
42
+ readonly NETWORK_FIREWALL: "NETWORK_FIREWALL";
43
+ readonly SECURITY_GROUPS_COMMON: "SECURITY_GROUPS_COMMON";
44
+ readonly SECURITY_GROUPS_CONTENT_AUDIT: "SECURITY_GROUPS_CONTENT_AUDIT";
45
+ readonly SECURITY_GROUPS_USAGE_AUDIT: "SECURITY_GROUPS_USAGE_AUDIT";
46
+ readonly SHIELD_ADVANCED: "SHIELD_ADVANCED";
47
+ readonly THIRD_PARTY_FIREWALL: "THIRD_PARTY_FIREWALL";
48
+ readonly WAF: "WAF";
49
+ readonly WAFV2: "WAFV2";
50
+ };
51
+ export type SecurityServiceType =
52
+ (typeof SecurityServiceType)[keyof typeof SecurityServiceType];
53
+ export interface PolicyTypeScope {
54
+ PolicyTypes?: (SecurityServiceType | string)[];
55
+ AllPolicyTypesEnabled?: boolean;
56
+ }
57
+ export interface RegionScope {
58
+ Regions?: string[];
59
+ AllRegionsEnabled?: boolean;
60
+ }
61
+ export interface AdminScope {
62
+ AccountScope?: AccountScope;
63
+ OrganizationalUnitScope?: OrganizationalUnitScope;
64
+ RegionScope?: RegionScope;
65
+ PolicyTypeScope?: PolicyTypeScope;
66
+ }
16
67
  export interface App {
17
68
  AppName: string | undefined;
18
69
  Protocol: string | undefined;
@@ -161,6 +212,13 @@ export interface GetAdminAccountResponse {
161
212
  AdminAccount?: string;
162
213
  RoleStatus?: AccountRoleStatus | string;
163
214
  }
215
+ export interface GetAdminScopeRequest {
216
+ AdminAccount: string | undefined;
217
+ }
218
+ export interface GetAdminScopeResponse {
219
+ AdminScope?: AdminScope;
220
+ Status?: OrganizationStatus | string;
221
+ }
164
222
  export interface GetAppsListRequest {
165
223
  ListId: string | undefined;
166
224
  DefaultList?: boolean;
@@ -245,6 +303,12 @@ export declare const CustomerPolicyScopeIdType: {
245
303
  };
246
304
  export type CustomerPolicyScopeIdType =
247
305
  (typeof CustomerPolicyScopeIdType)[keyof typeof CustomerPolicyScopeIdType];
306
+ export declare const CustomerPolicyStatus: {
307
+ readonly ACTIVE: "ACTIVE";
308
+ readonly OUT_OF_ADMIN_SCOPE: "OUT_OF_ADMIN_SCOPE";
309
+ };
310
+ export type CustomerPolicyStatus =
311
+ (typeof CustomerPolicyStatus)[keyof typeof CustomerPolicyStatus];
248
312
  export interface ResourceTag {
249
313
  Key: string | undefined;
250
314
  Value?: string;
@@ -265,20 +329,6 @@ export interface PolicyOption {
265
329
  NetworkFirewallPolicy?: NetworkFirewallPolicy;
266
330
  ThirdPartyFirewallPolicy?: ThirdPartyFirewallPolicy;
267
331
  }
268
- export declare const SecurityServiceType: {
269
- readonly DNS_FIREWALL: "DNS_FIREWALL";
270
- readonly IMPORT_NETWORK_FIREWALL: "IMPORT_NETWORK_FIREWALL";
271
- readonly NETWORK_FIREWALL: "NETWORK_FIREWALL";
272
- readonly SECURITY_GROUPS_COMMON: "SECURITY_GROUPS_COMMON";
273
- readonly SECURITY_GROUPS_CONTENT_AUDIT: "SECURITY_GROUPS_CONTENT_AUDIT";
274
- readonly SECURITY_GROUPS_USAGE_AUDIT: "SECURITY_GROUPS_USAGE_AUDIT";
275
- readonly SHIELD_ADVANCED: "SHIELD_ADVANCED";
276
- readonly THIRD_PARTY_FIREWALL: "THIRD_PARTY_FIREWALL";
277
- readonly WAF: "WAF";
278
- readonly WAFV2: "WAFV2";
279
- };
280
- export type SecurityServiceType =
281
- (typeof SecurityServiceType)[keyof typeof SecurityServiceType];
282
332
  export interface SecurityServicePolicyData {
283
333
  Type: SecurityServiceType | string | undefined;
284
334
  ManagedServiceData?: string;
@@ -299,6 +349,7 @@ export interface Policy {
299
349
  ExcludeMap?: Record<string, string[]>;
300
350
  ResourceSetIds?: string[];
301
351
  PolicyDescription?: string;
352
+ PolicyStatus?: CustomerPolicyStatus | string;
302
353
  }
303
354
  export interface GetPolicyResponse {
304
355
  Policy?: Policy;
@@ -346,6 +397,12 @@ export interface GetProtocolsListResponse {
346
397
  export interface GetResourceSetRequest {
347
398
  Identifier: string | undefined;
348
399
  }
400
+ export declare const ResourceSetStatus: {
401
+ readonly ACTIVE: "ACTIVE";
402
+ readonly OUT_OF_ADMIN_SCOPE: "OUT_OF_ADMIN_SCOPE";
403
+ };
404
+ export type ResourceSetStatus =
405
+ (typeof ResourceSetStatus)[keyof typeof ResourceSetStatus];
349
406
  export interface ResourceSet {
350
407
  Id?: string;
351
408
  Name: string | undefined;
@@ -353,6 +410,7 @@ export interface ResourceSet {
353
410
  UpdateToken?: string;
354
411
  ResourceTypeList: string[] | undefined;
355
412
  LastUpdateTime?: Date;
413
+ ResourceSetStatus?: ResourceSetStatus | string;
356
414
  }
357
415
  export interface GetResourceSetResponse {
358
416
  ResourceSet: ResourceSet | undefined;
@@ -738,6 +796,22 @@ export interface ViolationDetail {
738
796
  export interface GetViolationDetailsResponse {
739
797
  ViolationDetail?: ViolationDetail;
740
798
  }
799
+ export interface ListAdminAccountsForOrganizationRequest {
800
+ NextToken?: string;
801
+ MaxResults?: number;
802
+ }
803
+ export interface ListAdminAccountsForOrganizationResponse {
804
+ AdminAccounts?: AdminAccountSummary[];
805
+ NextToken?: string;
806
+ }
807
+ export interface ListAdminsManagingAccountRequest {
808
+ NextToken?: string;
809
+ MaxResults?: number;
810
+ }
811
+ export interface ListAdminsManagingAccountResponse {
812
+ AdminAccounts?: string[];
813
+ NextToken?: string;
814
+ }
741
815
  export interface ListAppsListsRequest {
742
816
  DefaultLists?: boolean;
743
817
  NextToken?: string;
@@ -812,6 +886,7 @@ export interface PolicySummary {
812
886
  SecurityServiceType?: SecurityServiceType | string;
813
887
  RemediationEnabled?: boolean;
814
888
  DeleteUnusedFMManagedResources?: boolean;
889
+ PolicyStatus?: CustomerPolicyStatus | string;
815
890
  }
816
891
  export interface ListPoliciesResponse {
817
892
  PolicyList?: PolicySummary[];
@@ -854,6 +929,7 @@ export interface ResourceSetSummary {
854
929
  Name?: string;
855
930
  Description?: string;
856
931
  LastUpdateTime?: Date;
932
+ ResourceSetStatus?: ResourceSetStatus | string;
857
933
  }
858
934
  export interface ListResourceSetsResponse {
859
935
  ResourceSets?: ResourceSetSummary[];
@@ -878,6 +954,10 @@ export interface ListThirdPartyFirewallFirewallPoliciesResponse {
878
954
  ThirdPartyFirewallFirewallPolicies?: ThirdPartyFirewallFirewallPolicy[];
879
955
  NextToken?: string;
880
956
  }
957
+ export interface PutAdminAccountRequest {
958
+ AdminAccount: string | undefined;
959
+ AdminScope?: AdminScope;
960
+ }
881
961
  export interface PutAppsListRequest {
882
962
  AppsList: AppsListData | undefined;
883
963
  TagList?: Tag[];
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import {
3
+ ListAdminAccountsForOrganizationCommandInput,
4
+ ListAdminAccountsForOrganizationCommandOutput,
5
+ } from "../commands/ListAdminAccountsForOrganizationCommand";
6
+ import { FMSPaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateListAdminAccountsForOrganization(
8
+ config: FMSPaginationConfiguration,
9
+ input: ListAdminAccountsForOrganizationCommandInput,
10
+ ...additionalArguments: any
11
+ ): Paginator<ListAdminAccountsForOrganizationCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import {
3
+ ListAdminsManagingAccountCommandInput,
4
+ ListAdminsManagingAccountCommandOutput,
5
+ } from "../commands/ListAdminsManagingAccountCommand";
6
+ import { FMSPaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateListAdminsManagingAccount(
8
+ config: FMSPaginationConfiguration,
9
+ input: ListAdminsManagingAccountCommandInput,
10
+ ...additionalArguments: any
11
+ ): Paginator<ListAdminsManagingAccountCommandOutput>;
@@ -1,4 +1,6 @@
1
1
  export * from "./Interfaces";
2
+ export * from "./ListAdminAccountsForOrganizationPaginator";
3
+ export * from "./ListAdminsManagingAccountPaginator";
2
4
  export * from "./ListAppsListsPaginator";
3
5
  export * from "./ListComplianceStatusPaginator";
4
6
  export * from "./ListMemberAccountsPaginator";
@@ -51,6 +51,10 @@ import {
51
51
  GetAdminAccountCommandInput,
52
52
  GetAdminAccountCommandOutput,
53
53
  } from "../commands/GetAdminAccountCommand";
54
+ import {
55
+ GetAdminScopeCommandInput,
56
+ GetAdminScopeCommandOutput,
57
+ } from "../commands/GetAdminScopeCommand";
54
58
  import {
55
59
  GetAppsListCommandInput,
56
60
  GetAppsListCommandOutput,
@@ -87,6 +91,14 @@ import {
87
91
  GetViolationDetailsCommandInput,
88
92
  GetViolationDetailsCommandOutput,
89
93
  } from "../commands/GetViolationDetailsCommand";
94
+ import {
95
+ ListAdminAccountsForOrganizationCommandInput,
96
+ ListAdminAccountsForOrganizationCommandOutput,
97
+ } from "../commands/ListAdminAccountsForOrganizationCommand";
98
+ import {
99
+ ListAdminsManagingAccountCommandInput,
100
+ ListAdminsManagingAccountCommandOutput,
101
+ } from "../commands/ListAdminsManagingAccountCommand";
90
102
  import {
91
103
  ListAppsListsCommandInput,
92
104
  ListAppsListsCommandOutput,
@@ -127,6 +139,10 @@ import {
127
139
  ListThirdPartyFirewallFirewallPoliciesCommandInput,
128
140
  ListThirdPartyFirewallFirewallPoliciesCommandOutput,
129
141
  } from "../commands/ListThirdPartyFirewallFirewallPoliciesCommand";
142
+ import {
143
+ PutAdminAccountCommandInput,
144
+ PutAdminAccountCommandOutput,
145
+ } from "../commands/PutAdminAccountCommand";
130
146
  import {
131
147
  PutAppsListCommandInput,
132
148
  PutAppsListCommandOutput,
@@ -203,6 +219,10 @@ export declare const se_GetAdminAccountCommand: (
203
219
  input: GetAdminAccountCommandInput,
204
220
  context: __SerdeContext
205
221
  ) => Promise<__HttpRequest>;
222
+ export declare const se_GetAdminScopeCommand: (
223
+ input: GetAdminScopeCommandInput,
224
+ context: __SerdeContext
225
+ ) => Promise<__HttpRequest>;
206
226
  export declare const se_GetAppsListCommand: (
207
227
  input: GetAppsListCommandInput,
208
228
  context: __SerdeContext
@@ -239,6 +259,14 @@ export declare const se_GetViolationDetailsCommand: (
239
259
  input: GetViolationDetailsCommandInput,
240
260
  context: __SerdeContext
241
261
  ) => Promise<__HttpRequest>;
262
+ export declare const se_ListAdminAccountsForOrganizationCommand: (
263
+ input: ListAdminAccountsForOrganizationCommandInput,
264
+ context: __SerdeContext
265
+ ) => Promise<__HttpRequest>;
266
+ export declare const se_ListAdminsManagingAccountCommand: (
267
+ input: ListAdminsManagingAccountCommandInput,
268
+ context: __SerdeContext
269
+ ) => Promise<__HttpRequest>;
242
270
  export declare const se_ListAppsListsCommand: (
243
271
  input: ListAppsListsCommandInput,
244
272
  context: __SerdeContext
@@ -279,6 +307,10 @@ export declare const se_ListThirdPartyFirewallFirewallPoliciesCommand: (
279
307
  input: ListThirdPartyFirewallFirewallPoliciesCommandInput,
280
308
  context: __SerdeContext
281
309
  ) => Promise<__HttpRequest>;
310
+ export declare const se_PutAdminAccountCommand: (
311
+ input: PutAdminAccountCommandInput,
312
+ context: __SerdeContext
313
+ ) => Promise<__HttpRequest>;
282
314
  export declare const se_PutAppsListCommand: (
283
315
  input: PutAppsListCommandInput,
284
316
  context: __SerdeContext
@@ -355,6 +387,10 @@ export declare const de_GetAdminAccountCommand: (
355
387
  output: __HttpResponse,
356
388
  context: __SerdeContext
357
389
  ) => Promise<GetAdminAccountCommandOutput>;
390
+ export declare const de_GetAdminScopeCommand: (
391
+ output: __HttpResponse,
392
+ context: __SerdeContext
393
+ ) => Promise<GetAdminScopeCommandOutput>;
358
394
  export declare const de_GetAppsListCommand: (
359
395
  output: __HttpResponse,
360
396
  context: __SerdeContext
@@ -391,6 +427,14 @@ export declare const de_GetViolationDetailsCommand: (
391
427
  output: __HttpResponse,
392
428
  context: __SerdeContext
393
429
  ) => Promise<GetViolationDetailsCommandOutput>;
430
+ export declare const de_ListAdminAccountsForOrganizationCommand: (
431
+ output: __HttpResponse,
432
+ context: __SerdeContext
433
+ ) => Promise<ListAdminAccountsForOrganizationCommandOutput>;
434
+ export declare const de_ListAdminsManagingAccountCommand: (
435
+ output: __HttpResponse,
436
+ context: __SerdeContext
437
+ ) => Promise<ListAdminsManagingAccountCommandOutput>;
394
438
  export declare const de_ListAppsListsCommand: (
395
439
  output: __HttpResponse,
396
440
  context: __SerdeContext
@@ -431,6 +475,10 @@ export declare const de_ListThirdPartyFirewallFirewallPoliciesCommand: (
431
475
  output: __HttpResponse,
432
476
  context: __SerdeContext
433
477
  ) => Promise<ListThirdPartyFirewallFirewallPoliciesCommandOutput>;
478
+ export declare const de_PutAdminAccountCommand: (
479
+ output: __HttpResponse,
480
+ context: __SerdeContext
481
+ ) => Promise<PutAdminAccountCommandOutput>;
434
482
  export declare const de_PutAppsListCommand: (
435
483
  output: __HttpResponse,
436
484
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-fms",
3
3
  "description": "AWS SDK for JavaScript Fms Client for Node.js, Browser and React Native",
4
- "version": "3.316.0",
4
+ "version": "3.318.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",