@aws-sdk/client-config-service 3.55.0 → 3.65.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 (54) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist-cjs/ConfigService.js +30 -0
  3. package/dist-cjs/commands/GetCustomRulePolicyCommand.js +36 -0
  4. package/dist-cjs/commands/GetOrganizationCustomRulePolicyCommand.js +36 -0
  5. package/dist-cjs/commands/PutOrganizationConfigRuleCommand.js +3 -3
  6. package/dist-cjs/commands/PutOrganizationConformancePackCommand.js +3 -3
  7. package/dist-cjs/commands/PutRemediationConfigurationsCommand.js +3 -3
  8. package/dist-cjs/commands/PutRemediationExceptionsCommand.js +3 -3
  9. package/dist-cjs/commands/index.js +2 -0
  10. package/dist-cjs/models/models_0.js +57 -54
  11. package/dist-cjs/models/models_1.js +49 -1
  12. package/dist-cjs/protocols/Aws_json1_1.js +243 -3
  13. package/dist-es/ConfigService.js +30 -0
  14. package/dist-es/commands/GetCustomRulePolicyCommand.js +39 -0
  15. package/dist-es/commands/GetOrganizationCustomRulePolicyCommand.js +39 -0
  16. package/dist-es/commands/PutOrganizationConfigRuleCommand.js +1 -1
  17. package/dist-es/commands/PutOrganizationConformancePackCommand.js +1 -1
  18. package/dist-es/commands/PutRemediationConfigurationsCommand.js +1 -1
  19. package/dist-es/commands/PutRemediationExceptionsCommand.js +1 -1
  20. package/dist-es/commands/index.js +2 -0
  21. package/dist-es/models/models_0.js +37 -32
  22. package/dist-es/models/models_1.js +32 -0
  23. package/dist-es/protocols/Aws_json1_1.js +252 -3
  24. package/dist-types/ConfigService.d.ts +33 -19
  25. package/dist-types/ConfigServiceClient.d.ts +4 -2
  26. package/dist-types/commands/DeleteOrganizationConfigRuleCommand.d.ts +2 -2
  27. package/dist-types/commands/DeleteOrganizationConformancePackCommand.d.ts +1 -1
  28. package/dist-types/commands/DescribeOrganizationConfigRuleStatusesCommand.d.ts +4 -4
  29. package/dist-types/commands/DescribeOrganizationConfigRulesCommand.d.ts +3 -3
  30. package/dist-types/commands/GetCustomRulePolicyCommand.d.ts +35 -0
  31. package/dist-types/commands/GetOrganizationConfigRuleDetailedStatusCommand.d.ts +1 -1
  32. package/dist-types/commands/GetOrganizationCustomRulePolicyCommand.d.ts +35 -0
  33. package/dist-types/commands/PutConfigRuleCommand.d.ts +3 -3
  34. package/dist-types/commands/PutOrganizationConfigRuleCommand.d.ts +6 -6
  35. package/dist-types/commands/PutOrganizationConformancePackCommand.d.ts +1 -1
  36. package/dist-types/commands/PutRemediationConfigurationsCommand.d.ts +1 -1
  37. package/dist-types/commands/PutRemediationExceptionsCommand.d.ts +1 -1
  38. package/dist-types/commands/index.d.ts +2 -0
  39. package/dist-types/models/models_0.d.ts +342 -236
  40. package/dist-types/models/models_1.d.ts +162 -1
  41. package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
  42. package/dist-types/ts3.4/ConfigService.d.ts +10 -0
  43. package/dist-types/ts3.4/ConfigServiceClient.d.ts +4 -2
  44. package/dist-types/ts3.4/commands/GetCustomRulePolicyCommand.d.ts +17 -0
  45. package/dist-types/ts3.4/commands/GetOrganizationCustomRulePolicyCommand.d.ts +17 -0
  46. package/dist-types/ts3.4/commands/PutOrganizationConfigRuleCommand.d.ts +1 -1
  47. package/dist-types/ts3.4/commands/PutOrganizationConformancePackCommand.d.ts +1 -1
  48. package/dist-types/ts3.4/commands/PutRemediationConfigurationsCommand.d.ts +1 -1
  49. package/dist-types/ts3.4/commands/PutRemediationExceptionsCommand.d.ts +1 -1
  50. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  51. package/dist-types/ts3.4/models/models_0.d.ts +121 -90
  52. package/dist-types/ts3.4/models/models_1.d.ts +91 -1
  53. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +6 -0
  54. package/package.json +18 -18
@@ -137,6 +137,7 @@ export var ResourceType;
137
137
  ResourceType["EFSFileSystem"] = "AWS::EFS::FileSystem";
138
138
  ResourceType["EIP"] = "AWS::EC2::EIP";
139
139
  ResourceType["EKSCluster"] = "AWS::EKS::Cluster";
140
+ ResourceType["EMRSecurityConfiguration"] = "AWS::EMR::SecurityConfiguration";
140
141
  ResourceType["EgressOnlyInternetGateway"] = "AWS::EC2::EgressOnlyInternetGateway";
141
142
  ResourceType["EncryptionConfig"] = "AWS::XRay::EncryptionConfig";
142
143
  ResourceType["Environment"] = "AWS::ElasticBeanstalk::Environment";
@@ -145,6 +146,7 @@ export var ResourceType;
145
146
  ResourceType["FlowLog"] = "AWS::EC2::FlowLog";
146
147
  ResourceType["Function"] = "AWS::Lambda::Function";
147
148
  ResourceType["Group"] = "AWS::IAM::Group";
149
+ ResourceType["GuardDutyDetector"] = "AWS::GuardDuty::Detector";
148
150
  ResourceType["Host"] = "AWS::EC2::Host";
149
151
  ResourceType["IPSetV2"] = "AWS::WAFv2::IPSet";
150
152
  ResourceType["Instance"] = "AWS::EC2::Instance";
@@ -189,6 +191,7 @@ export var ResourceType;
189
191
  ResourceType["Rule"] = "AWS::WAF::Rule";
190
192
  ResourceType["RuleGroup"] = "AWS::WAF::RuleGroup";
191
193
  ResourceType["RuleGroupV2"] = "AWS::WAFv2::RuleGroup";
194
+ ResourceType["SageMakerCodeRepository"] = "AWS::SageMaker::CodeRepository";
192
195
  ResourceType["ScalingPolicy"] = "AWS::AutoScaling::ScalingPolicy";
193
196
  ResourceType["ScheduledAction"] = "AWS::AutoScaling::ScheduledAction";
194
197
  ResourceType["Secret"] = "AWS::SecretsManager::Secret";
@@ -335,10 +338,15 @@ export var Scope;
335
338
  (function (Scope) {
336
339
  Scope.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
337
340
  })(Scope || (Scope = {}));
341
+ export var CustomPolicyDetails;
342
+ (function (CustomPolicyDetails) {
343
+ CustomPolicyDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
344
+ })(CustomPolicyDetails || (CustomPolicyDetails = {}));
338
345
  export var Owner;
339
346
  (function (Owner) {
340
347
  Owner["Aws"] = "AWS";
341
348
  Owner["Custom_Lambda"] = "CUSTOM_LAMBDA";
349
+ Owner["Custom_Policy"] = "CUSTOM_POLICY";
342
350
  })(Owner || (Owner = {}));
343
351
  export var EventSource;
344
352
  (function (EventSource) {
@@ -946,6 +954,15 @@ export var DescribeOrganizationConfigRulesRequest;
946
954
  (function (DescribeOrganizationConfigRulesRequest) {
947
955
  DescribeOrganizationConfigRulesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
948
956
  })(DescribeOrganizationConfigRulesRequest || (DescribeOrganizationConfigRulesRequest = {}));
957
+ export var OrganizationConfigRuleTriggerTypeNoSN;
958
+ (function (OrganizationConfigRuleTriggerTypeNoSN) {
959
+ OrganizationConfigRuleTriggerTypeNoSN["CONFIGURATION_ITEM_CHANGE_NOTIFICATION"] = "ConfigurationItemChangeNotification";
960
+ OrganizationConfigRuleTriggerTypeNoSN["OVERSIZED_CONFIGURATION_ITEM_CHANGE_NOTIFCATION"] = "OversizedConfigurationItemChangeNotification";
961
+ })(OrganizationConfigRuleTriggerTypeNoSN || (OrganizationConfigRuleTriggerTypeNoSN = {}));
962
+ export var OrganizationCustomPolicyRuleMetadataNoPolicy;
963
+ (function (OrganizationCustomPolicyRuleMetadataNoPolicy) {
964
+ OrganizationCustomPolicyRuleMetadataNoPolicy.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
965
+ })(OrganizationCustomPolicyRuleMetadataNoPolicy || (OrganizationCustomPolicyRuleMetadataNoPolicy = {}));
949
966
  export var OrganizationConfigRuleTriggerType;
950
967
  (function (OrganizationConfigRuleTriggerType) {
951
968
  OrganizationConfigRuleTriggerType["CONFIGURATION_ITEM_CHANGE_NOTIFICATION"] = "ConfigurationItemChangeNotification";
@@ -1279,6 +1296,14 @@ export var GetConformancePackComplianceSummaryResponse;
1279
1296
  (function (GetConformancePackComplianceSummaryResponse) {
1280
1297
  GetConformancePackComplianceSummaryResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1281
1298
  })(GetConformancePackComplianceSummaryResponse || (GetConformancePackComplianceSummaryResponse = {}));
1299
+ export var GetCustomRulePolicyRequest;
1300
+ (function (GetCustomRulePolicyRequest) {
1301
+ GetCustomRulePolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1302
+ })(GetCustomRulePolicyRequest || (GetCustomRulePolicyRequest = {}));
1303
+ export var GetCustomRulePolicyResponse;
1304
+ (function (GetCustomRulePolicyResponse) {
1305
+ GetCustomRulePolicyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1306
+ })(GetCustomRulePolicyResponse || (GetCustomRulePolicyResponse = {}));
1282
1307
  export var GetDiscoveredResourceCountsRequest;
1283
1308
  (function (GetDiscoveredResourceCountsRequest) {
1284
1309
  GetDiscoveredResourceCountsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1347,6 +1372,14 @@ export var GetOrganizationConformancePackDetailedStatusResponse;
1347
1372
  (function (GetOrganizationConformancePackDetailedStatusResponse) {
1348
1373
  GetOrganizationConformancePackDetailedStatusResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1349
1374
  })(GetOrganizationConformancePackDetailedStatusResponse || (GetOrganizationConformancePackDetailedStatusResponse = {}));
1375
+ export var GetOrganizationCustomRulePolicyRequest;
1376
+ (function (GetOrganizationCustomRulePolicyRequest) {
1377
+ GetOrganizationCustomRulePolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1378
+ })(GetOrganizationCustomRulePolicyRequest || (GetOrganizationCustomRulePolicyRequest = {}));
1379
+ export var GetOrganizationCustomRulePolicyResponse;
1380
+ (function (GetOrganizationCustomRulePolicyResponse) {
1381
+ GetOrganizationCustomRulePolicyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1382
+ })(GetOrganizationCustomRulePolicyResponse || (GetOrganizationCustomRulePolicyResponse = {}));
1350
1383
  export var GetResourceConfigHistoryRequest;
1351
1384
  (function (GetResourceConfigHistoryRequest) {
1352
1385
  GetResourceConfigHistoryRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1715,6 +1748,10 @@ var OrganizationConformancePackTemplateValidationException = (function (_super)
1715
1748
  return OrganizationConformancePackTemplateValidationException;
1716
1749
  }(__BaseException));
1717
1750
  export { OrganizationConformancePackTemplateValidationException };
1751
+ export var OrganizationCustomPolicyRuleMetadata;
1752
+ (function (OrganizationCustomPolicyRuleMetadata) {
1753
+ OrganizationCustomPolicyRuleMetadata.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1754
+ })(OrganizationCustomPolicyRuleMetadata || (OrganizationCustomPolicyRuleMetadata = {}));
1718
1755
  export var PutAggregationAuthorizationRequest;
1719
1756
  (function (PutAggregationAuthorizationRequest) {
1720
1757
  PutAggregationAuthorizationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1767,35 +1804,3 @@ export var PutExternalEvaluationResponse;
1767
1804
  (function (PutExternalEvaluationResponse) {
1768
1805
  PutExternalEvaluationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1769
1806
  })(PutExternalEvaluationResponse || (PutExternalEvaluationResponse = {}));
1770
- export var PutOrganizationConfigRuleRequest;
1771
- (function (PutOrganizationConfigRuleRequest) {
1772
- PutOrganizationConfigRuleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1773
- })(PutOrganizationConfigRuleRequest || (PutOrganizationConfigRuleRequest = {}));
1774
- export var PutOrganizationConfigRuleResponse;
1775
- (function (PutOrganizationConfigRuleResponse) {
1776
- PutOrganizationConfigRuleResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1777
- })(PutOrganizationConfigRuleResponse || (PutOrganizationConfigRuleResponse = {}));
1778
- export var PutOrganizationConformancePackRequest;
1779
- (function (PutOrganizationConformancePackRequest) {
1780
- PutOrganizationConformancePackRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1781
- })(PutOrganizationConformancePackRequest || (PutOrganizationConformancePackRequest = {}));
1782
- export var PutOrganizationConformancePackResponse;
1783
- (function (PutOrganizationConformancePackResponse) {
1784
- PutOrganizationConformancePackResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1785
- })(PutOrganizationConformancePackResponse || (PutOrganizationConformancePackResponse = {}));
1786
- export var PutRemediationConfigurationsRequest;
1787
- (function (PutRemediationConfigurationsRequest) {
1788
- PutRemediationConfigurationsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1789
- })(PutRemediationConfigurationsRequest || (PutRemediationConfigurationsRequest = {}));
1790
- export var PutRemediationConfigurationsResponse;
1791
- (function (PutRemediationConfigurationsResponse) {
1792
- PutRemediationConfigurationsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1793
- })(PutRemediationConfigurationsResponse || (PutRemediationConfigurationsResponse = {}));
1794
- export var PutRemediationExceptionsRequest;
1795
- (function (PutRemediationExceptionsRequest) {
1796
- PutRemediationExceptionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1797
- })(PutRemediationExceptionsRequest || (PutRemediationExceptionsRequest = {}));
1798
- export var PutRemediationExceptionsResponse;
1799
- (function (PutRemediationExceptionsResponse) {
1800
- PutRemediationExceptionsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1801
- })(PutRemediationExceptionsResponse || (PutRemediationExceptionsResponse = {}));
@@ -1,5 +1,37 @@
1
1
  import { __assign, __extends } from "tslib";
2
2
  import { ConfigServiceServiceException as __BaseException } from "./ConfigServiceServiceException";
3
+ export var PutOrganizationConfigRuleRequest;
4
+ (function (PutOrganizationConfigRuleRequest) {
5
+ PutOrganizationConfigRuleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
6
+ })(PutOrganizationConfigRuleRequest || (PutOrganizationConfigRuleRequest = {}));
7
+ export var PutOrganizationConfigRuleResponse;
8
+ (function (PutOrganizationConfigRuleResponse) {
9
+ PutOrganizationConfigRuleResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
10
+ })(PutOrganizationConfigRuleResponse || (PutOrganizationConfigRuleResponse = {}));
11
+ export var PutOrganizationConformancePackRequest;
12
+ (function (PutOrganizationConformancePackRequest) {
13
+ PutOrganizationConformancePackRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
14
+ })(PutOrganizationConformancePackRequest || (PutOrganizationConformancePackRequest = {}));
15
+ export var PutOrganizationConformancePackResponse;
16
+ (function (PutOrganizationConformancePackResponse) {
17
+ PutOrganizationConformancePackResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
18
+ })(PutOrganizationConformancePackResponse || (PutOrganizationConformancePackResponse = {}));
19
+ export var PutRemediationConfigurationsRequest;
20
+ (function (PutRemediationConfigurationsRequest) {
21
+ PutRemediationConfigurationsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
22
+ })(PutRemediationConfigurationsRequest || (PutRemediationConfigurationsRequest = {}));
23
+ export var PutRemediationConfigurationsResponse;
24
+ (function (PutRemediationConfigurationsResponse) {
25
+ PutRemediationConfigurationsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
26
+ })(PutRemediationConfigurationsResponse || (PutRemediationConfigurationsResponse = {}));
27
+ export var PutRemediationExceptionsRequest;
28
+ (function (PutRemediationExceptionsRequest) {
29
+ PutRemediationExceptionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
30
+ })(PutRemediationExceptionsRequest || (PutRemediationExceptionsRequest = {}));
31
+ export var PutRemediationExceptionsResponse;
32
+ (function (PutRemediationExceptionsResponse) {
33
+ PutRemediationExceptionsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
34
+ })(PutRemediationExceptionsResponse || (PutRemediationExceptionsResponse = {}));
3
35
  export var PutResourceConfigRequest;
4
36
  (function (PutResourceConfigRequest) {
5
37
  PutResourceConfigRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -598,6 +598,17 @@ export var serializeAws_json1_1GetConformancePackComplianceSummaryCommand = func
598
598
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
599
599
  });
600
600
  }); };
601
+ export var serializeAws_json1_1GetCustomRulePolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
602
+ var headers, body;
603
+ return __generator(this, function (_a) {
604
+ headers = {
605
+ "content-type": "application/x-amz-json-1.1",
606
+ "x-amz-target": "StarlingDoveService.GetCustomRulePolicy",
607
+ };
608
+ body = JSON.stringify(serializeAws_json1_1GetCustomRulePolicyRequest(input, context));
609
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
610
+ });
611
+ }); };
601
612
  export var serializeAws_json1_1GetDiscoveredResourceCountsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
602
613
  var headers, body;
603
614
  return __generator(this, function (_a) {
@@ -631,6 +642,17 @@ export var serializeAws_json1_1GetOrganizationConformancePackDetailedStatusComma
631
642
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
632
643
  });
633
644
  }); };
645
+ export var serializeAws_json1_1GetOrganizationCustomRulePolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
646
+ var headers, body;
647
+ return __generator(this, function (_a) {
648
+ headers = {
649
+ "content-type": "application/x-amz-json-1.1",
650
+ "x-amz-target": "StarlingDoveService.GetOrganizationCustomRulePolicy",
651
+ };
652
+ body = JSON.stringify(serializeAws_json1_1GetOrganizationCustomRulePolicyRequest(input, context));
653
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
654
+ });
655
+ }); };
634
656
  export var serializeAws_json1_1GetResourceConfigHistoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
635
657
  var headers, body;
636
658
  return __generator(this, function (_a) {
@@ -3996,6 +4018,56 @@ var deserializeAws_json1_1GetConformancePackComplianceSummaryCommandError = func
3996
4018
  }
3997
4019
  });
3998
4020
  }); };
4021
+ export var deserializeAws_json1_1GetCustomRulePolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4022
+ var data, contents, response;
4023
+ return __generator(this, function (_a) {
4024
+ switch (_a.label) {
4025
+ case 0:
4026
+ if (output.statusCode >= 300) {
4027
+ return [2, deserializeAws_json1_1GetCustomRulePolicyCommandError(output, context)];
4028
+ }
4029
+ return [4, parseBody(output.body, context)];
4030
+ case 1:
4031
+ data = _a.sent();
4032
+ contents = {};
4033
+ contents = deserializeAws_json1_1GetCustomRulePolicyResponse(data, context);
4034
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
4035
+ return [2, Promise.resolve(response)];
4036
+ }
4037
+ });
4038
+ }); };
4039
+ var deserializeAws_json1_1GetCustomRulePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4040
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
4041
+ var _c;
4042
+ return __generator(this, function (_d) {
4043
+ switch (_d.label) {
4044
+ case 0:
4045
+ _a = [__assign({}, output)];
4046
+ _c = {};
4047
+ return [4, parseBody(output.body, context)];
4048
+ case 1:
4049
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4050
+ errorCode = "UnknownError";
4051
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4052
+ _b = errorCode;
4053
+ switch (_b) {
4054
+ case "NoSuchConfigRuleException": return [3, 2];
4055
+ case "com.amazonaws.configservice#NoSuchConfigRuleException": return [3, 2];
4056
+ }
4057
+ return [3, 4];
4058
+ case 2: return [4, deserializeAws_json1_1NoSuchConfigRuleExceptionResponse(parsedOutput, context)];
4059
+ case 3: throw _d.sent();
4060
+ case 4:
4061
+ parsedBody = parsedOutput.body;
4062
+ response = new __BaseException({
4063
+ name: parsedBody.code || parsedBody.Code || errorCode,
4064
+ $fault: "client",
4065
+ $metadata: deserializeMetadata(output),
4066
+ });
4067
+ throw __decorateServiceException(response, parsedBody);
4068
+ }
4069
+ });
4070
+ }); };
3999
4071
  export var deserializeAws_json1_1GetDiscoveredResourceCountsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4000
4072
  var data, contents, response;
4001
4073
  return __generator(this, function (_a) {
@@ -4178,6 +4250,60 @@ var deserializeAws_json1_1GetOrganizationConformancePackDetailedStatusCommandErr
4178
4250
  }
4179
4251
  });
4180
4252
  }); };
4253
+ export var deserializeAws_json1_1GetOrganizationCustomRulePolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4254
+ var data, contents, response;
4255
+ return __generator(this, function (_a) {
4256
+ switch (_a.label) {
4257
+ case 0:
4258
+ if (output.statusCode >= 300) {
4259
+ return [2, deserializeAws_json1_1GetOrganizationCustomRulePolicyCommandError(output, context)];
4260
+ }
4261
+ return [4, parseBody(output.body, context)];
4262
+ case 1:
4263
+ data = _a.sent();
4264
+ contents = {};
4265
+ contents = deserializeAws_json1_1GetOrganizationCustomRulePolicyResponse(data, context);
4266
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
4267
+ return [2, Promise.resolve(response)];
4268
+ }
4269
+ });
4270
+ }); };
4271
+ var deserializeAws_json1_1GetOrganizationCustomRulePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4272
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
4273
+ var _c;
4274
+ return __generator(this, function (_d) {
4275
+ switch (_d.label) {
4276
+ case 0:
4277
+ _a = [__assign({}, output)];
4278
+ _c = {};
4279
+ return [4, parseBody(output.body, context)];
4280
+ case 1:
4281
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4282
+ errorCode = "UnknownError";
4283
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4284
+ _b = errorCode;
4285
+ switch (_b) {
4286
+ case "NoSuchOrganizationConfigRuleException": return [3, 2];
4287
+ case "com.amazonaws.configservice#NoSuchOrganizationConfigRuleException": return [3, 2];
4288
+ case "OrganizationAccessDeniedException": return [3, 4];
4289
+ case "com.amazonaws.configservice#OrganizationAccessDeniedException": return [3, 4];
4290
+ }
4291
+ return [3, 6];
4292
+ case 2: return [4, deserializeAws_json1_1NoSuchOrganizationConfigRuleExceptionResponse(parsedOutput, context)];
4293
+ case 3: throw _d.sent();
4294
+ case 4: return [4, deserializeAws_json1_1OrganizationAccessDeniedExceptionResponse(parsedOutput, context)];
4295
+ case 5: throw _d.sent();
4296
+ case 6:
4297
+ parsedBody = parsedOutput.body;
4298
+ response = new __BaseException({
4299
+ name: parsedBody.code || parsedBody.Code || errorCode,
4300
+ $fault: "client",
4301
+ $metadata: deserializeMetadata(output),
4302
+ });
4303
+ throw __decorateServiceException(response, parsedBody);
4304
+ }
4305
+ });
4306
+ }); };
4181
4307
  export var deserializeAws_json1_1GetResourceConfigHistoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4182
4308
  var data, contents, response;
4183
4309
  return __generator(this, function (_a) {
@@ -6635,6 +6761,20 @@ var serializeAws_json1_1ConformancePackNamesToSummarizeList = function (input, c
6635
6761
  return entry;
6636
6762
  });
6637
6763
  };
6764
+ var serializeAws_json1_1CustomPolicyDetails = function (input, context) {
6765
+ return __assign(__assign(__assign({}, (input.EnableDebugLogDelivery !== undefined &&
6766
+ input.EnableDebugLogDelivery !== null && { EnableDebugLogDelivery: input.EnableDebugLogDelivery })), (input.PolicyRuntime !== undefined && input.PolicyRuntime !== null && { PolicyRuntime: input.PolicyRuntime })), (input.PolicyText !== undefined && input.PolicyText !== null && { PolicyText: input.PolicyText }));
6767
+ };
6768
+ var serializeAws_json1_1DebugLogDeliveryAccounts = function (input, context) {
6769
+ return input
6770
+ .filter(function (e) { return e != null; })
6771
+ .map(function (entry) {
6772
+ if (entry === null) {
6773
+ return null;
6774
+ }
6775
+ return entry;
6776
+ });
6777
+ };
6638
6778
  var serializeAws_json1_1DeleteAggregationAuthorizationRequest = function (input, context) {
6639
6779
  return __assign(__assign({}, (input.AuthorizedAccountId !== undefined &&
6640
6780
  input.AuthorizedAccountId !== null && { AuthorizedAccountId: input.AuthorizedAccountId })), (input.AuthorizedAwsRegion !== undefined &&
@@ -6971,6 +7111,10 @@ var serializeAws_json1_1GetConformancePackComplianceSummaryRequest = function (i
6971
7111
  ConformancePackNames: serializeAws_json1_1ConformancePackNamesToSummarizeList(input.ConformancePackNames, context),
6972
7112
  })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
6973
7113
  };
7114
+ var serializeAws_json1_1GetCustomRulePolicyRequest = function (input, context) {
7115
+ return __assign({}, (input.ConfigRuleName !== undefined &&
7116
+ input.ConfigRuleName !== null && { ConfigRuleName: input.ConfigRuleName }));
7117
+ };
6974
7118
  var serializeAws_json1_1GetDiscoveredResourceCountsRequest = function (input, context) {
6975
7119
  return __assign(__assign(__assign({}, (input.limit !== undefined && input.limit !== null && { limit: input.limit })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.resourceTypes !== undefined &&
6976
7120
  input.resourceTypes !== null && {
@@ -6991,6 +7135,10 @@ var serializeAws_json1_1GetOrganizationConformancePackDetailedStatusRequest = fu
6991
7135
  OrganizationConformancePackName: input.OrganizationConformancePackName,
6992
7136
  }));
6993
7137
  };
7138
+ var serializeAws_json1_1GetOrganizationCustomRulePolicyRequest = function (input, context) {
7139
+ return __assign({}, (input.OrganizationConfigRuleName !== undefined &&
7140
+ input.OrganizationConfigRuleName !== null && { OrganizationConfigRuleName: input.OrganizationConfigRuleName }));
7141
+ };
6994
7142
  var serializeAws_json1_1GetResourceConfigHistoryRequest = function (input, context) {
6995
7143
  return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.chronologicalOrder !== undefined &&
6996
7144
  input.chronologicalOrder !== null && { chronologicalOrder: input.chronologicalOrder })), (input.earlierTime !== undefined &&
@@ -7030,6 +7178,16 @@ var serializeAws_json1_1OrganizationConfigRuleNames = function (input, context)
7030
7178
  return entry;
7031
7179
  });
7032
7180
  };
7181
+ var serializeAws_json1_1OrganizationConfigRuleTriggerTypeNoSNs = function (input, context) {
7182
+ return input
7183
+ .filter(function (e) { return e != null; })
7184
+ .map(function (entry) {
7185
+ if (entry === null) {
7186
+ return null;
7187
+ }
7188
+ return entry;
7189
+ });
7190
+ };
7033
7191
  var serializeAws_json1_1OrganizationConfigRuleTriggerTypes = function (input, context) {
7034
7192
  return input
7035
7193
  .filter(function (e) { return e != null; })
@@ -7050,6 +7208,21 @@ var serializeAws_json1_1OrganizationConformancePackNames = function (input, cont
7050
7208
  return entry;
7051
7209
  });
7052
7210
  };
7211
+ var serializeAws_json1_1OrganizationCustomPolicyRuleMetadata = function (input, context) {
7212
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DebugLogDeliveryAccounts !== undefined &&
7213
+ input.DebugLogDeliveryAccounts !== null && {
7214
+ DebugLogDeliveryAccounts: serializeAws_json1_1DebugLogDeliveryAccounts(input.DebugLogDeliveryAccounts, context),
7215
+ })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.InputParameters !== undefined &&
7216
+ input.InputParameters !== null && { InputParameters: input.InputParameters })), (input.MaximumExecutionFrequency !== undefined &&
7217
+ input.MaximumExecutionFrequency !== null && { MaximumExecutionFrequency: input.MaximumExecutionFrequency })), (input.OrganizationConfigRuleTriggerTypes !== undefined &&
7218
+ input.OrganizationConfigRuleTriggerTypes !== null && {
7219
+ OrganizationConfigRuleTriggerTypes: serializeAws_json1_1OrganizationConfigRuleTriggerTypeNoSNs(input.OrganizationConfigRuleTriggerTypes, context),
7220
+ })), (input.PolicyRuntime !== undefined && input.PolicyRuntime !== null && { PolicyRuntime: input.PolicyRuntime })), (input.PolicyText !== undefined && input.PolicyText !== null && { PolicyText: input.PolicyText })), (input.ResourceIdScope !== undefined &&
7221
+ input.ResourceIdScope !== null && { ResourceIdScope: input.ResourceIdScope })), (input.ResourceTypesScope !== undefined &&
7222
+ input.ResourceTypesScope !== null && {
7223
+ ResourceTypesScope: serializeAws_json1_1ResourceTypesScope(input.ResourceTypesScope, context),
7224
+ })), (input.TagKeyScope !== undefined && input.TagKeyScope !== null && { TagKeyScope: input.TagKeyScope })), (input.TagValueScope !== undefined && input.TagValueScope !== null && { TagValueScope: input.TagValueScope }));
7225
+ };
7053
7226
  var serializeAws_json1_1OrganizationCustomRuleMetadata = function (input, context) {
7054
7227
  return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.InputParameters !== undefined &&
7055
7228
  input.InputParameters !== null && { InputParameters: input.InputParameters })), (input.LambdaFunctionArn !== undefined &&
@@ -7128,11 +7301,14 @@ var serializeAws_json1_1PutExternalEvaluationRequest = function (input, context)
7128
7301
  }));
7129
7302
  };
7130
7303
  var serializeAws_json1_1PutOrganizationConfigRuleRequest = function (input, context) {
7131
- return __assign(__assign(__assign(__assign({}, (input.ExcludedAccounts !== undefined &&
7304
+ return __assign(__assign(__assign(__assign(__assign({}, (input.ExcludedAccounts !== undefined &&
7132
7305
  input.ExcludedAccounts !== null && {
7133
7306
  ExcludedAccounts: serializeAws_json1_1ExcludedAccounts(input.ExcludedAccounts, context),
7134
7307
  })), (input.OrganizationConfigRuleName !== undefined &&
7135
- input.OrganizationConfigRuleName !== null && { OrganizationConfigRuleName: input.OrganizationConfigRuleName })), (input.OrganizationCustomRuleMetadata !== undefined &&
7308
+ input.OrganizationConfigRuleName !== null && { OrganizationConfigRuleName: input.OrganizationConfigRuleName })), (input.OrganizationCustomPolicyRuleMetadata !== undefined &&
7309
+ input.OrganizationCustomPolicyRuleMetadata !== null && {
7310
+ OrganizationCustomPolicyRuleMetadata: serializeAws_json1_1OrganizationCustomPolicyRuleMetadata(input.OrganizationCustomPolicyRuleMetadata, context),
7311
+ })), (input.OrganizationCustomRuleMetadata !== undefined &&
7136
7312
  input.OrganizationCustomRuleMetadata !== null && {
7137
7313
  OrganizationCustomRuleMetadata: serializeAws_json1_1OrganizationCustomRuleMetadata(input.OrganizationCustomRuleMetadata, context),
7138
7314
  })), (input.OrganizationManagedRuleMetadata !== undefined &&
@@ -7347,7 +7523,10 @@ var serializeAws_json1_1SelectResourceConfigRequest = function (input, context)
7347
7523
  return __assign(__assign(__assign({}, (input.Expression !== undefined && input.Expression !== null && { Expression: input.Expression })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
7348
7524
  };
7349
7525
  var serializeAws_json1_1Source = function (input, context) {
7350
- return __assign(__assign(__assign({}, (input.Owner !== undefined && input.Owner !== null && { Owner: input.Owner })), (input.SourceDetails !== undefined &&
7526
+ return __assign(__assign(__assign(__assign({}, (input.CustomPolicyDetails !== undefined &&
7527
+ input.CustomPolicyDetails !== null && {
7528
+ CustomPolicyDetails: serializeAws_json1_1CustomPolicyDetails(input.CustomPolicyDetails, context),
7529
+ })), (input.Owner !== undefined && input.Owner !== null && { Owner: input.Owner })), (input.SourceDetails !== undefined &&
7351
7530
  input.SourceDetails !== null && {
7352
7531
  SourceDetails: serializeAws_json1_1SourceDetails(input.SourceDetails, context),
7353
7532
  })), (input.SourceIdentifier !== undefined &&
@@ -7881,6 +8060,11 @@ var deserializeAws_json1_1ConfigRuleEvaluationStatus = function (output, context
7881
8060
  LastDeactivatedTime: output.LastDeactivatedTime !== undefined && output.LastDeactivatedTime !== null
7882
8061
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastDeactivatedTime)))
7883
8062
  : undefined,
8063
+ LastDebugLogDeliveryStatus: __expectString(output.LastDebugLogDeliveryStatus),
8064
+ LastDebugLogDeliveryStatusReason: __expectString(output.LastDebugLogDeliveryStatusReason),
8065
+ LastDebugLogDeliveryTime: output.LastDebugLogDeliveryTime !== undefined && output.LastDebugLogDeliveryTime !== null
8066
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastDebugLogDeliveryTime)))
8067
+ : undefined,
7884
8068
  LastErrorCode: __expectString(output.LastErrorCode),
7885
8069
  LastErrorMessage: __expectString(output.LastErrorMessage),
7886
8070
  LastFailedEvaluationTime: output.LastFailedEvaluationTime !== undefined && output.LastFailedEvaluationTime !== null
@@ -8206,6 +8390,24 @@ var deserializeAws_json1_1ControlsList = function (output, context) {
8206
8390
  });
8207
8391
  return retVal;
8208
8392
  };
8393
+ var deserializeAws_json1_1CustomPolicyDetails = function (output, context) {
8394
+ return {
8395
+ EnableDebugLogDelivery: __expectBoolean(output.EnableDebugLogDelivery),
8396
+ PolicyRuntime: __expectString(output.PolicyRuntime),
8397
+ PolicyText: __expectString(output.PolicyText),
8398
+ };
8399
+ };
8400
+ var deserializeAws_json1_1DebugLogDeliveryAccounts = function (output, context) {
8401
+ var retVal = (output || [])
8402
+ .filter(function (e) { return e != null; })
8403
+ .map(function (entry) {
8404
+ if (entry === null) {
8405
+ return null;
8406
+ }
8407
+ return __expectString(entry);
8408
+ });
8409
+ return retVal;
8410
+ };
8209
8411
  var deserializeAws_json1_1DeleteEvaluationResultsResponse = function (output, context) {
8210
8412
  return {};
8211
8413
  };
@@ -8731,6 +8933,11 @@ var deserializeAws_json1_1GetConformancePackComplianceSummaryResponse = function
8731
8933
  NextToken: __expectString(output.NextToken),
8732
8934
  };
8733
8935
  };
8936
+ var deserializeAws_json1_1GetCustomRulePolicyResponse = function (output, context) {
8937
+ return {
8938
+ PolicyText: __expectString(output.PolicyText),
8939
+ };
8940
+ };
8734
8941
  var deserializeAws_json1_1GetDiscoveredResourceCountsResponse = function (output, context) {
8735
8942
  return {
8736
8943
  nextToken: __expectString(output.nextToken),
@@ -8757,6 +8964,11 @@ var deserializeAws_json1_1GetOrganizationConformancePackDetailedStatusResponse =
8757
8964
  : undefined,
8758
8965
  };
8759
8966
  };
8967
+ var deserializeAws_json1_1GetOrganizationCustomRulePolicyResponse = function (output, context) {
8968
+ return {
8969
+ PolicyText: __expectString(output.PolicyText),
8970
+ };
8971
+ };
8760
8972
  var deserializeAws_json1_1GetResourceConfigHistoryResponse = function (output, context) {
8761
8973
  return {
8762
8974
  configurationItems: output.configurationItems !== undefined && output.configurationItems !== null
@@ -9067,6 +9279,9 @@ var deserializeAws_json1_1OrganizationConfigRule = function (output, context) {
9067
9279
  : undefined,
9068
9280
  OrganizationConfigRuleArn: __expectString(output.OrganizationConfigRuleArn),
9069
9281
  OrganizationConfigRuleName: __expectString(output.OrganizationConfigRuleName),
9282
+ OrganizationCustomPolicyRuleMetadata: output.OrganizationCustomPolicyRuleMetadata !== undefined && output.OrganizationCustomPolicyRuleMetadata !== null
9283
+ ? deserializeAws_json1_1OrganizationCustomPolicyRuleMetadataNoPolicy(output.OrganizationCustomPolicyRuleMetadata, context)
9284
+ : undefined,
9070
9285
  OrganizationCustomRuleMetadata: output.OrganizationCustomRuleMetadata !== undefined && output.OrganizationCustomRuleMetadata !== null
9071
9286
  ? deserializeAws_json1_1OrganizationCustomRuleMetadata(output.OrganizationCustomRuleMetadata, context)
9072
9287
  : undefined,
@@ -9119,6 +9334,17 @@ var deserializeAws_json1_1OrganizationConfigRuleStatuses = function (output, con
9119
9334
  });
9120
9335
  return retVal;
9121
9336
  };
9337
+ var deserializeAws_json1_1OrganizationConfigRuleTriggerTypeNoSNs = function (output, context) {
9338
+ var retVal = (output || [])
9339
+ .filter(function (e) { return e != null; })
9340
+ .map(function (entry) {
9341
+ if (entry === null) {
9342
+ return null;
9343
+ }
9344
+ return __expectString(entry);
9345
+ });
9346
+ return retVal;
9347
+ };
9122
9348
  var deserializeAws_json1_1OrganizationConfigRuleTriggerTypes = function (output, context) {
9123
9349
  var retVal = (output || [])
9124
9350
  .filter(function (e) { return e != null; })
@@ -9208,6 +9434,26 @@ var deserializeAws_json1_1OrganizationConformancePackTemplateValidationException
9208
9434
  message: __expectString(output.message),
9209
9435
  };
9210
9436
  };
9437
+ var deserializeAws_json1_1OrganizationCustomPolicyRuleMetadataNoPolicy = function (output, context) {
9438
+ return {
9439
+ DebugLogDeliveryAccounts: output.DebugLogDeliveryAccounts !== undefined && output.DebugLogDeliveryAccounts !== null
9440
+ ? deserializeAws_json1_1DebugLogDeliveryAccounts(output.DebugLogDeliveryAccounts, context)
9441
+ : undefined,
9442
+ Description: __expectString(output.Description),
9443
+ InputParameters: __expectString(output.InputParameters),
9444
+ MaximumExecutionFrequency: __expectString(output.MaximumExecutionFrequency),
9445
+ OrganizationConfigRuleTriggerTypes: output.OrganizationConfigRuleTriggerTypes !== undefined && output.OrganizationConfigRuleTriggerTypes !== null
9446
+ ? deserializeAws_json1_1OrganizationConfigRuleTriggerTypeNoSNs(output.OrganizationConfigRuleTriggerTypes, context)
9447
+ : undefined,
9448
+ PolicyRuntime: __expectString(output.PolicyRuntime),
9449
+ ResourceIdScope: __expectString(output.ResourceIdScope),
9450
+ ResourceTypesScope: output.ResourceTypesScope !== undefined && output.ResourceTypesScope !== null
9451
+ ? deserializeAws_json1_1ResourceTypesScope(output.ResourceTypesScope, context)
9452
+ : undefined,
9453
+ TagKeyScope: __expectString(output.TagKeyScope),
9454
+ TagValueScope: __expectString(output.TagValueScope),
9455
+ };
9456
+ };
9211
9457
  var deserializeAws_json1_1OrganizationCustomRuleMetadata = function (output, context) {
9212
9458
  return {
9213
9459
  Description: __expectString(output.Description),
@@ -9683,6 +9929,9 @@ var deserializeAws_json1_1SelectResourceConfigResponse = function (output, conte
9683
9929
  };
9684
9930
  var deserializeAws_json1_1Source = function (output, context) {
9685
9931
  return {
9932
+ CustomPolicyDetails: output.CustomPolicyDetails !== undefined && output.CustomPolicyDetails !== null
9933
+ ? deserializeAws_json1_1CustomPolicyDetails(output.CustomPolicyDetails, context)
9934
+ : undefined,
9686
9935
  Owner: __expectString(output.Owner),
9687
9936
  SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
9688
9937
  ? deserializeAws_json1_1SourceDetails(output.SourceDetails, context)