@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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) => {
|
package/dist-es/FMS.js
CHANGED
|
@@ -11,6 +11,7 @@ import { DeleteResourceSetCommand, } from "./commands/DeleteResourceSetCommand";
|
|
|
11
11
|
import { DisassociateAdminAccountCommand, } from "./commands/DisassociateAdminAccountCommand";
|
|
12
12
|
import { DisassociateThirdPartyFirewallCommand, } from "./commands/DisassociateThirdPartyFirewallCommand";
|
|
13
13
|
import { GetAdminAccountCommand, } from "./commands/GetAdminAccountCommand";
|
|
14
|
+
import { GetAdminScopeCommand, } from "./commands/GetAdminScopeCommand";
|
|
14
15
|
import { GetAppsListCommand } from "./commands/GetAppsListCommand";
|
|
15
16
|
import { GetComplianceDetailCommand, } from "./commands/GetComplianceDetailCommand";
|
|
16
17
|
import { GetNotificationChannelCommand, } from "./commands/GetNotificationChannelCommand";
|
|
@@ -20,6 +21,8 @@ import { GetProtocolsListCommand, } from "./commands/GetProtocolsListCommand";
|
|
|
20
21
|
import { GetResourceSetCommand, } from "./commands/GetResourceSetCommand";
|
|
21
22
|
import { GetThirdPartyFirewallAssociationStatusCommand, } from "./commands/GetThirdPartyFirewallAssociationStatusCommand";
|
|
22
23
|
import { GetViolationDetailsCommand, } from "./commands/GetViolationDetailsCommand";
|
|
24
|
+
import { ListAdminAccountsForOrganizationCommand, } from "./commands/ListAdminAccountsForOrganizationCommand";
|
|
25
|
+
import { ListAdminsManagingAccountCommand, } from "./commands/ListAdminsManagingAccountCommand";
|
|
23
26
|
import { ListAppsListsCommand, } from "./commands/ListAppsListsCommand";
|
|
24
27
|
import { ListComplianceStatusCommand, } from "./commands/ListComplianceStatusCommand";
|
|
25
28
|
import { ListDiscoveredResourcesCommand, } from "./commands/ListDiscoveredResourcesCommand";
|
|
@@ -30,6 +33,7 @@ import { ListResourceSetResourcesCommand, } from "./commands/ListResourceSetReso
|
|
|
30
33
|
import { ListResourceSetsCommand, } from "./commands/ListResourceSetsCommand";
|
|
31
34
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
32
35
|
import { ListThirdPartyFirewallFirewallPoliciesCommand, } from "./commands/ListThirdPartyFirewallFirewallPoliciesCommand";
|
|
36
|
+
import { PutAdminAccountCommand, } from "./commands/PutAdminAccountCommand";
|
|
33
37
|
import { PutAppsListCommand } from "./commands/PutAppsListCommand";
|
|
34
38
|
import { PutNotificationChannelCommand, } from "./commands/PutNotificationChannelCommand";
|
|
35
39
|
import { PutPolicyCommand } from "./commands/PutPolicyCommand";
|
|
@@ -51,6 +55,7 @@ const commands = {
|
|
|
51
55
|
DisassociateAdminAccountCommand,
|
|
52
56
|
DisassociateThirdPartyFirewallCommand,
|
|
53
57
|
GetAdminAccountCommand,
|
|
58
|
+
GetAdminScopeCommand,
|
|
54
59
|
GetAppsListCommand,
|
|
55
60
|
GetComplianceDetailCommand,
|
|
56
61
|
GetNotificationChannelCommand,
|
|
@@ -60,6 +65,8 @@ const commands = {
|
|
|
60
65
|
GetResourceSetCommand,
|
|
61
66
|
GetThirdPartyFirewallAssociationStatusCommand,
|
|
62
67
|
GetViolationDetailsCommand,
|
|
68
|
+
ListAdminAccountsForOrganizationCommand,
|
|
69
|
+
ListAdminsManagingAccountCommand,
|
|
63
70
|
ListAppsListsCommand,
|
|
64
71
|
ListComplianceStatusCommand,
|
|
65
72
|
ListDiscoveredResourcesCommand,
|
|
@@ -70,6 +77,7 @@ const commands = {
|
|
|
70
77
|
ListResourceSetsCommand,
|
|
71
78
|
ListTagsForResourceCommand,
|
|
72
79
|
ListThirdPartyFirewallFirewallPoliciesCommand,
|
|
80
|
+
PutAdminAccountCommand,
|
|
73
81
|
PutAppsListCommand,
|
|
74
82
|
PutNotificationChannelCommand,
|
|
75
83
|
PutPolicyCommand,
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_GetAdminScopeCommand, se_GetAdminScopeCommand } from "../protocols/Aws_json1_1";
|
|
5
|
+
export class GetAdminScopeCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetAdminScopeCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "FMSClient";
|
|
24
|
+
const commandName = "GetAdminScopeCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return se_GetAdminScopeCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return de_GetAdminScopeCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_ListAdminAccountsForOrganizationCommand, se_ListAdminAccountsForOrganizationCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
+
export class ListAdminAccountsForOrganizationCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListAdminAccountsForOrganizationCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "FMSClient";
|
|
24
|
+
const commandName = "ListAdminAccountsForOrganizationCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return se_ListAdminAccountsForOrganizationCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return de_ListAdminAccountsForOrganizationCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_ListAdminsManagingAccountCommand, se_ListAdminsManagingAccountCommand } from "../protocols/Aws_json1_1";
|
|
5
|
+
export class ListAdminsManagingAccountCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListAdminsManagingAccountCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "FMSClient";
|
|
24
|
+
const commandName = "ListAdminsManagingAccountCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return se_ListAdminsManagingAccountCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return de_ListAdminsManagingAccountCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_PutAdminAccountCommand, se_PutAdminAccountCommand } from "../protocols/Aws_json1_1";
|
|
5
|
+
export class PutAdminAccountCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, PutAdminAccountCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "FMSClient";
|
|
24
|
+
const commandName = "PutAdminAccountCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return se_PutAdminAccountCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return de_PutAdminAccountCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const q = "
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
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" }];
|
|
3
|
+
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 }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -6,6 +6,24 @@ export const AccountRoleStatus = {
|
|
|
6
6
|
PendingDeletion: "PENDING_DELETION",
|
|
7
7
|
Ready: "READY",
|
|
8
8
|
};
|
|
9
|
+
export const OrganizationStatus = {
|
|
10
|
+
Offboarding: "OFFBOARDING",
|
|
11
|
+
OffboardingComplete: "OFFBOARDING_COMPLETE",
|
|
12
|
+
Onboarding: "ONBOARDING",
|
|
13
|
+
OnboardingComplete: "ONBOARDING_COMPLETE",
|
|
14
|
+
};
|
|
15
|
+
export const SecurityServiceType = {
|
|
16
|
+
DNS_FIREWALL: "DNS_FIREWALL",
|
|
17
|
+
IMPORT_NETWORK_FIREWALL: "IMPORT_NETWORK_FIREWALL",
|
|
18
|
+
NETWORK_FIREWALL: "NETWORK_FIREWALL",
|
|
19
|
+
SECURITY_GROUPS_COMMON: "SECURITY_GROUPS_COMMON",
|
|
20
|
+
SECURITY_GROUPS_CONTENT_AUDIT: "SECURITY_GROUPS_CONTENT_AUDIT",
|
|
21
|
+
SECURITY_GROUPS_USAGE_AUDIT: "SECURITY_GROUPS_USAGE_AUDIT",
|
|
22
|
+
SHIELD_ADVANCED: "SHIELD_ADVANCED",
|
|
23
|
+
THIRD_PARTY_FIREWALL: "THIRD_PARTY_FIREWALL",
|
|
24
|
+
WAF: "WAF",
|
|
25
|
+
WAFV2: "WAFV2",
|
|
26
|
+
};
|
|
9
27
|
export class InternalErrorException extends __BaseException {
|
|
10
28
|
constructor(opts) {
|
|
11
29
|
super({
|
|
@@ -130,22 +148,14 @@ export const CustomerPolicyScopeIdType = {
|
|
|
130
148
|
ACCOUNT: "ACCOUNT",
|
|
131
149
|
ORG_UNIT: "ORG_UNIT",
|
|
132
150
|
};
|
|
151
|
+
export const CustomerPolicyStatus = {
|
|
152
|
+
ACTIVE: "ACTIVE",
|
|
153
|
+
OUT_OF_ADMIN_SCOPE: "OUT_OF_ADMIN_SCOPE",
|
|
154
|
+
};
|
|
133
155
|
export const FirewallDeploymentModel = {
|
|
134
156
|
CENTRALIZED: "CENTRALIZED",
|
|
135
157
|
DISTRIBUTED: "DISTRIBUTED",
|
|
136
158
|
};
|
|
137
|
-
export const SecurityServiceType = {
|
|
138
|
-
DNS_FIREWALL: "DNS_FIREWALL",
|
|
139
|
-
IMPORT_NETWORK_FIREWALL: "IMPORT_NETWORK_FIREWALL",
|
|
140
|
-
NETWORK_FIREWALL: "NETWORK_FIREWALL",
|
|
141
|
-
SECURITY_GROUPS_COMMON: "SECURITY_GROUPS_COMMON",
|
|
142
|
-
SECURITY_GROUPS_CONTENT_AUDIT: "SECURITY_GROUPS_CONTENT_AUDIT",
|
|
143
|
-
SECURITY_GROUPS_USAGE_AUDIT: "SECURITY_GROUPS_USAGE_AUDIT",
|
|
144
|
-
SHIELD_ADVANCED: "SHIELD_ADVANCED",
|
|
145
|
-
THIRD_PARTY_FIREWALL: "THIRD_PARTY_FIREWALL",
|
|
146
|
-
WAF: "WAF",
|
|
147
|
-
WAFV2: "WAFV2",
|
|
148
|
-
};
|
|
149
159
|
export class InvalidTypeException extends __BaseException {
|
|
150
160
|
constructor(opts) {
|
|
151
161
|
super({
|
|
@@ -159,6 +169,10 @@ export class InvalidTypeException extends __BaseException {
|
|
|
159
169
|
this.Message = opts.Message;
|
|
160
170
|
}
|
|
161
171
|
}
|
|
172
|
+
export const ResourceSetStatus = {
|
|
173
|
+
ACTIVE: "ACTIVE",
|
|
174
|
+
OUT_OF_ADMIN_SCOPE: "OUT_OF_ADMIN_SCOPE",
|
|
175
|
+
};
|
|
162
176
|
export const MarketplaceSubscriptionOnboardingStatus = {
|
|
163
177
|
COMPLETE: "COMPLETE",
|
|
164
178
|
NOT_COMPLETE: "NOT_COMPLETE",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListAdminAccountsForOrganizationCommand, } from "../commands/ListAdminAccountsForOrganizationCommand";
|
|
2
|
+
import { FMSClient } from "../FMSClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListAdminAccountsForOrganizationCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListAdminAccountsForOrganization(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.NextToken = token;
|
|
12
|
+
input["MaxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof FMSClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected FMS | FMSClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.NextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListAdminsManagingAccountCommand, } from "../commands/ListAdminsManagingAccountCommand";
|
|
2
|
+
import { FMSClient } from "../FMSClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListAdminsManagingAccountCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListAdminsManagingAccount(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.NextToken = token;
|
|
12
|
+
input["MaxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof FMSClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected FMS | FMSClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.NextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -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";
|