@aws-sdk/client-config-service 3.926.0 → 3.928.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/dist-cjs/index.js +4128 -4209
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/ConfigServiceClient.js +2 -0
  4. package/dist-es/commands/AssociateResourceTypesCommand.js +3 -9
  5. package/dist-es/commands/BatchGetAggregateResourceConfigCommand.js +3 -9
  6. package/dist-es/commands/BatchGetResourceConfigCommand.js +3 -9
  7. package/dist-es/commands/DeleteAggregationAuthorizationCommand.js +3 -9
  8. package/dist-es/commands/DeleteConfigRuleCommand.js +3 -9
  9. package/dist-es/commands/DeleteConfigurationAggregatorCommand.js +3 -9
  10. package/dist-es/commands/DeleteConfigurationRecorderCommand.js +3 -9
  11. package/dist-es/commands/DeleteConformancePackCommand.js +3 -9
  12. package/dist-es/commands/DeleteDeliveryChannelCommand.js +3 -9
  13. package/dist-es/commands/DeleteEvaluationResultsCommand.js +3 -9
  14. package/dist-es/commands/DeleteOrganizationConfigRuleCommand.js +3 -9
  15. package/dist-es/commands/DeleteOrganizationConformancePackCommand.js +3 -9
  16. package/dist-es/commands/DeletePendingAggregationRequestCommand.js +3 -9
  17. package/dist-es/commands/DeleteRemediationConfigurationCommand.js +3 -9
  18. package/dist-es/commands/DeleteRemediationExceptionsCommand.js +3 -9
  19. package/dist-es/commands/DeleteResourceConfigCommand.js +3 -9
  20. package/dist-es/commands/DeleteRetentionConfigurationCommand.js +3 -9
  21. package/dist-es/commands/DeleteServiceLinkedConfigurationRecorderCommand.js +3 -9
  22. package/dist-es/commands/DeleteStoredQueryCommand.js +3 -9
  23. package/dist-es/commands/DeliverConfigSnapshotCommand.js +3 -9
  24. package/dist-es/commands/DescribeAggregateComplianceByConfigRulesCommand.js +3 -9
  25. package/dist-es/commands/DescribeAggregateComplianceByConformancePacksCommand.js +3 -9
  26. package/dist-es/commands/DescribeAggregationAuthorizationsCommand.js +3 -9
  27. package/dist-es/commands/DescribeComplianceByConfigRuleCommand.js +3 -9
  28. package/dist-es/commands/DescribeComplianceByResourceCommand.js +3 -9
  29. package/dist-es/commands/DescribeConfigRuleEvaluationStatusCommand.js +3 -9
  30. package/dist-es/commands/DescribeConfigRulesCommand.js +3 -9
  31. package/dist-es/commands/DescribeConfigurationAggregatorSourcesStatusCommand.js +3 -9
  32. package/dist-es/commands/DescribeConfigurationAggregatorsCommand.js +3 -9
  33. package/dist-es/commands/DescribeConfigurationRecorderStatusCommand.js +3 -9
  34. package/dist-es/commands/DescribeConfigurationRecordersCommand.js +3 -9
  35. package/dist-es/commands/DescribeConformancePackComplianceCommand.js +3 -9
  36. package/dist-es/commands/DescribeConformancePackStatusCommand.js +3 -9
  37. package/dist-es/commands/DescribeConformancePacksCommand.js +3 -9
  38. package/dist-es/commands/DescribeDeliveryChannelStatusCommand.js +3 -9
  39. package/dist-es/commands/DescribeDeliveryChannelsCommand.js +3 -9
  40. package/dist-es/commands/DescribeOrganizationConfigRuleStatusesCommand.js +3 -9
  41. package/dist-es/commands/DescribeOrganizationConfigRulesCommand.js +3 -9
  42. package/dist-es/commands/DescribeOrganizationConformancePackStatusesCommand.js +3 -9
  43. package/dist-es/commands/DescribeOrganizationConformancePacksCommand.js +3 -9
  44. package/dist-es/commands/DescribePendingAggregationRequestsCommand.js +3 -9
  45. package/dist-es/commands/DescribeRemediationConfigurationsCommand.js +3 -9
  46. package/dist-es/commands/DescribeRemediationExceptionsCommand.js +3 -9
  47. package/dist-es/commands/DescribeRemediationExecutionStatusCommand.js +3 -9
  48. package/dist-es/commands/DescribeRetentionConfigurationsCommand.js +3 -9
  49. package/dist-es/commands/DisassociateResourceTypesCommand.js +3 -9
  50. package/dist-es/commands/GetAggregateComplianceDetailsByConfigRuleCommand.js +3 -9
  51. package/dist-es/commands/GetAggregateConfigRuleComplianceSummaryCommand.js +3 -9
  52. package/dist-es/commands/GetAggregateConformancePackComplianceSummaryCommand.js +3 -9
  53. package/dist-es/commands/GetAggregateDiscoveredResourceCountsCommand.js +3 -9
  54. package/dist-es/commands/GetAggregateResourceConfigCommand.js +3 -9
  55. package/dist-es/commands/GetComplianceDetailsByConfigRuleCommand.js +3 -9
  56. package/dist-es/commands/GetComplianceDetailsByResourceCommand.js +3 -9
  57. package/dist-es/commands/GetComplianceSummaryByConfigRuleCommand.js +3 -9
  58. package/dist-es/commands/GetComplianceSummaryByResourceTypeCommand.js +3 -9
  59. package/dist-es/commands/GetConformancePackComplianceDetailsCommand.js +3 -9
  60. package/dist-es/commands/GetConformancePackComplianceSummaryCommand.js +3 -9
  61. package/dist-es/commands/GetCustomRulePolicyCommand.js +3 -9
  62. package/dist-es/commands/GetDiscoveredResourceCountsCommand.js +3 -9
  63. package/dist-es/commands/GetOrganizationConfigRuleDetailedStatusCommand.js +3 -9
  64. package/dist-es/commands/GetOrganizationConformancePackDetailedStatusCommand.js +3 -9
  65. package/dist-es/commands/GetOrganizationCustomRulePolicyCommand.js +3 -9
  66. package/dist-es/commands/GetResourceConfigHistoryCommand.js +3 -9
  67. package/dist-es/commands/GetResourceEvaluationSummaryCommand.js +3 -9
  68. package/dist-es/commands/GetStoredQueryCommand.js +3 -9
  69. package/dist-es/commands/ListAggregateDiscoveredResourcesCommand.js +3 -9
  70. package/dist-es/commands/ListConfigurationRecordersCommand.js +3 -9
  71. package/dist-es/commands/ListConformancePackComplianceScoresCommand.js +3 -9
  72. package/dist-es/commands/ListDiscoveredResourcesCommand.js +3 -9
  73. package/dist-es/commands/ListResourceEvaluationsCommand.js +3 -9
  74. package/dist-es/commands/ListStoredQueriesCommand.js +3 -9
  75. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  76. package/dist-es/commands/PutAggregationAuthorizationCommand.js +3 -9
  77. package/dist-es/commands/PutConfigRuleCommand.js +3 -9
  78. package/dist-es/commands/PutConfigurationAggregatorCommand.js +3 -9
  79. package/dist-es/commands/PutConfigurationRecorderCommand.js +3 -9
  80. package/dist-es/commands/PutConformancePackCommand.js +3 -9
  81. package/dist-es/commands/PutDeliveryChannelCommand.js +3 -9
  82. package/dist-es/commands/PutEvaluationsCommand.js +3 -9
  83. package/dist-es/commands/PutExternalEvaluationCommand.js +3 -9
  84. package/dist-es/commands/PutOrganizationConfigRuleCommand.js +3 -9
  85. package/dist-es/commands/PutOrganizationConformancePackCommand.js +3 -9
  86. package/dist-es/commands/PutRemediationConfigurationsCommand.js +3 -9
  87. package/dist-es/commands/PutRemediationExceptionsCommand.js +3 -9
  88. package/dist-es/commands/PutResourceConfigCommand.js +3 -9
  89. package/dist-es/commands/PutRetentionConfigurationCommand.js +3 -9
  90. package/dist-es/commands/PutServiceLinkedConfigurationRecorderCommand.js +3 -9
  91. package/dist-es/commands/PutStoredQueryCommand.js +3 -9
  92. package/dist-es/commands/SelectAggregateResourceConfigCommand.js +3 -9
  93. package/dist-es/commands/SelectResourceConfigCommand.js +3 -9
  94. package/dist-es/commands/StartConfigRulesEvaluationCommand.js +3 -9
  95. package/dist-es/commands/StartConfigurationRecorderCommand.js +3 -9
  96. package/dist-es/commands/StartRemediationExecutionCommand.js +3 -9
  97. package/dist-es/commands/StartResourceEvaluationCommand.js +3 -9
  98. package/dist-es/commands/StopConfigurationRecorderCommand.js +3 -9
  99. package/dist-es/commands/TagResourceCommand.js +3 -9
  100. package/dist-es/commands/UntagResourceCommand.js +3 -9
  101. package/dist-es/runtimeConfig.shared.js +7 -0
  102. package/dist-es/schemas/schemas_0.js +3801 -0
  103. package/dist-types/ConfigServiceClient.d.ts +10 -1
  104. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  105. package/dist-types/runtimeConfig.d.ts +1 -0
  106. package/dist-types/runtimeConfig.native.d.ts +1 -0
  107. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  108. package/dist-types/schemas/schemas_0.d.ts +542 -0
  109. package/dist-types/ts3.4/ConfigServiceClient.d.ts +4 -0
  110. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  111. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  112. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  113. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  114. package/dist-types/ts3.4/schemas/schemas_0.d.ts +548 -0
  115. package/package.json +5 -5
  116. package/dist-es/protocols/Aws_json1_1.js +0 -3367
  117. package/dist-types/protocols/Aws_json1_1.d.ts +0 -875
  118. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -1169
@@ -1,3367 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { ConfigServiceServiceException as __BaseException } from "../models/ConfigServiceServiceException";
5
- import { ConflictException, ConformancePackTemplateValidationException, IdempotentParameterMismatch, InsufficientDeliveryPolicyException, InsufficientPermissionsException, InvalidConfigurationRecorderNameException, InvalidDeliveryChannelNameException, InvalidExpressionException, InvalidLimitException, InvalidNextTokenException, InvalidParameterValueException, InvalidRecordingGroupException, InvalidResultTokenException, InvalidRoleException, InvalidS3KeyPrefixException, InvalidS3KmsKeyArnException, InvalidSNSTopicARNException, InvalidTimeRangeException, LastDeliveryChannelDeleteFailedException, LimitExceededException, NoAvailableConfigurationRecorderException, NoRunningConfigurationRecorderException, NoSuchConfigRuleException, NoSuchConfigRuleInConformancePackException, NoSuchConfigurationAggregatorException, NoSuchConfigurationRecorderException, NoSuchConformancePackException, NoSuchDeliveryChannelException, NoSuchOrganizationConfigRuleException, NoSuchOrganizationConformancePackException, NoSuchRemediationConfigurationException, NoSuchRemediationExceptionException, NoSuchRetentionConfigurationException, OrganizationAccessDeniedException, OversizedConfigurationItemException, RemediationInProgressException, ResourceInUseException, ResourceNotDiscoveredException, ResourceNotFoundException, UnmodifiableEntityException, ValidationException, } from "../models/models_0";
6
- import { MaxActiveResourcesExceededException, MaxNumberOfConfigRulesExceededException, MaxNumberOfConfigurationRecordersExceededException, MaxNumberOfConformancePacksExceededException, MaxNumberOfDeliveryChannelsExceededException, MaxNumberOfOrganizationConfigRulesExceededException, MaxNumberOfOrganizationConformancePacksExceededException, MaxNumberOfRetentionConfigurationsExceededException, NoAvailableDeliveryChannelException, NoAvailableOrganizationException, NoSuchBucketException, OrganizationAllFeaturesNotEnabledException, OrganizationConformancePackTemplateValidationException, ResourceConcurrentModificationException, TooManyTagsException, } from "../models/models_1";
7
- export const se_AssociateResourceTypesCommand = async (input, context) => {
8
- const headers = sharedHeaders("AssociateResourceTypes");
9
- let body;
10
- body = JSON.stringify(_json(input));
11
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
12
- };
13
- export const se_BatchGetAggregateResourceConfigCommand = async (input, context) => {
14
- const headers = sharedHeaders("BatchGetAggregateResourceConfig");
15
- let body;
16
- body = JSON.stringify(_json(input));
17
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
18
- };
19
- export const se_BatchGetResourceConfigCommand = async (input, context) => {
20
- const headers = sharedHeaders("BatchGetResourceConfig");
21
- let body;
22
- body = JSON.stringify(_json(input));
23
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
24
- };
25
- export const se_DeleteAggregationAuthorizationCommand = async (input, context) => {
26
- const headers = sharedHeaders("DeleteAggregationAuthorization");
27
- let body;
28
- body = JSON.stringify(_json(input));
29
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
30
- };
31
- export const se_DeleteConfigRuleCommand = async (input, context) => {
32
- const headers = sharedHeaders("DeleteConfigRule");
33
- let body;
34
- body = JSON.stringify(_json(input));
35
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
- };
37
- export const se_DeleteConfigurationAggregatorCommand = async (input, context) => {
38
- const headers = sharedHeaders("DeleteConfigurationAggregator");
39
- let body;
40
- body = JSON.stringify(_json(input));
41
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
- };
43
- export const se_DeleteConfigurationRecorderCommand = async (input, context) => {
44
- const headers = sharedHeaders("DeleteConfigurationRecorder");
45
- let body;
46
- body = JSON.stringify(_json(input));
47
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
- };
49
- export const se_DeleteConformancePackCommand = async (input, context) => {
50
- const headers = sharedHeaders("DeleteConformancePack");
51
- let body;
52
- body = JSON.stringify(_json(input));
53
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
54
- };
55
- export const se_DeleteDeliveryChannelCommand = async (input, context) => {
56
- const headers = sharedHeaders("DeleteDeliveryChannel");
57
- let body;
58
- body = JSON.stringify(_json(input));
59
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
60
- };
61
- export const se_DeleteEvaluationResultsCommand = async (input, context) => {
62
- const headers = sharedHeaders("DeleteEvaluationResults");
63
- let body;
64
- body = JSON.stringify(_json(input));
65
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
- };
67
- export const se_DeleteOrganizationConfigRuleCommand = async (input, context) => {
68
- const headers = sharedHeaders("DeleteOrganizationConfigRule");
69
- let body;
70
- body = JSON.stringify(_json(input));
71
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
72
- };
73
- export const se_DeleteOrganizationConformancePackCommand = async (input, context) => {
74
- const headers = sharedHeaders("DeleteOrganizationConformancePack");
75
- let body;
76
- body = JSON.stringify(_json(input));
77
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
- };
79
- export const se_DeletePendingAggregationRequestCommand = async (input, context) => {
80
- const headers = sharedHeaders("DeletePendingAggregationRequest");
81
- let body;
82
- body = JSON.stringify(_json(input));
83
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
84
- };
85
- export const se_DeleteRemediationConfigurationCommand = async (input, context) => {
86
- const headers = sharedHeaders("DeleteRemediationConfiguration");
87
- let body;
88
- body = JSON.stringify(_json(input));
89
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
- };
91
- export const se_DeleteRemediationExceptionsCommand = async (input, context) => {
92
- const headers = sharedHeaders("DeleteRemediationExceptions");
93
- let body;
94
- body = JSON.stringify(_json(input));
95
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
96
- };
97
- export const se_DeleteResourceConfigCommand = async (input, context) => {
98
- const headers = sharedHeaders("DeleteResourceConfig");
99
- let body;
100
- body = JSON.stringify(_json(input));
101
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
102
- };
103
- export const se_DeleteRetentionConfigurationCommand = async (input, context) => {
104
- const headers = sharedHeaders("DeleteRetentionConfiguration");
105
- let body;
106
- body = JSON.stringify(_json(input));
107
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
108
- };
109
- export const se_DeleteServiceLinkedConfigurationRecorderCommand = async (input, context) => {
110
- const headers = sharedHeaders("DeleteServiceLinkedConfigurationRecorder");
111
- let body;
112
- body = JSON.stringify(_json(input));
113
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
114
- };
115
- export const se_DeleteStoredQueryCommand = async (input, context) => {
116
- const headers = sharedHeaders("DeleteStoredQuery");
117
- let body;
118
- body = JSON.stringify(_json(input));
119
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
- };
121
- export const se_DeliverConfigSnapshotCommand = async (input, context) => {
122
- const headers = sharedHeaders("DeliverConfigSnapshot");
123
- let body;
124
- body = JSON.stringify(_json(input));
125
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
- };
127
- export const se_DescribeAggregateComplianceByConfigRulesCommand = async (input, context) => {
128
- const headers = sharedHeaders("DescribeAggregateComplianceByConfigRules");
129
- let body;
130
- body = JSON.stringify(_json(input));
131
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
132
- };
133
- export const se_DescribeAggregateComplianceByConformancePacksCommand = async (input, context) => {
134
- const headers = sharedHeaders("DescribeAggregateComplianceByConformancePacks");
135
- let body;
136
- body = JSON.stringify(_json(input));
137
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
138
- };
139
- export const se_DescribeAggregationAuthorizationsCommand = async (input, context) => {
140
- const headers = sharedHeaders("DescribeAggregationAuthorizations");
141
- let body;
142
- body = JSON.stringify(_json(input));
143
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
144
- };
145
- export const se_DescribeComplianceByConfigRuleCommand = async (input, context) => {
146
- const headers = sharedHeaders("DescribeComplianceByConfigRule");
147
- let body;
148
- body = JSON.stringify(_json(input));
149
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
150
- };
151
- export const se_DescribeComplianceByResourceCommand = async (input, context) => {
152
- const headers = sharedHeaders("DescribeComplianceByResource");
153
- let body;
154
- body = JSON.stringify(_json(input));
155
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
156
- };
157
- export const se_DescribeConfigRuleEvaluationStatusCommand = async (input, context) => {
158
- const headers = sharedHeaders("DescribeConfigRuleEvaluationStatus");
159
- let body;
160
- body = JSON.stringify(_json(input));
161
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
- };
163
- export const se_DescribeConfigRulesCommand = async (input, context) => {
164
- const headers = sharedHeaders("DescribeConfigRules");
165
- let body;
166
- body = JSON.stringify(_json(input));
167
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
- };
169
- export const se_DescribeConfigurationAggregatorsCommand = async (input, context) => {
170
- const headers = sharedHeaders("DescribeConfigurationAggregators");
171
- let body;
172
- body = JSON.stringify(_json(input));
173
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
174
- };
175
- export const se_DescribeConfigurationAggregatorSourcesStatusCommand = async (input, context) => {
176
- const headers = sharedHeaders("DescribeConfigurationAggregatorSourcesStatus");
177
- let body;
178
- body = JSON.stringify(_json(input));
179
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
180
- };
181
- export const se_DescribeConfigurationRecordersCommand = async (input, context) => {
182
- const headers = sharedHeaders("DescribeConfigurationRecorders");
183
- let body;
184
- body = JSON.stringify(_json(input));
185
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
186
- };
187
- export const se_DescribeConfigurationRecorderStatusCommand = async (input, context) => {
188
- const headers = sharedHeaders("DescribeConfigurationRecorderStatus");
189
- let body;
190
- body = JSON.stringify(_json(input));
191
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
192
- };
193
- export const se_DescribeConformancePackComplianceCommand = async (input, context) => {
194
- const headers = sharedHeaders("DescribeConformancePackCompliance");
195
- let body;
196
- body = JSON.stringify(_json(input));
197
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
198
- };
199
- export const se_DescribeConformancePacksCommand = async (input, context) => {
200
- const headers = sharedHeaders("DescribeConformancePacks");
201
- let body;
202
- body = JSON.stringify(_json(input));
203
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
204
- };
205
- export const se_DescribeConformancePackStatusCommand = async (input, context) => {
206
- const headers = sharedHeaders("DescribeConformancePackStatus");
207
- let body;
208
- body = JSON.stringify(_json(input));
209
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
- };
211
- export const se_DescribeDeliveryChannelsCommand = async (input, context) => {
212
- const headers = sharedHeaders("DescribeDeliveryChannels");
213
- let body;
214
- body = JSON.stringify(_json(input));
215
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
216
- };
217
- export const se_DescribeDeliveryChannelStatusCommand = async (input, context) => {
218
- const headers = sharedHeaders("DescribeDeliveryChannelStatus");
219
- let body;
220
- body = JSON.stringify(_json(input));
221
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
222
- };
223
- export const se_DescribeOrganizationConfigRulesCommand = async (input, context) => {
224
- const headers = sharedHeaders("DescribeOrganizationConfigRules");
225
- let body;
226
- body = JSON.stringify(_json(input));
227
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
228
- };
229
- export const se_DescribeOrganizationConfigRuleStatusesCommand = async (input, context) => {
230
- const headers = sharedHeaders("DescribeOrganizationConfigRuleStatuses");
231
- let body;
232
- body = JSON.stringify(_json(input));
233
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
234
- };
235
- export const se_DescribeOrganizationConformancePacksCommand = async (input, context) => {
236
- const headers = sharedHeaders("DescribeOrganizationConformancePacks");
237
- let body;
238
- body = JSON.stringify(_json(input));
239
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
240
- };
241
- export const se_DescribeOrganizationConformancePackStatusesCommand = async (input, context) => {
242
- const headers = sharedHeaders("DescribeOrganizationConformancePackStatuses");
243
- let body;
244
- body = JSON.stringify(_json(input));
245
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
- };
247
- export const se_DescribePendingAggregationRequestsCommand = async (input, context) => {
248
- const headers = sharedHeaders("DescribePendingAggregationRequests");
249
- let body;
250
- body = JSON.stringify(_json(input));
251
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
252
- };
253
- export const se_DescribeRemediationConfigurationsCommand = async (input, context) => {
254
- const headers = sharedHeaders("DescribeRemediationConfigurations");
255
- let body;
256
- body = JSON.stringify(_json(input));
257
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
258
- };
259
- export const se_DescribeRemediationExceptionsCommand = async (input, context) => {
260
- const headers = sharedHeaders("DescribeRemediationExceptions");
261
- let body;
262
- body = JSON.stringify(_json(input));
263
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
264
- };
265
- export const se_DescribeRemediationExecutionStatusCommand = async (input, context) => {
266
- const headers = sharedHeaders("DescribeRemediationExecutionStatus");
267
- let body;
268
- body = JSON.stringify(_json(input));
269
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
270
- };
271
- export const se_DescribeRetentionConfigurationsCommand = async (input, context) => {
272
- const headers = sharedHeaders("DescribeRetentionConfigurations");
273
- let body;
274
- body = JSON.stringify(_json(input));
275
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
276
- };
277
- export const se_DisassociateResourceTypesCommand = async (input, context) => {
278
- const headers = sharedHeaders("DisassociateResourceTypes");
279
- let body;
280
- body = JSON.stringify(_json(input));
281
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
282
- };
283
- export const se_GetAggregateComplianceDetailsByConfigRuleCommand = async (input, context) => {
284
- const headers = sharedHeaders("GetAggregateComplianceDetailsByConfigRule");
285
- let body;
286
- body = JSON.stringify(_json(input));
287
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
288
- };
289
- export const se_GetAggregateConfigRuleComplianceSummaryCommand = async (input, context) => {
290
- const headers = sharedHeaders("GetAggregateConfigRuleComplianceSummary");
291
- let body;
292
- body = JSON.stringify(_json(input));
293
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
294
- };
295
- export const se_GetAggregateConformancePackComplianceSummaryCommand = async (input, context) => {
296
- const headers = sharedHeaders("GetAggregateConformancePackComplianceSummary");
297
- let body;
298
- body = JSON.stringify(_json(input));
299
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
300
- };
301
- export const se_GetAggregateDiscoveredResourceCountsCommand = async (input, context) => {
302
- const headers = sharedHeaders("GetAggregateDiscoveredResourceCounts");
303
- let body;
304
- body = JSON.stringify(_json(input));
305
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
306
- };
307
- export const se_GetAggregateResourceConfigCommand = async (input, context) => {
308
- const headers = sharedHeaders("GetAggregateResourceConfig");
309
- let body;
310
- body = JSON.stringify(_json(input));
311
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
312
- };
313
- export const se_GetComplianceDetailsByConfigRuleCommand = async (input, context) => {
314
- const headers = sharedHeaders("GetComplianceDetailsByConfigRule");
315
- let body;
316
- body = JSON.stringify(_json(input));
317
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
- };
319
- export const se_GetComplianceDetailsByResourceCommand = async (input, context) => {
320
- const headers = sharedHeaders("GetComplianceDetailsByResource");
321
- let body;
322
- body = JSON.stringify(_json(input));
323
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
324
- };
325
- export const se_GetComplianceSummaryByConfigRuleCommand = async (input, context) => {
326
- const headers = sharedHeaders("GetComplianceSummaryByConfigRule");
327
- const body = "{}";
328
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
329
- };
330
- export const se_GetComplianceSummaryByResourceTypeCommand = async (input, context) => {
331
- const headers = sharedHeaders("GetComplianceSummaryByResourceType");
332
- let body;
333
- body = JSON.stringify(_json(input));
334
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
335
- };
336
- export const se_GetConformancePackComplianceDetailsCommand = async (input, context) => {
337
- const headers = sharedHeaders("GetConformancePackComplianceDetails");
338
- let body;
339
- body = JSON.stringify(_json(input));
340
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
341
- };
342
- export const se_GetConformancePackComplianceSummaryCommand = async (input, context) => {
343
- const headers = sharedHeaders("GetConformancePackComplianceSummary");
344
- let body;
345
- body = JSON.stringify(_json(input));
346
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
347
- };
348
- export const se_GetCustomRulePolicyCommand = async (input, context) => {
349
- const headers = sharedHeaders("GetCustomRulePolicy");
350
- let body;
351
- body = JSON.stringify(_json(input));
352
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
353
- };
354
- export const se_GetDiscoveredResourceCountsCommand = async (input, context) => {
355
- const headers = sharedHeaders("GetDiscoveredResourceCounts");
356
- let body;
357
- body = JSON.stringify(_json(input));
358
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
359
- };
360
- export const se_GetOrganizationConfigRuleDetailedStatusCommand = async (input, context) => {
361
- const headers = sharedHeaders("GetOrganizationConfigRuleDetailedStatus");
362
- let body;
363
- body = JSON.stringify(_json(input));
364
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
365
- };
366
- export const se_GetOrganizationConformancePackDetailedStatusCommand = async (input, context) => {
367
- const headers = sharedHeaders("GetOrganizationConformancePackDetailedStatus");
368
- let body;
369
- body = JSON.stringify(_json(input));
370
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
371
- };
372
- export const se_GetOrganizationCustomRulePolicyCommand = async (input, context) => {
373
- const headers = sharedHeaders("GetOrganizationCustomRulePolicy");
374
- let body;
375
- body = JSON.stringify(_json(input));
376
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
377
- };
378
- export const se_GetResourceConfigHistoryCommand = async (input, context) => {
379
- const headers = sharedHeaders("GetResourceConfigHistory");
380
- let body;
381
- body = JSON.stringify(se_GetResourceConfigHistoryRequest(input, context));
382
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
383
- };
384
- export const se_GetResourceEvaluationSummaryCommand = async (input, context) => {
385
- const headers = sharedHeaders("GetResourceEvaluationSummary");
386
- let body;
387
- body = JSON.stringify(_json(input));
388
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
389
- };
390
- export const se_GetStoredQueryCommand = async (input, context) => {
391
- const headers = sharedHeaders("GetStoredQuery");
392
- let body;
393
- body = JSON.stringify(_json(input));
394
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
395
- };
396
- export const se_ListAggregateDiscoveredResourcesCommand = async (input, context) => {
397
- const headers = sharedHeaders("ListAggregateDiscoveredResources");
398
- let body;
399
- body = JSON.stringify(_json(input));
400
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
401
- };
402
- export const se_ListConfigurationRecordersCommand = async (input, context) => {
403
- const headers = sharedHeaders("ListConfigurationRecorders");
404
- let body;
405
- body = JSON.stringify(_json(input));
406
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
407
- };
408
- export const se_ListConformancePackComplianceScoresCommand = async (input, context) => {
409
- const headers = sharedHeaders("ListConformancePackComplianceScores");
410
- let body;
411
- body = JSON.stringify(_json(input));
412
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
413
- };
414
- export const se_ListDiscoveredResourcesCommand = async (input, context) => {
415
- const headers = sharedHeaders("ListDiscoveredResources");
416
- let body;
417
- body = JSON.stringify(_json(input));
418
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
419
- };
420
- export const se_ListResourceEvaluationsCommand = async (input, context) => {
421
- const headers = sharedHeaders("ListResourceEvaluations");
422
- let body;
423
- body = JSON.stringify(se_ListResourceEvaluationsRequest(input, context));
424
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
425
- };
426
- export const se_ListStoredQueriesCommand = async (input, context) => {
427
- const headers = sharedHeaders("ListStoredQueries");
428
- let body;
429
- body = JSON.stringify(_json(input));
430
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
431
- };
432
- export const se_ListTagsForResourceCommand = async (input, context) => {
433
- const headers = sharedHeaders("ListTagsForResource");
434
- let body;
435
- body = JSON.stringify(_json(input));
436
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
437
- };
438
- export const se_PutAggregationAuthorizationCommand = async (input, context) => {
439
- const headers = sharedHeaders("PutAggregationAuthorization");
440
- let body;
441
- body = JSON.stringify(_json(input));
442
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
443
- };
444
- export const se_PutConfigRuleCommand = async (input, context) => {
445
- const headers = sharedHeaders("PutConfigRule");
446
- let body;
447
- body = JSON.stringify(_json(input));
448
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
449
- };
450
- export const se_PutConfigurationAggregatorCommand = async (input, context) => {
451
- const headers = sharedHeaders("PutConfigurationAggregator");
452
- let body;
453
- body = JSON.stringify(_json(input));
454
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
455
- };
456
- export const se_PutConfigurationRecorderCommand = async (input, context) => {
457
- const headers = sharedHeaders("PutConfigurationRecorder");
458
- let body;
459
- body = JSON.stringify(_json(input));
460
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
461
- };
462
- export const se_PutConformancePackCommand = async (input, context) => {
463
- const headers = sharedHeaders("PutConformancePack");
464
- let body;
465
- body = JSON.stringify(_json(input));
466
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
467
- };
468
- export const se_PutDeliveryChannelCommand = async (input, context) => {
469
- const headers = sharedHeaders("PutDeliveryChannel");
470
- let body;
471
- body = JSON.stringify(_json(input));
472
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
473
- };
474
- export const se_PutEvaluationsCommand = async (input, context) => {
475
- const headers = sharedHeaders("PutEvaluations");
476
- let body;
477
- body = JSON.stringify(se_PutEvaluationsRequest(input, context));
478
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
479
- };
480
- export const se_PutExternalEvaluationCommand = async (input, context) => {
481
- const headers = sharedHeaders("PutExternalEvaluation");
482
- let body;
483
- body = JSON.stringify(se_PutExternalEvaluationRequest(input, context));
484
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
485
- };
486
- export const se_PutOrganizationConfigRuleCommand = async (input, context) => {
487
- const headers = sharedHeaders("PutOrganizationConfigRule");
488
- let body;
489
- body = JSON.stringify(_json(input));
490
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
491
- };
492
- export const se_PutOrganizationConformancePackCommand = async (input, context) => {
493
- const headers = sharedHeaders("PutOrganizationConformancePack");
494
- let body;
495
- body = JSON.stringify(_json(input));
496
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
497
- };
498
- export const se_PutRemediationConfigurationsCommand = async (input, context) => {
499
- const headers = sharedHeaders("PutRemediationConfigurations");
500
- let body;
501
- body = JSON.stringify(_json(input));
502
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
503
- };
504
- export const se_PutRemediationExceptionsCommand = async (input, context) => {
505
- const headers = sharedHeaders("PutRemediationExceptions");
506
- let body;
507
- body = JSON.stringify(se_PutRemediationExceptionsRequest(input, context));
508
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
509
- };
510
- export const se_PutResourceConfigCommand = async (input, context) => {
511
- const headers = sharedHeaders("PutResourceConfig");
512
- let body;
513
- body = JSON.stringify(_json(input));
514
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
515
- };
516
- export const se_PutRetentionConfigurationCommand = async (input, context) => {
517
- const headers = sharedHeaders("PutRetentionConfiguration");
518
- let body;
519
- body = JSON.stringify(_json(input));
520
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
521
- };
522
- export const se_PutServiceLinkedConfigurationRecorderCommand = async (input, context) => {
523
- const headers = sharedHeaders("PutServiceLinkedConfigurationRecorder");
524
- let body;
525
- body = JSON.stringify(_json(input));
526
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
527
- };
528
- export const se_PutStoredQueryCommand = async (input, context) => {
529
- const headers = sharedHeaders("PutStoredQuery");
530
- let body;
531
- body = JSON.stringify(_json(input));
532
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
533
- };
534
- export const se_SelectAggregateResourceConfigCommand = async (input, context) => {
535
- const headers = sharedHeaders("SelectAggregateResourceConfig");
536
- let body;
537
- body = JSON.stringify(_json(input));
538
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
539
- };
540
- export const se_SelectResourceConfigCommand = async (input, context) => {
541
- const headers = sharedHeaders("SelectResourceConfig");
542
- let body;
543
- body = JSON.stringify(_json(input));
544
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
545
- };
546
- export const se_StartConfigRulesEvaluationCommand = async (input, context) => {
547
- const headers = sharedHeaders("StartConfigRulesEvaluation");
548
- let body;
549
- body = JSON.stringify(_json(input));
550
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
551
- };
552
- export const se_StartConfigurationRecorderCommand = async (input, context) => {
553
- const headers = sharedHeaders("StartConfigurationRecorder");
554
- let body;
555
- body = JSON.stringify(_json(input));
556
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
557
- };
558
- export const se_StartRemediationExecutionCommand = async (input, context) => {
559
- const headers = sharedHeaders("StartRemediationExecution");
560
- let body;
561
- body = JSON.stringify(_json(input));
562
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
563
- };
564
- export const se_StartResourceEvaluationCommand = async (input, context) => {
565
- const headers = sharedHeaders("StartResourceEvaluation");
566
- let body;
567
- body = JSON.stringify(_json(input));
568
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
569
- };
570
- export const se_StopConfigurationRecorderCommand = async (input, context) => {
571
- const headers = sharedHeaders("StopConfigurationRecorder");
572
- let body;
573
- body = JSON.stringify(_json(input));
574
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
575
- };
576
- export const se_TagResourceCommand = async (input, context) => {
577
- const headers = sharedHeaders("TagResource");
578
- let body;
579
- body = JSON.stringify(_json(input));
580
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
581
- };
582
- export const se_UntagResourceCommand = async (input, context) => {
583
- const headers = sharedHeaders("UntagResource");
584
- let body;
585
- body = JSON.stringify(_json(input));
586
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
587
- };
588
- export const de_AssociateResourceTypesCommand = async (output, context) => {
589
- if (output.statusCode >= 300) {
590
- return de_CommandError(output, context);
591
- }
592
- const data = await parseBody(output.body, context);
593
- let contents = {};
594
- contents = _json(data);
595
- const response = {
596
- $metadata: deserializeMetadata(output),
597
- ...contents,
598
- };
599
- return response;
600
- };
601
- export const de_BatchGetAggregateResourceConfigCommand = async (output, context) => {
602
- if (output.statusCode >= 300) {
603
- return de_CommandError(output, context);
604
- }
605
- const data = await parseBody(output.body, context);
606
- let contents = {};
607
- contents = de_BatchGetAggregateResourceConfigResponse(data, context);
608
- const response = {
609
- $metadata: deserializeMetadata(output),
610
- ...contents,
611
- };
612
- return response;
613
- };
614
- export const de_BatchGetResourceConfigCommand = async (output, context) => {
615
- if (output.statusCode >= 300) {
616
- return de_CommandError(output, context);
617
- }
618
- const data = await parseBody(output.body, context);
619
- let contents = {};
620
- contents = de_BatchGetResourceConfigResponse(data, context);
621
- const response = {
622
- $metadata: deserializeMetadata(output),
623
- ...contents,
624
- };
625
- return response;
626
- };
627
- export const de_DeleteAggregationAuthorizationCommand = async (output, context) => {
628
- if (output.statusCode >= 300) {
629
- return de_CommandError(output, context);
630
- }
631
- await collectBody(output.body, context);
632
- const response = {
633
- $metadata: deserializeMetadata(output),
634
- };
635
- return response;
636
- };
637
- export const de_DeleteConfigRuleCommand = async (output, context) => {
638
- if (output.statusCode >= 300) {
639
- return de_CommandError(output, context);
640
- }
641
- await collectBody(output.body, context);
642
- const response = {
643
- $metadata: deserializeMetadata(output),
644
- };
645
- return response;
646
- };
647
- export const de_DeleteConfigurationAggregatorCommand = async (output, context) => {
648
- if (output.statusCode >= 300) {
649
- return de_CommandError(output, context);
650
- }
651
- await collectBody(output.body, context);
652
- const response = {
653
- $metadata: deserializeMetadata(output),
654
- };
655
- return response;
656
- };
657
- export const de_DeleteConfigurationRecorderCommand = async (output, context) => {
658
- if (output.statusCode >= 300) {
659
- return de_CommandError(output, context);
660
- }
661
- await collectBody(output.body, context);
662
- const response = {
663
- $metadata: deserializeMetadata(output),
664
- };
665
- return response;
666
- };
667
- export const de_DeleteConformancePackCommand = async (output, context) => {
668
- if (output.statusCode >= 300) {
669
- return de_CommandError(output, context);
670
- }
671
- await collectBody(output.body, context);
672
- const response = {
673
- $metadata: deserializeMetadata(output),
674
- };
675
- return response;
676
- };
677
- export const de_DeleteDeliveryChannelCommand = async (output, context) => {
678
- if (output.statusCode >= 300) {
679
- return de_CommandError(output, context);
680
- }
681
- await collectBody(output.body, context);
682
- const response = {
683
- $metadata: deserializeMetadata(output),
684
- };
685
- return response;
686
- };
687
- export const de_DeleteEvaluationResultsCommand = async (output, context) => {
688
- if (output.statusCode >= 300) {
689
- return de_CommandError(output, context);
690
- }
691
- const data = await parseBody(output.body, context);
692
- let contents = {};
693
- contents = _json(data);
694
- const response = {
695
- $metadata: deserializeMetadata(output),
696
- ...contents,
697
- };
698
- return response;
699
- };
700
- export const de_DeleteOrganizationConfigRuleCommand = async (output, context) => {
701
- if (output.statusCode >= 300) {
702
- return de_CommandError(output, context);
703
- }
704
- await collectBody(output.body, context);
705
- const response = {
706
- $metadata: deserializeMetadata(output),
707
- };
708
- return response;
709
- };
710
- export const de_DeleteOrganizationConformancePackCommand = async (output, context) => {
711
- if (output.statusCode >= 300) {
712
- return de_CommandError(output, context);
713
- }
714
- await collectBody(output.body, context);
715
- const response = {
716
- $metadata: deserializeMetadata(output),
717
- };
718
- return response;
719
- };
720
- export const de_DeletePendingAggregationRequestCommand = async (output, context) => {
721
- if (output.statusCode >= 300) {
722
- return de_CommandError(output, context);
723
- }
724
- await collectBody(output.body, context);
725
- const response = {
726
- $metadata: deserializeMetadata(output),
727
- };
728
- return response;
729
- };
730
- export const de_DeleteRemediationConfigurationCommand = async (output, context) => {
731
- if (output.statusCode >= 300) {
732
- return de_CommandError(output, context);
733
- }
734
- const data = await parseBody(output.body, context);
735
- let contents = {};
736
- contents = _json(data);
737
- const response = {
738
- $metadata: deserializeMetadata(output),
739
- ...contents,
740
- };
741
- return response;
742
- };
743
- export const de_DeleteRemediationExceptionsCommand = async (output, context) => {
744
- if (output.statusCode >= 300) {
745
- return de_CommandError(output, context);
746
- }
747
- const data = await parseBody(output.body, context);
748
- let contents = {};
749
- contents = _json(data);
750
- const response = {
751
- $metadata: deserializeMetadata(output),
752
- ...contents,
753
- };
754
- return response;
755
- };
756
- export const de_DeleteResourceConfigCommand = async (output, context) => {
757
- if (output.statusCode >= 300) {
758
- return de_CommandError(output, context);
759
- }
760
- await collectBody(output.body, context);
761
- const response = {
762
- $metadata: deserializeMetadata(output),
763
- };
764
- return response;
765
- };
766
- export const de_DeleteRetentionConfigurationCommand = async (output, context) => {
767
- if (output.statusCode >= 300) {
768
- return de_CommandError(output, context);
769
- }
770
- await collectBody(output.body, context);
771
- const response = {
772
- $metadata: deserializeMetadata(output),
773
- };
774
- return response;
775
- };
776
- export const de_DeleteServiceLinkedConfigurationRecorderCommand = async (output, context) => {
777
- if (output.statusCode >= 300) {
778
- return de_CommandError(output, context);
779
- }
780
- const data = await parseBody(output.body, context);
781
- let contents = {};
782
- contents = _json(data);
783
- const response = {
784
- $metadata: deserializeMetadata(output),
785
- ...contents,
786
- };
787
- return response;
788
- };
789
- export const de_DeleteStoredQueryCommand = async (output, context) => {
790
- if (output.statusCode >= 300) {
791
- return de_CommandError(output, context);
792
- }
793
- const data = await parseBody(output.body, context);
794
- let contents = {};
795
- contents = _json(data);
796
- const response = {
797
- $metadata: deserializeMetadata(output),
798
- ...contents,
799
- };
800
- return response;
801
- };
802
- export const de_DeliverConfigSnapshotCommand = async (output, context) => {
803
- if (output.statusCode >= 300) {
804
- return de_CommandError(output, context);
805
- }
806
- const data = await parseBody(output.body, context);
807
- let contents = {};
808
- contents = _json(data);
809
- const response = {
810
- $metadata: deserializeMetadata(output),
811
- ...contents,
812
- };
813
- return response;
814
- };
815
- export const de_DescribeAggregateComplianceByConfigRulesCommand = async (output, context) => {
816
- if (output.statusCode >= 300) {
817
- return de_CommandError(output, context);
818
- }
819
- const data = await parseBody(output.body, context);
820
- let contents = {};
821
- contents = _json(data);
822
- const response = {
823
- $metadata: deserializeMetadata(output),
824
- ...contents,
825
- };
826
- return response;
827
- };
828
- export const de_DescribeAggregateComplianceByConformancePacksCommand = async (output, context) => {
829
- if (output.statusCode >= 300) {
830
- return de_CommandError(output, context);
831
- }
832
- const data = await parseBody(output.body, context);
833
- let contents = {};
834
- contents = _json(data);
835
- const response = {
836
- $metadata: deserializeMetadata(output),
837
- ...contents,
838
- };
839
- return response;
840
- };
841
- export const de_DescribeAggregationAuthorizationsCommand = async (output, context) => {
842
- if (output.statusCode >= 300) {
843
- return de_CommandError(output, context);
844
- }
845
- const data = await parseBody(output.body, context);
846
- let contents = {};
847
- contents = de_DescribeAggregationAuthorizationsResponse(data, context);
848
- const response = {
849
- $metadata: deserializeMetadata(output),
850
- ...contents,
851
- };
852
- return response;
853
- };
854
- export const de_DescribeComplianceByConfigRuleCommand = async (output, context) => {
855
- if (output.statusCode >= 300) {
856
- return de_CommandError(output, context);
857
- }
858
- const data = await parseBody(output.body, context);
859
- let contents = {};
860
- contents = _json(data);
861
- const response = {
862
- $metadata: deserializeMetadata(output),
863
- ...contents,
864
- };
865
- return response;
866
- };
867
- export const de_DescribeComplianceByResourceCommand = async (output, context) => {
868
- if (output.statusCode >= 300) {
869
- return de_CommandError(output, context);
870
- }
871
- const data = await parseBody(output.body, context);
872
- let contents = {};
873
- contents = _json(data);
874
- const response = {
875
- $metadata: deserializeMetadata(output),
876
- ...contents,
877
- };
878
- return response;
879
- };
880
- export const de_DescribeConfigRuleEvaluationStatusCommand = async (output, context) => {
881
- if (output.statusCode >= 300) {
882
- return de_CommandError(output, context);
883
- }
884
- const data = await parseBody(output.body, context);
885
- let contents = {};
886
- contents = de_DescribeConfigRuleEvaluationStatusResponse(data, context);
887
- const response = {
888
- $metadata: deserializeMetadata(output),
889
- ...contents,
890
- };
891
- return response;
892
- };
893
- export const de_DescribeConfigRulesCommand = async (output, context) => {
894
- if (output.statusCode >= 300) {
895
- return de_CommandError(output, context);
896
- }
897
- const data = await parseBody(output.body, context);
898
- let contents = {};
899
- contents = _json(data);
900
- const response = {
901
- $metadata: deserializeMetadata(output),
902
- ...contents,
903
- };
904
- return response;
905
- };
906
- export const de_DescribeConfigurationAggregatorsCommand = async (output, context) => {
907
- if (output.statusCode >= 300) {
908
- return de_CommandError(output, context);
909
- }
910
- const data = await parseBody(output.body, context);
911
- let contents = {};
912
- contents = de_DescribeConfigurationAggregatorsResponse(data, context);
913
- const response = {
914
- $metadata: deserializeMetadata(output),
915
- ...contents,
916
- };
917
- return response;
918
- };
919
- export const de_DescribeConfigurationAggregatorSourcesStatusCommand = async (output, context) => {
920
- if (output.statusCode >= 300) {
921
- return de_CommandError(output, context);
922
- }
923
- const data = await parseBody(output.body, context);
924
- let contents = {};
925
- contents = de_DescribeConfigurationAggregatorSourcesStatusResponse(data, context);
926
- const response = {
927
- $metadata: deserializeMetadata(output),
928
- ...contents,
929
- };
930
- return response;
931
- };
932
- export const de_DescribeConfigurationRecordersCommand = async (output, context) => {
933
- if (output.statusCode >= 300) {
934
- return de_CommandError(output, context);
935
- }
936
- const data = await parseBody(output.body, context);
937
- let contents = {};
938
- contents = _json(data);
939
- const response = {
940
- $metadata: deserializeMetadata(output),
941
- ...contents,
942
- };
943
- return response;
944
- };
945
- export const de_DescribeConfigurationRecorderStatusCommand = async (output, context) => {
946
- if (output.statusCode >= 300) {
947
- return de_CommandError(output, context);
948
- }
949
- const data = await parseBody(output.body, context);
950
- let contents = {};
951
- contents = de_DescribeConfigurationRecorderStatusResponse(data, context);
952
- const response = {
953
- $metadata: deserializeMetadata(output),
954
- ...contents,
955
- };
956
- return response;
957
- };
958
- export const de_DescribeConformancePackComplianceCommand = async (output, context) => {
959
- if (output.statusCode >= 300) {
960
- return de_CommandError(output, context);
961
- }
962
- const data = await parseBody(output.body, context);
963
- let contents = {};
964
- contents = _json(data);
965
- const response = {
966
- $metadata: deserializeMetadata(output),
967
- ...contents,
968
- };
969
- return response;
970
- };
971
- export const de_DescribeConformancePacksCommand = async (output, context) => {
972
- if (output.statusCode >= 300) {
973
- return de_CommandError(output, context);
974
- }
975
- const data = await parseBody(output.body, context);
976
- let contents = {};
977
- contents = de_DescribeConformancePacksResponse(data, context);
978
- const response = {
979
- $metadata: deserializeMetadata(output),
980
- ...contents,
981
- };
982
- return response;
983
- };
984
- export const de_DescribeConformancePackStatusCommand = async (output, context) => {
985
- if (output.statusCode >= 300) {
986
- return de_CommandError(output, context);
987
- }
988
- const data = await parseBody(output.body, context);
989
- let contents = {};
990
- contents = de_DescribeConformancePackStatusResponse(data, context);
991
- const response = {
992
- $metadata: deserializeMetadata(output),
993
- ...contents,
994
- };
995
- return response;
996
- };
997
- export const de_DescribeDeliveryChannelsCommand = async (output, context) => {
998
- if (output.statusCode >= 300) {
999
- return de_CommandError(output, context);
1000
- }
1001
- const data = await parseBody(output.body, context);
1002
- let contents = {};
1003
- contents = _json(data);
1004
- const response = {
1005
- $metadata: deserializeMetadata(output),
1006
- ...contents,
1007
- };
1008
- return response;
1009
- };
1010
- export const de_DescribeDeliveryChannelStatusCommand = async (output, context) => {
1011
- if (output.statusCode >= 300) {
1012
- return de_CommandError(output, context);
1013
- }
1014
- const data = await parseBody(output.body, context);
1015
- let contents = {};
1016
- contents = de_DescribeDeliveryChannelStatusResponse(data, context);
1017
- const response = {
1018
- $metadata: deserializeMetadata(output),
1019
- ...contents,
1020
- };
1021
- return response;
1022
- };
1023
- export const de_DescribeOrganizationConfigRulesCommand = async (output, context) => {
1024
- if (output.statusCode >= 300) {
1025
- return de_CommandError(output, context);
1026
- }
1027
- const data = await parseBody(output.body, context);
1028
- let contents = {};
1029
- contents = de_DescribeOrganizationConfigRulesResponse(data, context);
1030
- const response = {
1031
- $metadata: deserializeMetadata(output),
1032
- ...contents,
1033
- };
1034
- return response;
1035
- };
1036
- export const de_DescribeOrganizationConfigRuleStatusesCommand = async (output, context) => {
1037
- if (output.statusCode >= 300) {
1038
- return de_CommandError(output, context);
1039
- }
1040
- const data = await parseBody(output.body, context);
1041
- let contents = {};
1042
- contents = de_DescribeOrganizationConfigRuleStatusesResponse(data, context);
1043
- const response = {
1044
- $metadata: deserializeMetadata(output),
1045
- ...contents,
1046
- };
1047
- return response;
1048
- };
1049
- export const de_DescribeOrganizationConformancePacksCommand = async (output, context) => {
1050
- if (output.statusCode >= 300) {
1051
- return de_CommandError(output, context);
1052
- }
1053
- const data = await parseBody(output.body, context);
1054
- let contents = {};
1055
- contents = de_DescribeOrganizationConformancePacksResponse(data, context);
1056
- const response = {
1057
- $metadata: deserializeMetadata(output),
1058
- ...contents,
1059
- };
1060
- return response;
1061
- };
1062
- export const de_DescribeOrganizationConformancePackStatusesCommand = async (output, context) => {
1063
- if (output.statusCode >= 300) {
1064
- return de_CommandError(output, context);
1065
- }
1066
- const data = await parseBody(output.body, context);
1067
- let contents = {};
1068
- contents = de_DescribeOrganizationConformancePackStatusesResponse(data, context);
1069
- const response = {
1070
- $metadata: deserializeMetadata(output),
1071
- ...contents,
1072
- };
1073
- return response;
1074
- };
1075
- export const de_DescribePendingAggregationRequestsCommand = async (output, context) => {
1076
- if (output.statusCode >= 300) {
1077
- return de_CommandError(output, context);
1078
- }
1079
- const data = await parseBody(output.body, context);
1080
- let contents = {};
1081
- contents = _json(data);
1082
- const response = {
1083
- $metadata: deserializeMetadata(output),
1084
- ...contents,
1085
- };
1086
- return response;
1087
- };
1088
- export const de_DescribeRemediationConfigurationsCommand = async (output, context) => {
1089
- if (output.statusCode >= 300) {
1090
- return de_CommandError(output, context);
1091
- }
1092
- const data = await parseBody(output.body, context);
1093
- let contents = {};
1094
- contents = _json(data);
1095
- const response = {
1096
- $metadata: deserializeMetadata(output),
1097
- ...contents,
1098
- };
1099
- return response;
1100
- };
1101
- export const de_DescribeRemediationExceptionsCommand = async (output, context) => {
1102
- if (output.statusCode >= 300) {
1103
- return de_CommandError(output, context);
1104
- }
1105
- const data = await parseBody(output.body, context);
1106
- let contents = {};
1107
- contents = de_DescribeRemediationExceptionsResponse(data, context);
1108
- const response = {
1109
- $metadata: deserializeMetadata(output),
1110
- ...contents,
1111
- };
1112
- return response;
1113
- };
1114
- export const de_DescribeRemediationExecutionStatusCommand = async (output, context) => {
1115
- if (output.statusCode >= 300) {
1116
- return de_CommandError(output, context);
1117
- }
1118
- const data = await parseBody(output.body, context);
1119
- let contents = {};
1120
- contents = de_DescribeRemediationExecutionStatusResponse(data, context);
1121
- const response = {
1122
- $metadata: deserializeMetadata(output),
1123
- ...contents,
1124
- };
1125
- return response;
1126
- };
1127
- export const de_DescribeRetentionConfigurationsCommand = async (output, context) => {
1128
- if (output.statusCode >= 300) {
1129
- return de_CommandError(output, context);
1130
- }
1131
- const data = await parseBody(output.body, context);
1132
- let contents = {};
1133
- contents = _json(data);
1134
- const response = {
1135
- $metadata: deserializeMetadata(output),
1136
- ...contents,
1137
- };
1138
- return response;
1139
- };
1140
- export const de_DisassociateResourceTypesCommand = async (output, context) => {
1141
- if (output.statusCode >= 300) {
1142
- return de_CommandError(output, context);
1143
- }
1144
- const data = await parseBody(output.body, context);
1145
- let contents = {};
1146
- contents = _json(data);
1147
- const response = {
1148
- $metadata: deserializeMetadata(output),
1149
- ...contents,
1150
- };
1151
- return response;
1152
- };
1153
- export const de_GetAggregateComplianceDetailsByConfigRuleCommand = async (output, context) => {
1154
- if (output.statusCode >= 300) {
1155
- return de_CommandError(output, context);
1156
- }
1157
- const data = await parseBody(output.body, context);
1158
- let contents = {};
1159
- contents = de_GetAggregateComplianceDetailsByConfigRuleResponse(data, context);
1160
- const response = {
1161
- $metadata: deserializeMetadata(output),
1162
- ...contents,
1163
- };
1164
- return response;
1165
- };
1166
- export const de_GetAggregateConfigRuleComplianceSummaryCommand = async (output, context) => {
1167
- if (output.statusCode >= 300) {
1168
- return de_CommandError(output, context);
1169
- }
1170
- const data = await parseBody(output.body, context);
1171
- let contents = {};
1172
- contents = de_GetAggregateConfigRuleComplianceSummaryResponse(data, context);
1173
- const response = {
1174
- $metadata: deserializeMetadata(output),
1175
- ...contents,
1176
- };
1177
- return response;
1178
- };
1179
- export const de_GetAggregateConformancePackComplianceSummaryCommand = async (output, context) => {
1180
- if (output.statusCode >= 300) {
1181
- return de_CommandError(output, context);
1182
- }
1183
- const data = await parseBody(output.body, context);
1184
- let contents = {};
1185
- contents = _json(data);
1186
- const response = {
1187
- $metadata: deserializeMetadata(output),
1188
- ...contents,
1189
- };
1190
- return response;
1191
- };
1192
- export const de_GetAggregateDiscoveredResourceCountsCommand = async (output, context) => {
1193
- if (output.statusCode >= 300) {
1194
- return de_CommandError(output, context);
1195
- }
1196
- const data = await parseBody(output.body, context);
1197
- let contents = {};
1198
- contents = _json(data);
1199
- const response = {
1200
- $metadata: deserializeMetadata(output),
1201
- ...contents,
1202
- };
1203
- return response;
1204
- };
1205
- export const de_GetAggregateResourceConfigCommand = async (output, context) => {
1206
- if (output.statusCode >= 300) {
1207
- return de_CommandError(output, context);
1208
- }
1209
- const data = await parseBody(output.body, context);
1210
- let contents = {};
1211
- contents = de_GetAggregateResourceConfigResponse(data, context);
1212
- const response = {
1213
- $metadata: deserializeMetadata(output),
1214
- ...contents,
1215
- };
1216
- return response;
1217
- };
1218
- export const de_GetComplianceDetailsByConfigRuleCommand = async (output, context) => {
1219
- if (output.statusCode >= 300) {
1220
- return de_CommandError(output, context);
1221
- }
1222
- const data = await parseBody(output.body, context);
1223
- let contents = {};
1224
- contents = de_GetComplianceDetailsByConfigRuleResponse(data, context);
1225
- const response = {
1226
- $metadata: deserializeMetadata(output),
1227
- ...contents,
1228
- };
1229
- return response;
1230
- };
1231
- export const de_GetComplianceDetailsByResourceCommand = async (output, context) => {
1232
- if (output.statusCode >= 300) {
1233
- return de_CommandError(output, context);
1234
- }
1235
- const data = await parseBody(output.body, context);
1236
- let contents = {};
1237
- contents = de_GetComplianceDetailsByResourceResponse(data, context);
1238
- const response = {
1239
- $metadata: deserializeMetadata(output),
1240
- ...contents,
1241
- };
1242
- return response;
1243
- };
1244
- export const de_GetComplianceSummaryByConfigRuleCommand = async (output, context) => {
1245
- if (output.statusCode >= 300) {
1246
- return de_CommandError(output, context);
1247
- }
1248
- const data = await parseBody(output.body, context);
1249
- let contents = {};
1250
- contents = de_GetComplianceSummaryByConfigRuleResponse(data, context);
1251
- const response = {
1252
- $metadata: deserializeMetadata(output),
1253
- ...contents,
1254
- };
1255
- return response;
1256
- };
1257
- export const de_GetComplianceSummaryByResourceTypeCommand = async (output, context) => {
1258
- if (output.statusCode >= 300) {
1259
- return de_CommandError(output, context);
1260
- }
1261
- const data = await parseBody(output.body, context);
1262
- let contents = {};
1263
- contents = de_GetComplianceSummaryByResourceTypeResponse(data, context);
1264
- const response = {
1265
- $metadata: deserializeMetadata(output),
1266
- ...contents,
1267
- };
1268
- return response;
1269
- };
1270
- export const de_GetConformancePackComplianceDetailsCommand = async (output, context) => {
1271
- if (output.statusCode >= 300) {
1272
- return de_CommandError(output, context);
1273
- }
1274
- const data = await parseBody(output.body, context);
1275
- let contents = {};
1276
- contents = de_GetConformancePackComplianceDetailsResponse(data, context);
1277
- const response = {
1278
- $metadata: deserializeMetadata(output),
1279
- ...contents,
1280
- };
1281
- return response;
1282
- };
1283
- export const de_GetConformancePackComplianceSummaryCommand = async (output, context) => {
1284
- if (output.statusCode >= 300) {
1285
- return de_CommandError(output, context);
1286
- }
1287
- const data = await parseBody(output.body, context);
1288
- let contents = {};
1289
- contents = _json(data);
1290
- const response = {
1291
- $metadata: deserializeMetadata(output),
1292
- ...contents,
1293
- };
1294
- return response;
1295
- };
1296
- export const de_GetCustomRulePolicyCommand = async (output, context) => {
1297
- if (output.statusCode >= 300) {
1298
- return de_CommandError(output, context);
1299
- }
1300
- const data = await parseBody(output.body, context);
1301
- let contents = {};
1302
- contents = _json(data);
1303
- const response = {
1304
- $metadata: deserializeMetadata(output),
1305
- ...contents,
1306
- };
1307
- return response;
1308
- };
1309
- export const de_GetDiscoveredResourceCountsCommand = async (output, context) => {
1310
- if (output.statusCode >= 300) {
1311
- return de_CommandError(output, context);
1312
- }
1313
- const data = await parseBody(output.body, context);
1314
- let contents = {};
1315
- contents = _json(data);
1316
- const response = {
1317
- $metadata: deserializeMetadata(output),
1318
- ...contents,
1319
- };
1320
- return response;
1321
- };
1322
- export const de_GetOrganizationConfigRuleDetailedStatusCommand = async (output, context) => {
1323
- if (output.statusCode >= 300) {
1324
- return de_CommandError(output, context);
1325
- }
1326
- const data = await parseBody(output.body, context);
1327
- let contents = {};
1328
- contents = de_GetOrganizationConfigRuleDetailedStatusResponse(data, context);
1329
- const response = {
1330
- $metadata: deserializeMetadata(output),
1331
- ...contents,
1332
- };
1333
- return response;
1334
- };
1335
- export const de_GetOrganizationConformancePackDetailedStatusCommand = async (output, context) => {
1336
- if (output.statusCode >= 300) {
1337
- return de_CommandError(output, context);
1338
- }
1339
- const data = await parseBody(output.body, context);
1340
- let contents = {};
1341
- contents = de_GetOrganizationConformancePackDetailedStatusResponse(data, context);
1342
- const response = {
1343
- $metadata: deserializeMetadata(output),
1344
- ...contents,
1345
- };
1346
- return response;
1347
- };
1348
- export const de_GetOrganizationCustomRulePolicyCommand = async (output, context) => {
1349
- if (output.statusCode >= 300) {
1350
- return de_CommandError(output, context);
1351
- }
1352
- const data = await parseBody(output.body, context);
1353
- let contents = {};
1354
- contents = _json(data);
1355
- const response = {
1356
- $metadata: deserializeMetadata(output),
1357
- ...contents,
1358
- };
1359
- return response;
1360
- };
1361
- export const de_GetResourceConfigHistoryCommand = async (output, context) => {
1362
- if (output.statusCode >= 300) {
1363
- return de_CommandError(output, context);
1364
- }
1365
- const data = await parseBody(output.body, context);
1366
- let contents = {};
1367
- contents = de_GetResourceConfigHistoryResponse(data, context);
1368
- const response = {
1369
- $metadata: deserializeMetadata(output),
1370
- ...contents,
1371
- };
1372
- return response;
1373
- };
1374
- export const de_GetResourceEvaluationSummaryCommand = async (output, context) => {
1375
- if (output.statusCode >= 300) {
1376
- return de_CommandError(output, context);
1377
- }
1378
- const data = await parseBody(output.body, context);
1379
- let contents = {};
1380
- contents = de_GetResourceEvaluationSummaryResponse(data, context);
1381
- const response = {
1382
- $metadata: deserializeMetadata(output),
1383
- ...contents,
1384
- };
1385
- return response;
1386
- };
1387
- export const de_GetStoredQueryCommand = async (output, context) => {
1388
- if (output.statusCode >= 300) {
1389
- return de_CommandError(output, context);
1390
- }
1391
- const data = await parseBody(output.body, context);
1392
- let contents = {};
1393
- contents = _json(data);
1394
- const response = {
1395
- $metadata: deserializeMetadata(output),
1396
- ...contents,
1397
- };
1398
- return response;
1399
- };
1400
- export const de_ListAggregateDiscoveredResourcesCommand = async (output, context) => {
1401
- if (output.statusCode >= 300) {
1402
- return de_CommandError(output, context);
1403
- }
1404
- const data = await parseBody(output.body, context);
1405
- let contents = {};
1406
- contents = _json(data);
1407
- const response = {
1408
- $metadata: deserializeMetadata(output),
1409
- ...contents,
1410
- };
1411
- return response;
1412
- };
1413
- export const de_ListConfigurationRecordersCommand = async (output, context) => {
1414
- if (output.statusCode >= 300) {
1415
- return de_CommandError(output, context);
1416
- }
1417
- const data = await parseBody(output.body, context);
1418
- let contents = {};
1419
- contents = _json(data);
1420
- const response = {
1421
- $metadata: deserializeMetadata(output),
1422
- ...contents,
1423
- };
1424
- return response;
1425
- };
1426
- export const de_ListConformancePackComplianceScoresCommand = async (output, context) => {
1427
- if (output.statusCode >= 300) {
1428
- return de_CommandError(output, context);
1429
- }
1430
- const data = await parseBody(output.body, context);
1431
- let contents = {};
1432
- contents = de_ListConformancePackComplianceScoresResponse(data, context);
1433
- const response = {
1434
- $metadata: deserializeMetadata(output),
1435
- ...contents,
1436
- };
1437
- return response;
1438
- };
1439
- export const de_ListDiscoveredResourcesCommand = async (output, context) => {
1440
- if (output.statusCode >= 300) {
1441
- return de_CommandError(output, context);
1442
- }
1443
- const data = await parseBody(output.body, context);
1444
- let contents = {};
1445
- contents = de_ListDiscoveredResourcesResponse(data, context);
1446
- const response = {
1447
- $metadata: deserializeMetadata(output),
1448
- ...contents,
1449
- };
1450
- return response;
1451
- };
1452
- export const de_ListResourceEvaluationsCommand = async (output, context) => {
1453
- if (output.statusCode >= 300) {
1454
- return de_CommandError(output, context);
1455
- }
1456
- const data = await parseBody(output.body, context);
1457
- let contents = {};
1458
- contents = de_ListResourceEvaluationsResponse(data, context);
1459
- const response = {
1460
- $metadata: deserializeMetadata(output),
1461
- ...contents,
1462
- };
1463
- return response;
1464
- };
1465
- export const de_ListStoredQueriesCommand = async (output, context) => {
1466
- if (output.statusCode >= 300) {
1467
- return de_CommandError(output, context);
1468
- }
1469
- const data = await parseBody(output.body, context);
1470
- let contents = {};
1471
- contents = _json(data);
1472
- const response = {
1473
- $metadata: deserializeMetadata(output),
1474
- ...contents,
1475
- };
1476
- return response;
1477
- };
1478
- export const de_ListTagsForResourceCommand = async (output, context) => {
1479
- if (output.statusCode >= 300) {
1480
- return de_CommandError(output, context);
1481
- }
1482
- const data = await parseBody(output.body, context);
1483
- let contents = {};
1484
- contents = _json(data);
1485
- const response = {
1486
- $metadata: deserializeMetadata(output),
1487
- ...contents,
1488
- };
1489
- return response;
1490
- };
1491
- export const de_PutAggregationAuthorizationCommand = async (output, context) => {
1492
- if (output.statusCode >= 300) {
1493
- return de_CommandError(output, context);
1494
- }
1495
- const data = await parseBody(output.body, context);
1496
- let contents = {};
1497
- contents = de_PutAggregationAuthorizationResponse(data, context);
1498
- const response = {
1499
- $metadata: deserializeMetadata(output),
1500
- ...contents,
1501
- };
1502
- return response;
1503
- };
1504
- export const de_PutConfigRuleCommand = async (output, context) => {
1505
- if (output.statusCode >= 300) {
1506
- return de_CommandError(output, context);
1507
- }
1508
- await collectBody(output.body, context);
1509
- const response = {
1510
- $metadata: deserializeMetadata(output),
1511
- };
1512
- return response;
1513
- };
1514
- export const de_PutConfigurationAggregatorCommand = async (output, context) => {
1515
- if (output.statusCode >= 300) {
1516
- return de_CommandError(output, context);
1517
- }
1518
- const data = await parseBody(output.body, context);
1519
- let contents = {};
1520
- contents = de_PutConfigurationAggregatorResponse(data, context);
1521
- const response = {
1522
- $metadata: deserializeMetadata(output),
1523
- ...contents,
1524
- };
1525
- return response;
1526
- };
1527
- export const de_PutConfigurationRecorderCommand = async (output, context) => {
1528
- if (output.statusCode >= 300) {
1529
- return de_CommandError(output, context);
1530
- }
1531
- await collectBody(output.body, context);
1532
- const response = {
1533
- $metadata: deserializeMetadata(output),
1534
- };
1535
- return response;
1536
- };
1537
- export const de_PutConformancePackCommand = async (output, context) => {
1538
- if (output.statusCode >= 300) {
1539
- return de_CommandError(output, context);
1540
- }
1541
- const data = await parseBody(output.body, context);
1542
- let contents = {};
1543
- contents = _json(data);
1544
- const response = {
1545
- $metadata: deserializeMetadata(output),
1546
- ...contents,
1547
- };
1548
- return response;
1549
- };
1550
- export const de_PutDeliveryChannelCommand = async (output, context) => {
1551
- if (output.statusCode >= 300) {
1552
- return de_CommandError(output, context);
1553
- }
1554
- await collectBody(output.body, context);
1555
- const response = {
1556
- $metadata: deserializeMetadata(output),
1557
- };
1558
- return response;
1559
- };
1560
- export const de_PutEvaluationsCommand = async (output, context) => {
1561
- if (output.statusCode >= 300) {
1562
- return de_CommandError(output, context);
1563
- }
1564
- const data = await parseBody(output.body, context);
1565
- let contents = {};
1566
- contents = de_PutEvaluationsResponse(data, context);
1567
- const response = {
1568
- $metadata: deserializeMetadata(output),
1569
- ...contents,
1570
- };
1571
- return response;
1572
- };
1573
- export const de_PutExternalEvaluationCommand = async (output, context) => {
1574
- if (output.statusCode >= 300) {
1575
- return de_CommandError(output, context);
1576
- }
1577
- const data = await parseBody(output.body, context);
1578
- let contents = {};
1579
- contents = _json(data);
1580
- const response = {
1581
- $metadata: deserializeMetadata(output),
1582
- ...contents,
1583
- };
1584
- return response;
1585
- };
1586
- export const de_PutOrganizationConfigRuleCommand = async (output, context) => {
1587
- if (output.statusCode >= 300) {
1588
- return de_CommandError(output, context);
1589
- }
1590
- const data = await parseBody(output.body, context);
1591
- let contents = {};
1592
- contents = _json(data);
1593
- const response = {
1594
- $metadata: deserializeMetadata(output),
1595
- ...contents,
1596
- };
1597
- return response;
1598
- };
1599
- export const de_PutOrganizationConformancePackCommand = async (output, context) => {
1600
- if (output.statusCode >= 300) {
1601
- return de_CommandError(output, context);
1602
- }
1603
- const data = await parseBody(output.body, context);
1604
- let contents = {};
1605
- contents = _json(data);
1606
- const response = {
1607
- $metadata: deserializeMetadata(output),
1608
- ...contents,
1609
- };
1610
- return response;
1611
- };
1612
- export const de_PutRemediationConfigurationsCommand = async (output, context) => {
1613
- if (output.statusCode >= 300) {
1614
- return de_CommandError(output, context);
1615
- }
1616
- const data = await parseBody(output.body, context);
1617
- let contents = {};
1618
- contents = _json(data);
1619
- const response = {
1620
- $metadata: deserializeMetadata(output),
1621
- ...contents,
1622
- };
1623
- return response;
1624
- };
1625
- export const de_PutRemediationExceptionsCommand = async (output, context) => {
1626
- if (output.statusCode >= 300) {
1627
- return de_CommandError(output, context);
1628
- }
1629
- const data = await parseBody(output.body, context);
1630
- let contents = {};
1631
- contents = de_PutRemediationExceptionsResponse(data, context);
1632
- const response = {
1633
- $metadata: deserializeMetadata(output),
1634
- ...contents,
1635
- };
1636
- return response;
1637
- };
1638
- export const de_PutResourceConfigCommand = async (output, context) => {
1639
- if (output.statusCode >= 300) {
1640
- return de_CommandError(output, context);
1641
- }
1642
- await collectBody(output.body, context);
1643
- const response = {
1644
- $metadata: deserializeMetadata(output),
1645
- };
1646
- return response;
1647
- };
1648
- export const de_PutRetentionConfigurationCommand = async (output, context) => {
1649
- if (output.statusCode >= 300) {
1650
- return de_CommandError(output, context);
1651
- }
1652
- const data = await parseBody(output.body, context);
1653
- let contents = {};
1654
- contents = _json(data);
1655
- const response = {
1656
- $metadata: deserializeMetadata(output),
1657
- ...contents,
1658
- };
1659
- return response;
1660
- };
1661
- export const de_PutServiceLinkedConfigurationRecorderCommand = async (output, context) => {
1662
- if (output.statusCode >= 300) {
1663
- return de_CommandError(output, context);
1664
- }
1665
- const data = await parseBody(output.body, context);
1666
- let contents = {};
1667
- contents = _json(data);
1668
- const response = {
1669
- $metadata: deserializeMetadata(output),
1670
- ...contents,
1671
- };
1672
- return response;
1673
- };
1674
- export const de_PutStoredQueryCommand = async (output, context) => {
1675
- if (output.statusCode >= 300) {
1676
- return de_CommandError(output, context);
1677
- }
1678
- const data = await parseBody(output.body, context);
1679
- let contents = {};
1680
- contents = _json(data);
1681
- const response = {
1682
- $metadata: deserializeMetadata(output),
1683
- ...contents,
1684
- };
1685
- return response;
1686
- };
1687
- export const de_SelectAggregateResourceConfigCommand = async (output, context) => {
1688
- if (output.statusCode >= 300) {
1689
- return de_CommandError(output, context);
1690
- }
1691
- const data = await parseBody(output.body, context);
1692
- let contents = {};
1693
- contents = _json(data);
1694
- const response = {
1695
- $metadata: deserializeMetadata(output),
1696
- ...contents,
1697
- };
1698
- return response;
1699
- };
1700
- export const de_SelectResourceConfigCommand = async (output, context) => {
1701
- if (output.statusCode >= 300) {
1702
- return de_CommandError(output, context);
1703
- }
1704
- const data = await parseBody(output.body, context);
1705
- let contents = {};
1706
- contents = _json(data);
1707
- const response = {
1708
- $metadata: deserializeMetadata(output),
1709
- ...contents,
1710
- };
1711
- return response;
1712
- };
1713
- export const de_StartConfigRulesEvaluationCommand = async (output, context) => {
1714
- if (output.statusCode >= 300) {
1715
- return de_CommandError(output, context);
1716
- }
1717
- const data = await parseBody(output.body, context);
1718
- let contents = {};
1719
- contents = _json(data);
1720
- const response = {
1721
- $metadata: deserializeMetadata(output),
1722
- ...contents,
1723
- };
1724
- return response;
1725
- };
1726
- export const de_StartConfigurationRecorderCommand = async (output, context) => {
1727
- if (output.statusCode >= 300) {
1728
- return de_CommandError(output, context);
1729
- }
1730
- await collectBody(output.body, context);
1731
- const response = {
1732
- $metadata: deserializeMetadata(output),
1733
- };
1734
- return response;
1735
- };
1736
- export const de_StartRemediationExecutionCommand = async (output, context) => {
1737
- if (output.statusCode >= 300) {
1738
- return de_CommandError(output, context);
1739
- }
1740
- const data = await parseBody(output.body, context);
1741
- let contents = {};
1742
- contents = _json(data);
1743
- const response = {
1744
- $metadata: deserializeMetadata(output),
1745
- ...contents,
1746
- };
1747
- return response;
1748
- };
1749
- export const de_StartResourceEvaluationCommand = async (output, context) => {
1750
- if (output.statusCode >= 300) {
1751
- return de_CommandError(output, context);
1752
- }
1753
- const data = await parseBody(output.body, context);
1754
- let contents = {};
1755
- contents = _json(data);
1756
- const response = {
1757
- $metadata: deserializeMetadata(output),
1758
- ...contents,
1759
- };
1760
- return response;
1761
- };
1762
- export const de_StopConfigurationRecorderCommand = async (output, context) => {
1763
- if (output.statusCode >= 300) {
1764
- return de_CommandError(output, context);
1765
- }
1766
- await collectBody(output.body, context);
1767
- const response = {
1768
- $metadata: deserializeMetadata(output),
1769
- };
1770
- return response;
1771
- };
1772
- export const de_TagResourceCommand = async (output, context) => {
1773
- if (output.statusCode >= 300) {
1774
- return de_CommandError(output, context);
1775
- }
1776
- await collectBody(output.body, context);
1777
- const response = {
1778
- $metadata: deserializeMetadata(output),
1779
- };
1780
- return response;
1781
- };
1782
- export const de_UntagResourceCommand = async (output, context) => {
1783
- if (output.statusCode >= 300) {
1784
- return de_CommandError(output, context);
1785
- }
1786
- await collectBody(output.body, context);
1787
- const response = {
1788
- $metadata: deserializeMetadata(output),
1789
- };
1790
- return response;
1791
- };
1792
- const de_CommandError = async (output, context) => {
1793
- const parsedOutput = {
1794
- ...output,
1795
- body: await parseErrorBody(output.body, context),
1796
- };
1797
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1798
- switch (errorCode) {
1799
- case "ConflictException":
1800
- case "com.amazonaws.configservice#ConflictException":
1801
- throw await de_ConflictExceptionRes(parsedOutput, context);
1802
- case "NoSuchConfigurationRecorderException":
1803
- case "com.amazonaws.configservice#NoSuchConfigurationRecorderException":
1804
- throw await de_NoSuchConfigurationRecorderExceptionRes(parsedOutput, context);
1805
- case "ValidationException":
1806
- case "com.amazonaws.configservice#ValidationException":
1807
- throw await de_ValidationExceptionRes(parsedOutput, context);
1808
- case "NoSuchConfigurationAggregatorException":
1809
- case "com.amazonaws.configservice#NoSuchConfigurationAggregatorException":
1810
- throw await de_NoSuchConfigurationAggregatorExceptionRes(parsedOutput, context);
1811
- case "NoAvailableConfigurationRecorderException":
1812
- case "com.amazonaws.configservice#NoAvailableConfigurationRecorderException":
1813
- throw await de_NoAvailableConfigurationRecorderExceptionRes(parsedOutput, context);
1814
- case "InvalidParameterValueException":
1815
- case "com.amazonaws.configservice#InvalidParameterValueException":
1816
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1817
- case "NoSuchConfigRuleException":
1818
- case "com.amazonaws.configservice#NoSuchConfigRuleException":
1819
- throw await de_NoSuchConfigRuleExceptionRes(parsedOutput, context);
1820
- case "ResourceInUseException":
1821
- case "com.amazonaws.configservice#ResourceInUseException":
1822
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1823
- case "UnmodifiableEntityException":
1824
- case "com.amazonaws.configservice#UnmodifiableEntityException":
1825
- throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
1826
- case "NoSuchConformancePackException":
1827
- case "com.amazonaws.configservice#NoSuchConformancePackException":
1828
- throw await de_NoSuchConformancePackExceptionRes(parsedOutput, context);
1829
- case "LastDeliveryChannelDeleteFailedException":
1830
- case "com.amazonaws.configservice#LastDeliveryChannelDeleteFailedException":
1831
- throw await de_LastDeliveryChannelDeleteFailedExceptionRes(parsedOutput, context);
1832
- case "NoSuchDeliveryChannelException":
1833
- case "com.amazonaws.configservice#NoSuchDeliveryChannelException":
1834
- throw await de_NoSuchDeliveryChannelExceptionRes(parsedOutput, context);
1835
- case "NoSuchOrganizationConfigRuleException":
1836
- case "com.amazonaws.configservice#NoSuchOrganizationConfigRuleException":
1837
- throw await de_NoSuchOrganizationConfigRuleExceptionRes(parsedOutput, context);
1838
- case "OrganizationAccessDeniedException":
1839
- case "com.amazonaws.configservice#OrganizationAccessDeniedException":
1840
- throw await de_OrganizationAccessDeniedExceptionRes(parsedOutput, context);
1841
- case "NoSuchOrganizationConformancePackException":
1842
- case "com.amazonaws.configservice#NoSuchOrganizationConformancePackException":
1843
- throw await de_NoSuchOrganizationConformancePackExceptionRes(parsedOutput, context);
1844
- case "InsufficientPermissionsException":
1845
- case "com.amazonaws.configservice#InsufficientPermissionsException":
1846
- throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
1847
- case "NoSuchRemediationConfigurationException":
1848
- case "com.amazonaws.configservice#NoSuchRemediationConfigurationException":
1849
- throw await de_NoSuchRemediationConfigurationExceptionRes(parsedOutput, context);
1850
- case "RemediationInProgressException":
1851
- case "com.amazonaws.configservice#RemediationInProgressException":
1852
- throw await de_RemediationInProgressExceptionRes(parsedOutput, context);
1853
- case "NoSuchRemediationExceptionException":
1854
- case "com.amazonaws.configservice#NoSuchRemediationExceptionException":
1855
- throw await de_NoSuchRemediationExceptionExceptionRes(parsedOutput, context);
1856
- case "NoRunningConfigurationRecorderException":
1857
- case "com.amazonaws.configservice#NoRunningConfigurationRecorderException":
1858
- throw await de_NoRunningConfigurationRecorderExceptionRes(parsedOutput, context);
1859
- case "NoSuchRetentionConfigurationException":
1860
- case "com.amazonaws.configservice#NoSuchRetentionConfigurationException":
1861
- throw await de_NoSuchRetentionConfigurationExceptionRes(parsedOutput, context);
1862
- case "ResourceNotFoundException":
1863
- case "com.amazonaws.configservice#ResourceNotFoundException":
1864
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1865
- case "InvalidLimitException":
1866
- case "com.amazonaws.configservice#InvalidLimitException":
1867
- throw await de_InvalidLimitExceptionRes(parsedOutput, context);
1868
- case "InvalidNextTokenException":
1869
- case "com.amazonaws.configservice#InvalidNextTokenException":
1870
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1871
- case "NoSuchConfigRuleInConformancePackException":
1872
- case "com.amazonaws.configservice#NoSuchConfigRuleInConformancePackException":
1873
- throw await de_NoSuchConfigRuleInConformancePackExceptionRes(parsedOutput, context);
1874
- case "OversizedConfigurationItemException":
1875
- case "com.amazonaws.configservice#OversizedConfigurationItemException":
1876
- throw await de_OversizedConfigurationItemExceptionRes(parsedOutput, context);
1877
- case "ResourceNotDiscoveredException":
1878
- case "com.amazonaws.configservice#ResourceNotDiscoveredException":
1879
- throw await de_ResourceNotDiscoveredExceptionRes(parsedOutput, context);
1880
- case "InvalidTimeRangeException":
1881
- case "com.amazonaws.configservice#InvalidTimeRangeException":
1882
- throw await de_InvalidTimeRangeExceptionRes(parsedOutput, context);
1883
- case "MaxNumberOfConfigRulesExceededException":
1884
- case "com.amazonaws.configservice#MaxNumberOfConfigRulesExceededException":
1885
- throw await de_MaxNumberOfConfigRulesExceededExceptionRes(parsedOutput, context);
1886
- case "InvalidRoleException":
1887
- case "com.amazonaws.configservice#InvalidRoleException":
1888
- throw await de_InvalidRoleExceptionRes(parsedOutput, context);
1889
- case "LimitExceededException":
1890
- case "com.amazonaws.configservice#LimitExceededException":
1891
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1892
- case "NoAvailableOrganizationException":
1893
- case "com.amazonaws.configservice#NoAvailableOrganizationException":
1894
- throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
1895
- case "OrganizationAllFeaturesNotEnabledException":
1896
- case "com.amazonaws.configservice#OrganizationAllFeaturesNotEnabledException":
1897
- throw await de_OrganizationAllFeaturesNotEnabledExceptionRes(parsedOutput, context);
1898
- case "InvalidConfigurationRecorderNameException":
1899
- case "com.amazonaws.configservice#InvalidConfigurationRecorderNameException":
1900
- throw await de_InvalidConfigurationRecorderNameExceptionRes(parsedOutput, context);
1901
- case "InvalidRecordingGroupException":
1902
- case "com.amazonaws.configservice#InvalidRecordingGroupException":
1903
- throw await de_InvalidRecordingGroupExceptionRes(parsedOutput, context);
1904
- case "MaxNumberOfConfigurationRecordersExceededException":
1905
- case "com.amazonaws.configservice#MaxNumberOfConfigurationRecordersExceededException":
1906
- throw await de_MaxNumberOfConfigurationRecordersExceededExceptionRes(parsedOutput, context);
1907
- case "ConformancePackTemplateValidationException":
1908
- case "com.amazonaws.configservice#ConformancePackTemplateValidationException":
1909
- throw await de_ConformancePackTemplateValidationExceptionRes(parsedOutput, context);
1910
- case "MaxNumberOfConformancePacksExceededException":
1911
- case "com.amazonaws.configservice#MaxNumberOfConformancePacksExceededException":
1912
- throw await de_MaxNumberOfConformancePacksExceededExceptionRes(parsedOutput, context);
1913
- case "InsufficientDeliveryPolicyException":
1914
- case "com.amazonaws.configservice#InsufficientDeliveryPolicyException":
1915
- throw await de_InsufficientDeliveryPolicyExceptionRes(parsedOutput, context);
1916
- case "InvalidDeliveryChannelNameException":
1917
- case "com.amazonaws.configservice#InvalidDeliveryChannelNameException":
1918
- throw await de_InvalidDeliveryChannelNameExceptionRes(parsedOutput, context);
1919
- case "InvalidS3KeyPrefixException":
1920
- case "com.amazonaws.configservice#InvalidS3KeyPrefixException":
1921
- throw await de_InvalidS3KeyPrefixExceptionRes(parsedOutput, context);
1922
- case "InvalidS3KmsKeyArnException":
1923
- case "com.amazonaws.configservice#InvalidS3KmsKeyArnException":
1924
- throw await de_InvalidS3KmsKeyArnExceptionRes(parsedOutput, context);
1925
- case "InvalidSNSTopicARNException":
1926
- case "com.amazonaws.configservice#InvalidSNSTopicARNException":
1927
- throw await de_InvalidSNSTopicARNExceptionRes(parsedOutput, context);
1928
- case "MaxNumberOfDeliveryChannelsExceededException":
1929
- case "com.amazonaws.configservice#MaxNumberOfDeliveryChannelsExceededException":
1930
- throw await de_MaxNumberOfDeliveryChannelsExceededExceptionRes(parsedOutput, context);
1931
- case "NoSuchBucketException":
1932
- case "com.amazonaws.configservice#NoSuchBucketException":
1933
- throw await de_NoSuchBucketExceptionRes(parsedOutput, context);
1934
- case "InvalidResultTokenException":
1935
- case "com.amazonaws.configservice#InvalidResultTokenException":
1936
- throw await de_InvalidResultTokenExceptionRes(parsedOutput, context);
1937
- case "MaxNumberOfOrganizationConfigRulesExceededException":
1938
- case "com.amazonaws.configservice#MaxNumberOfOrganizationConfigRulesExceededException":
1939
- throw await de_MaxNumberOfOrganizationConfigRulesExceededExceptionRes(parsedOutput, context);
1940
- case "MaxNumberOfOrganizationConformancePacksExceededException":
1941
- case "com.amazonaws.configservice#MaxNumberOfOrganizationConformancePacksExceededException":
1942
- throw await de_MaxNumberOfOrganizationConformancePacksExceededExceptionRes(parsedOutput, context);
1943
- case "OrganizationConformancePackTemplateValidationException":
1944
- case "com.amazonaws.configservice#OrganizationConformancePackTemplateValidationException":
1945
- throw await de_OrganizationConformancePackTemplateValidationExceptionRes(parsedOutput, context);
1946
- case "MaxActiveResourcesExceededException":
1947
- case "com.amazonaws.configservice#MaxActiveResourcesExceededException":
1948
- throw await de_MaxActiveResourcesExceededExceptionRes(parsedOutput, context);
1949
- case "MaxNumberOfRetentionConfigurationsExceededException":
1950
- case "com.amazonaws.configservice#MaxNumberOfRetentionConfigurationsExceededException":
1951
- throw await de_MaxNumberOfRetentionConfigurationsExceededExceptionRes(parsedOutput, context);
1952
- case "ResourceConcurrentModificationException":
1953
- case "com.amazonaws.configservice#ResourceConcurrentModificationException":
1954
- throw await de_ResourceConcurrentModificationExceptionRes(parsedOutput, context);
1955
- case "TooManyTagsException":
1956
- case "com.amazonaws.configservice#TooManyTagsException":
1957
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1958
- case "InvalidExpressionException":
1959
- case "com.amazonaws.configservice#InvalidExpressionException":
1960
- throw await de_InvalidExpressionExceptionRes(parsedOutput, context);
1961
- case "NoAvailableDeliveryChannelException":
1962
- case "com.amazonaws.configservice#NoAvailableDeliveryChannelException":
1963
- throw await de_NoAvailableDeliveryChannelExceptionRes(parsedOutput, context);
1964
- case "IdempotentParameterMismatch":
1965
- case "com.amazonaws.configservice#IdempotentParameterMismatch":
1966
- throw await de_IdempotentParameterMismatchRes(parsedOutput, context);
1967
- default:
1968
- const parsedBody = parsedOutput.body;
1969
- return throwDefaultError({
1970
- output,
1971
- parsedBody,
1972
- errorCode,
1973
- });
1974
- }
1975
- };
1976
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
1977
- const body = parsedOutput.body;
1978
- const deserialized = _json(body);
1979
- const exception = new ConflictException({
1980
- $metadata: deserializeMetadata(parsedOutput),
1981
- ...deserialized,
1982
- });
1983
- return __decorateServiceException(exception, body);
1984
- };
1985
- const de_ConformancePackTemplateValidationExceptionRes = async (parsedOutput, context) => {
1986
- const body = parsedOutput.body;
1987
- const deserialized = _json(body);
1988
- const exception = new ConformancePackTemplateValidationException({
1989
- $metadata: deserializeMetadata(parsedOutput),
1990
- ...deserialized,
1991
- });
1992
- return __decorateServiceException(exception, body);
1993
- };
1994
- const de_IdempotentParameterMismatchRes = async (parsedOutput, context) => {
1995
- const body = parsedOutput.body;
1996
- const deserialized = _json(body);
1997
- const exception = new IdempotentParameterMismatch({
1998
- $metadata: deserializeMetadata(parsedOutput),
1999
- ...deserialized,
2000
- });
2001
- return __decorateServiceException(exception, body);
2002
- };
2003
- const de_InsufficientDeliveryPolicyExceptionRes = async (parsedOutput, context) => {
2004
- const body = parsedOutput.body;
2005
- const deserialized = _json(body);
2006
- const exception = new InsufficientDeliveryPolicyException({
2007
- $metadata: deserializeMetadata(parsedOutput),
2008
- ...deserialized,
2009
- });
2010
- return __decorateServiceException(exception, body);
2011
- };
2012
- const de_InsufficientPermissionsExceptionRes = async (parsedOutput, context) => {
2013
- const body = parsedOutput.body;
2014
- const deserialized = _json(body);
2015
- const exception = new InsufficientPermissionsException({
2016
- $metadata: deserializeMetadata(parsedOutput),
2017
- ...deserialized,
2018
- });
2019
- return __decorateServiceException(exception, body);
2020
- };
2021
- const de_InvalidConfigurationRecorderNameExceptionRes = async (parsedOutput, context) => {
2022
- const body = parsedOutput.body;
2023
- const deserialized = _json(body);
2024
- const exception = new InvalidConfigurationRecorderNameException({
2025
- $metadata: deserializeMetadata(parsedOutput),
2026
- ...deserialized,
2027
- });
2028
- return __decorateServiceException(exception, body);
2029
- };
2030
- const de_InvalidDeliveryChannelNameExceptionRes = async (parsedOutput, context) => {
2031
- const body = parsedOutput.body;
2032
- const deserialized = _json(body);
2033
- const exception = new InvalidDeliveryChannelNameException({
2034
- $metadata: deserializeMetadata(parsedOutput),
2035
- ...deserialized,
2036
- });
2037
- return __decorateServiceException(exception, body);
2038
- };
2039
- const de_InvalidExpressionExceptionRes = async (parsedOutput, context) => {
2040
- const body = parsedOutput.body;
2041
- const deserialized = _json(body);
2042
- const exception = new InvalidExpressionException({
2043
- $metadata: deserializeMetadata(parsedOutput),
2044
- ...deserialized,
2045
- });
2046
- return __decorateServiceException(exception, body);
2047
- };
2048
- const de_InvalidLimitExceptionRes = async (parsedOutput, context) => {
2049
- const body = parsedOutput.body;
2050
- const deserialized = _json(body);
2051
- const exception = new InvalidLimitException({
2052
- $metadata: deserializeMetadata(parsedOutput),
2053
- ...deserialized,
2054
- });
2055
- return __decorateServiceException(exception, body);
2056
- };
2057
- const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
2058
- const body = parsedOutput.body;
2059
- const deserialized = _json(body);
2060
- const exception = new InvalidNextTokenException({
2061
- $metadata: deserializeMetadata(parsedOutput),
2062
- ...deserialized,
2063
- });
2064
- return __decorateServiceException(exception, body);
2065
- };
2066
- const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
2067
- const body = parsedOutput.body;
2068
- const deserialized = _json(body);
2069
- const exception = new InvalidParameterValueException({
2070
- $metadata: deserializeMetadata(parsedOutput),
2071
- ...deserialized,
2072
- });
2073
- return __decorateServiceException(exception, body);
2074
- };
2075
- const de_InvalidRecordingGroupExceptionRes = async (parsedOutput, context) => {
2076
- const body = parsedOutput.body;
2077
- const deserialized = _json(body);
2078
- const exception = new InvalidRecordingGroupException({
2079
- $metadata: deserializeMetadata(parsedOutput),
2080
- ...deserialized,
2081
- });
2082
- return __decorateServiceException(exception, body);
2083
- };
2084
- const de_InvalidResultTokenExceptionRes = async (parsedOutput, context) => {
2085
- const body = parsedOutput.body;
2086
- const deserialized = _json(body);
2087
- const exception = new InvalidResultTokenException({
2088
- $metadata: deserializeMetadata(parsedOutput),
2089
- ...deserialized,
2090
- });
2091
- return __decorateServiceException(exception, body);
2092
- };
2093
- const de_InvalidRoleExceptionRes = async (parsedOutput, context) => {
2094
- const body = parsedOutput.body;
2095
- const deserialized = _json(body);
2096
- const exception = new InvalidRoleException({
2097
- $metadata: deserializeMetadata(parsedOutput),
2098
- ...deserialized,
2099
- });
2100
- return __decorateServiceException(exception, body);
2101
- };
2102
- const de_InvalidS3KeyPrefixExceptionRes = async (parsedOutput, context) => {
2103
- const body = parsedOutput.body;
2104
- const deserialized = _json(body);
2105
- const exception = new InvalidS3KeyPrefixException({
2106
- $metadata: deserializeMetadata(parsedOutput),
2107
- ...deserialized,
2108
- });
2109
- return __decorateServiceException(exception, body);
2110
- };
2111
- const de_InvalidS3KmsKeyArnExceptionRes = async (parsedOutput, context) => {
2112
- const body = parsedOutput.body;
2113
- const deserialized = _json(body);
2114
- const exception = new InvalidS3KmsKeyArnException({
2115
- $metadata: deserializeMetadata(parsedOutput),
2116
- ...deserialized,
2117
- });
2118
- return __decorateServiceException(exception, body);
2119
- };
2120
- const de_InvalidSNSTopicARNExceptionRes = async (parsedOutput, context) => {
2121
- const body = parsedOutput.body;
2122
- const deserialized = _json(body);
2123
- const exception = new InvalidSNSTopicARNException({
2124
- $metadata: deserializeMetadata(parsedOutput),
2125
- ...deserialized,
2126
- });
2127
- return __decorateServiceException(exception, body);
2128
- };
2129
- const de_InvalidTimeRangeExceptionRes = async (parsedOutput, context) => {
2130
- const body = parsedOutput.body;
2131
- const deserialized = _json(body);
2132
- const exception = new InvalidTimeRangeException({
2133
- $metadata: deserializeMetadata(parsedOutput),
2134
- ...deserialized,
2135
- });
2136
- return __decorateServiceException(exception, body);
2137
- };
2138
- const de_LastDeliveryChannelDeleteFailedExceptionRes = async (parsedOutput, context) => {
2139
- const body = parsedOutput.body;
2140
- const deserialized = _json(body);
2141
- const exception = new LastDeliveryChannelDeleteFailedException({
2142
- $metadata: deserializeMetadata(parsedOutput),
2143
- ...deserialized,
2144
- });
2145
- return __decorateServiceException(exception, body);
2146
- };
2147
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2148
- const body = parsedOutput.body;
2149
- const deserialized = _json(body);
2150
- const exception = new LimitExceededException({
2151
- $metadata: deserializeMetadata(parsedOutput),
2152
- ...deserialized,
2153
- });
2154
- return __decorateServiceException(exception, body);
2155
- };
2156
- const de_MaxActiveResourcesExceededExceptionRes = async (parsedOutput, context) => {
2157
- const body = parsedOutput.body;
2158
- const deserialized = _json(body);
2159
- const exception = new MaxActiveResourcesExceededException({
2160
- $metadata: deserializeMetadata(parsedOutput),
2161
- ...deserialized,
2162
- });
2163
- return __decorateServiceException(exception, body);
2164
- };
2165
- const de_MaxNumberOfConfigRulesExceededExceptionRes = async (parsedOutput, context) => {
2166
- const body = parsedOutput.body;
2167
- const deserialized = _json(body);
2168
- const exception = new MaxNumberOfConfigRulesExceededException({
2169
- $metadata: deserializeMetadata(parsedOutput),
2170
- ...deserialized,
2171
- });
2172
- return __decorateServiceException(exception, body);
2173
- };
2174
- const de_MaxNumberOfConfigurationRecordersExceededExceptionRes = async (parsedOutput, context) => {
2175
- const body = parsedOutput.body;
2176
- const deserialized = _json(body);
2177
- const exception = new MaxNumberOfConfigurationRecordersExceededException({
2178
- $metadata: deserializeMetadata(parsedOutput),
2179
- ...deserialized,
2180
- });
2181
- return __decorateServiceException(exception, body);
2182
- };
2183
- const de_MaxNumberOfConformancePacksExceededExceptionRes = async (parsedOutput, context) => {
2184
- const body = parsedOutput.body;
2185
- const deserialized = _json(body);
2186
- const exception = new MaxNumberOfConformancePacksExceededException({
2187
- $metadata: deserializeMetadata(parsedOutput),
2188
- ...deserialized,
2189
- });
2190
- return __decorateServiceException(exception, body);
2191
- };
2192
- const de_MaxNumberOfDeliveryChannelsExceededExceptionRes = async (parsedOutput, context) => {
2193
- const body = parsedOutput.body;
2194
- const deserialized = _json(body);
2195
- const exception = new MaxNumberOfDeliveryChannelsExceededException({
2196
- $metadata: deserializeMetadata(parsedOutput),
2197
- ...deserialized,
2198
- });
2199
- return __decorateServiceException(exception, body);
2200
- };
2201
- const de_MaxNumberOfOrganizationConfigRulesExceededExceptionRes = async (parsedOutput, context) => {
2202
- const body = parsedOutput.body;
2203
- const deserialized = _json(body);
2204
- const exception = new MaxNumberOfOrganizationConfigRulesExceededException({
2205
- $metadata: deserializeMetadata(parsedOutput),
2206
- ...deserialized,
2207
- });
2208
- return __decorateServiceException(exception, body);
2209
- };
2210
- const de_MaxNumberOfOrganizationConformancePacksExceededExceptionRes = async (parsedOutput, context) => {
2211
- const body = parsedOutput.body;
2212
- const deserialized = _json(body);
2213
- const exception = new MaxNumberOfOrganizationConformancePacksExceededException({
2214
- $metadata: deserializeMetadata(parsedOutput),
2215
- ...deserialized,
2216
- });
2217
- return __decorateServiceException(exception, body);
2218
- };
2219
- const de_MaxNumberOfRetentionConfigurationsExceededExceptionRes = async (parsedOutput, context) => {
2220
- const body = parsedOutput.body;
2221
- const deserialized = _json(body);
2222
- const exception = new MaxNumberOfRetentionConfigurationsExceededException({
2223
- $metadata: deserializeMetadata(parsedOutput),
2224
- ...deserialized,
2225
- });
2226
- return __decorateServiceException(exception, body);
2227
- };
2228
- const de_NoAvailableConfigurationRecorderExceptionRes = async (parsedOutput, context) => {
2229
- const body = parsedOutput.body;
2230
- const deserialized = _json(body);
2231
- const exception = new NoAvailableConfigurationRecorderException({
2232
- $metadata: deserializeMetadata(parsedOutput),
2233
- ...deserialized,
2234
- });
2235
- return __decorateServiceException(exception, body);
2236
- };
2237
- const de_NoAvailableDeliveryChannelExceptionRes = async (parsedOutput, context) => {
2238
- const body = parsedOutput.body;
2239
- const deserialized = _json(body);
2240
- const exception = new NoAvailableDeliveryChannelException({
2241
- $metadata: deserializeMetadata(parsedOutput),
2242
- ...deserialized,
2243
- });
2244
- return __decorateServiceException(exception, body);
2245
- };
2246
- const de_NoAvailableOrganizationExceptionRes = async (parsedOutput, context) => {
2247
- const body = parsedOutput.body;
2248
- const deserialized = _json(body);
2249
- const exception = new NoAvailableOrganizationException({
2250
- $metadata: deserializeMetadata(parsedOutput),
2251
- ...deserialized,
2252
- });
2253
- return __decorateServiceException(exception, body);
2254
- };
2255
- const de_NoRunningConfigurationRecorderExceptionRes = async (parsedOutput, context) => {
2256
- const body = parsedOutput.body;
2257
- const deserialized = _json(body);
2258
- const exception = new NoRunningConfigurationRecorderException({
2259
- $metadata: deserializeMetadata(parsedOutput),
2260
- ...deserialized,
2261
- });
2262
- return __decorateServiceException(exception, body);
2263
- };
2264
- const de_NoSuchBucketExceptionRes = async (parsedOutput, context) => {
2265
- const body = parsedOutput.body;
2266
- const deserialized = _json(body);
2267
- const exception = new NoSuchBucketException({
2268
- $metadata: deserializeMetadata(parsedOutput),
2269
- ...deserialized,
2270
- });
2271
- return __decorateServiceException(exception, body);
2272
- };
2273
- const de_NoSuchConfigRuleExceptionRes = async (parsedOutput, context) => {
2274
- const body = parsedOutput.body;
2275
- const deserialized = _json(body);
2276
- const exception = new NoSuchConfigRuleException({
2277
- $metadata: deserializeMetadata(parsedOutput),
2278
- ...deserialized,
2279
- });
2280
- return __decorateServiceException(exception, body);
2281
- };
2282
- const de_NoSuchConfigRuleInConformancePackExceptionRes = async (parsedOutput, context) => {
2283
- const body = parsedOutput.body;
2284
- const deserialized = _json(body);
2285
- const exception = new NoSuchConfigRuleInConformancePackException({
2286
- $metadata: deserializeMetadata(parsedOutput),
2287
- ...deserialized,
2288
- });
2289
- return __decorateServiceException(exception, body);
2290
- };
2291
- const de_NoSuchConfigurationAggregatorExceptionRes = async (parsedOutput, context) => {
2292
- const body = parsedOutput.body;
2293
- const deserialized = _json(body);
2294
- const exception = new NoSuchConfigurationAggregatorException({
2295
- $metadata: deserializeMetadata(parsedOutput),
2296
- ...deserialized,
2297
- });
2298
- return __decorateServiceException(exception, body);
2299
- };
2300
- const de_NoSuchConfigurationRecorderExceptionRes = async (parsedOutput, context) => {
2301
- const body = parsedOutput.body;
2302
- const deserialized = _json(body);
2303
- const exception = new NoSuchConfigurationRecorderException({
2304
- $metadata: deserializeMetadata(parsedOutput),
2305
- ...deserialized,
2306
- });
2307
- return __decorateServiceException(exception, body);
2308
- };
2309
- const de_NoSuchConformancePackExceptionRes = async (parsedOutput, context) => {
2310
- const body = parsedOutput.body;
2311
- const deserialized = _json(body);
2312
- const exception = new NoSuchConformancePackException({
2313
- $metadata: deserializeMetadata(parsedOutput),
2314
- ...deserialized,
2315
- });
2316
- return __decorateServiceException(exception, body);
2317
- };
2318
- const de_NoSuchDeliveryChannelExceptionRes = async (parsedOutput, context) => {
2319
- const body = parsedOutput.body;
2320
- const deserialized = _json(body);
2321
- const exception = new NoSuchDeliveryChannelException({
2322
- $metadata: deserializeMetadata(parsedOutput),
2323
- ...deserialized,
2324
- });
2325
- return __decorateServiceException(exception, body);
2326
- };
2327
- const de_NoSuchOrganizationConfigRuleExceptionRes = async (parsedOutput, context) => {
2328
- const body = parsedOutput.body;
2329
- const deserialized = _json(body);
2330
- const exception = new NoSuchOrganizationConfigRuleException({
2331
- $metadata: deserializeMetadata(parsedOutput),
2332
- ...deserialized,
2333
- });
2334
- return __decorateServiceException(exception, body);
2335
- };
2336
- const de_NoSuchOrganizationConformancePackExceptionRes = async (parsedOutput, context) => {
2337
- const body = parsedOutput.body;
2338
- const deserialized = _json(body);
2339
- const exception = new NoSuchOrganizationConformancePackException({
2340
- $metadata: deserializeMetadata(parsedOutput),
2341
- ...deserialized,
2342
- });
2343
- return __decorateServiceException(exception, body);
2344
- };
2345
- const de_NoSuchRemediationConfigurationExceptionRes = async (parsedOutput, context) => {
2346
- const body = parsedOutput.body;
2347
- const deserialized = _json(body);
2348
- const exception = new NoSuchRemediationConfigurationException({
2349
- $metadata: deserializeMetadata(parsedOutput),
2350
- ...deserialized,
2351
- });
2352
- return __decorateServiceException(exception, body);
2353
- };
2354
- const de_NoSuchRemediationExceptionExceptionRes = async (parsedOutput, context) => {
2355
- const body = parsedOutput.body;
2356
- const deserialized = _json(body);
2357
- const exception = new NoSuchRemediationExceptionException({
2358
- $metadata: deserializeMetadata(parsedOutput),
2359
- ...deserialized,
2360
- });
2361
- return __decorateServiceException(exception, body);
2362
- };
2363
- const de_NoSuchRetentionConfigurationExceptionRes = async (parsedOutput, context) => {
2364
- const body = parsedOutput.body;
2365
- const deserialized = _json(body);
2366
- const exception = new NoSuchRetentionConfigurationException({
2367
- $metadata: deserializeMetadata(parsedOutput),
2368
- ...deserialized,
2369
- });
2370
- return __decorateServiceException(exception, body);
2371
- };
2372
- const de_OrganizationAccessDeniedExceptionRes = async (parsedOutput, context) => {
2373
- const body = parsedOutput.body;
2374
- const deserialized = _json(body);
2375
- const exception = new OrganizationAccessDeniedException({
2376
- $metadata: deserializeMetadata(parsedOutput),
2377
- ...deserialized,
2378
- });
2379
- return __decorateServiceException(exception, body);
2380
- };
2381
- const de_OrganizationAllFeaturesNotEnabledExceptionRes = async (parsedOutput, context) => {
2382
- const body = parsedOutput.body;
2383
- const deserialized = _json(body);
2384
- const exception = new OrganizationAllFeaturesNotEnabledException({
2385
- $metadata: deserializeMetadata(parsedOutput),
2386
- ...deserialized,
2387
- });
2388
- return __decorateServiceException(exception, body);
2389
- };
2390
- const de_OrganizationConformancePackTemplateValidationExceptionRes = async (parsedOutput, context) => {
2391
- const body = parsedOutput.body;
2392
- const deserialized = _json(body);
2393
- const exception = new OrganizationConformancePackTemplateValidationException({
2394
- $metadata: deserializeMetadata(parsedOutput),
2395
- ...deserialized,
2396
- });
2397
- return __decorateServiceException(exception, body);
2398
- };
2399
- const de_OversizedConfigurationItemExceptionRes = async (parsedOutput, context) => {
2400
- const body = parsedOutput.body;
2401
- const deserialized = _json(body);
2402
- const exception = new OversizedConfigurationItemException({
2403
- $metadata: deserializeMetadata(parsedOutput),
2404
- ...deserialized,
2405
- });
2406
- return __decorateServiceException(exception, body);
2407
- };
2408
- const de_RemediationInProgressExceptionRes = async (parsedOutput, context) => {
2409
- const body = parsedOutput.body;
2410
- const deserialized = _json(body);
2411
- const exception = new RemediationInProgressException({
2412
- $metadata: deserializeMetadata(parsedOutput),
2413
- ...deserialized,
2414
- });
2415
- return __decorateServiceException(exception, body);
2416
- };
2417
- const de_ResourceConcurrentModificationExceptionRes = async (parsedOutput, context) => {
2418
- const body = parsedOutput.body;
2419
- const deserialized = _json(body);
2420
- const exception = new ResourceConcurrentModificationException({
2421
- $metadata: deserializeMetadata(parsedOutput),
2422
- ...deserialized,
2423
- });
2424
- return __decorateServiceException(exception, body);
2425
- };
2426
- const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
2427
- const body = parsedOutput.body;
2428
- const deserialized = _json(body);
2429
- const exception = new ResourceInUseException({
2430
- $metadata: deserializeMetadata(parsedOutput),
2431
- ...deserialized,
2432
- });
2433
- return __decorateServiceException(exception, body);
2434
- };
2435
- const de_ResourceNotDiscoveredExceptionRes = async (parsedOutput, context) => {
2436
- const body = parsedOutput.body;
2437
- const deserialized = _json(body);
2438
- const exception = new ResourceNotDiscoveredException({
2439
- $metadata: deserializeMetadata(parsedOutput),
2440
- ...deserialized,
2441
- });
2442
- return __decorateServiceException(exception, body);
2443
- };
2444
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2445
- const body = parsedOutput.body;
2446
- const deserialized = _json(body);
2447
- const exception = new ResourceNotFoundException({
2448
- $metadata: deserializeMetadata(parsedOutput),
2449
- ...deserialized,
2450
- });
2451
- return __decorateServiceException(exception, body);
2452
- };
2453
- const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
2454
- const body = parsedOutput.body;
2455
- const deserialized = _json(body);
2456
- const exception = new TooManyTagsException({
2457
- $metadata: deserializeMetadata(parsedOutput),
2458
- ...deserialized,
2459
- });
2460
- return __decorateServiceException(exception, body);
2461
- };
2462
- const de_UnmodifiableEntityExceptionRes = async (parsedOutput, context) => {
2463
- const body = parsedOutput.body;
2464
- const deserialized = _json(body);
2465
- const exception = new UnmodifiableEntityException({
2466
- $metadata: deserializeMetadata(parsedOutput),
2467
- ...deserialized,
2468
- });
2469
- return __decorateServiceException(exception, body);
2470
- };
2471
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
2472
- const body = parsedOutput.body;
2473
- const deserialized = _json(body);
2474
- const exception = new ValidationException({
2475
- $metadata: deserializeMetadata(parsedOutput),
2476
- ...deserialized,
2477
- });
2478
- return __decorateServiceException(exception, body);
2479
- };
2480
- const se_Evaluation = (input, context) => {
2481
- return take(input, {
2482
- Annotation: [],
2483
- ComplianceResourceId: [],
2484
- ComplianceResourceType: [],
2485
- ComplianceType: [],
2486
- OrderingTimestamp: (_) => _.getTime() / 1_000,
2487
- });
2488
- };
2489
- const se_Evaluations = (input, context) => {
2490
- return input
2491
- .filter((e) => e != null)
2492
- .map((entry) => {
2493
- return se_Evaluation(entry, context);
2494
- });
2495
- };
2496
- const se_ExternalEvaluation = (input, context) => {
2497
- return take(input, {
2498
- Annotation: [],
2499
- ComplianceResourceId: [],
2500
- ComplianceResourceType: [],
2501
- ComplianceType: [],
2502
- OrderingTimestamp: (_) => _.getTime() / 1_000,
2503
- });
2504
- };
2505
- const se_GetResourceConfigHistoryRequest = (input, context) => {
2506
- return take(input, {
2507
- chronologicalOrder: [],
2508
- earlierTime: (_) => _.getTime() / 1_000,
2509
- laterTime: (_) => _.getTime() / 1_000,
2510
- limit: [],
2511
- nextToken: [],
2512
- resourceId: [],
2513
- resourceType: [],
2514
- });
2515
- };
2516
- const se_ListResourceEvaluationsRequest = (input, context) => {
2517
- return take(input, {
2518
- Filters: (_) => se_ResourceEvaluationFilters(_, context),
2519
- Limit: [],
2520
- NextToken: [],
2521
- });
2522
- };
2523
- const se_PutEvaluationsRequest = (input, context) => {
2524
- return take(input, {
2525
- Evaluations: (_) => se_Evaluations(_, context),
2526
- ResultToken: [],
2527
- TestMode: [],
2528
- });
2529
- };
2530
- const se_PutExternalEvaluationRequest = (input, context) => {
2531
- return take(input, {
2532
- ConfigRuleName: [],
2533
- ExternalEvaluation: (_) => se_ExternalEvaluation(_, context),
2534
- });
2535
- };
2536
- const se_PutRemediationExceptionsRequest = (input, context) => {
2537
- return take(input, {
2538
- ConfigRuleName: [],
2539
- ExpirationTime: (_) => _.getTime() / 1_000,
2540
- Message: [],
2541
- ResourceKeys: _json,
2542
- });
2543
- };
2544
- const se_ResourceEvaluationFilters = (input, context) => {
2545
- return take(input, {
2546
- EvaluationContextIdentifier: [],
2547
- EvaluationMode: [],
2548
- TimeWindow: (_) => se_TimeWindow(_, context),
2549
- });
2550
- };
2551
- const se_TimeWindow = (input, context) => {
2552
- return take(input, {
2553
- EndTime: (_) => _.getTime() / 1_000,
2554
- StartTime: (_) => _.getTime() / 1_000,
2555
- });
2556
- };
2557
- const de_AggregateComplianceCount = (output, context) => {
2558
- return take(output, {
2559
- ComplianceSummary: (_) => de_ComplianceSummary(_, context),
2560
- GroupName: __expectString,
2561
- });
2562
- };
2563
- const de_AggregateComplianceCountList = (output, context) => {
2564
- const retVal = (output || [])
2565
- .filter((e) => e != null)
2566
- .map((entry) => {
2567
- return de_AggregateComplianceCount(entry, context);
2568
- });
2569
- return retVal;
2570
- };
2571
- const de_AggregatedSourceStatus = (output, context) => {
2572
- return take(output, {
2573
- AwsRegion: __expectString,
2574
- LastErrorCode: __expectString,
2575
- LastErrorMessage: __expectString,
2576
- LastUpdateStatus: __expectString,
2577
- LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2578
- SourceId: __expectString,
2579
- SourceType: __expectString,
2580
- });
2581
- };
2582
- const de_AggregatedSourceStatusList = (output, context) => {
2583
- const retVal = (output || [])
2584
- .filter((e) => e != null)
2585
- .map((entry) => {
2586
- return de_AggregatedSourceStatus(entry, context);
2587
- });
2588
- return retVal;
2589
- };
2590
- const de_AggregateEvaluationResult = (output, context) => {
2591
- return take(output, {
2592
- AccountId: __expectString,
2593
- Annotation: __expectString,
2594
- AwsRegion: __expectString,
2595
- ComplianceType: __expectString,
2596
- ConfigRuleInvokedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2597
- EvaluationResultIdentifier: (_) => de_EvaluationResultIdentifier(_, context),
2598
- ResultRecordedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2599
- });
2600
- };
2601
- const de_AggregateEvaluationResultList = (output, context) => {
2602
- const retVal = (output || [])
2603
- .filter((e) => e != null)
2604
- .map((entry) => {
2605
- return de_AggregateEvaluationResult(entry, context);
2606
- });
2607
- return retVal;
2608
- };
2609
- const de_AggregationAuthorization = (output, context) => {
2610
- return take(output, {
2611
- AggregationAuthorizationArn: __expectString,
2612
- AuthorizedAccountId: __expectString,
2613
- AuthorizedAwsRegion: __expectString,
2614
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2615
- });
2616
- };
2617
- const de_AggregationAuthorizationList = (output, context) => {
2618
- const retVal = (output || [])
2619
- .filter((e) => e != null)
2620
- .map((entry) => {
2621
- return de_AggregationAuthorization(entry, context);
2622
- });
2623
- return retVal;
2624
- };
2625
- const de_BaseConfigurationItem = (output, context) => {
2626
- return take(output, {
2627
- accountId: __expectString,
2628
- arn: __expectString,
2629
- availabilityZone: __expectString,
2630
- awsRegion: __expectString,
2631
- configuration: __expectString,
2632
- configurationItemCaptureTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2633
- configurationItemDeliveryTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2634
- configurationItemStatus: __expectString,
2635
- configurationStateId: __expectString,
2636
- recordingFrequency: __expectString,
2637
- resourceCreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2638
- resourceId: __expectString,
2639
- resourceName: __expectString,
2640
- resourceType: __expectString,
2641
- supplementaryConfiguration: _json,
2642
- version: __expectString,
2643
- });
2644
- };
2645
- const de_BaseConfigurationItems = (output, context) => {
2646
- const retVal = (output || [])
2647
- .filter((e) => e != null)
2648
- .map((entry) => {
2649
- return de_BaseConfigurationItem(entry, context);
2650
- });
2651
- return retVal;
2652
- };
2653
- const de_BatchGetAggregateResourceConfigResponse = (output, context) => {
2654
- return take(output, {
2655
- BaseConfigurationItems: (_) => de_BaseConfigurationItems(_, context),
2656
- UnprocessedResourceIdentifiers: _json,
2657
- });
2658
- };
2659
- const de_BatchGetResourceConfigResponse = (output, context) => {
2660
- return take(output, {
2661
- baseConfigurationItems: (_) => de_BaseConfigurationItems(_, context),
2662
- unprocessedResourceKeys: _json,
2663
- });
2664
- };
2665
- const de_ComplianceSummariesByResourceType = (output, context) => {
2666
- const retVal = (output || [])
2667
- .filter((e) => e != null)
2668
- .map((entry) => {
2669
- return de_ComplianceSummaryByResourceType(entry, context);
2670
- });
2671
- return retVal;
2672
- };
2673
- const de_ComplianceSummary = (output, context) => {
2674
- return take(output, {
2675
- ComplianceSummaryTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2676
- CompliantResourceCount: _json,
2677
- NonCompliantResourceCount: _json,
2678
- });
2679
- };
2680
- const de_ComplianceSummaryByResourceType = (output, context) => {
2681
- return take(output, {
2682
- ComplianceSummary: (_) => de_ComplianceSummary(_, context),
2683
- ResourceType: __expectString,
2684
- });
2685
- };
2686
- const de_ConfigExportDeliveryInfo = (output, context) => {
2687
- return take(output, {
2688
- lastAttemptTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2689
- lastErrorCode: __expectString,
2690
- lastErrorMessage: __expectString,
2691
- lastStatus: __expectString,
2692
- lastSuccessfulTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2693
- nextDeliveryTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2694
- });
2695
- };
2696
- const de_ConfigRuleEvaluationStatus = (output, context) => {
2697
- return take(output, {
2698
- ConfigRuleArn: __expectString,
2699
- ConfigRuleId: __expectString,
2700
- ConfigRuleName: __expectString,
2701
- FirstActivatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2702
- FirstEvaluationStarted: __expectBoolean,
2703
- LastDeactivatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2704
- LastDebugLogDeliveryStatus: __expectString,
2705
- LastDebugLogDeliveryStatusReason: __expectString,
2706
- LastDebugLogDeliveryTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2707
- LastErrorCode: __expectString,
2708
- LastErrorMessage: __expectString,
2709
- LastFailedEvaluationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2710
- LastFailedInvocationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2711
- LastSuccessfulEvaluationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2712
- LastSuccessfulInvocationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2713
- });
2714
- };
2715
- const de_ConfigRuleEvaluationStatusList = (output, context) => {
2716
- const retVal = (output || [])
2717
- .filter((e) => e != null)
2718
- .map((entry) => {
2719
- return de_ConfigRuleEvaluationStatus(entry, context);
2720
- });
2721
- return retVal;
2722
- };
2723
- const de_ConfigStreamDeliveryInfo = (output, context) => {
2724
- return take(output, {
2725
- lastErrorCode: __expectString,
2726
- lastErrorMessage: __expectString,
2727
- lastStatus: __expectString,
2728
- lastStatusChangeTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2729
- });
2730
- };
2731
- const de_ConfigurationAggregator = (output, context) => {
2732
- return take(output, {
2733
- AccountAggregationSources: _json,
2734
- AggregatorFilters: _json,
2735
- ConfigurationAggregatorArn: __expectString,
2736
- ConfigurationAggregatorName: __expectString,
2737
- CreatedBy: __expectString,
2738
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2739
- LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2740
- OrganizationAggregationSource: _json,
2741
- });
2742
- };
2743
- const de_ConfigurationAggregatorList = (output, context) => {
2744
- const retVal = (output || [])
2745
- .filter((e) => e != null)
2746
- .map((entry) => {
2747
- return de_ConfigurationAggregator(entry, context);
2748
- });
2749
- return retVal;
2750
- };
2751
- const de_ConfigurationItem = (output, context) => {
2752
- return take(output, {
2753
- accountId: __expectString,
2754
- arn: __expectString,
2755
- availabilityZone: __expectString,
2756
- awsRegion: __expectString,
2757
- configuration: __expectString,
2758
- configurationItemCaptureTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2759
- configurationItemDeliveryTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2760
- configurationItemMD5Hash: __expectString,
2761
- configurationItemStatus: __expectString,
2762
- configurationStateId: __expectString,
2763
- recordingFrequency: __expectString,
2764
- relatedEvents: _json,
2765
- relationships: _json,
2766
- resourceCreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2767
- resourceId: __expectString,
2768
- resourceName: __expectString,
2769
- resourceType: __expectString,
2770
- supplementaryConfiguration: _json,
2771
- tags: _json,
2772
- version: __expectString,
2773
- });
2774
- };
2775
- const de_ConfigurationItemList = (output, context) => {
2776
- const retVal = (output || [])
2777
- .filter((e) => e != null)
2778
- .map((entry) => {
2779
- return de_ConfigurationItem(entry, context);
2780
- });
2781
- return retVal;
2782
- };
2783
- const de_ConfigurationRecorderStatus = (output, context) => {
2784
- return take(output, {
2785
- arn: __expectString,
2786
- lastErrorCode: __expectString,
2787
- lastErrorMessage: __expectString,
2788
- lastStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2789
- lastStatus: __expectString,
2790
- lastStatusChangeTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2791
- lastStopTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2792
- name: __expectString,
2793
- recording: __expectBoolean,
2794
- servicePrincipal: __expectString,
2795
- });
2796
- };
2797
- const de_ConfigurationRecorderStatusList = (output, context) => {
2798
- const retVal = (output || [])
2799
- .filter((e) => e != null)
2800
- .map((entry) => {
2801
- return de_ConfigurationRecorderStatus(entry, context);
2802
- });
2803
- return retVal;
2804
- };
2805
- const de_ConformancePackComplianceScore = (output, context) => {
2806
- return take(output, {
2807
- ConformancePackName: __expectString,
2808
- LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2809
- Score: __expectString,
2810
- });
2811
- };
2812
- const de_ConformancePackComplianceScores = (output, context) => {
2813
- const retVal = (output || [])
2814
- .filter((e) => e != null)
2815
- .map((entry) => {
2816
- return de_ConformancePackComplianceScore(entry, context);
2817
- });
2818
- return retVal;
2819
- };
2820
- const de_ConformancePackDetail = (output, context) => {
2821
- return take(output, {
2822
- ConformancePackArn: __expectString,
2823
- ConformancePackId: __expectString,
2824
- ConformancePackInputParameters: _json,
2825
- ConformancePackName: __expectString,
2826
- CreatedBy: __expectString,
2827
- DeliveryS3Bucket: __expectString,
2828
- DeliveryS3KeyPrefix: __expectString,
2829
- LastUpdateRequestedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2830
- TemplateSSMDocumentDetails: _json,
2831
- });
2832
- };
2833
- const de_ConformancePackDetailList = (output, context) => {
2834
- const retVal = (output || [])
2835
- .filter((e) => e != null)
2836
- .map((entry) => {
2837
- return de_ConformancePackDetail(entry, context);
2838
- });
2839
- return retVal;
2840
- };
2841
- const de_ConformancePackEvaluationResult = (output, context) => {
2842
- return take(output, {
2843
- Annotation: __expectString,
2844
- ComplianceType: __expectString,
2845
- ConfigRuleInvokedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2846
- EvaluationResultIdentifier: (_) => de_EvaluationResultIdentifier(_, context),
2847
- ResultRecordedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2848
- });
2849
- };
2850
- const de_ConformancePackRuleEvaluationResultsList = (output, context) => {
2851
- const retVal = (output || [])
2852
- .filter((e) => e != null)
2853
- .map((entry) => {
2854
- return de_ConformancePackEvaluationResult(entry, context);
2855
- });
2856
- return retVal;
2857
- };
2858
- const de_ConformancePackStatusDetail = (output, context) => {
2859
- return take(output, {
2860
- ConformancePackArn: __expectString,
2861
- ConformancePackId: __expectString,
2862
- ConformancePackName: __expectString,
2863
- ConformancePackState: __expectString,
2864
- ConformancePackStatusReason: __expectString,
2865
- LastUpdateCompletedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2866
- LastUpdateRequestedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2867
- StackArn: __expectString,
2868
- });
2869
- };
2870
- const de_ConformancePackStatusDetailsList = (output, context) => {
2871
- const retVal = (output || [])
2872
- .filter((e) => e != null)
2873
- .map((entry) => {
2874
- return de_ConformancePackStatusDetail(entry, context);
2875
- });
2876
- return retVal;
2877
- };
2878
- const de_DeliveryChannelStatus = (output, context) => {
2879
- return take(output, {
2880
- configHistoryDeliveryInfo: (_) => de_ConfigExportDeliveryInfo(_, context),
2881
- configSnapshotDeliveryInfo: (_) => de_ConfigExportDeliveryInfo(_, context),
2882
- configStreamDeliveryInfo: (_) => de_ConfigStreamDeliveryInfo(_, context),
2883
- name: __expectString,
2884
- });
2885
- };
2886
- const de_DeliveryChannelStatusList = (output, context) => {
2887
- const retVal = (output || [])
2888
- .filter((e) => e != null)
2889
- .map((entry) => {
2890
- return de_DeliveryChannelStatus(entry, context);
2891
- });
2892
- return retVal;
2893
- };
2894
- const de_DescribeAggregationAuthorizationsResponse = (output, context) => {
2895
- return take(output, {
2896
- AggregationAuthorizations: (_) => de_AggregationAuthorizationList(_, context),
2897
- NextToken: __expectString,
2898
- });
2899
- };
2900
- const de_DescribeConfigRuleEvaluationStatusResponse = (output, context) => {
2901
- return take(output, {
2902
- ConfigRulesEvaluationStatus: (_) => de_ConfigRuleEvaluationStatusList(_, context),
2903
- NextToken: __expectString,
2904
- });
2905
- };
2906
- const de_DescribeConfigurationAggregatorSourcesStatusResponse = (output, context) => {
2907
- return take(output, {
2908
- AggregatedSourceStatusList: (_) => de_AggregatedSourceStatusList(_, context),
2909
- NextToken: __expectString,
2910
- });
2911
- };
2912
- const de_DescribeConfigurationAggregatorsResponse = (output, context) => {
2913
- return take(output, {
2914
- ConfigurationAggregators: (_) => de_ConfigurationAggregatorList(_, context),
2915
- NextToken: __expectString,
2916
- });
2917
- };
2918
- const de_DescribeConfigurationRecorderStatusResponse = (output, context) => {
2919
- return take(output, {
2920
- ConfigurationRecordersStatus: (_) => de_ConfigurationRecorderStatusList(_, context),
2921
- });
2922
- };
2923
- const de_DescribeConformancePacksResponse = (output, context) => {
2924
- return take(output, {
2925
- ConformancePackDetails: (_) => de_ConformancePackDetailList(_, context),
2926
- NextToken: __expectString,
2927
- });
2928
- };
2929
- const de_DescribeConformancePackStatusResponse = (output, context) => {
2930
- return take(output, {
2931
- ConformancePackStatusDetails: (_) => de_ConformancePackStatusDetailsList(_, context),
2932
- NextToken: __expectString,
2933
- });
2934
- };
2935
- const de_DescribeDeliveryChannelStatusResponse = (output, context) => {
2936
- return take(output, {
2937
- DeliveryChannelsStatus: (_) => de_DeliveryChannelStatusList(_, context),
2938
- });
2939
- };
2940
- const de_DescribeOrganizationConfigRulesResponse = (output, context) => {
2941
- return take(output, {
2942
- NextToken: __expectString,
2943
- OrganizationConfigRules: (_) => de_OrganizationConfigRules(_, context),
2944
- });
2945
- };
2946
- const de_DescribeOrganizationConfigRuleStatusesResponse = (output, context) => {
2947
- return take(output, {
2948
- NextToken: __expectString,
2949
- OrganizationConfigRuleStatuses: (_) => de_OrganizationConfigRuleStatuses(_, context),
2950
- });
2951
- };
2952
- const de_DescribeOrganizationConformancePacksResponse = (output, context) => {
2953
- return take(output, {
2954
- NextToken: __expectString,
2955
- OrganizationConformancePacks: (_) => de_OrganizationConformancePacks(_, context),
2956
- });
2957
- };
2958
- const de_DescribeOrganizationConformancePackStatusesResponse = (output, context) => {
2959
- return take(output, {
2960
- NextToken: __expectString,
2961
- OrganizationConformancePackStatuses: (_) => de_OrganizationConformancePackStatuses(_, context),
2962
- });
2963
- };
2964
- const de_DescribeRemediationExceptionsResponse = (output, context) => {
2965
- return take(output, {
2966
- NextToken: __expectString,
2967
- RemediationExceptions: (_) => de_RemediationExceptions(_, context),
2968
- });
2969
- };
2970
- const de_DescribeRemediationExecutionStatusResponse = (output, context) => {
2971
- return take(output, {
2972
- NextToken: __expectString,
2973
- RemediationExecutionStatuses: (_) => de_RemediationExecutionStatuses(_, context),
2974
- });
2975
- };
2976
- const de_Evaluation = (output, context) => {
2977
- return take(output, {
2978
- Annotation: __expectString,
2979
- ComplianceResourceId: __expectString,
2980
- ComplianceResourceType: __expectString,
2981
- ComplianceType: __expectString,
2982
- OrderingTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2983
- });
2984
- };
2985
- const de_EvaluationResult = (output, context) => {
2986
- return take(output, {
2987
- Annotation: __expectString,
2988
- ComplianceType: __expectString,
2989
- ConfigRuleInvokedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2990
- EvaluationResultIdentifier: (_) => de_EvaluationResultIdentifier(_, context),
2991
- ResultRecordedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2992
- ResultToken: __expectString,
2993
- });
2994
- };
2995
- const de_EvaluationResultIdentifier = (output, context) => {
2996
- return take(output, {
2997
- EvaluationResultQualifier: _json,
2998
- OrderingTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2999
- ResourceEvaluationId: __expectString,
3000
- });
3001
- };
3002
- const de_EvaluationResults = (output, context) => {
3003
- const retVal = (output || [])
3004
- .filter((e) => e != null)
3005
- .map((entry) => {
3006
- return de_EvaluationResult(entry, context);
3007
- });
3008
- return retVal;
3009
- };
3010
- const de_Evaluations = (output, context) => {
3011
- const retVal = (output || [])
3012
- .filter((e) => e != null)
3013
- .map((entry) => {
3014
- return de_Evaluation(entry, context);
3015
- });
3016
- return retVal;
3017
- };
3018
- const de_FailedRemediationExceptionBatch = (output, context) => {
3019
- return take(output, {
3020
- FailedItems: (_) => de_RemediationExceptions(_, context),
3021
- FailureMessage: __expectString,
3022
- });
3023
- };
3024
- const de_FailedRemediationExceptionBatches = (output, context) => {
3025
- const retVal = (output || [])
3026
- .filter((e) => e != null)
3027
- .map((entry) => {
3028
- return de_FailedRemediationExceptionBatch(entry, context);
3029
- });
3030
- return retVal;
3031
- };
3032
- const de_GetAggregateComplianceDetailsByConfigRuleResponse = (output, context) => {
3033
- return take(output, {
3034
- AggregateEvaluationResults: (_) => de_AggregateEvaluationResultList(_, context),
3035
- NextToken: __expectString,
3036
- });
3037
- };
3038
- const de_GetAggregateConfigRuleComplianceSummaryResponse = (output, context) => {
3039
- return take(output, {
3040
- AggregateComplianceCounts: (_) => de_AggregateComplianceCountList(_, context),
3041
- GroupByKey: __expectString,
3042
- NextToken: __expectString,
3043
- });
3044
- };
3045
- const de_GetAggregateResourceConfigResponse = (output, context) => {
3046
- return take(output, {
3047
- ConfigurationItem: (_) => de_ConfigurationItem(_, context),
3048
- });
3049
- };
3050
- const de_GetComplianceDetailsByConfigRuleResponse = (output, context) => {
3051
- return take(output, {
3052
- EvaluationResults: (_) => de_EvaluationResults(_, context),
3053
- NextToken: __expectString,
3054
- });
3055
- };
3056
- const de_GetComplianceDetailsByResourceResponse = (output, context) => {
3057
- return take(output, {
3058
- EvaluationResults: (_) => de_EvaluationResults(_, context),
3059
- NextToken: __expectString,
3060
- });
3061
- };
3062
- const de_GetComplianceSummaryByConfigRuleResponse = (output, context) => {
3063
- return take(output, {
3064
- ComplianceSummary: (_) => de_ComplianceSummary(_, context),
3065
- });
3066
- };
3067
- const de_GetComplianceSummaryByResourceTypeResponse = (output, context) => {
3068
- return take(output, {
3069
- ComplianceSummariesByResourceType: (_) => de_ComplianceSummariesByResourceType(_, context),
3070
- });
3071
- };
3072
- const de_GetConformancePackComplianceDetailsResponse = (output, context) => {
3073
- return take(output, {
3074
- ConformancePackName: __expectString,
3075
- ConformancePackRuleEvaluationResults: (_) => de_ConformancePackRuleEvaluationResultsList(_, context),
3076
- NextToken: __expectString,
3077
- });
3078
- };
3079
- const de_GetOrganizationConfigRuleDetailedStatusResponse = (output, context) => {
3080
- return take(output, {
3081
- NextToken: __expectString,
3082
- OrganizationConfigRuleDetailedStatus: (_) => de_OrganizationConfigRuleDetailedStatus(_, context),
3083
- });
3084
- };
3085
- const de_GetOrganizationConformancePackDetailedStatusResponse = (output, context) => {
3086
- return take(output, {
3087
- NextToken: __expectString,
3088
- OrganizationConformancePackDetailedStatuses: (_) => de_OrganizationConformancePackDetailedStatuses(_, context),
3089
- });
3090
- };
3091
- const de_GetResourceConfigHistoryResponse = (output, context) => {
3092
- return take(output, {
3093
- configurationItems: (_) => de_ConfigurationItemList(_, context),
3094
- nextToken: __expectString,
3095
- });
3096
- };
3097
- const de_GetResourceEvaluationSummaryResponse = (output, context) => {
3098
- return take(output, {
3099
- Compliance: __expectString,
3100
- EvaluationContext: _json,
3101
- EvaluationMode: __expectString,
3102
- EvaluationStartTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3103
- EvaluationStatus: _json,
3104
- ResourceDetails: _json,
3105
- ResourceEvaluationId: __expectString,
3106
- });
3107
- };
3108
- const de_ListConformancePackComplianceScoresResponse = (output, context) => {
3109
- return take(output, {
3110
- ConformancePackComplianceScores: (_) => de_ConformancePackComplianceScores(_, context),
3111
- NextToken: __expectString,
3112
- });
3113
- };
3114
- const de_ListDiscoveredResourcesResponse = (output, context) => {
3115
- return take(output, {
3116
- nextToken: __expectString,
3117
- resourceIdentifiers: (_) => de_ResourceIdentifierList(_, context),
3118
- });
3119
- };
3120
- const de_ListResourceEvaluationsResponse = (output, context) => {
3121
- return take(output, {
3122
- NextToken: __expectString,
3123
- ResourceEvaluations: (_) => de_ResourceEvaluations(_, context),
3124
- });
3125
- };
3126
- const de_MemberAccountStatus = (output, context) => {
3127
- return take(output, {
3128
- AccountId: __expectString,
3129
- ConfigRuleName: __expectString,
3130
- ErrorCode: __expectString,
3131
- ErrorMessage: __expectString,
3132
- LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3133
- MemberAccountRuleStatus: __expectString,
3134
- });
3135
- };
3136
- const de_OrganizationConfigRule = (output, context) => {
3137
- return take(output, {
3138
- ExcludedAccounts: _json,
3139
- LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3140
- OrganizationConfigRuleArn: __expectString,
3141
- OrganizationConfigRuleName: __expectString,
3142
- OrganizationCustomPolicyRuleMetadata: _json,
3143
- OrganizationCustomRuleMetadata: _json,
3144
- OrganizationManagedRuleMetadata: _json,
3145
- });
3146
- };
3147
- const de_OrganizationConfigRuleDetailedStatus = (output, context) => {
3148
- const retVal = (output || [])
3149
- .filter((e) => e != null)
3150
- .map((entry) => {
3151
- return de_MemberAccountStatus(entry, context);
3152
- });
3153
- return retVal;
3154
- };
3155
- const de_OrganizationConfigRules = (output, context) => {
3156
- const retVal = (output || [])
3157
- .filter((e) => e != null)
3158
- .map((entry) => {
3159
- return de_OrganizationConfigRule(entry, context);
3160
- });
3161
- return retVal;
3162
- };
3163
- const de_OrganizationConfigRuleStatus = (output, context) => {
3164
- return take(output, {
3165
- ErrorCode: __expectString,
3166
- ErrorMessage: __expectString,
3167
- LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3168
- OrganizationConfigRuleName: __expectString,
3169
- OrganizationRuleStatus: __expectString,
3170
- });
3171
- };
3172
- const de_OrganizationConfigRuleStatuses = (output, context) => {
3173
- const retVal = (output || [])
3174
- .filter((e) => e != null)
3175
- .map((entry) => {
3176
- return de_OrganizationConfigRuleStatus(entry, context);
3177
- });
3178
- return retVal;
3179
- };
3180
- const de_OrganizationConformancePack = (output, context) => {
3181
- return take(output, {
3182
- ConformancePackInputParameters: _json,
3183
- DeliveryS3Bucket: __expectString,
3184
- DeliveryS3KeyPrefix: __expectString,
3185
- ExcludedAccounts: _json,
3186
- LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3187
- OrganizationConformancePackArn: __expectString,
3188
- OrganizationConformancePackName: __expectString,
3189
- });
3190
- };
3191
- const de_OrganizationConformancePackDetailedStatus = (output, context) => {
3192
- return take(output, {
3193
- AccountId: __expectString,
3194
- ConformancePackName: __expectString,
3195
- ErrorCode: __expectString,
3196
- ErrorMessage: __expectString,
3197
- LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3198
- Status: __expectString,
3199
- });
3200
- };
3201
- const de_OrganizationConformancePackDetailedStatuses = (output, context) => {
3202
- const retVal = (output || [])
3203
- .filter((e) => e != null)
3204
- .map((entry) => {
3205
- return de_OrganizationConformancePackDetailedStatus(entry, context);
3206
- });
3207
- return retVal;
3208
- };
3209
- const de_OrganizationConformancePacks = (output, context) => {
3210
- const retVal = (output || [])
3211
- .filter((e) => e != null)
3212
- .map((entry) => {
3213
- return de_OrganizationConformancePack(entry, context);
3214
- });
3215
- return retVal;
3216
- };
3217
- const de_OrganizationConformancePackStatus = (output, context) => {
3218
- return take(output, {
3219
- ErrorCode: __expectString,
3220
- ErrorMessage: __expectString,
3221
- LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3222
- OrganizationConformancePackName: __expectString,
3223
- Status: __expectString,
3224
- });
3225
- };
3226
- const de_OrganizationConformancePackStatuses = (output, context) => {
3227
- const retVal = (output || [])
3228
- .filter((e) => e != null)
3229
- .map((entry) => {
3230
- return de_OrganizationConformancePackStatus(entry, context);
3231
- });
3232
- return retVal;
3233
- };
3234
- const de_PutAggregationAuthorizationResponse = (output, context) => {
3235
- return take(output, {
3236
- AggregationAuthorization: (_) => de_AggregationAuthorization(_, context),
3237
- });
3238
- };
3239
- const de_PutConfigurationAggregatorResponse = (output, context) => {
3240
- return take(output, {
3241
- ConfigurationAggregator: (_) => de_ConfigurationAggregator(_, context),
3242
- });
3243
- };
3244
- const de_PutEvaluationsResponse = (output, context) => {
3245
- return take(output, {
3246
- FailedEvaluations: (_) => de_Evaluations(_, context),
3247
- });
3248
- };
3249
- const de_PutRemediationExceptionsResponse = (output, context) => {
3250
- return take(output, {
3251
- FailedBatches: (_) => de_FailedRemediationExceptionBatches(_, context),
3252
- });
3253
- };
3254
- const de_RemediationException = (output, context) => {
3255
- return take(output, {
3256
- ConfigRuleName: __expectString,
3257
- ExpirationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3258
- Message: __expectString,
3259
- ResourceId: __expectString,
3260
- ResourceType: __expectString,
3261
- });
3262
- };
3263
- const de_RemediationExceptions = (output, context) => {
3264
- const retVal = (output || [])
3265
- .filter((e) => e != null)
3266
- .map((entry) => {
3267
- return de_RemediationException(entry, context);
3268
- });
3269
- return retVal;
3270
- };
3271
- const de_RemediationExecutionStatus = (output, context) => {
3272
- return take(output, {
3273
- InvocationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3274
- LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3275
- ResourceKey: _json,
3276
- State: __expectString,
3277
- StepDetails: (_) => de_RemediationExecutionSteps(_, context),
3278
- });
3279
- };
3280
- const de_RemediationExecutionStatuses = (output, context) => {
3281
- const retVal = (output || [])
3282
- .filter((e) => e != null)
3283
- .map((entry) => {
3284
- return de_RemediationExecutionStatus(entry, context);
3285
- });
3286
- return retVal;
3287
- };
3288
- const de_RemediationExecutionStep = (output, context) => {
3289
- return take(output, {
3290
- ErrorMessage: __expectString,
3291
- Name: __expectString,
3292
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3293
- State: __expectString,
3294
- StopTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3295
- });
3296
- };
3297
- const de_RemediationExecutionSteps = (output, context) => {
3298
- const retVal = (output || [])
3299
- .filter((e) => e != null)
3300
- .map((entry) => {
3301
- return de_RemediationExecutionStep(entry, context);
3302
- });
3303
- return retVal;
3304
- };
3305
- const de_ResourceEvaluation = (output, context) => {
3306
- return take(output, {
3307
- EvaluationMode: __expectString,
3308
- EvaluationStartTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3309
- ResourceEvaluationId: __expectString,
3310
- });
3311
- };
3312
- const de_ResourceEvaluations = (output, context) => {
3313
- const retVal = (output || [])
3314
- .filter((e) => e != null)
3315
- .map((entry) => {
3316
- return de_ResourceEvaluation(entry, context);
3317
- });
3318
- return retVal;
3319
- };
3320
- const de_ResourceIdentifier = (output, context) => {
3321
- return take(output, {
3322
- resourceDeletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3323
- resourceId: __expectString,
3324
- resourceName: __expectString,
3325
- resourceType: __expectString,
3326
- });
3327
- };
3328
- const de_ResourceIdentifierList = (output, context) => {
3329
- const retVal = (output || [])
3330
- .filter((e) => e != null)
3331
- .map((entry) => {
3332
- return de_ResourceIdentifier(entry, context);
3333
- });
3334
- return retVal;
3335
- };
3336
- const deserializeMetadata = (output) => ({
3337
- httpStatusCode: output.statusCode,
3338
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
3339
- extendedRequestId: output.headers["x-amz-id-2"],
3340
- cfId: output.headers["x-amz-cf-id"],
3341
- });
3342
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3343
- const throwDefaultError = withBaseException(__BaseException);
3344
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
3345
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3346
- const contents = {
3347
- protocol,
3348
- hostname,
3349
- port,
3350
- method: "POST",
3351
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
3352
- headers,
3353
- };
3354
- if (resolvedHostname !== undefined) {
3355
- contents.hostname = resolvedHostname;
3356
- }
3357
- if (body !== undefined) {
3358
- contents.body = body;
3359
- }
3360
- return new __HttpRequest(contents);
3361
- };
3362
- function sharedHeaders(operation) {
3363
- return {
3364
- "content-type": "application/x-amz-json-1.1",
3365
- "x-amz-target": `StarlingDoveService.${operation}`,
3366
- };
3367
- }