@aws-sdk/client-config-service 3.218.0 → 3.219.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/dist-cjs/ConfigService.js +45 -0
- package/dist-cjs/commands/GetResourceEvaluationSummaryCommand.js +46 -0
- package/dist-cjs/commands/ListResourceEvaluationsCommand.js +46 -0
- package/dist-cjs/commands/PutAggregationAuthorizationCommand.js +3 -3
- package/dist-cjs/commands/PutConfigRuleCommand.js +2 -2
- package/dist-cjs/commands/PutConfigurationAggregatorCommand.js +3 -3
- package/dist-cjs/commands/PutConfigurationRecorderCommand.js +2 -2
- package/dist-cjs/commands/StartResourceEvaluationCommand.js +46 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +82 -151
- package/dist-cjs/models/models_1.js +155 -1
- package/dist-cjs/pagination/ListResourceEvaluationsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +341 -12
- package/dist-es/ConfigService.js +45 -0
- package/dist-es/commands/GetResourceEvaluationSummaryCommand.js +42 -0
- package/dist-es/commands/ListResourceEvaluationsCommand.js +42 -0
- package/dist-es/commands/PutAggregationAuthorizationCommand.js +1 -1
- package/dist-es/commands/PutConfigRuleCommand.js +1 -1
- package/dist-es/commands/PutConfigurationAggregatorCommand.js +1 -1
- package/dist-es/commands/PutConfigurationRecorderCommand.js +1 -1
- package/dist-es/commands/StartResourceEvaluationCommand.js +42 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +59 -125
- package/dist-es/models/models_1.js +135 -0
- package/dist-es/pagination/ListResourceEvaluationsPaginator.js +32 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +325 -2
- package/dist-types/ConfigService.d.ts +36 -3
- package/dist-types/ConfigServiceClient.d.ts +5 -2
- package/dist-types/commands/DescribeAggregateComplianceByConformancePacksCommand.d.ts +2 -2
- package/dist-types/commands/GetComplianceDetailsByResourceCommand.d.ts +1 -1
- package/dist-types/commands/GetResourceEvaluationSummaryCommand.d.ts +39 -0
- package/dist-types/commands/ListResourceEvaluationsCommand.d.ts +37 -0
- package/dist-types/commands/PutAggregationAuthorizationCommand.d.ts +1 -1
- package/dist-types/commands/PutConfigRuleCommand.d.ts +1 -1
- package/dist-types/commands/PutConfigurationAggregatorCommand.d.ts +1 -1
- package/dist-types/commands/PutConfigurationRecorderCommand.d.ts +1 -1
- package/dist-types/commands/PutRemediationExceptionsCommand.d.ts +3 -0
- package/dist-types/commands/StartResourceEvaluationCommand.d.ts +44 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +287 -290
- package/dist-types/models/models_1.d.ts +319 -1
- package/dist-types/pagination/ListResourceEvaluationsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/ConfigService.d.ts +51 -0
- package/dist-types/ts3.4/ConfigServiceClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/GetResourceEvaluationSummaryCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListResourceEvaluationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/PutAggregationAuthorizationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutConfigRuleCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutConfigurationAggregatorCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutConfigurationRecorderCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartResourceEvaluationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +114 -150
- package/dist-types/ts3.4/models/models_1.d.ts +175 -1
- package/dist-types/ts3.4/pagination/ListResourceEvaluationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.serializeAws_json1_1GetComplianceDetailsByResourceCommand = exports.serializeAws_json1_1GetComplianceDetailsByConfigRuleCommand = exports.serializeAws_json1_1GetAggregateResourceConfigCommand = exports.serializeAws_json1_1GetAggregateDiscoveredResourceCountsCommand = exports.serializeAws_json1_1GetAggregateConformancePackComplianceSummaryCommand = exports.serializeAws_json1_1GetAggregateConfigRuleComplianceSummaryCommand = exports.serializeAws_json1_1GetAggregateComplianceDetailsByConfigRuleCommand = exports.serializeAws_json1_1DescribeRetentionConfigurationsCommand = exports.serializeAws_json1_1DescribeRemediationExecutionStatusCommand = exports.serializeAws_json1_1DescribeRemediationExceptionsCommand = exports.serializeAws_json1_1DescribeRemediationConfigurationsCommand = exports.serializeAws_json1_1DescribePendingAggregationRequestsCommand = exports.serializeAws_json1_1DescribeOrganizationConformancePackStatusesCommand = exports.serializeAws_json1_1DescribeOrganizationConformancePacksCommand = exports.serializeAws_json1_1DescribeOrganizationConfigRuleStatusesCommand = exports.serializeAws_json1_1DescribeOrganizationConfigRulesCommand = exports.serializeAws_json1_1DescribeDeliveryChannelStatusCommand = exports.serializeAws_json1_1DescribeDeliveryChannelsCommand = exports.serializeAws_json1_1DescribeConformancePackStatusCommand = exports.serializeAws_json1_1DescribeConformancePacksCommand = exports.serializeAws_json1_1DescribeConformancePackComplianceCommand = exports.serializeAws_json1_1DescribeConfigurationRecorderStatusCommand = exports.serializeAws_json1_1DescribeConfigurationRecordersCommand = exports.serializeAws_json1_1DescribeConfigurationAggregatorSourcesStatusCommand = exports.serializeAws_json1_1DescribeConfigurationAggregatorsCommand = exports.serializeAws_json1_1DescribeConfigRulesCommand = exports.serializeAws_json1_1DescribeConfigRuleEvaluationStatusCommand = exports.serializeAws_json1_1DescribeComplianceByResourceCommand = exports.serializeAws_json1_1DescribeComplianceByConfigRuleCommand = exports.serializeAws_json1_1DescribeAggregationAuthorizationsCommand = exports.serializeAws_json1_1DescribeAggregateComplianceByConformancePacksCommand = exports.serializeAws_json1_1DescribeAggregateComplianceByConfigRulesCommand = exports.serializeAws_json1_1DeliverConfigSnapshotCommand = exports.serializeAws_json1_1DeleteStoredQueryCommand = exports.serializeAws_json1_1DeleteRetentionConfigurationCommand = exports.serializeAws_json1_1DeleteResourceConfigCommand = exports.serializeAws_json1_1DeleteRemediationExceptionsCommand = exports.serializeAws_json1_1DeleteRemediationConfigurationCommand = exports.serializeAws_json1_1DeletePendingAggregationRequestCommand = exports.serializeAws_json1_1DeleteOrganizationConformancePackCommand = exports.serializeAws_json1_1DeleteOrganizationConfigRuleCommand = exports.serializeAws_json1_1DeleteEvaluationResultsCommand = exports.serializeAws_json1_1DeleteDeliveryChannelCommand = exports.serializeAws_json1_1DeleteConformancePackCommand = exports.serializeAws_json1_1DeleteConfigurationRecorderCommand = exports.serializeAws_json1_1DeleteConfigurationAggregatorCommand = exports.serializeAws_json1_1DeleteConfigRuleCommand = exports.serializeAws_json1_1DeleteAggregationAuthorizationCommand = exports.serializeAws_json1_1BatchGetResourceConfigCommand = exports.serializeAws_json1_1BatchGetAggregateResourceConfigCommand = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopConfigurationRecorderCommand = exports.deserializeAws_json1_1StartRemediationExecutionCommand = exports.deserializeAws_json1_1StartConfigurationRecorderCommand = exports.deserializeAws_json1_1StartConfigRulesEvaluationCommand = exports.deserializeAws_json1_1SelectResourceConfigCommand = exports.deserializeAws_json1_1SelectAggregateResourceConfigCommand = exports.deserializeAws_json1_1PutStoredQueryCommand = exports.deserializeAws_json1_1PutRetentionConfigurationCommand = exports.deserializeAws_json1_1PutResourceConfigCommand = exports.deserializeAws_json1_1PutRemediationExceptionsCommand = exports.deserializeAws_json1_1PutRemediationConfigurationsCommand = exports.deserializeAws_json1_1PutOrganizationConformancePackCommand = exports.deserializeAws_json1_1PutOrganizationConfigRuleCommand = exports.deserializeAws_json1_1PutExternalEvaluationCommand = exports.deserializeAws_json1_1PutEvaluationsCommand = exports.deserializeAws_json1_1PutDeliveryChannelCommand = exports.deserializeAws_json1_1PutConformancePackCommand = exports.deserializeAws_json1_1PutConfigurationRecorderCommand = exports.deserializeAws_json1_1PutConfigurationAggregatorCommand = exports.deserializeAws_json1_1PutConfigRuleCommand = exports.deserializeAws_json1_1PutAggregationAuthorizationCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListStoredQueriesCommand = exports.deserializeAws_json1_1ListDiscoveredResourcesCommand = exports.deserializeAws_json1_1ListConformancePackComplianceScoresCommand = exports.deserializeAws_json1_1ListAggregateDiscoveredResourcesCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1DeleteDeliveryChannelCommand = exports.deserializeAws_json1_1DeleteConformancePackCommand = exports.deserializeAws_json1_1DeleteConfigurationRecorderCommand = exports.deserializeAws_json1_1DeleteConfigurationAggregatorCommand = exports.deserializeAws_json1_1DeleteConfigRuleCommand = exports.deserializeAws_json1_1DeleteAggregationAuthorizationCommand = exports.deserializeAws_json1_1BatchGetResourceConfigCommand = exports.deserializeAws_json1_1BatchGetAggregateResourceConfigCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopConfigurationRecorderCommand = exports.serializeAws_json1_1StartResourceEvaluationCommand = exports.serializeAws_json1_1StartRemediationExecutionCommand = exports.serializeAws_json1_1StartConfigurationRecorderCommand = exports.serializeAws_json1_1StartConfigRulesEvaluationCommand = exports.serializeAws_json1_1SelectResourceConfigCommand = exports.serializeAws_json1_1SelectAggregateResourceConfigCommand = exports.serializeAws_json1_1PutStoredQueryCommand = exports.serializeAws_json1_1PutRetentionConfigurationCommand = exports.serializeAws_json1_1PutResourceConfigCommand = exports.serializeAws_json1_1PutRemediationExceptionsCommand = exports.serializeAws_json1_1PutRemediationConfigurationsCommand = exports.serializeAws_json1_1PutOrganizationConformancePackCommand = exports.serializeAws_json1_1PutOrganizationConfigRuleCommand = exports.serializeAws_json1_1PutExternalEvaluationCommand = exports.serializeAws_json1_1PutEvaluationsCommand = exports.serializeAws_json1_1PutDeliveryChannelCommand = exports.serializeAws_json1_1PutConformancePackCommand = exports.serializeAws_json1_1PutConfigurationRecorderCommand = exports.serializeAws_json1_1PutConfigurationAggregatorCommand = exports.serializeAws_json1_1PutConfigRuleCommand = exports.serializeAws_json1_1PutAggregationAuthorizationCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListStoredQueriesCommand = exports.serializeAws_json1_1ListResourceEvaluationsCommand = exports.serializeAws_json1_1ListDiscoveredResourcesCommand = exports.serializeAws_json1_1ListConformancePackComplianceScoresCommand = exports.serializeAws_json1_1ListAggregateDiscoveredResourcesCommand = exports.serializeAws_json1_1GetStoredQueryCommand = exports.serializeAws_json1_1GetResourceEvaluationSummaryCommand = exports.serializeAws_json1_1GetResourceConfigHistoryCommand = exports.serializeAws_json1_1GetOrganizationCustomRulePolicyCommand = exports.serializeAws_json1_1GetOrganizationConformancePackDetailedStatusCommand = exports.serializeAws_json1_1GetOrganizationConfigRuleDetailedStatusCommand = exports.serializeAws_json1_1GetDiscoveredResourceCountsCommand = exports.serializeAws_json1_1GetCustomRulePolicyCommand = exports.serializeAws_json1_1GetConformancePackComplianceSummaryCommand = exports.serializeAws_json1_1GetConformancePackComplianceDetailsCommand = exports.serializeAws_json1_1GetComplianceSummaryByResourceTypeCommand = exports.serializeAws_json1_1GetComplianceSummaryByConfigRuleCommand = void 0;
|
|
5
|
+
exports.deserializeAws_json1_1GetOrganizationConformancePackDetailedStatusCommand = exports.deserializeAws_json1_1GetOrganizationConfigRuleDetailedStatusCommand = exports.deserializeAws_json1_1GetDiscoveredResourceCountsCommand = exports.deserializeAws_json1_1GetCustomRulePolicyCommand = exports.deserializeAws_json1_1GetConformancePackComplianceSummaryCommand = exports.deserializeAws_json1_1GetConformancePackComplianceDetailsCommand = exports.deserializeAws_json1_1GetComplianceSummaryByResourceTypeCommand = exports.deserializeAws_json1_1GetComplianceSummaryByConfigRuleCommand = exports.deserializeAws_json1_1GetComplianceDetailsByResourceCommand = exports.deserializeAws_json1_1GetComplianceDetailsByConfigRuleCommand = exports.deserializeAws_json1_1GetAggregateResourceConfigCommand = exports.deserializeAws_json1_1GetAggregateDiscoveredResourceCountsCommand = exports.deserializeAws_json1_1GetAggregateConformancePackComplianceSummaryCommand = exports.deserializeAws_json1_1GetAggregateConfigRuleComplianceSummaryCommand = exports.deserializeAws_json1_1GetAggregateComplianceDetailsByConfigRuleCommand = exports.deserializeAws_json1_1DescribeRetentionConfigurationsCommand = exports.deserializeAws_json1_1DescribeRemediationExecutionStatusCommand = exports.deserializeAws_json1_1DescribeRemediationExceptionsCommand = exports.deserializeAws_json1_1DescribeRemediationConfigurationsCommand = exports.deserializeAws_json1_1DescribePendingAggregationRequestsCommand = exports.deserializeAws_json1_1DescribeOrganizationConformancePackStatusesCommand = exports.deserializeAws_json1_1DescribeOrganizationConformancePacksCommand = exports.deserializeAws_json1_1DescribeOrganizationConfigRuleStatusesCommand = exports.deserializeAws_json1_1DescribeOrganizationConfigRulesCommand = exports.deserializeAws_json1_1DescribeDeliveryChannelStatusCommand = exports.deserializeAws_json1_1DescribeDeliveryChannelsCommand = exports.deserializeAws_json1_1DescribeConformancePackStatusCommand = exports.deserializeAws_json1_1DescribeConformancePacksCommand = exports.deserializeAws_json1_1DescribeConformancePackComplianceCommand = exports.deserializeAws_json1_1DescribeConfigurationRecorderStatusCommand = exports.deserializeAws_json1_1DescribeConfigurationRecordersCommand = exports.deserializeAws_json1_1DescribeConfigurationAggregatorSourcesStatusCommand = exports.deserializeAws_json1_1DescribeConfigurationAggregatorsCommand = exports.deserializeAws_json1_1DescribeConfigRulesCommand = exports.deserializeAws_json1_1DescribeConfigRuleEvaluationStatusCommand = exports.deserializeAws_json1_1DescribeComplianceByResourceCommand = exports.deserializeAws_json1_1DescribeComplianceByConfigRuleCommand = exports.deserializeAws_json1_1DescribeAggregationAuthorizationsCommand = exports.deserializeAws_json1_1DescribeAggregateComplianceByConformancePacksCommand = exports.deserializeAws_json1_1DescribeAggregateComplianceByConfigRulesCommand = exports.deserializeAws_json1_1DeliverConfigSnapshotCommand = exports.deserializeAws_json1_1DeleteStoredQueryCommand = exports.deserializeAws_json1_1DeleteRetentionConfigurationCommand = exports.deserializeAws_json1_1DeleteResourceConfigCommand = exports.deserializeAws_json1_1DeleteRemediationExceptionsCommand = exports.deserializeAws_json1_1DeleteRemediationConfigurationCommand = exports.deserializeAws_json1_1DeletePendingAggregationRequestCommand = exports.deserializeAws_json1_1DeleteOrganizationConformancePackCommand = exports.deserializeAws_json1_1DeleteOrganizationConfigRuleCommand = exports.deserializeAws_json1_1DeleteEvaluationResultsCommand = void 0;
|
|
6
|
+
exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopConfigurationRecorderCommand = exports.deserializeAws_json1_1StartResourceEvaluationCommand = exports.deserializeAws_json1_1StartRemediationExecutionCommand = exports.deserializeAws_json1_1StartConfigurationRecorderCommand = exports.deserializeAws_json1_1StartConfigRulesEvaluationCommand = exports.deserializeAws_json1_1SelectResourceConfigCommand = exports.deserializeAws_json1_1SelectAggregateResourceConfigCommand = exports.deserializeAws_json1_1PutStoredQueryCommand = exports.deserializeAws_json1_1PutRetentionConfigurationCommand = exports.deserializeAws_json1_1PutResourceConfigCommand = exports.deserializeAws_json1_1PutRemediationExceptionsCommand = exports.deserializeAws_json1_1PutRemediationConfigurationsCommand = exports.deserializeAws_json1_1PutOrganizationConformancePackCommand = exports.deserializeAws_json1_1PutOrganizationConfigRuleCommand = exports.deserializeAws_json1_1PutExternalEvaluationCommand = exports.deserializeAws_json1_1PutEvaluationsCommand = exports.deserializeAws_json1_1PutDeliveryChannelCommand = exports.deserializeAws_json1_1PutConformancePackCommand = exports.deserializeAws_json1_1PutConfigurationRecorderCommand = exports.deserializeAws_json1_1PutConfigurationAggregatorCommand = exports.deserializeAws_json1_1PutConfigRuleCommand = exports.deserializeAws_json1_1PutAggregationAuthorizationCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListStoredQueriesCommand = exports.deserializeAws_json1_1ListResourceEvaluationsCommand = exports.deserializeAws_json1_1ListDiscoveredResourcesCommand = exports.deserializeAws_json1_1ListConformancePackComplianceScoresCommand = exports.deserializeAws_json1_1ListAggregateDiscoveredResourcesCommand = exports.deserializeAws_json1_1GetStoredQueryCommand = exports.deserializeAws_json1_1GetResourceEvaluationSummaryCommand = exports.deserializeAws_json1_1GetResourceConfigHistoryCommand = exports.deserializeAws_json1_1GetOrganizationCustomRulePolicyCommand = void 0;
|
|
7
7
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
8
8
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
9
9
|
const ConfigServiceServiceException_1 = require("../models/ConfigServiceServiceException");
|
|
@@ -608,6 +608,16 @@ const serializeAws_json1_1GetResourceConfigHistoryCommand = async (input, contex
|
|
|
608
608
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
609
609
|
};
|
|
610
610
|
exports.serializeAws_json1_1GetResourceConfigHistoryCommand = serializeAws_json1_1GetResourceConfigHistoryCommand;
|
|
611
|
+
const serializeAws_json1_1GetResourceEvaluationSummaryCommand = async (input, context) => {
|
|
612
|
+
const headers = {
|
|
613
|
+
"content-type": "application/x-amz-json-1.1",
|
|
614
|
+
"x-amz-target": "StarlingDoveService.GetResourceEvaluationSummary",
|
|
615
|
+
};
|
|
616
|
+
let body;
|
|
617
|
+
body = JSON.stringify(serializeAws_json1_1GetResourceEvaluationSummaryRequest(input, context));
|
|
618
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
619
|
+
};
|
|
620
|
+
exports.serializeAws_json1_1GetResourceEvaluationSummaryCommand = serializeAws_json1_1GetResourceEvaluationSummaryCommand;
|
|
611
621
|
const serializeAws_json1_1GetStoredQueryCommand = async (input, context) => {
|
|
612
622
|
const headers = {
|
|
613
623
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -648,6 +658,16 @@ const serializeAws_json1_1ListDiscoveredResourcesCommand = async (input, context
|
|
|
648
658
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
649
659
|
};
|
|
650
660
|
exports.serializeAws_json1_1ListDiscoveredResourcesCommand = serializeAws_json1_1ListDiscoveredResourcesCommand;
|
|
661
|
+
const serializeAws_json1_1ListResourceEvaluationsCommand = async (input, context) => {
|
|
662
|
+
const headers = {
|
|
663
|
+
"content-type": "application/x-amz-json-1.1",
|
|
664
|
+
"x-amz-target": "StarlingDoveService.ListResourceEvaluations",
|
|
665
|
+
};
|
|
666
|
+
let body;
|
|
667
|
+
body = JSON.stringify(serializeAws_json1_1ListResourceEvaluationsRequest(input, context));
|
|
668
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
669
|
+
};
|
|
670
|
+
exports.serializeAws_json1_1ListResourceEvaluationsCommand = serializeAws_json1_1ListResourceEvaluationsCommand;
|
|
651
671
|
const serializeAws_json1_1ListStoredQueriesCommand = async (input, context) => {
|
|
652
672
|
const headers = {
|
|
653
673
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -868,6 +888,16 @@ const serializeAws_json1_1StartRemediationExecutionCommand = async (input, conte
|
|
|
868
888
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
869
889
|
};
|
|
870
890
|
exports.serializeAws_json1_1StartRemediationExecutionCommand = serializeAws_json1_1StartRemediationExecutionCommand;
|
|
891
|
+
const serializeAws_json1_1StartResourceEvaluationCommand = async (input, context) => {
|
|
892
|
+
const headers = {
|
|
893
|
+
"content-type": "application/x-amz-json-1.1",
|
|
894
|
+
"x-amz-target": "StarlingDoveService.StartResourceEvaluation",
|
|
895
|
+
};
|
|
896
|
+
let body;
|
|
897
|
+
body = JSON.stringify(serializeAws_json1_1StartResourceEvaluationRequest(input, context));
|
|
898
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
899
|
+
};
|
|
900
|
+
exports.serializeAws_json1_1StartResourceEvaluationCommand = serializeAws_json1_1StartResourceEvaluationCommand;
|
|
871
901
|
const serializeAws_json1_1StopConfigurationRecorderCommand = async (input, context) => {
|
|
872
902
|
const headers = {
|
|
873
903
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -1798,6 +1828,9 @@ const deserializeAws_json1_1DescribeConfigRulesCommandError = async (output, con
|
|
|
1798
1828
|
case "InvalidNextTokenException":
|
|
1799
1829
|
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
1800
1830
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1831
|
+
case "InvalidParameterValueException":
|
|
1832
|
+
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
1833
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
1801
1834
|
case "NoSuchConfigRuleException":
|
|
1802
1835
|
case "com.amazonaws.configservice#NoSuchConfigRuleException":
|
|
1803
1836
|
throw await deserializeAws_json1_1NoSuchConfigRuleExceptionResponse(parsedOutput, context);
|
|
@@ -3202,6 +3235,40 @@ const deserializeAws_json1_1GetResourceConfigHistoryCommandError = async (output
|
|
|
3202
3235
|
});
|
|
3203
3236
|
}
|
|
3204
3237
|
};
|
|
3238
|
+
const deserializeAws_json1_1GetResourceEvaluationSummaryCommand = async (output, context) => {
|
|
3239
|
+
if (output.statusCode >= 300) {
|
|
3240
|
+
return deserializeAws_json1_1GetResourceEvaluationSummaryCommandError(output, context);
|
|
3241
|
+
}
|
|
3242
|
+
const data = await parseBody(output.body, context);
|
|
3243
|
+
let contents = {};
|
|
3244
|
+
contents = deserializeAws_json1_1GetResourceEvaluationSummaryResponse(data, context);
|
|
3245
|
+
const response = {
|
|
3246
|
+
$metadata: deserializeMetadata(output),
|
|
3247
|
+
...contents,
|
|
3248
|
+
};
|
|
3249
|
+
return Promise.resolve(response);
|
|
3250
|
+
};
|
|
3251
|
+
exports.deserializeAws_json1_1GetResourceEvaluationSummaryCommand = deserializeAws_json1_1GetResourceEvaluationSummaryCommand;
|
|
3252
|
+
const deserializeAws_json1_1GetResourceEvaluationSummaryCommandError = async (output, context) => {
|
|
3253
|
+
const parsedOutput = {
|
|
3254
|
+
...output,
|
|
3255
|
+
body: await parseErrorBody(output.body, context),
|
|
3256
|
+
};
|
|
3257
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3258
|
+
switch (errorCode) {
|
|
3259
|
+
case "ResourceNotFoundException":
|
|
3260
|
+
case "com.amazonaws.configservice#ResourceNotFoundException":
|
|
3261
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3262
|
+
default:
|
|
3263
|
+
const parsedBody = parsedOutput.body;
|
|
3264
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3265
|
+
output,
|
|
3266
|
+
parsedBody,
|
|
3267
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3268
|
+
errorCode,
|
|
3269
|
+
});
|
|
3270
|
+
}
|
|
3271
|
+
};
|
|
3205
3272
|
const deserializeAws_json1_1GetStoredQueryCommand = async (output, context) => {
|
|
3206
3273
|
if (output.statusCode >= 300) {
|
|
3207
3274
|
return deserializeAws_json1_1GetStoredQueryCommandError(output, context);
|
|
@@ -3365,6 +3432,46 @@ const deserializeAws_json1_1ListDiscoveredResourcesCommandError = async (output,
|
|
|
3365
3432
|
});
|
|
3366
3433
|
}
|
|
3367
3434
|
};
|
|
3435
|
+
const deserializeAws_json1_1ListResourceEvaluationsCommand = async (output, context) => {
|
|
3436
|
+
if (output.statusCode >= 300) {
|
|
3437
|
+
return deserializeAws_json1_1ListResourceEvaluationsCommandError(output, context);
|
|
3438
|
+
}
|
|
3439
|
+
const data = await parseBody(output.body, context);
|
|
3440
|
+
let contents = {};
|
|
3441
|
+
contents = deserializeAws_json1_1ListResourceEvaluationsResponse(data, context);
|
|
3442
|
+
const response = {
|
|
3443
|
+
$metadata: deserializeMetadata(output),
|
|
3444
|
+
...contents,
|
|
3445
|
+
};
|
|
3446
|
+
return Promise.resolve(response);
|
|
3447
|
+
};
|
|
3448
|
+
exports.deserializeAws_json1_1ListResourceEvaluationsCommand = deserializeAws_json1_1ListResourceEvaluationsCommand;
|
|
3449
|
+
const deserializeAws_json1_1ListResourceEvaluationsCommandError = async (output, context) => {
|
|
3450
|
+
const parsedOutput = {
|
|
3451
|
+
...output,
|
|
3452
|
+
body: await parseErrorBody(output.body, context),
|
|
3453
|
+
};
|
|
3454
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3455
|
+
switch (errorCode) {
|
|
3456
|
+
case "InvalidNextTokenException":
|
|
3457
|
+
case "com.amazonaws.configservice#InvalidNextTokenException":
|
|
3458
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
3459
|
+
case "InvalidParameterValueException":
|
|
3460
|
+
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
3461
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3462
|
+
case "InvalidTimeRangeException":
|
|
3463
|
+
case "com.amazonaws.configservice#InvalidTimeRangeException":
|
|
3464
|
+
throw await deserializeAws_json1_1InvalidTimeRangeExceptionResponse(parsedOutput, context);
|
|
3465
|
+
default:
|
|
3466
|
+
const parsedBody = parsedOutput.body;
|
|
3467
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3468
|
+
output,
|
|
3469
|
+
parsedBody,
|
|
3470
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
3471
|
+
errorCode,
|
|
3472
|
+
});
|
|
3473
|
+
}
|
|
3474
|
+
};
|
|
3368
3475
|
const deserializeAws_json1_1ListStoredQueriesCommand = async (output, context) => {
|
|
3369
3476
|
if (output.statusCode >= 300) {
|
|
3370
3477
|
return deserializeAws_json1_1ListStoredQueriesCommandError(output, context);
|
|
@@ -4287,6 +4394,43 @@ const deserializeAws_json1_1StartRemediationExecutionCommandError = async (outpu
|
|
|
4287
4394
|
});
|
|
4288
4395
|
}
|
|
4289
4396
|
};
|
|
4397
|
+
const deserializeAws_json1_1StartResourceEvaluationCommand = async (output, context) => {
|
|
4398
|
+
if (output.statusCode >= 300) {
|
|
4399
|
+
return deserializeAws_json1_1StartResourceEvaluationCommandError(output, context);
|
|
4400
|
+
}
|
|
4401
|
+
const data = await parseBody(output.body, context);
|
|
4402
|
+
let contents = {};
|
|
4403
|
+
contents = deserializeAws_json1_1StartResourceEvaluationResponse(data, context);
|
|
4404
|
+
const response = {
|
|
4405
|
+
$metadata: deserializeMetadata(output),
|
|
4406
|
+
...contents,
|
|
4407
|
+
};
|
|
4408
|
+
return Promise.resolve(response);
|
|
4409
|
+
};
|
|
4410
|
+
exports.deserializeAws_json1_1StartResourceEvaluationCommand = deserializeAws_json1_1StartResourceEvaluationCommand;
|
|
4411
|
+
const deserializeAws_json1_1StartResourceEvaluationCommandError = async (output, context) => {
|
|
4412
|
+
const parsedOutput = {
|
|
4413
|
+
...output,
|
|
4414
|
+
body: await parseErrorBody(output.body, context),
|
|
4415
|
+
};
|
|
4416
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4417
|
+
switch (errorCode) {
|
|
4418
|
+
case "IdempotentParameterMismatch":
|
|
4419
|
+
case "com.amazonaws.configservice#IdempotentParameterMismatch":
|
|
4420
|
+
throw await deserializeAws_json1_1IdempotentParameterMismatchResponse(parsedOutput, context);
|
|
4421
|
+
case "InvalidParameterValueException":
|
|
4422
|
+
case "com.amazonaws.configservice#InvalidParameterValueException":
|
|
4423
|
+
throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4424
|
+
default:
|
|
4425
|
+
const parsedBody = parsedOutput.body;
|
|
4426
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4427
|
+
output,
|
|
4428
|
+
parsedBody,
|
|
4429
|
+
exceptionCtor: ConfigServiceServiceException_1.ConfigServiceServiceException,
|
|
4430
|
+
errorCode,
|
|
4431
|
+
});
|
|
4432
|
+
}
|
|
4433
|
+
};
|
|
4290
4434
|
const deserializeAws_json1_1StopConfigurationRecorderCommand = async (output, context) => {
|
|
4291
4435
|
if (output.statusCode >= 300) {
|
|
4292
4436
|
return deserializeAws_json1_1StopConfigurationRecorderCommandError(output, context);
|
|
@@ -4398,6 +4542,15 @@ const deserializeAws_json1_1ConformancePackTemplateValidationExceptionResponse =
|
|
|
4398
4542
|
});
|
|
4399
4543
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
4400
4544
|
};
|
|
4545
|
+
const deserializeAws_json1_1IdempotentParameterMismatchResponse = async (parsedOutput, context) => {
|
|
4546
|
+
const body = parsedOutput.body;
|
|
4547
|
+
const deserialized = deserializeAws_json1_1IdempotentParameterMismatch(body, context);
|
|
4548
|
+
const exception = new models_0_1.IdempotentParameterMismatch({
|
|
4549
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4550
|
+
...deserialized,
|
|
4551
|
+
});
|
|
4552
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
4553
|
+
};
|
|
4401
4554
|
const deserializeAws_json1_1InsufficientDeliveryPolicyExceptionResponse = async (parsedOutput, context) => {
|
|
4402
4555
|
const body = parsedOutput.body;
|
|
4403
4556
|
const deserialized = deserializeAws_json1_1InsufficientDeliveryPolicyException(body, context);
|
|
@@ -4590,7 +4743,7 @@ const deserializeAws_json1_1MaxNumberOfConformancePacksExceededExceptionResponse
|
|
|
4590
4743
|
const deserializeAws_json1_1MaxNumberOfDeliveryChannelsExceededExceptionResponse = async (parsedOutput, context) => {
|
|
4591
4744
|
const body = parsedOutput.body;
|
|
4592
4745
|
const deserialized = deserializeAws_json1_1MaxNumberOfDeliveryChannelsExceededException(body, context);
|
|
4593
|
-
const exception = new
|
|
4746
|
+
const exception = new models_1_1.MaxNumberOfDeliveryChannelsExceededException({
|
|
4594
4747
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4595
4748
|
...deserialized,
|
|
4596
4749
|
});
|
|
@@ -4599,7 +4752,7 @@ const deserializeAws_json1_1MaxNumberOfDeliveryChannelsExceededExceptionResponse
|
|
|
4599
4752
|
const deserializeAws_json1_1MaxNumberOfOrganizationConfigRulesExceededExceptionResponse = async (parsedOutput, context) => {
|
|
4600
4753
|
const body = parsedOutput.body;
|
|
4601
4754
|
const deserialized = deserializeAws_json1_1MaxNumberOfOrganizationConfigRulesExceededException(body, context);
|
|
4602
|
-
const exception = new
|
|
4755
|
+
const exception = new models_1_1.MaxNumberOfOrganizationConfigRulesExceededException({
|
|
4603
4756
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4604
4757
|
...deserialized,
|
|
4605
4758
|
});
|
|
@@ -4608,7 +4761,7 @@ const deserializeAws_json1_1MaxNumberOfOrganizationConfigRulesExceededExceptionR
|
|
|
4608
4761
|
const deserializeAws_json1_1MaxNumberOfOrganizationConformancePacksExceededExceptionResponse = async (parsedOutput, context) => {
|
|
4609
4762
|
const body = parsedOutput.body;
|
|
4610
4763
|
const deserialized = deserializeAws_json1_1MaxNumberOfOrganizationConformancePacksExceededException(body, context);
|
|
4611
|
-
const exception = new
|
|
4764
|
+
const exception = new models_1_1.MaxNumberOfOrganizationConformancePacksExceededException({
|
|
4612
4765
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4613
4766
|
...deserialized,
|
|
4614
4767
|
});
|
|
@@ -4617,7 +4770,7 @@ const deserializeAws_json1_1MaxNumberOfOrganizationConformancePacksExceededExcep
|
|
|
4617
4770
|
const deserializeAws_json1_1MaxNumberOfRetentionConfigurationsExceededExceptionResponse = async (parsedOutput, context) => {
|
|
4618
4771
|
const body = parsedOutput.body;
|
|
4619
4772
|
const deserialized = deserializeAws_json1_1MaxNumberOfRetentionConfigurationsExceededException(body, context);
|
|
4620
|
-
const exception = new
|
|
4773
|
+
const exception = new models_1_1.MaxNumberOfRetentionConfigurationsExceededException({
|
|
4621
4774
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4622
4775
|
...deserialized,
|
|
4623
4776
|
});
|
|
@@ -4635,7 +4788,7 @@ const deserializeAws_json1_1NoAvailableConfigurationRecorderExceptionResponse =
|
|
|
4635
4788
|
const deserializeAws_json1_1NoAvailableDeliveryChannelExceptionResponse = async (parsedOutput, context) => {
|
|
4636
4789
|
const body = parsedOutput.body;
|
|
4637
4790
|
const deserialized = deserializeAws_json1_1NoAvailableDeliveryChannelException(body, context);
|
|
4638
|
-
const exception = new
|
|
4791
|
+
const exception = new models_1_1.NoAvailableDeliveryChannelException({
|
|
4639
4792
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4640
4793
|
...deserialized,
|
|
4641
4794
|
});
|
|
@@ -4644,7 +4797,7 @@ const deserializeAws_json1_1NoAvailableDeliveryChannelExceptionResponse = async
|
|
|
4644
4797
|
const deserializeAws_json1_1NoAvailableOrganizationExceptionResponse = async (parsedOutput, context) => {
|
|
4645
4798
|
const body = parsedOutput.body;
|
|
4646
4799
|
const deserialized = deserializeAws_json1_1NoAvailableOrganizationException(body, context);
|
|
4647
|
-
const exception = new
|
|
4800
|
+
const exception = new models_1_1.NoAvailableOrganizationException({
|
|
4648
4801
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4649
4802
|
...deserialized,
|
|
4650
4803
|
});
|
|
@@ -4662,7 +4815,7 @@ const deserializeAws_json1_1NoRunningConfigurationRecorderExceptionResponse = as
|
|
|
4662
4815
|
const deserializeAws_json1_1NoSuchBucketExceptionResponse = async (parsedOutput, context) => {
|
|
4663
4816
|
const body = parsedOutput.body;
|
|
4664
4817
|
const deserialized = deserializeAws_json1_1NoSuchBucketException(body, context);
|
|
4665
|
-
const exception = new
|
|
4818
|
+
const exception = new models_1_1.NoSuchBucketException({
|
|
4666
4819
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4667
4820
|
...deserialized,
|
|
4668
4821
|
});
|
|
@@ -4779,7 +4932,7 @@ const deserializeAws_json1_1OrganizationAccessDeniedExceptionResponse = async (p
|
|
|
4779
4932
|
const deserializeAws_json1_1OrganizationAllFeaturesNotEnabledExceptionResponse = async (parsedOutput, context) => {
|
|
4780
4933
|
const body = parsedOutput.body;
|
|
4781
4934
|
const deserialized = deserializeAws_json1_1OrganizationAllFeaturesNotEnabledException(body, context);
|
|
4782
|
-
const exception = new
|
|
4935
|
+
const exception = new models_1_1.OrganizationAllFeaturesNotEnabledException({
|
|
4783
4936
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4784
4937
|
...deserialized,
|
|
4785
4938
|
});
|
|
@@ -4788,7 +4941,7 @@ const deserializeAws_json1_1OrganizationAllFeaturesNotEnabledExceptionResponse =
|
|
|
4788
4941
|
const deserializeAws_json1_1OrganizationConformancePackTemplateValidationExceptionResponse = async (parsedOutput, context) => {
|
|
4789
4942
|
const body = parsedOutput.body;
|
|
4790
4943
|
const deserialized = deserializeAws_json1_1OrganizationConformancePackTemplateValidationException(body, context);
|
|
4791
|
-
const exception = new
|
|
4944
|
+
const exception = new models_1_1.OrganizationConformancePackTemplateValidationException({
|
|
4792
4945
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4793
4946
|
...deserialized,
|
|
4794
4947
|
});
|
|
@@ -4965,6 +5118,9 @@ const serializeAws_json1_1ConfigRule = (input, context) => {
|
|
|
4965
5118
|
...(input.ConfigRuleState != null && { ConfigRuleState: input.ConfigRuleState }),
|
|
4966
5119
|
...(input.CreatedBy != null && { CreatedBy: input.CreatedBy }),
|
|
4967
5120
|
...(input.Description != null && { Description: input.Description }),
|
|
5121
|
+
...(input.EvaluationModes != null && {
|
|
5122
|
+
EvaluationModes: serializeAws_json1_1EvaluationModes(input.EvaluationModes, context),
|
|
5123
|
+
}),
|
|
4968
5124
|
...(input.InputParameters != null && { InputParameters: input.InputParameters }),
|
|
4969
5125
|
...(input.MaximumExecutionFrequency != null && { MaximumExecutionFrequency: input.MaximumExecutionFrequency }),
|
|
4970
5126
|
...(input.Scope != null && { Scope: serializeAws_json1_1Scope(input.Scope, context) }),
|
|
@@ -5278,11 +5434,17 @@ const serializeAws_json1_1DescribeConfigRuleEvaluationStatusRequest = (input, co
|
|
|
5278
5434
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
5279
5435
|
};
|
|
5280
5436
|
};
|
|
5437
|
+
const serializeAws_json1_1DescribeConfigRulesFilters = (input, context) => {
|
|
5438
|
+
return {
|
|
5439
|
+
...(input.EvaluationMode != null && { EvaluationMode: input.EvaluationMode }),
|
|
5440
|
+
};
|
|
5441
|
+
};
|
|
5281
5442
|
const serializeAws_json1_1DescribeConfigRulesRequest = (input, context) => {
|
|
5282
5443
|
return {
|
|
5283
5444
|
...(input.ConfigRuleNames != null && {
|
|
5284
5445
|
ConfigRuleNames: serializeAws_json1_1ConfigRuleNames(input.ConfigRuleNames, context),
|
|
5285
5446
|
}),
|
|
5447
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1DescribeConfigRulesFilters(input.Filters, context) }),
|
|
5286
5448
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
5287
5449
|
};
|
|
5288
5450
|
};
|
|
@@ -5447,6 +5609,25 @@ const serializeAws_json1_1Evaluation = (input, context) => {
|
|
|
5447
5609
|
...(input.OrderingTimestamp != null && { OrderingTimestamp: Math.round(input.OrderingTimestamp.getTime() / 1000) }),
|
|
5448
5610
|
};
|
|
5449
5611
|
};
|
|
5612
|
+
const serializeAws_json1_1EvaluationContext = (input, context) => {
|
|
5613
|
+
return {
|
|
5614
|
+
...(input.EvaluationContextIdentifier != null && {
|
|
5615
|
+
EvaluationContextIdentifier: input.EvaluationContextIdentifier,
|
|
5616
|
+
}),
|
|
5617
|
+
};
|
|
5618
|
+
};
|
|
5619
|
+
const serializeAws_json1_1EvaluationModeConfiguration = (input, context) => {
|
|
5620
|
+
return {
|
|
5621
|
+
...(input.Mode != null && { Mode: input.Mode }),
|
|
5622
|
+
};
|
|
5623
|
+
};
|
|
5624
|
+
const serializeAws_json1_1EvaluationModes = (input, context) => {
|
|
5625
|
+
return input
|
|
5626
|
+
.filter((e) => e != null)
|
|
5627
|
+
.map((entry) => {
|
|
5628
|
+
return serializeAws_json1_1EvaluationModeConfiguration(entry, context);
|
|
5629
|
+
});
|
|
5630
|
+
};
|
|
5450
5631
|
const serializeAws_json1_1Evaluations = (input, context) => {
|
|
5451
5632
|
return input
|
|
5452
5633
|
.filter((e) => e != null)
|
|
@@ -5551,6 +5732,7 @@ const serializeAws_json1_1GetComplianceDetailsByResourceRequest = (input, contex
|
|
|
5551
5732
|
ComplianceTypes: serializeAws_json1_1ComplianceTypes(input.ComplianceTypes, context),
|
|
5552
5733
|
}),
|
|
5553
5734
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
5735
|
+
...(input.ResourceEvaluationId != null && { ResourceEvaluationId: input.ResourceEvaluationId }),
|
|
5554
5736
|
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
5555
5737
|
...(input.ResourceType != null && { ResourceType: input.ResourceType }),
|
|
5556
5738
|
};
|
|
@@ -5631,6 +5813,11 @@ const serializeAws_json1_1GetResourceConfigHistoryRequest = (input, context) =>
|
|
|
5631
5813
|
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
5632
5814
|
};
|
|
5633
5815
|
};
|
|
5816
|
+
const serializeAws_json1_1GetResourceEvaluationSummaryRequest = (input, context) => {
|
|
5817
|
+
return {
|
|
5818
|
+
...(input.ResourceEvaluationId != null && { ResourceEvaluationId: input.ResourceEvaluationId }),
|
|
5819
|
+
};
|
|
5820
|
+
};
|
|
5634
5821
|
const serializeAws_json1_1GetStoredQueryRequest = (input, context) => {
|
|
5635
5822
|
return {
|
|
5636
5823
|
...(input.QueryName != null && { QueryName: input.QueryName }),
|
|
@@ -5668,6 +5855,13 @@ const serializeAws_json1_1ListDiscoveredResourcesRequest = (input, context) => {
|
|
|
5668
5855
|
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
5669
5856
|
};
|
|
5670
5857
|
};
|
|
5858
|
+
const serializeAws_json1_1ListResourceEvaluationsRequest = (input, context) => {
|
|
5859
|
+
return {
|
|
5860
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1ResourceEvaluationFilters(input.Filters, context) }),
|
|
5861
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5862
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
5863
|
+
};
|
|
5864
|
+
};
|
|
5671
5865
|
const serializeAws_json1_1ListStoredQueriesRequest = (input, context) => {
|
|
5672
5866
|
return {
|
|
5673
5867
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -5999,6 +6193,25 @@ const serializeAws_json1_1ResourceCountFilters = (input, context) => {
|
|
|
5999
6193
|
...(input.ResourceType != null && { ResourceType: input.ResourceType }),
|
|
6000
6194
|
};
|
|
6001
6195
|
};
|
|
6196
|
+
const serializeAws_json1_1ResourceDetails = (input, context) => {
|
|
6197
|
+
return {
|
|
6198
|
+
...(input.ResourceConfiguration != null && { ResourceConfiguration: input.ResourceConfiguration }),
|
|
6199
|
+
...(input.ResourceConfigurationSchemaType != null && {
|
|
6200
|
+
ResourceConfigurationSchemaType: input.ResourceConfigurationSchemaType,
|
|
6201
|
+
}),
|
|
6202
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
6203
|
+
...(input.ResourceType != null && { ResourceType: input.ResourceType }),
|
|
6204
|
+
};
|
|
6205
|
+
};
|
|
6206
|
+
const serializeAws_json1_1ResourceEvaluationFilters = (input, context) => {
|
|
6207
|
+
return {
|
|
6208
|
+
...(input.EvaluationContextIdentifier != null && {
|
|
6209
|
+
EvaluationContextIdentifier: input.EvaluationContextIdentifier,
|
|
6210
|
+
}),
|
|
6211
|
+
...(input.EvaluationMode != null && { EvaluationMode: input.EvaluationMode }),
|
|
6212
|
+
...(input.TimeWindow != null && { TimeWindow: serializeAws_json1_1TimeWindow(input.TimeWindow, context) }),
|
|
6213
|
+
};
|
|
6214
|
+
};
|
|
6002
6215
|
const serializeAws_json1_1ResourceFilters = (input, context) => {
|
|
6003
6216
|
return {
|
|
6004
6217
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
@@ -6147,6 +6360,19 @@ const serializeAws_json1_1StartRemediationExecutionRequest = (input, context) =>
|
|
|
6147
6360
|
...(input.ResourceKeys != null && { ResourceKeys: serializeAws_json1_1ResourceKeys(input.ResourceKeys, context) }),
|
|
6148
6361
|
};
|
|
6149
6362
|
};
|
|
6363
|
+
const serializeAws_json1_1StartResourceEvaluationRequest = (input, context) => {
|
|
6364
|
+
return {
|
|
6365
|
+
...(input.ClientToken != null && { ClientToken: input.ClientToken }),
|
|
6366
|
+
...(input.EvaluationContext != null && {
|
|
6367
|
+
EvaluationContext: serializeAws_json1_1EvaluationContext(input.EvaluationContext, context),
|
|
6368
|
+
}),
|
|
6369
|
+
...(input.EvaluationMode != null && { EvaluationMode: input.EvaluationMode }),
|
|
6370
|
+
...(input.EvaluationTimeout != null && { EvaluationTimeout: input.EvaluationTimeout }),
|
|
6371
|
+
...(input.ResourceDetails != null && {
|
|
6372
|
+
ResourceDetails: serializeAws_json1_1ResourceDetails(input.ResourceDetails, context),
|
|
6373
|
+
}),
|
|
6374
|
+
};
|
|
6375
|
+
};
|
|
6150
6376
|
const serializeAws_json1_1StaticParameterValues = (input, context) => {
|
|
6151
6377
|
return input
|
|
6152
6378
|
.filter((e) => e != null)
|
|
@@ -6227,6 +6453,12 @@ const serializeAws_json1_1TemplateSSMDocumentDetails = (input, context) => {
|
|
|
6227
6453
|
...(input.DocumentVersion != null && { DocumentVersion: input.DocumentVersion }),
|
|
6228
6454
|
};
|
|
6229
6455
|
};
|
|
6456
|
+
const serializeAws_json1_1TimeWindow = (input, context) => {
|
|
6457
|
+
return {
|
|
6458
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
6459
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
6460
|
+
};
|
|
6461
|
+
};
|
|
6230
6462
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
6231
6463
|
return {
|
|
6232
6464
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
@@ -6620,6 +6852,9 @@ const deserializeAws_json1_1ConfigRule = (output, context) => {
|
|
|
6620
6852
|
ConfigRuleState: (0, smithy_client_1.expectString)(output.ConfigRuleState),
|
|
6621
6853
|
CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy),
|
|
6622
6854
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
6855
|
+
EvaluationModes: output.EvaluationModes != null
|
|
6856
|
+
? deserializeAws_json1_1EvaluationModes(output.EvaluationModes, context)
|
|
6857
|
+
: undefined,
|
|
6623
6858
|
InputParameters: (0, smithy_client_1.expectString)(output.InputParameters),
|
|
6624
6859
|
MaximumExecutionFrequency: (0, smithy_client_1.expectString)(output.MaximumExecutionFrequency),
|
|
6625
6860
|
Scope: output.Scope != null ? deserializeAws_json1_1Scope(output.Scope, context) : undefined,
|
|
@@ -7286,6 +7521,27 @@ const deserializeAws_json1_1Evaluation = (output, context) => {
|
|
|
7286
7521
|
: undefined,
|
|
7287
7522
|
};
|
|
7288
7523
|
};
|
|
7524
|
+
const deserializeAws_json1_1EvaluationContext = (output, context) => {
|
|
7525
|
+
return {
|
|
7526
|
+
EvaluationContextIdentifier: (0, smithy_client_1.expectString)(output.EvaluationContextIdentifier),
|
|
7527
|
+
};
|
|
7528
|
+
};
|
|
7529
|
+
const deserializeAws_json1_1EvaluationModeConfiguration = (output, context) => {
|
|
7530
|
+
return {
|
|
7531
|
+
Mode: (0, smithy_client_1.expectString)(output.Mode),
|
|
7532
|
+
};
|
|
7533
|
+
};
|
|
7534
|
+
const deserializeAws_json1_1EvaluationModes = (output, context) => {
|
|
7535
|
+
const retVal = (output || [])
|
|
7536
|
+
.filter((e) => e != null)
|
|
7537
|
+
.map((entry) => {
|
|
7538
|
+
if (entry === null) {
|
|
7539
|
+
return null;
|
|
7540
|
+
}
|
|
7541
|
+
return deserializeAws_json1_1EvaluationModeConfiguration(entry, context);
|
|
7542
|
+
});
|
|
7543
|
+
return retVal;
|
|
7544
|
+
};
|
|
7289
7545
|
const deserializeAws_json1_1EvaluationResult = (output, context) => {
|
|
7290
7546
|
return {
|
|
7291
7547
|
Annotation: (0, smithy_client_1.expectString)(output.Annotation),
|
|
@@ -7310,11 +7566,13 @@ const deserializeAws_json1_1EvaluationResultIdentifier = (output, context) => {
|
|
|
7310
7566
|
OrderingTimestamp: output.OrderingTimestamp != null
|
|
7311
7567
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OrderingTimestamp)))
|
|
7312
7568
|
: undefined,
|
|
7569
|
+
ResourceEvaluationId: (0, smithy_client_1.expectString)(output.ResourceEvaluationId),
|
|
7313
7570
|
};
|
|
7314
7571
|
};
|
|
7315
7572
|
const deserializeAws_json1_1EvaluationResultQualifier = (output, context) => {
|
|
7316
7573
|
return {
|
|
7317
7574
|
ConfigRuleName: (0, smithy_client_1.expectString)(output.ConfigRuleName),
|
|
7575
|
+
EvaluationMode: (0, smithy_client_1.expectString)(output.EvaluationMode),
|
|
7318
7576
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
7319
7577
|
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
7320
7578
|
};
|
|
@@ -7341,6 +7599,12 @@ const deserializeAws_json1_1Evaluations = (output, context) => {
|
|
|
7341
7599
|
});
|
|
7342
7600
|
return retVal;
|
|
7343
7601
|
};
|
|
7602
|
+
const deserializeAws_json1_1EvaluationStatus = (output, context) => {
|
|
7603
|
+
return {
|
|
7604
|
+
FailureReason: (0, smithy_client_1.expectString)(output.FailureReason),
|
|
7605
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
7606
|
+
};
|
|
7607
|
+
};
|
|
7344
7608
|
const deserializeAws_json1_1ExcludedAccounts = (output, context) => {
|
|
7345
7609
|
const retVal = (output || [])
|
|
7346
7610
|
.filter((e) => e != null)
|
|
@@ -7559,6 +7823,25 @@ const deserializeAws_json1_1GetResourceConfigHistoryResponse = (output, context)
|
|
|
7559
7823
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
7560
7824
|
};
|
|
7561
7825
|
};
|
|
7826
|
+
const deserializeAws_json1_1GetResourceEvaluationSummaryResponse = (output, context) => {
|
|
7827
|
+
return {
|
|
7828
|
+
Compliance: (0, smithy_client_1.expectString)(output.Compliance),
|
|
7829
|
+
EvaluationContext: output.EvaluationContext != null
|
|
7830
|
+
? deserializeAws_json1_1EvaluationContext(output.EvaluationContext, context)
|
|
7831
|
+
: undefined,
|
|
7832
|
+
EvaluationMode: (0, smithy_client_1.expectString)(output.EvaluationMode),
|
|
7833
|
+
EvaluationStartTimestamp: output.EvaluationStartTimestamp != null
|
|
7834
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EvaluationStartTimestamp)))
|
|
7835
|
+
: undefined,
|
|
7836
|
+
EvaluationStatus: output.EvaluationStatus != null
|
|
7837
|
+
? deserializeAws_json1_1EvaluationStatus(output.EvaluationStatus, context)
|
|
7838
|
+
: undefined,
|
|
7839
|
+
ResourceDetails: output.ResourceDetails != null
|
|
7840
|
+
? deserializeAws_json1_1ResourceDetails(output.ResourceDetails, context)
|
|
7841
|
+
: undefined,
|
|
7842
|
+
ResourceEvaluationId: (0, smithy_client_1.expectString)(output.ResourceEvaluationId),
|
|
7843
|
+
};
|
|
7844
|
+
};
|
|
7562
7845
|
const deserializeAws_json1_1GetStoredQueryResponse = (output, context) => {
|
|
7563
7846
|
return {
|
|
7564
7847
|
StoredQuery: output.StoredQuery != null ? deserializeAws_json1_1StoredQuery(output.StoredQuery, context) : undefined,
|
|
@@ -7581,6 +7864,11 @@ const deserializeAws_json1_1GroupedResourceCountList = (output, context) => {
|
|
|
7581
7864
|
});
|
|
7582
7865
|
return retVal;
|
|
7583
7866
|
};
|
|
7867
|
+
const deserializeAws_json1_1IdempotentParameterMismatch = (output, context) => {
|
|
7868
|
+
return {
|
|
7869
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
7870
|
+
};
|
|
7871
|
+
};
|
|
7584
7872
|
const deserializeAws_json1_1InsufficientDeliveryPolicyException = (output, context) => {
|
|
7585
7873
|
return {
|
|
7586
7874
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
@@ -7690,6 +7978,14 @@ const deserializeAws_json1_1ListDiscoveredResourcesResponse = (output, context)
|
|
|
7690
7978
|
: undefined,
|
|
7691
7979
|
};
|
|
7692
7980
|
};
|
|
7981
|
+
const deserializeAws_json1_1ListResourceEvaluationsResponse = (output, context) => {
|
|
7982
|
+
return {
|
|
7983
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
7984
|
+
ResourceEvaluations: output.ResourceEvaluations != null
|
|
7985
|
+
? deserializeAws_json1_1ResourceEvaluations(output.ResourceEvaluations, context)
|
|
7986
|
+
: undefined,
|
|
7987
|
+
};
|
|
7988
|
+
};
|
|
7693
7989
|
const deserializeAws_json1_1ListStoredQueriesResponse = (output, context) => {
|
|
7694
7990
|
return {
|
|
7695
7991
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -8354,6 +8650,34 @@ const deserializeAws_json1_1ResourceCounts = (output, context) => {
|
|
|
8354
8650
|
});
|
|
8355
8651
|
return retVal;
|
|
8356
8652
|
};
|
|
8653
|
+
const deserializeAws_json1_1ResourceDetails = (output, context) => {
|
|
8654
|
+
return {
|
|
8655
|
+
ResourceConfiguration: (0, smithy_client_1.expectString)(output.ResourceConfiguration),
|
|
8656
|
+
ResourceConfigurationSchemaType: (0, smithy_client_1.expectString)(output.ResourceConfigurationSchemaType),
|
|
8657
|
+
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
8658
|
+
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
8659
|
+
};
|
|
8660
|
+
};
|
|
8661
|
+
const deserializeAws_json1_1ResourceEvaluation = (output, context) => {
|
|
8662
|
+
return {
|
|
8663
|
+
EvaluationMode: (0, smithy_client_1.expectString)(output.EvaluationMode),
|
|
8664
|
+
EvaluationStartTimestamp: output.EvaluationStartTimestamp != null
|
|
8665
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EvaluationStartTimestamp)))
|
|
8666
|
+
: undefined,
|
|
8667
|
+
ResourceEvaluationId: (0, smithy_client_1.expectString)(output.ResourceEvaluationId),
|
|
8668
|
+
};
|
|
8669
|
+
};
|
|
8670
|
+
const deserializeAws_json1_1ResourceEvaluations = (output, context) => {
|
|
8671
|
+
const retVal = (output || [])
|
|
8672
|
+
.filter((e) => e != null)
|
|
8673
|
+
.map((entry) => {
|
|
8674
|
+
if (entry === null) {
|
|
8675
|
+
return null;
|
|
8676
|
+
}
|
|
8677
|
+
return deserializeAws_json1_1ResourceEvaluation(entry, context);
|
|
8678
|
+
});
|
|
8679
|
+
return retVal;
|
|
8680
|
+
};
|
|
8357
8681
|
const deserializeAws_json1_1ResourceIdentifier = (output, context) => {
|
|
8358
8682
|
return {
|
|
8359
8683
|
resourceDeletionTime: output.resourceDeletionTime != null
|
|
@@ -8529,6 +8853,11 @@ const deserializeAws_json1_1StartRemediationExecutionResponse = (output, context
|
|
|
8529
8853
|
FailureMessage: (0, smithy_client_1.expectString)(output.FailureMessage),
|
|
8530
8854
|
};
|
|
8531
8855
|
};
|
|
8856
|
+
const deserializeAws_json1_1StartResourceEvaluationResponse = (output, context) => {
|
|
8857
|
+
return {
|
|
8858
|
+
ResourceEvaluationId: (0, smithy_client_1.expectString)(output.ResourceEvaluationId),
|
|
8859
|
+
};
|
|
8860
|
+
};
|
|
8532
8861
|
const deserializeAws_json1_1StaticParameterValues = (output, context) => {
|
|
8533
8862
|
const retVal = (output || [])
|
|
8534
8863
|
.filter((e) => e != null)
|