@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.
- package/CHANGELOG.md +30 -0
- package/dist-cjs/ConfigService.js +30 -0
- package/dist-cjs/commands/GetCustomRulePolicyCommand.js +36 -0
- package/dist-cjs/commands/GetOrganizationCustomRulePolicyCommand.js +36 -0
- package/dist-cjs/commands/PutOrganizationConfigRuleCommand.js +3 -3
- package/dist-cjs/commands/PutOrganizationConformancePackCommand.js +3 -3
- package/dist-cjs/commands/PutRemediationConfigurationsCommand.js +3 -3
- package/dist-cjs/commands/PutRemediationExceptionsCommand.js +3 -3
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +57 -54
- package/dist-cjs/models/models_1.js +49 -1
- package/dist-cjs/protocols/Aws_json1_1.js +243 -3
- package/dist-es/ConfigService.js +30 -0
- package/dist-es/commands/GetCustomRulePolicyCommand.js +39 -0
- package/dist-es/commands/GetOrganizationCustomRulePolicyCommand.js +39 -0
- package/dist-es/commands/PutOrganizationConfigRuleCommand.js +1 -1
- package/dist-es/commands/PutOrganizationConformancePackCommand.js +1 -1
- package/dist-es/commands/PutRemediationConfigurationsCommand.js +1 -1
- package/dist-es/commands/PutRemediationExceptionsCommand.js +1 -1
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +37 -32
- package/dist-es/models/models_1.js +32 -0
- package/dist-es/protocols/Aws_json1_1.js +252 -3
- package/dist-types/ConfigService.d.ts +33 -19
- package/dist-types/ConfigServiceClient.d.ts +4 -2
- package/dist-types/commands/DeleteOrganizationConfigRuleCommand.d.ts +2 -2
- package/dist-types/commands/DeleteOrganizationConformancePackCommand.d.ts +1 -1
- package/dist-types/commands/DescribeOrganizationConfigRuleStatusesCommand.d.ts +4 -4
- package/dist-types/commands/DescribeOrganizationConfigRulesCommand.d.ts +3 -3
- package/dist-types/commands/GetCustomRulePolicyCommand.d.ts +35 -0
- package/dist-types/commands/GetOrganizationConfigRuleDetailedStatusCommand.d.ts +1 -1
- package/dist-types/commands/GetOrganizationCustomRulePolicyCommand.d.ts +35 -0
- package/dist-types/commands/PutConfigRuleCommand.d.ts +3 -3
- package/dist-types/commands/PutOrganizationConfigRuleCommand.d.ts +6 -6
- package/dist-types/commands/PutOrganizationConformancePackCommand.d.ts +1 -1
- package/dist-types/commands/PutRemediationConfigurationsCommand.d.ts +1 -1
- package/dist-types/commands/PutRemediationExceptionsCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +342 -236
- package/dist-types/models/models_1.d.ts +162 -1
- package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
- package/dist-types/ts3.4/ConfigService.d.ts +10 -0
- package/dist-types/ts3.4/ConfigServiceClient.d.ts +4 -2
- package/dist-types/ts3.4/commands/GetCustomRulePolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetOrganizationCustomRulePolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutOrganizationConfigRuleCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutOrganizationConformancePackCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutRemediationConfigurationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutRemediationExceptionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +121 -90
- package/dist-types/ts3.4/models/models_1.d.ts +91 -1
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +6 -0
- package/package.json +18 -18
|
@@ -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 = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1DeletePendingAggregationRequestCommand = exports.deserializeAws_json1_1DeleteOrganizationConformancePackCommand = exports.deserializeAws_json1_1DeleteOrganizationConfigRuleCommand = exports.deserializeAws_json1_1DeleteEvaluationResultsCommand = 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_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_1ListDiscoveredResourcesCommand = exports.serializeAws_json1_1ListAggregateDiscoveredResourcesCommand = exports.serializeAws_json1_1GetStoredQueryCommand = 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_1ListAggregateDiscoveredResourcesCommand = exports.deserializeAws_json1_1GetStoredQueryCommand = exports.deserializeAws_json1_1GetResourceConfigHistoryCommand = exports.deserializeAws_json1_1GetOrganizationCustomRulePolicyCommand = 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 = void 0;
|
|
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 = 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");
|
|
@@ -548,6 +548,16 @@ const serializeAws_json1_1GetConformancePackComplianceSummaryCommand = async (in
|
|
|
548
548
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
549
549
|
};
|
|
550
550
|
exports.serializeAws_json1_1GetConformancePackComplianceSummaryCommand = serializeAws_json1_1GetConformancePackComplianceSummaryCommand;
|
|
551
|
+
const serializeAws_json1_1GetCustomRulePolicyCommand = async (input, context) => {
|
|
552
|
+
const headers = {
|
|
553
|
+
"content-type": "application/x-amz-json-1.1",
|
|
554
|
+
"x-amz-target": "StarlingDoveService.GetCustomRulePolicy",
|
|
555
|
+
};
|
|
556
|
+
let body;
|
|
557
|
+
body = JSON.stringify(serializeAws_json1_1GetCustomRulePolicyRequest(input, context));
|
|
558
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
559
|
+
};
|
|
560
|
+
exports.serializeAws_json1_1GetCustomRulePolicyCommand = serializeAws_json1_1GetCustomRulePolicyCommand;
|
|
551
561
|
const serializeAws_json1_1GetDiscoveredResourceCountsCommand = async (input, context) => {
|
|
552
562
|
const headers = {
|
|
553
563
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -578,6 +588,16 @@ const serializeAws_json1_1GetOrganizationConformancePackDetailedStatusCommand =
|
|
|
578
588
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
579
589
|
};
|
|
580
590
|
exports.serializeAws_json1_1GetOrganizationConformancePackDetailedStatusCommand = serializeAws_json1_1GetOrganizationConformancePackDetailedStatusCommand;
|
|
591
|
+
const serializeAws_json1_1GetOrganizationCustomRulePolicyCommand = async (input, context) => {
|
|
592
|
+
const headers = {
|
|
593
|
+
"content-type": "application/x-amz-json-1.1",
|
|
594
|
+
"x-amz-target": "StarlingDoveService.GetOrganizationCustomRulePolicy",
|
|
595
|
+
};
|
|
596
|
+
let body;
|
|
597
|
+
body = JSON.stringify(serializeAws_json1_1GetOrganizationCustomRulePolicyRequest(input, context));
|
|
598
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
599
|
+
};
|
|
600
|
+
exports.serializeAws_json1_1GetOrganizationCustomRulePolicyCommand = serializeAws_json1_1GetOrganizationCustomRulePolicyCommand;
|
|
581
601
|
const serializeAws_json1_1GetResourceConfigHistoryCommand = async (input, context) => {
|
|
582
602
|
const headers = {
|
|
583
603
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -3040,6 +3060,42 @@ const deserializeAws_json1_1GetConformancePackComplianceSummaryCommandError = as
|
|
|
3040
3060
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3041
3061
|
}
|
|
3042
3062
|
};
|
|
3063
|
+
const deserializeAws_json1_1GetCustomRulePolicyCommand = async (output, context) => {
|
|
3064
|
+
if (output.statusCode >= 300) {
|
|
3065
|
+
return deserializeAws_json1_1GetCustomRulePolicyCommandError(output, context);
|
|
3066
|
+
}
|
|
3067
|
+
const data = await parseBody(output.body, context);
|
|
3068
|
+
let contents = {};
|
|
3069
|
+
contents = deserializeAws_json1_1GetCustomRulePolicyResponse(data, context);
|
|
3070
|
+
const response = {
|
|
3071
|
+
$metadata: deserializeMetadata(output),
|
|
3072
|
+
...contents,
|
|
3073
|
+
};
|
|
3074
|
+
return Promise.resolve(response);
|
|
3075
|
+
};
|
|
3076
|
+
exports.deserializeAws_json1_1GetCustomRulePolicyCommand = deserializeAws_json1_1GetCustomRulePolicyCommand;
|
|
3077
|
+
const deserializeAws_json1_1GetCustomRulePolicyCommandError = async (output, context) => {
|
|
3078
|
+
const parsedOutput = {
|
|
3079
|
+
...output,
|
|
3080
|
+
body: await parseBody(output.body, context),
|
|
3081
|
+
};
|
|
3082
|
+
let response;
|
|
3083
|
+
let errorCode = "UnknownError";
|
|
3084
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3085
|
+
switch (errorCode) {
|
|
3086
|
+
case "NoSuchConfigRuleException":
|
|
3087
|
+
case "com.amazonaws.configservice#NoSuchConfigRuleException":
|
|
3088
|
+
throw await deserializeAws_json1_1NoSuchConfigRuleExceptionResponse(parsedOutput, context);
|
|
3089
|
+
default:
|
|
3090
|
+
const parsedBody = parsedOutput.body;
|
|
3091
|
+
response = new ConfigServiceServiceException_1.ConfigServiceServiceException({
|
|
3092
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3093
|
+
$fault: "client",
|
|
3094
|
+
$metadata: deserializeMetadata(output),
|
|
3095
|
+
});
|
|
3096
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3097
|
+
}
|
|
3098
|
+
};
|
|
3043
3099
|
const deserializeAws_json1_1GetDiscoveredResourceCountsCommand = async (output, context) => {
|
|
3044
3100
|
if (output.statusCode >= 300) {
|
|
3045
3101
|
return deserializeAws_json1_1GetDiscoveredResourceCountsCommandError(output, context);
|
|
@@ -3172,6 +3228,45 @@ const deserializeAws_json1_1GetOrganizationConformancePackDetailedStatusCommandE
|
|
|
3172
3228
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3173
3229
|
}
|
|
3174
3230
|
};
|
|
3231
|
+
const deserializeAws_json1_1GetOrganizationCustomRulePolicyCommand = async (output, context) => {
|
|
3232
|
+
if (output.statusCode >= 300) {
|
|
3233
|
+
return deserializeAws_json1_1GetOrganizationCustomRulePolicyCommandError(output, context);
|
|
3234
|
+
}
|
|
3235
|
+
const data = await parseBody(output.body, context);
|
|
3236
|
+
let contents = {};
|
|
3237
|
+
contents = deserializeAws_json1_1GetOrganizationCustomRulePolicyResponse(data, context);
|
|
3238
|
+
const response = {
|
|
3239
|
+
$metadata: deserializeMetadata(output),
|
|
3240
|
+
...contents,
|
|
3241
|
+
};
|
|
3242
|
+
return Promise.resolve(response);
|
|
3243
|
+
};
|
|
3244
|
+
exports.deserializeAws_json1_1GetOrganizationCustomRulePolicyCommand = deserializeAws_json1_1GetOrganizationCustomRulePolicyCommand;
|
|
3245
|
+
const deserializeAws_json1_1GetOrganizationCustomRulePolicyCommandError = async (output, context) => {
|
|
3246
|
+
const parsedOutput = {
|
|
3247
|
+
...output,
|
|
3248
|
+
body: await parseBody(output.body, context),
|
|
3249
|
+
};
|
|
3250
|
+
let response;
|
|
3251
|
+
let errorCode = "UnknownError";
|
|
3252
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3253
|
+
switch (errorCode) {
|
|
3254
|
+
case "NoSuchOrganizationConfigRuleException":
|
|
3255
|
+
case "com.amazonaws.configservice#NoSuchOrganizationConfigRuleException":
|
|
3256
|
+
throw await deserializeAws_json1_1NoSuchOrganizationConfigRuleExceptionResponse(parsedOutput, context);
|
|
3257
|
+
case "OrganizationAccessDeniedException":
|
|
3258
|
+
case "com.amazonaws.configservice#OrganizationAccessDeniedException":
|
|
3259
|
+
throw await deserializeAws_json1_1OrganizationAccessDeniedExceptionResponse(parsedOutput, context);
|
|
3260
|
+
default:
|
|
3261
|
+
const parsedBody = parsedOutput.body;
|
|
3262
|
+
response = new ConfigServiceServiceException_1.ConfigServiceServiceException({
|
|
3263
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3264
|
+
$fault: "client",
|
|
3265
|
+
$metadata: deserializeMetadata(output),
|
|
3266
|
+
});
|
|
3267
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3268
|
+
}
|
|
3269
|
+
};
|
|
3175
3270
|
const deserializeAws_json1_1GetResourceConfigHistoryCommand = async (output, context) => {
|
|
3176
3271
|
if (output.statusCode >= 300) {
|
|
3177
3272
|
return deserializeAws_json1_1GetResourceConfigHistoryCommandError(output, context);
|
|
@@ -5180,6 +5275,24 @@ const serializeAws_json1_1ConformancePackNamesToSummarizeList = (input, context)
|
|
|
5180
5275
|
return entry;
|
|
5181
5276
|
});
|
|
5182
5277
|
};
|
|
5278
|
+
const serializeAws_json1_1CustomPolicyDetails = (input, context) => {
|
|
5279
|
+
return {
|
|
5280
|
+
...(input.EnableDebugLogDelivery !== undefined &&
|
|
5281
|
+
input.EnableDebugLogDelivery !== null && { EnableDebugLogDelivery: input.EnableDebugLogDelivery }),
|
|
5282
|
+
...(input.PolicyRuntime !== undefined && input.PolicyRuntime !== null && { PolicyRuntime: input.PolicyRuntime }),
|
|
5283
|
+
...(input.PolicyText !== undefined && input.PolicyText !== null && { PolicyText: input.PolicyText }),
|
|
5284
|
+
};
|
|
5285
|
+
};
|
|
5286
|
+
const serializeAws_json1_1DebugLogDeliveryAccounts = (input, context) => {
|
|
5287
|
+
return input
|
|
5288
|
+
.filter((e) => e != null)
|
|
5289
|
+
.map((entry) => {
|
|
5290
|
+
if (entry === null) {
|
|
5291
|
+
return null;
|
|
5292
|
+
}
|
|
5293
|
+
return entry;
|
|
5294
|
+
});
|
|
5295
|
+
};
|
|
5183
5296
|
const serializeAws_json1_1DeleteAggregationAuthorizationRequest = (input, context) => {
|
|
5184
5297
|
return {
|
|
5185
5298
|
...(input.AuthorizedAccountId !== undefined &&
|
|
@@ -5718,6 +5831,12 @@ const serializeAws_json1_1GetConformancePackComplianceSummaryRequest = (input, c
|
|
|
5718
5831
|
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
5719
5832
|
};
|
|
5720
5833
|
};
|
|
5834
|
+
const serializeAws_json1_1GetCustomRulePolicyRequest = (input, context) => {
|
|
5835
|
+
return {
|
|
5836
|
+
...(input.ConfigRuleName !== undefined &&
|
|
5837
|
+
input.ConfigRuleName !== null && { ConfigRuleName: input.ConfigRuleName }),
|
|
5838
|
+
};
|
|
5839
|
+
};
|
|
5721
5840
|
const serializeAws_json1_1GetDiscoveredResourceCountsRequest = (input, context) => {
|
|
5722
5841
|
return {
|
|
5723
5842
|
...(input.limit !== undefined && input.limit !== null && { limit: input.limit }),
|
|
@@ -5752,6 +5871,12 @@ const serializeAws_json1_1GetOrganizationConformancePackDetailedStatusRequest =
|
|
|
5752
5871
|
}),
|
|
5753
5872
|
};
|
|
5754
5873
|
};
|
|
5874
|
+
const serializeAws_json1_1GetOrganizationCustomRulePolicyRequest = (input, context) => {
|
|
5875
|
+
return {
|
|
5876
|
+
...(input.OrganizationConfigRuleName !== undefined &&
|
|
5877
|
+
input.OrganizationConfigRuleName !== null && { OrganizationConfigRuleName: input.OrganizationConfigRuleName }),
|
|
5878
|
+
};
|
|
5879
|
+
};
|
|
5755
5880
|
const serializeAws_json1_1GetResourceConfigHistoryRequest = (input, context) => {
|
|
5756
5881
|
return {
|
|
5757
5882
|
...(input.chronologicalOrder !== undefined &&
|
|
@@ -5825,6 +5950,16 @@ const serializeAws_json1_1OrganizationConfigRuleNames = (input, context) => {
|
|
|
5825
5950
|
return entry;
|
|
5826
5951
|
});
|
|
5827
5952
|
};
|
|
5953
|
+
const serializeAws_json1_1OrganizationConfigRuleTriggerTypeNoSNs = (input, context) => {
|
|
5954
|
+
return input
|
|
5955
|
+
.filter((e) => e != null)
|
|
5956
|
+
.map((entry) => {
|
|
5957
|
+
if (entry === null) {
|
|
5958
|
+
return null;
|
|
5959
|
+
}
|
|
5960
|
+
return entry;
|
|
5961
|
+
});
|
|
5962
|
+
};
|
|
5828
5963
|
const serializeAws_json1_1OrganizationConfigRuleTriggerTypes = (input, context) => {
|
|
5829
5964
|
return input
|
|
5830
5965
|
.filter((e) => e != null)
|
|
@@ -5845,6 +5980,33 @@ const serializeAws_json1_1OrganizationConformancePackNames = (input, context) =>
|
|
|
5845
5980
|
return entry;
|
|
5846
5981
|
});
|
|
5847
5982
|
};
|
|
5983
|
+
const serializeAws_json1_1OrganizationCustomPolicyRuleMetadata = (input, context) => {
|
|
5984
|
+
return {
|
|
5985
|
+
...(input.DebugLogDeliveryAccounts !== undefined &&
|
|
5986
|
+
input.DebugLogDeliveryAccounts !== null && {
|
|
5987
|
+
DebugLogDeliveryAccounts: serializeAws_json1_1DebugLogDeliveryAccounts(input.DebugLogDeliveryAccounts, context),
|
|
5988
|
+
}),
|
|
5989
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
5990
|
+
...(input.InputParameters !== undefined &&
|
|
5991
|
+
input.InputParameters !== null && { InputParameters: input.InputParameters }),
|
|
5992
|
+
...(input.MaximumExecutionFrequency !== undefined &&
|
|
5993
|
+
input.MaximumExecutionFrequency !== null && { MaximumExecutionFrequency: input.MaximumExecutionFrequency }),
|
|
5994
|
+
...(input.OrganizationConfigRuleTriggerTypes !== undefined &&
|
|
5995
|
+
input.OrganizationConfigRuleTriggerTypes !== null && {
|
|
5996
|
+
OrganizationConfigRuleTriggerTypes: serializeAws_json1_1OrganizationConfigRuleTriggerTypeNoSNs(input.OrganizationConfigRuleTriggerTypes, context),
|
|
5997
|
+
}),
|
|
5998
|
+
...(input.PolicyRuntime !== undefined && input.PolicyRuntime !== null && { PolicyRuntime: input.PolicyRuntime }),
|
|
5999
|
+
...(input.PolicyText !== undefined && input.PolicyText !== null && { PolicyText: input.PolicyText }),
|
|
6000
|
+
...(input.ResourceIdScope !== undefined &&
|
|
6001
|
+
input.ResourceIdScope !== null && { ResourceIdScope: input.ResourceIdScope }),
|
|
6002
|
+
...(input.ResourceTypesScope !== undefined &&
|
|
6003
|
+
input.ResourceTypesScope !== null && {
|
|
6004
|
+
ResourceTypesScope: serializeAws_json1_1ResourceTypesScope(input.ResourceTypesScope, context),
|
|
6005
|
+
}),
|
|
6006
|
+
...(input.TagKeyScope !== undefined && input.TagKeyScope !== null && { TagKeyScope: input.TagKeyScope }),
|
|
6007
|
+
...(input.TagValueScope !== undefined && input.TagValueScope !== null && { TagValueScope: input.TagValueScope }),
|
|
6008
|
+
};
|
|
6009
|
+
};
|
|
5848
6010
|
const serializeAws_json1_1OrganizationCustomRuleMetadata = (input, context) => {
|
|
5849
6011
|
return {
|
|
5850
6012
|
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
@@ -5982,6 +6144,10 @@ const serializeAws_json1_1PutOrganizationConfigRuleRequest = (input, context) =>
|
|
|
5982
6144
|
}),
|
|
5983
6145
|
...(input.OrganizationConfigRuleName !== undefined &&
|
|
5984
6146
|
input.OrganizationConfigRuleName !== null && { OrganizationConfigRuleName: input.OrganizationConfigRuleName }),
|
|
6147
|
+
...(input.OrganizationCustomPolicyRuleMetadata !== undefined &&
|
|
6148
|
+
input.OrganizationCustomPolicyRuleMetadata !== null && {
|
|
6149
|
+
OrganizationCustomPolicyRuleMetadata: serializeAws_json1_1OrganizationCustomPolicyRuleMetadata(input.OrganizationCustomPolicyRuleMetadata, context),
|
|
6150
|
+
}),
|
|
5985
6151
|
...(input.OrganizationCustomRuleMetadata !== undefined &&
|
|
5986
6152
|
input.OrganizationCustomRuleMetadata !== null && {
|
|
5987
6153
|
OrganizationCustomRuleMetadata: serializeAws_json1_1OrganizationCustomRuleMetadata(input.OrganizationCustomRuleMetadata, context),
|
|
@@ -6280,6 +6446,10 @@ const serializeAws_json1_1SelectResourceConfigRequest = (input, context) => {
|
|
|
6280
6446
|
};
|
|
6281
6447
|
const serializeAws_json1_1Source = (input, context) => {
|
|
6282
6448
|
return {
|
|
6449
|
+
...(input.CustomPolicyDetails !== undefined &&
|
|
6450
|
+
input.CustomPolicyDetails !== null && {
|
|
6451
|
+
CustomPolicyDetails: serializeAws_json1_1CustomPolicyDetails(input.CustomPolicyDetails, context),
|
|
6452
|
+
}),
|
|
6283
6453
|
...(input.Owner !== undefined && input.Owner !== null && { Owner: input.Owner }),
|
|
6284
6454
|
...(input.SourceDetails !== undefined &&
|
|
6285
6455
|
input.SourceDetails !== null && {
|
|
@@ -6854,6 +7024,11 @@ const deserializeAws_json1_1ConfigRuleEvaluationStatus = (output, context) => {
|
|
|
6854
7024
|
LastDeactivatedTime: output.LastDeactivatedTime !== undefined && output.LastDeactivatedTime !== null
|
|
6855
7025
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastDeactivatedTime)))
|
|
6856
7026
|
: undefined,
|
|
7027
|
+
LastDebugLogDeliveryStatus: (0, smithy_client_1.expectString)(output.LastDebugLogDeliveryStatus),
|
|
7028
|
+
LastDebugLogDeliveryStatusReason: (0, smithy_client_1.expectString)(output.LastDebugLogDeliveryStatusReason),
|
|
7029
|
+
LastDebugLogDeliveryTime: output.LastDebugLogDeliveryTime !== undefined && output.LastDebugLogDeliveryTime !== null
|
|
7030
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastDebugLogDeliveryTime)))
|
|
7031
|
+
: undefined,
|
|
6857
7032
|
LastErrorCode: (0, smithy_client_1.expectString)(output.LastErrorCode),
|
|
6858
7033
|
LastErrorMessage: (0, smithy_client_1.expectString)(output.LastErrorMessage),
|
|
6859
7034
|
LastFailedEvaluationTime: output.LastFailedEvaluationTime !== undefined && output.LastFailedEvaluationTime !== null
|
|
@@ -7179,6 +7354,24 @@ const deserializeAws_json1_1ControlsList = (output, context) => {
|
|
|
7179
7354
|
});
|
|
7180
7355
|
return retVal;
|
|
7181
7356
|
};
|
|
7357
|
+
const deserializeAws_json1_1CustomPolicyDetails = (output, context) => {
|
|
7358
|
+
return {
|
|
7359
|
+
EnableDebugLogDelivery: (0, smithy_client_1.expectBoolean)(output.EnableDebugLogDelivery),
|
|
7360
|
+
PolicyRuntime: (0, smithy_client_1.expectString)(output.PolicyRuntime),
|
|
7361
|
+
PolicyText: (0, smithy_client_1.expectString)(output.PolicyText),
|
|
7362
|
+
};
|
|
7363
|
+
};
|
|
7364
|
+
const deserializeAws_json1_1DebugLogDeliveryAccounts = (output, context) => {
|
|
7365
|
+
const retVal = (output || [])
|
|
7366
|
+
.filter((e) => e != null)
|
|
7367
|
+
.map((entry) => {
|
|
7368
|
+
if (entry === null) {
|
|
7369
|
+
return null;
|
|
7370
|
+
}
|
|
7371
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
7372
|
+
});
|
|
7373
|
+
return retVal;
|
|
7374
|
+
};
|
|
7182
7375
|
const deserializeAws_json1_1DeleteEvaluationResultsResponse = (output, context) => {
|
|
7183
7376
|
return {};
|
|
7184
7377
|
};
|
|
@@ -7704,6 +7897,11 @@ const deserializeAws_json1_1GetConformancePackComplianceSummaryResponse = (outpu
|
|
|
7704
7897
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
7705
7898
|
};
|
|
7706
7899
|
};
|
|
7900
|
+
const deserializeAws_json1_1GetCustomRulePolicyResponse = (output, context) => {
|
|
7901
|
+
return {
|
|
7902
|
+
PolicyText: (0, smithy_client_1.expectString)(output.PolicyText),
|
|
7903
|
+
};
|
|
7904
|
+
};
|
|
7707
7905
|
const deserializeAws_json1_1GetDiscoveredResourceCountsResponse = (output, context) => {
|
|
7708
7906
|
return {
|
|
7709
7907
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -7730,6 +7928,11 @@ const deserializeAws_json1_1GetOrganizationConformancePackDetailedStatusResponse
|
|
|
7730
7928
|
: undefined,
|
|
7731
7929
|
};
|
|
7732
7930
|
};
|
|
7931
|
+
const deserializeAws_json1_1GetOrganizationCustomRulePolicyResponse = (output, context) => {
|
|
7932
|
+
return {
|
|
7933
|
+
PolicyText: (0, smithy_client_1.expectString)(output.PolicyText),
|
|
7934
|
+
};
|
|
7935
|
+
};
|
|
7733
7936
|
const deserializeAws_json1_1GetResourceConfigHistoryResponse = (output, context) => {
|
|
7734
7937
|
return {
|
|
7735
7938
|
configurationItems: output.configurationItems !== undefined && output.configurationItems !== null
|
|
@@ -8040,6 +8243,9 @@ const deserializeAws_json1_1OrganizationConfigRule = (output, context) => {
|
|
|
8040
8243
|
: undefined,
|
|
8041
8244
|
OrganizationConfigRuleArn: (0, smithy_client_1.expectString)(output.OrganizationConfigRuleArn),
|
|
8042
8245
|
OrganizationConfigRuleName: (0, smithy_client_1.expectString)(output.OrganizationConfigRuleName),
|
|
8246
|
+
OrganizationCustomPolicyRuleMetadata: output.OrganizationCustomPolicyRuleMetadata !== undefined && output.OrganizationCustomPolicyRuleMetadata !== null
|
|
8247
|
+
? deserializeAws_json1_1OrganizationCustomPolicyRuleMetadataNoPolicy(output.OrganizationCustomPolicyRuleMetadata, context)
|
|
8248
|
+
: undefined,
|
|
8043
8249
|
OrganizationCustomRuleMetadata: output.OrganizationCustomRuleMetadata !== undefined && output.OrganizationCustomRuleMetadata !== null
|
|
8044
8250
|
? deserializeAws_json1_1OrganizationCustomRuleMetadata(output.OrganizationCustomRuleMetadata, context)
|
|
8045
8251
|
: undefined,
|
|
@@ -8092,6 +8298,17 @@ const deserializeAws_json1_1OrganizationConfigRuleStatuses = (output, context) =
|
|
|
8092
8298
|
});
|
|
8093
8299
|
return retVal;
|
|
8094
8300
|
};
|
|
8301
|
+
const deserializeAws_json1_1OrganizationConfigRuleTriggerTypeNoSNs = (output, context) => {
|
|
8302
|
+
const retVal = (output || [])
|
|
8303
|
+
.filter((e) => e != null)
|
|
8304
|
+
.map((entry) => {
|
|
8305
|
+
if (entry === null) {
|
|
8306
|
+
return null;
|
|
8307
|
+
}
|
|
8308
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
8309
|
+
});
|
|
8310
|
+
return retVal;
|
|
8311
|
+
};
|
|
8095
8312
|
const deserializeAws_json1_1OrganizationConfigRuleTriggerTypes = (output, context) => {
|
|
8096
8313
|
const retVal = (output || [])
|
|
8097
8314
|
.filter((e) => e != null)
|
|
@@ -8181,6 +8398,26 @@ const deserializeAws_json1_1OrganizationConformancePackTemplateValidationExcepti
|
|
|
8181
8398
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
8182
8399
|
};
|
|
8183
8400
|
};
|
|
8401
|
+
const deserializeAws_json1_1OrganizationCustomPolicyRuleMetadataNoPolicy = (output, context) => {
|
|
8402
|
+
return {
|
|
8403
|
+
DebugLogDeliveryAccounts: output.DebugLogDeliveryAccounts !== undefined && output.DebugLogDeliveryAccounts !== null
|
|
8404
|
+
? deserializeAws_json1_1DebugLogDeliveryAccounts(output.DebugLogDeliveryAccounts, context)
|
|
8405
|
+
: undefined,
|
|
8406
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
8407
|
+
InputParameters: (0, smithy_client_1.expectString)(output.InputParameters),
|
|
8408
|
+
MaximumExecutionFrequency: (0, smithy_client_1.expectString)(output.MaximumExecutionFrequency),
|
|
8409
|
+
OrganizationConfigRuleTriggerTypes: output.OrganizationConfigRuleTriggerTypes !== undefined && output.OrganizationConfigRuleTriggerTypes !== null
|
|
8410
|
+
? deserializeAws_json1_1OrganizationConfigRuleTriggerTypeNoSNs(output.OrganizationConfigRuleTriggerTypes, context)
|
|
8411
|
+
: undefined,
|
|
8412
|
+
PolicyRuntime: (0, smithy_client_1.expectString)(output.PolicyRuntime),
|
|
8413
|
+
ResourceIdScope: (0, smithy_client_1.expectString)(output.ResourceIdScope),
|
|
8414
|
+
ResourceTypesScope: output.ResourceTypesScope !== undefined && output.ResourceTypesScope !== null
|
|
8415
|
+
? deserializeAws_json1_1ResourceTypesScope(output.ResourceTypesScope, context)
|
|
8416
|
+
: undefined,
|
|
8417
|
+
TagKeyScope: (0, smithy_client_1.expectString)(output.TagKeyScope),
|
|
8418
|
+
TagValueScope: (0, smithy_client_1.expectString)(output.TagValueScope),
|
|
8419
|
+
};
|
|
8420
|
+
};
|
|
8184
8421
|
const deserializeAws_json1_1OrganizationCustomRuleMetadata = (output, context) => {
|
|
8185
8422
|
return {
|
|
8186
8423
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
@@ -8657,6 +8894,9 @@ const deserializeAws_json1_1SelectResourceConfigResponse = (output, context) =>
|
|
|
8657
8894
|
};
|
|
8658
8895
|
const deserializeAws_json1_1Source = (output, context) => {
|
|
8659
8896
|
return {
|
|
8897
|
+
CustomPolicyDetails: output.CustomPolicyDetails !== undefined && output.CustomPolicyDetails !== null
|
|
8898
|
+
? deserializeAws_json1_1CustomPolicyDetails(output.CustomPolicyDetails, context)
|
|
8899
|
+
: undefined,
|
|
8660
8900
|
Owner: (0, smithy_client_1.expectString)(output.Owner),
|
|
8661
8901
|
SourceDetails: output.SourceDetails !== undefined && output.SourceDetails !== null
|
|
8662
8902
|
? deserializeAws_json1_1SourceDetails(output.SourceDetails, context)
|
package/dist-es/ConfigService.js
CHANGED
|
@@ -53,9 +53,11 @@ import { GetComplianceSummaryByConfigRuleCommand, } from "./commands/GetComplian
|
|
|
53
53
|
import { GetComplianceSummaryByResourceTypeCommand, } from "./commands/GetComplianceSummaryByResourceTypeCommand";
|
|
54
54
|
import { GetConformancePackComplianceDetailsCommand, } from "./commands/GetConformancePackComplianceDetailsCommand";
|
|
55
55
|
import { GetConformancePackComplianceSummaryCommand, } from "./commands/GetConformancePackComplianceSummaryCommand";
|
|
56
|
+
import { GetCustomRulePolicyCommand, } from "./commands/GetCustomRulePolicyCommand";
|
|
56
57
|
import { GetDiscoveredResourceCountsCommand, } from "./commands/GetDiscoveredResourceCountsCommand";
|
|
57
58
|
import { GetOrganizationConfigRuleDetailedStatusCommand, } from "./commands/GetOrganizationConfigRuleDetailedStatusCommand";
|
|
58
59
|
import { GetOrganizationConformancePackDetailedStatusCommand, } from "./commands/GetOrganizationConformancePackDetailedStatusCommand";
|
|
60
|
+
import { GetOrganizationCustomRulePolicyCommand, } from "./commands/GetOrganizationCustomRulePolicyCommand";
|
|
59
61
|
import { GetResourceConfigHistoryCommand, } from "./commands/GetResourceConfigHistoryCommand";
|
|
60
62
|
import { GetStoredQueryCommand, } from "./commands/GetStoredQueryCommand";
|
|
61
63
|
import { ListAggregateDiscoveredResourcesCommand, } from "./commands/ListAggregateDiscoveredResourcesCommand";
|
|
@@ -847,6 +849,20 @@ var ConfigService = (function (_super) {
|
|
|
847
849
|
return this.send(command, optionsOrCb);
|
|
848
850
|
}
|
|
849
851
|
};
|
|
852
|
+
ConfigService.prototype.getCustomRulePolicy = function (args, optionsOrCb, cb) {
|
|
853
|
+
var command = new GetCustomRulePolicyCommand(args);
|
|
854
|
+
if (typeof optionsOrCb === "function") {
|
|
855
|
+
this.send(command, optionsOrCb);
|
|
856
|
+
}
|
|
857
|
+
else if (typeof cb === "function") {
|
|
858
|
+
if (typeof optionsOrCb !== "object")
|
|
859
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
860
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
861
|
+
}
|
|
862
|
+
else {
|
|
863
|
+
return this.send(command, optionsOrCb);
|
|
864
|
+
}
|
|
865
|
+
};
|
|
850
866
|
ConfigService.prototype.getDiscoveredResourceCounts = function (args, optionsOrCb, cb) {
|
|
851
867
|
var command = new GetDiscoveredResourceCountsCommand(args);
|
|
852
868
|
if (typeof optionsOrCb === "function") {
|
|
@@ -889,6 +905,20 @@ var ConfigService = (function (_super) {
|
|
|
889
905
|
return this.send(command, optionsOrCb);
|
|
890
906
|
}
|
|
891
907
|
};
|
|
908
|
+
ConfigService.prototype.getOrganizationCustomRulePolicy = function (args, optionsOrCb, cb) {
|
|
909
|
+
var command = new GetOrganizationCustomRulePolicyCommand(args);
|
|
910
|
+
if (typeof optionsOrCb === "function") {
|
|
911
|
+
this.send(command, optionsOrCb);
|
|
912
|
+
}
|
|
913
|
+
else if (typeof cb === "function") {
|
|
914
|
+
if (typeof optionsOrCb !== "object")
|
|
915
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
916
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
917
|
+
}
|
|
918
|
+
else {
|
|
919
|
+
return this.send(command, optionsOrCb);
|
|
920
|
+
}
|
|
921
|
+
};
|
|
892
922
|
ConfigService.prototype.getResourceConfigHistory = function (args, optionsOrCb, cb) {
|
|
893
923
|
var command = new GetResourceConfigHistoryCommand(args);
|
|
894
924
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetCustomRulePolicyRequest, GetCustomRulePolicyResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1GetCustomRulePolicyCommand, serializeAws_json1_1GetCustomRulePolicyCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var GetCustomRulePolicyCommand = (function (_super) {
|
|
7
|
+
__extends(GetCustomRulePolicyCommand, _super);
|
|
8
|
+
function GetCustomRulePolicyCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetCustomRulePolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ConfigServiceClient";
|
|
18
|
+
var commandName = "GetCustomRulePolicyCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetCustomRulePolicyRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetCustomRulePolicyResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetCustomRulePolicyCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1GetCustomRulePolicyCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetCustomRulePolicyCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1GetCustomRulePolicyCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetCustomRulePolicyCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetCustomRulePolicyCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetOrganizationCustomRulePolicyRequest, GetOrganizationCustomRulePolicyResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1GetOrganizationCustomRulePolicyCommand, serializeAws_json1_1GetOrganizationCustomRulePolicyCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var GetOrganizationCustomRulePolicyCommand = (function (_super) {
|
|
7
|
+
__extends(GetOrganizationCustomRulePolicyCommand, _super);
|
|
8
|
+
function GetOrganizationCustomRulePolicyCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetOrganizationCustomRulePolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ConfigServiceClient";
|
|
18
|
+
var commandName = "GetOrganizationCustomRulePolicyCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetOrganizationCustomRulePolicyRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetOrganizationCustomRulePolicyResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetOrganizationCustomRulePolicyCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1GetOrganizationCustomRulePolicyCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetOrganizationCustomRulePolicyCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1GetOrganizationCustomRulePolicyCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetOrganizationCustomRulePolicyCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetOrganizationCustomRulePolicyCommand };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { PutOrganizationConfigRuleRequest, PutOrganizationConfigRuleResponse } from "../models/
|
|
4
|
+
import { PutOrganizationConfigRuleRequest, PutOrganizationConfigRuleResponse } from "../models/models_1";
|
|
5
5
|
import { deserializeAws_json1_1PutOrganizationConfigRuleCommand, serializeAws_json1_1PutOrganizationConfigRuleCommand, } from "../protocols/Aws_json1_1";
|
|
6
6
|
var PutOrganizationConfigRuleCommand = (function (_super) {
|
|
7
7
|
__extends(PutOrganizationConfigRuleCommand, _super);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { PutOrganizationConformancePackRequest, PutOrganizationConformancePackResponse } from "../models/
|
|
4
|
+
import { PutOrganizationConformancePackRequest, PutOrganizationConformancePackResponse } from "../models/models_1";
|
|
5
5
|
import { deserializeAws_json1_1PutOrganizationConformancePackCommand, serializeAws_json1_1PutOrganizationConformancePackCommand, } from "../protocols/Aws_json1_1";
|
|
6
6
|
var PutOrganizationConformancePackCommand = (function (_super) {
|
|
7
7
|
__extends(PutOrganizationConformancePackCommand, _super);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { PutRemediationConfigurationsRequest, PutRemediationConfigurationsResponse } from "../models/
|
|
4
|
+
import { PutRemediationConfigurationsRequest, PutRemediationConfigurationsResponse } from "../models/models_1";
|
|
5
5
|
import { deserializeAws_json1_1PutRemediationConfigurationsCommand, serializeAws_json1_1PutRemediationConfigurationsCommand, } from "../protocols/Aws_json1_1";
|
|
6
6
|
var PutRemediationConfigurationsCommand = (function (_super) {
|
|
7
7
|
__extends(PutRemediationConfigurationsCommand, _super);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { PutRemediationExceptionsRequest, PutRemediationExceptionsResponse } from "../models/
|
|
4
|
+
import { PutRemediationExceptionsRequest, PutRemediationExceptionsResponse } from "../models/models_1";
|
|
5
5
|
import { deserializeAws_json1_1PutRemediationExceptionsCommand, serializeAws_json1_1PutRemediationExceptionsCommand, } from "../protocols/Aws_json1_1";
|
|
6
6
|
var PutRemediationExceptionsCommand = (function (_super) {
|
|
7
7
|
__extends(PutRemediationExceptionsCommand, _super);
|
|
@@ -52,9 +52,11 @@ export * from "./GetComplianceSummaryByConfigRuleCommand";
|
|
|
52
52
|
export * from "./GetComplianceSummaryByResourceTypeCommand";
|
|
53
53
|
export * from "./GetConformancePackComplianceDetailsCommand";
|
|
54
54
|
export * from "./GetConformancePackComplianceSummaryCommand";
|
|
55
|
+
export * from "./GetCustomRulePolicyCommand";
|
|
55
56
|
export * from "./GetDiscoveredResourceCountsCommand";
|
|
56
57
|
export * from "./GetOrganizationConfigRuleDetailedStatusCommand";
|
|
57
58
|
export * from "./GetOrganizationConformancePackDetailedStatusCommand";
|
|
59
|
+
export * from "./GetOrganizationCustomRulePolicyCommand";
|
|
58
60
|
export * from "./GetResourceConfigHistoryCommand";
|
|
59
61
|
export * from "./GetStoredQueryCommand";
|
|
60
62
|
export * from "./ListAggregateDiscoveredResourcesCommand";
|