@aws-sdk/client-fms 3.315.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 +50 -532
  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 +50 -532
  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 +79 -162
  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 +70 -1
  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 +6 -6
@@ -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 = "fn", r = "argv", s = "ref";
5
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
6
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ endpoint: { url: "https://fms-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://fms-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ endpoint: { url: "https://fms.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: { url: "https://fms.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] };
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.InvalidTypeException = exports.SecurityServiceType = exports.FirewallDeploymentModel = exports.CustomerPolicyScopeIdType = exports.ViolationReason = exports.DependentServiceName = exports.FailedItemReason = exports.ThirdPartyFirewallAssociationStatus = exports.ThirdPartyFirewall = exports.ResourceNotFoundException = exports.LimitExceededException = exports.InvalidOperationException = exports.InvalidInputException = exports.InternalErrorException = exports.AccountRoleStatus = void 0;
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);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_GetAdminAccountCommand = exports.de_DisassociateThirdPartyFirewallCommand = exports.de_DisassociateAdminAccountCommand = exports.de_DeleteResourceSetCommand = exports.de_DeleteProtocolsListCommand = exports.de_DeletePolicyCommand = exports.de_DeleteNotificationChannelCommand = exports.de_DeleteAppsListCommand = exports.de_BatchDisassociateResourceCommand = exports.de_BatchAssociateResourceCommand = exports.de_AssociateThirdPartyFirewallCommand = exports.de_AssociateAdminAccountCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutResourceSetCommand = exports.se_PutProtocolsListCommand = exports.se_PutPolicyCommand = exports.se_PutNotificationChannelCommand = exports.se_PutAppsListCommand = exports.se_ListThirdPartyFirewallFirewallPoliciesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListResourceSetsCommand = exports.se_ListResourceSetResourcesCommand = exports.se_ListProtocolsListsCommand = exports.se_ListPoliciesCommand = exports.se_ListMemberAccountsCommand = exports.se_ListDiscoveredResourcesCommand = exports.se_ListComplianceStatusCommand = exports.se_ListAppsListsCommand = exports.se_GetViolationDetailsCommand = exports.se_GetThirdPartyFirewallAssociationStatusCommand = exports.se_GetResourceSetCommand = exports.se_GetProtocolsListCommand = exports.se_GetProtectionStatusCommand = exports.se_GetPolicyCommand = exports.se_GetNotificationChannelCommand = exports.se_GetComplianceDetailCommand = exports.se_GetAppsListCommand = exports.se_GetAdminAccountCommand = exports.se_DisassociateThirdPartyFirewallCommand = exports.se_DisassociateAdminAccountCommand = exports.se_DeleteResourceSetCommand = exports.se_DeleteProtocolsListCommand = exports.se_DeletePolicyCommand = exports.se_DeleteNotificationChannelCommand = exports.se_DeleteAppsListCommand = exports.se_BatchDisassociateResourceCommand = exports.se_BatchAssociateResourceCommand = exports.se_AssociateThirdPartyFirewallCommand = exports.se_AssociateAdminAccountCommand = void 0;
4
- exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PutResourceSetCommand = exports.de_PutProtocolsListCommand = exports.de_PutPolicyCommand = exports.de_PutNotificationChannelCommand = exports.de_PutAppsListCommand = exports.de_ListThirdPartyFirewallFirewallPoliciesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListResourceSetsCommand = exports.de_ListResourceSetResourcesCommand = exports.de_ListProtocolsListsCommand = exports.de_ListPoliciesCommand = exports.de_ListMemberAccountsCommand = exports.de_ListDiscoveredResourcesCommand = exports.de_ListComplianceStatusCommand = exports.de_ListAppsListsCommand = exports.de_GetViolationDetailsCommand = exports.de_GetThirdPartyFirewallAssociationStatusCommand = exports.de_GetResourceSetCommand = exports.de_GetProtocolsListCommand = exports.de_GetProtectionStatusCommand = exports.de_GetPolicyCommand = exports.de_GetNotificationChannelCommand = exports.de_GetComplianceDetailCommand = exports.de_GetAppsListCommand = void 0;
3
+ exports.de_DeleteProtocolsListCommand = exports.de_DeletePolicyCommand = exports.de_DeleteNotificationChannelCommand = exports.de_DeleteAppsListCommand = exports.de_BatchDisassociateResourceCommand = exports.de_BatchAssociateResourceCommand = exports.de_AssociateThirdPartyFirewallCommand = exports.de_AssociateAdminAccountCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutResourceSetCommand = exports.se_PutProtocolsListCommand = exports.se_PutPolicyCommand = exports.se_PutNotificationChannelCommand = exports.se_PutAppsListCommand = exports.se_PutAdminAccountCommand = exports.se_ListThirdPartyFirewallFirewallPoliciesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListResourceSetsCommand = exports.se_ListResourceSetResourcesCommand = exports.se_ListProtocolsListsCommand = exports.se_ListPoliciesCommand = exports.se_ListMemberAccountsCommand = exports.se_ListDiscoveredResourcesCommand = exports.se_ListComplianceStatusCommand = exports.se_ListAppsListsCommand = exports.se_ListAdminsManagingAccountCommand = exports.se_ListAdminAccountsForOrganizationCommand = exports.se_GetViolationDetailsCommand = exports.se_GetThirdPartyFirewallAssociationStatusCommand = exports.se_GetResourceSetCommand = exports.se_GetProtocolsListCommand = exports.se_GetProtectionStatusCommand = exports.se_GetPolicyCommand = exports.se_GetNotificationChannelCommand = exports.se_GetComplianceDetailCommand = exports.se_GetAppsListCommand = exports.se_GetAdminScopeCommand = exports.se_GetAdminAccountCommand = exports.se_DisassociateThirdPartyFirewallCommand = exports.se_DisassociateAdminAccountCommand = exports.se_DeleteResourceSetCommand = exports.se_DeleteProtocolsListCommand = exports.se_DeletePolicyCommand = exports.se_DeleteNotificationChannelCommand = exports.se_DeleteAppsListCommand = exports.se_BatchDisassociateResourceCommand = exports.se_BatchAssociateResourceCommand = exports.se_AssociateThirdPartyFirewallCommand = exports.se_AssociateAdminAccountCommand = void 0;
4
+ exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PutResourceSetCommand = exports.de_PutProtocolsListCommand = exports.de_PutPolicyCommand = exports.de_PutNotificationChannelCommand = exports.de_PutAppsListCommand = exports.de_PutAdminAccountCommand = exports.de_ListThirdPartyFirewallFirewallPoliciesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListResourceSetsCommand = exports.de_ListResourceSetResourcesCommand = exports.de_ListProtocolsListsCommand = exports.de_ListPoliciesCommand = exports.de_ListMemberAccountsCommand = exports.de_ListDiscoveredResourcesCommand = exports.de_ListComplianceStatusCommand = exports.de_ListAppsListsCommand = exports.de_ListAdminsManagingAccountCommand = exports.de_ListAdminAccountsForOrganizationCommand = exports.de_GetViolationDetailsCommand = exports.de_GetThirdPartyFirewallAssociationStatusCommand = exports.de_GetResourceSetCommand = exports.de_GetProtocolsListCommand = exports.de_GetProtectionStatusCommand = exports.de_GetPolicyCommand = exports.de_GetNotificationChannelCommand = exports.de_GetComplianceDetailCommand = exports.de_GetAppsListCommand = exports.de_GetAdminScopeCommand = exports.de_GetAdminAccountCommand = exports.de_DisassociateThirdPartyFirewallCommand = exports.de_DisassociateAdminAccountCommand = exports.de_DeleteResourceSetCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const FMSServiceException_1 = require("../models/FMSServiceException");
@@ -90,6 +90,13 @@ const se_GetAdminAccountCommand = async (input, context) => {
90
90
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
91
91
  };
92
92
  exports.se_GetAdminAccountCommand = se_GetAdminAccountCommand;
93
+ const se_GetAdminScopeCommand = async (input, context) => {
94
+ const headers = sharedHeaders("GetAdminScope");
95
+ let body;
96
+ body = JSON.stringify((0, smithy_client_1._json)(input));
97
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
98
+ };
99
+ exports.se_GetAdminScopeCommand = se_GetAdminScopeCommand;
93
100
  const se_GetAppsListCommand = async (input, context) => {
94
101
  const headers = sharedHeaders("GetAppsList");
95
102
  let body;
@@ -153,6 +160,20 @@ const se_GetViolationDetailsCommand = async (input, context) => {
153
160
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
154
161
  };
155
162
  exports.se_GetViolationDetailsCommand = se_GetViolationDetailsCommand;
163
+ const se_ListAdminAccountsForOrganizationCommand = async (input, context) => {
164
+ const headers = sharedHeaders("ListAdminAccountsForOrganization");
165
+ let body;
166
+ body = JSON.stringify((0, smithy_client_1._json)(input));
167
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
+ };
169
+ exports.se_ListAdminAccountsForOrganizationCommand = se_ListAdminAccountsForOrganizationCommand;
170
+ const se_ListAdminsManagingAccountCommand = async (input, context) => {
171
+ const headers = sharedHeaders("ListAdminsManagingAccount");
172
+ let body;
173
+ body = JSON.stringify((0, smithy_client_1._json)(input));
174
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
+ };
176
+ exports.se_ListAdminsManagingAccountCommand = se_ListAdminsManagingAccountCommand;
156
177
  const se_ListAppsListsCommand = async (input, context) => {
157
178
  const headers = sharedHeaders("ListAppsLists");
158
179
  let body;
@@ -223,6 +244,13 @@ const se_ListThirdPartyFirewallFirewallPoliciesCommand = async (input, context)
223
244
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
224
245
  };
225
246
  exports.se_ListThirdPartyFirewallFirewallPoliciesCommand = se_ListThirdPartyFirewallFirewallPoliciesCommand;
247
+ const se_PutAdminAccountCommand = async (input, context) => {
248
+ const headers = sharedHeaders("PutAdminAccount");
249
+ let body;
250
+ body = JSON.stringify((0, smithy_client_1._json)(input));
251
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
252
+ };
253
+ exports.se_PutAdminAccountCommand = se_PutAdminAccountCommand;
226
254
  const se_PutAppsListCommand = async (input, context) => {
227
255
  const headers = sharedHeaders("PutAppsList");
228
256
  let body;
@@ -749,6 +777,48 @@ const de_GetAdminAccountCommandError = async (output, context) => {
749
777
  });
750
778
  }
751
779
  };
780
+ const de_GetAdminScopeCommand = async (output, context) => {
781
+ if (output.statusCode >= 300) {
782
+ return de_GetAdminScopeCommandError(output, context);
783
+ }
784
+ const data = await parseBody(output.body, context);
785
+ let contents = {};
786
+ contents = (0, smithy_client_1._json)(data);
787
+ const response = {
788
+ $metadata: deserializeMetadata(output),
789
+ ...contents,
790
+ };
791
+ return response;
792
+ };
793
+ exports.de_GetAdminScopeCommand = de_GetAdminScopeCommand;
794
+ const de_GetAdminScopeCommandError = async (output, context) => {
795
+ const parsedOutput = {
796
+ ...output,
797
+ body: await parseErrorBody(output.body, context),
798
+ };
799
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
800
+ switch (errorCode) {
801
+ case "InternalErrorException":
802
+ case "com.amazonaws.fms#InternalErrorException":
803
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
804
+ case "InvalidInputException":
805
+ case "com.amazonaws.fms#InvalidInputException":
806
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
807
+ case "InvalidOperationException":
808
+ case "com.amazonaws.fms#InvalidOperationException":
809
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
810
+ case "ResourceNotFoundException":
811
+ case "com.amazonaws.fms#ResourceNotFoundException":
812
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
813
+ default:
814
+ const parsedBody = parsedOutput.body;
815
+ return throwDefaultError({
816
+ output,
817
+ parsedBody,
818
+ errorCode,
819
+ });
820
+ }
821
+ };
752
822
  const de_GetAppsListCommand = async (output, context) => {
753
823
  if (output.statusCode >= 300) {
754
824
  return de_GetAppsListCommandError(output, context);
@@ -1112,6 +1182,84 @@ const de_GetViolationDetailsCommandError = async (output, context) => {
1112
1182
  });
1113
1183
  }
1114
1184
  };
1185
+ const de_ListAdminAccountsForOrganizationCommand = async (output, context) => {
1186
+ if (output.statusCode >= 300) {
1187
+ return de_ListAdminAccountsForOrganizationCommandError(output, context);
1188
+ }
1189
+ const data = await parseBody(output.body, context);
1190
+ let contents = {};
1191
+ contents = (0, smithy_client_1._json)(data);
1192
+ const response = {
1193
+ $metadata: deserializeMetadata(output),
1194
+ ...contents,
1195
+ };
1196
+ return response;
1197
+ };
1198
+ exports.de_ListAdminAccountsForOrganizationCommand = de_ListAdminAccountsForOrganizationCommand;
1199
+ const de_ListAdminAccountsForOrganizationCommandError = async (output, context) => {
1200
+ const parsedOutput = {
1201
+ ...output,
1202
+ body: await parseErrorBody(output.body, context),
1203
+ };
1204
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1205
+ switch (errorCode) {
1206
+ case "InternalErrorException":
1207
+ case "com.amazonaws.fms#InternalErrorException":
1208
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1209
+ case "InvalidOperationException":
1210
+ case "com.amazonaws.fms#InvalidOperationException":
1211
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1212
+ case "ResourceNotFoundException":
1213
+ case "com.amazonaws.fms#ResourceNotFoundException":
1214
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1215
+ default:
1216
+ const parsedBody = parsedOutput.body;
1217
+ return throwDefaultError({
1218
+ output,
1219
+ parsedBody,
1220
+ errorCode,
1221
+ });
1222
+ }
1223
+ };
1224
+ const de_ListAdminsManagingAccountCommand = async (output, context) => {
1225
+ if (output.statusCode >= 300) {
1226
+ return de_ListAdminsManagingAccountCommandError(output, context);
1227
+ }
1228
+ const data = await parseBody(output.body, context);
1229
+ let contents = {};
1230
+ contents = (0, smithy_client_1._json)(data);
1231
+ const response = {
1232
+ $metadata: deserializeMetadata(output),
1233
+ ...contents,
1234
+ };
1235
+ return response;
1236
+ };
1237
+ exports.de_ListAdminsManagingAccountCommand = de_ListAdminsManagingAccountCommand;
1238
+ const de_ListAdminsManagingAccountCommandError = async (output, context) => {
1239
+ const parsedOutput = {
1240
+ ...output,
1241
+ body: await parseErrorBody(output.body, context),
1242
+ };
1243
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1244
+ switch (errorCode) {
1245
+ case "InternalErrorException":
1246
+ case "com.amazonaws.fms#InternalErrorException":
1247
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1248
+ case "InvalidInputException":
1249
+ case "com.amazonaws.fms#InvalidInputException":
1250
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1251
+ case "ResourceNotFoundException":
1252
+ case "com.amazonaws.fms#ResourceNotFoundException":
1253
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1254
+ default:
1255
+ const parsedBody = parsedOutput.body;
1256
+ return throwDefaultError({
1257
+ output,
1258
+ parsedBody,
1259
+ errorCode,
1260
+ });
1261
+ }
1262
+ };
1115
1263
  const de_ListAppsListsCommand = async (output, context) => {
1116
1264
  if (output.statusCode >= 300) {
1117
1265
  return de_ListAppsListsCommandError(output, context);
@@ -1511,6 +1659,45 @@ const de_ListThirdPartyFirewallFirewallPoliciesCommandError = async (output, con
1511
1659
  });
1512
1660
  }
1513
1661
  };
1662
+ const de_PutAdminAccountCommand = async (output, context) => {
1663
+ if (output.statusCode >= 300) {
1664
+ return de_PutAdminAccountCommandError(output, context);
1665
+ }
1666
+ await collectBody(output.body, context);
1667
+ const response = {
1668
+ $metadata: deserializeMetadata(output),
1669
+ };
1670
+ return response;
1671
+ };
1672
+ exports.de_PutAdminAccountCommand = de_PutAdminAccountCommand;
1673
+ const de_PutAdminAccountCommandError = async (output, context) => {
1674
+ const parsedOutput = {
1675
+ ...output,
1676
+ body: await parseErrorBody(output.body, context),
1677
+ };
1678
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1679
+ switch (errorCode) {
1680
+ case "InternalErrorException":
1681
+ case "com.amazonaws.fms#InternalErrorException":
1682
+ throw await de_InternalErrorExceptionRes(parsedOutput, context);
1683
+ case "InvalidInputException":
1684
+ case "com.amazonaws.fms#InvalidInputException":
1685
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
1686
+ case "InvalidOperationException":
1687
+ case "com.amazonaws.fms#InvalidOperationException":
1688
+ throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1689
+ case "LimitExceededException":
1690
+ case "com.amazonaws.fms#LimitExceededException":
1691
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1692
+ default:
1693
+ const parsedBody = parsedOutput.body;
1694
+ return throwDefaultError({
1695
+ output,
1696
+ parsedBody,
1697
+ errorCode,
1698
+ });
1699
+ }
1700
+ };
1514
1701
  const de_PutAppsListCommand = async (output, context) => {
1515
1702
  if (output.statusCode >= 300) {
1516
1703
  return de_PutAppsListCommandError(output, context);
@@ -1924,6 +2111,7 @@ const se_ResourceSet = (input, context) => {
1924
2111
  Id: [],
1925
2112
  LastUpdateTime: (_) => Math.round(_.getTime() / 1000),
1926
2113
  Name: [],
2114
+ ResourceSetStatus: [],
1927
2115
  ResourceTypeList: smithy_client_1._json,
1928
2116
  UpdateToken: [],
1929
2117
  });
@@ -2044,6 +2232,7 @@ const de_ResourceSet = (output, context) => {
2044
2232
  Id: smithy_client_1.expectString,
2045
2233
  LastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2046
2234
  Name: smithy_client_1.expectString,
2235
+ ResourceSetStatus: smithy_client_1.expectString,
2047
2236
  ResourceTypeList: smithy_client_1._json,
2048
2237
  UpdateToken: smithy_client_1.expectString,
2049
2238
  });
@@ -2054,6 +2243,7 @@ const de_ResourceSetSummary = (output, context) => {
2054
2243
  Id: smithy_client_1.expectString,
2055
2244
  LastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2056
2245
  Name: smithy_client_1.expectString,
2246
+ ResourceSetStatus: smithy_client_1.expectString,
2057
2247
  });
2058
2248
  };
2059
2249
  const de_ResourceSetSummaryList = (output, context) => {