@aws-sdk/client-accessanalyzer 3.193.0 → 3.196.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/AccessAnalyzerClient.js +11 -8
- package/dist-cjs/commands/ApplyArchiveRuleCommand.js +10 -0
- package/dist-cjs/commands/CancelPolicyGenerationCommand.js +10 -0
- package/dist-cjs/commands/CreateAccessPreviewCommand.js +10 -0
- package/dist-cjs/commands/CreateAnalyzerCommand.js +10 -0
- package/dist-cjs/commands/CreateArchiveRuleCommand.js +10 -0
- package/dist-cjs/commands/DeleteAnalyzerCommand.js +10 -0
- package/dist-cjs/commands/DeleteArchiveRuleCommand.js +10 -0
- package/dist-cjs/commands/GetAccessPreviewCommand.js +10 -0
- package/dist-cjs/commands/GetAnalyzedResourceCommand.js +10 -0
- package/dist-cjs/commands/GetAnalyzerCommand.js +10 -0
- package/dist-cjs/commands/GetArchiveRuleCommand.js +10 -0
- package/dist-cjs/commands/GetFindingCommand.js +10 -0
- package/dist-cjs/commands/GetGeneratedPolicyCommand.js +10 -0
- package/dist-cjs/commands/ListAccessPreviewFindingsCommand.js +10 -0
- package/dist-cjs/commands/ListAccessPreviewsCommand.js +10 -0
- package/dist-cjs/commands/ListAnalyzedResourcesCommand.js +10 -0
- package/dist-cjs/commands/ListAnalyzersCommand.js +10 -0
- package/dist-cjs/commands/ListArchiveRulesCommand.js +10 -0
- package/dist-cjs/commands/ListFindingsCommand.js +10 -0
- package/dist-cjs/commands/ListPolicyGenerationsCommand.js +10 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +10 -0
- package/dist-cjs/commands/StartPolicyGenerationCommand.js +10 -0
- package/dist-cjs/commands/StartResourceScanCommand.js +10 -0
- package/dist-cjs/commands/TagResourceCommand.js +10 -0
- package/dist-cjs/commands/UntagResourceCommand.js +10 -0
- package/dist-cjs/commands/UpdateArchiveRuleCommand.js +10 -0
- package/dist-cjs/commands/UpdateFindingsCommand.js +10 -0
- package/dist-cjs/commands/ValidatePolicyCommand.js +10 -0
- package/dist-cjs/endpoint/EndpointParameters.js +13 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +318 -0
- package/dist-cjs/models/models_0.js +93 -3
- package/dist-cjs/protocols/Aws_restJson1.js +259 -0
- package/dist-cjs/runtimeConfig.shared.js +3 -3
- package/dist-es/AccessAnalyzerClient.js +12 -9
- package/dist-es/commands/ApplyArchiveRuleCommand.js +10 -0
- package/dist-es/commands/CancelPolicyGenerationCommand.js +10 -0
- package/dist-es/commands/CreateAccessPreviewCommand.js +10 -0
- package/dist-es/commands/CreateAnalyzerCommand.js +10 -0
- package/dist-es/commands/CreateArchiveRuleCommand.js +10 -0
- package/dist-es/commands/DeleteAnalyzerCommand.js +10 -0
- package/dist-es/commands/DeleteArchiveRuleCommand.js +10 -0
- package/dist-es/commands/GetAccessPreviewCommand.js +10 -0
- package/dist-es/commands/GetAnalyzedResourceCommand.js +10 -0
- package/dist-es/commands/GetAnalyzerCommand.js +10 -0
- package/dist-es/commands/GetArchiveRuleCommand.js +10 -0
- package/dist-es/commands/GetFindingCommand.js +10 -0
- package/dist-es/commands/GetGeneratedPolicyCommand.js +10 -0
- package/dist-es/commands/ListAccessPreviewFindingsCommand.js +10 -0
- package/dist-es/commands/ListAccessPreviewsCommand.js +10 -0
- package/dist-es/commands/ListAnalyzedResourcesCommand.js +10 -0
- package/dist-es/commands/ListAnalyzersCommand.js +10 -0
- package/dist-es/commands/ListArchiveRulesCommand.js +10 -0
- package/dist-es/commands/ListFindingsCommand.js +10 -0
- package/dist-es/commands/ListPolicyGenerationsCommand.js +10 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +10 -0
- package/dist-es/commands/StartPolicyGenerationCommand.js +10 -0
- package/dist-es/commands/StartResourceScanCommand.js +10 -0
- package/dist-es/commands/TagResourceCommand.js +10 -0
- package/dist-es/commands/UntagResourceCommand.js +10 -0
- package/dist-es/commands/UpdateArchiveRuleCommand.js +10 -0
- package/dist-es/commands/UpdateFindingsCommand.js +10 -0
- package/dist-es/commands/ValidatePolicyCommand.js +10 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +315 -0
- package/dist-es/models/models_0.js +82 -0
- package/dist-es/protocols/Aws_restJson1.js +260 -1
- package/dist-es/runtimeConfig.shared.js +2 -2
- package/dist-types/AccessAnalyzerClient.d.ts +6 -9
- package/dist-types/commands/ApplyArchiveRuleCommand.d.ts +2 -0
- package/dist-types/commands/CancelPolicyGenerationCommand.d.ts +2 -0
- package/dist-types/commands/CreateAccessPreviewCommand.d.ts +2 -0
- package/dist-types/commands/CreateAnalyzerCommand.d.ts +2 -0
- package/dist-types/commands/CreateArchiveRuleCommand.d.ts +2 -0
- package/dist-types/commands/DeleteAnalyzerCommand.d.ts +2 -0
- package/dist-types/commands/DeleteArchiveRuleCommand.d.ts +2 -0
- package/dist-types/commands/GetAccessPreviewCommand.d.ts +2 -0
- package/dist-types/commands/GetAnalyzedResourceCommand.d.ts +2 -0
- package/dist-types/commands/GetAnalyzerCommand.d.ts +2 -0
- package/dist-types/commands/GetArchiveRuleCommand.d.ts +2 -0
- package/dist-types/commands/GetFindingCommand.d.ts +2 -0
- package/dist-types/commands/GetGeneratedPolicyCommand.d.ts +2 -0
- package/dist-types/commands/ListAccessPreviewFindingsCommand.d.ts +2 -0
- package/dist-types/commands/ListAccessPreviewsCommand.d.ts +2 -0
- package/dist-types/commands/ListAnalyzedResourcesCommand.d.ts +2 -0
- package/dist-types/commands/ListAnalyzersCommand.d.ts +2 -0
- package/dist-types/commands/ListArchiveRulesCommand.d.ts +2 -0
- package/dist-types/commands/ListFindingsCommand.d.ts +2 -0
- package/dist-types/commands/ListPolicyGenerationsCommand.d.ts +2 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -0
- package/dist-types/commands/StartPolicyGenerationCommand.d.ts +2 -0
- package/dist-types/commands/StartResourceScanCommand.d.ts +2 -0
- package/dist-types/commands/TagResourceCommand.d.ts +2 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -0
- package/dist-types/commands/UpdateArchiveRuleCommand.d.ts +2 -0
- package/dist-types/commands/UpdateFindingsCommand.d.ts +2 -0
- package/dist-types/commands/ValidatePolicyCommand.d.ts +2 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +475 -5
- package/dist-types/runtimeConfig.browser.d.ts +4 -2
- package/dist-types/runtimeConfig.d.ts +4 -2
- package/dist-types/runtimeConfig.native.d.ts +4 -2
- package/dist-types/runtimeConfig.shared.d.ts +3 -1
- package/dist-types/ts3.4/AccessAnalyzerClient.d.ts +15 -8
- package/dist-types/ts3.4/commands/ApplyArchiveRuleCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CancelPolicyGenerationCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreateAccessPreviewCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreateAnalyzerCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreateArchiveRuleCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteAnalyzerCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteArchiveRuleCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetAccessPreviewCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetAnalyzedResourceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetAnalyzerCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetArchiveRuleCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetFindingCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetGeneratedPolicyCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListAccessPreviewFindingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListAccessPreviewsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListAnalyzedResourcesCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListAnalyzersCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListArchiveRulesCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListFindingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListPolicyGenerationsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/StartPolicyGenerationCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/StartResourceScanCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateArchiveRuleCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateFindingsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ValidatePolicyCommand.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +227 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
- package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
- package/package.json +5 -3
- package/dist-cjs/endpoints.js +0 -196
- package/dist-es/endpoints.js +0 -192
- package/dist-types/endpoints.d.ts +0 -2
- package/dist-types/ts3.4/endpoints.d.ts +0 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.ValidatePolicyResponseFilterSensitiveLog = exports.ValidatePolicyFindingFilterSensitiveLog = exports.LocationFilterSensitiveLog = exports.SpanFilterSensitiveLog = exports.PositionFilterSensitiveLog = exports.PathElementFilterSensitiveLog = exports.SubstringFilterSensitiveLog = exports.ValidatePolicyRequestFilterSensitiveLog = exports.UpdateFindingsRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.StartResourceScanRequestFilterSensitiveLog = exports.StartPolicyGenerationResponseFilterSensitiveLog = exports.StartPolicyGenerationRequestFilterSensitiveLog = exports.PolicyGenerationDetailsFilterSensitiveLog = exports.CloudTrailDetailsFilterSensitiveLog = exports.TrailFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = void 0;
|
|
3
|
+
exports.EcrRepositoryConfigurationFilterSensitiveLog = exports.EbsSnapshotConfigurationFilterSensitiveLog = exports.CancelPolicyGenerationResponseFilterSensitiveLog = exports.CancelPolicyGenerationRequestFilterSensitiveLog = exports.ApplyArchiveRuleRequestFilterSensitiveLog = exports.ListAnalyzersResponseFilterSensitiveLog = exports.ListAnalyzersRequestFilterSensitiveLog = exports.GetAnalyzerResponseFilterSensitiveLog = exports.AnalyzerSummaryFilterSensitiveLog = exports.StatusReasonFilterSensitiveLog = exports.GetAnalyzerRequestFilterSensitiveLog = exports.DeleteAnalyzerRequestFilterSensitiveLog = exports.CreateAnalyzerResponseFilterSensitiveLog = exports.CreateAnalyzerRequestFilterSensitiveLog = exports.InlineArchiveRuleFilterSensitiveLog = exports.UpdateArchiveRuleRequestFilterSensitiveLog = exports.ListArchiveRulesResponseFilterSensitiveLog = exports.ListArchiveRulesRequestFilterSensitiveLog = exports.GetArchiveRuleResponseFilterSensitiveLog = exports.ArchiveRuleSummaryFilterSensitiveLog = exports.GetArchiveRuleRequestFilterSensitiveLog = exports.DeleteArchiveRuleRequestFilterSensitiveLog = exports.ValidationExceptionFieldFilterSensitiveLog = exports.CreateArchiveRuleRequestFilterSensitiveLog = exports.CriterionFilterSensitiveLog = exports.PathElement = exports.ValidatePolicyFindingType = exports.ValidatePolicyResourceType = exports.PolicyType = exports.Locale = exports.FindingChangeType = exports.JobStatus = exports.JobErrorCode = exports.AccessPreviewStatusReasonCode = exports.AccessPreviewStatus = exports.Configuration = exports.AclPermission = exports.AclGrantee = exports.NetworkOriginConfiguration = exports.RdsDbSnapshotAttributeValue = exports.RdsDbClusterSnapshotAttributeValue = exports.KmsGrantOperation = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.ListAccessPreviewsResponseFilterSensitiveLog = exports.AccessPreviewSummaryFilterSensitiveLog = exports.ListAccessPreviewsRequestFilterSensitiveLog = exports.ListAccessPreviewFindingsResponseFilterSensitiveLog = exports.AccessPreviewFindingFilterSensitiveLog = exports.ListAccessPreviewFindingsRequestFilterSensitiveLog = exports.GetGeneratedPolicyResponseFilterSensitiveLog = exports.JobDetailsFilterSensitiveLog = exports.JobErrorFilterSensitiveLog = exports.GeneratedPolicyResultFilterSensitiveLog = exports.GeneratedPolicyPropertiesFilterSensitiveLog = exports.CloudTrailPropertiesFilterSensitiveLog = exports.TrailPropertiesFilterSensitiveLog = exports.GeneratedPolicyFilterSensitiveLog = exports.GetGeneratedPolicyRequestFilterSensitiveLog = exports.GetFindingResponseFilterSensitiveLog = exports.FindingFilterSensitiveLog = exports.FindingSourceFilterSensitiveLog = exports.FindingSourceDetailFilterSensitiveLog = exports.GetFindingRequestFilterSensitiveLog = exports.GetAnalyzedResourceResponseFilterSensitiveLog = exports.AnalyzedResourceFilterSensitiveLog = exports.GetAnalyzedResourceRequestFilterSensitiveLog = exports.GetAccessPreviewResponseFilterSensitiveLog = exports.AccessPreviewFilterSensitiveLog = exports.AccessPreviewStatusReasonFilterSensitiveLog = exports.GetAccessPreviewRequestFilterSensitiveLog = exports.CreateAccessPreviewResponseFilterSensitiveLog = exports.CreateAccessPreviewRequestFilterSensitiveLog = exports.ConfigurationFilterSensitiveLog = exports.SqsQueueConfigurationFilterSensitiveLog = exports.SnsTopicConfigurationFilterSensitiveLog = exports.SecretsManagerSecretConfigurationFilterSensitiveLog = exports.S3BucketConfigurationFilterSensitiveLog = exports.S3BucketAclGrantConfigurationFilterSensitiveLog = exports.AclGranteeFilterSensitiveLog = exports.S3AccessPointConfigurationFilterSensitiveLog = exports.S3PublicAccessBlockConfigurationFilterSensitiveLog = exports.NetworkOriginConfigurationFilterSensitiveLog = exports.VpcConfigurationFilterSensitiveLog = exports.InternetConfigurationFilterSensitiveLog = exports.RdsDbSnapshotConfigurationFilterSensitiveLog = exports.RdsDbSnapshotAttributeValueFilterSensitiveLog = exports.RdsDbClusterSnapshotConfigurationFilterSensitiveLog = exports.RdsDbClusterSnapshotAttributeValueFilterSensitiveLog = exports.KmsKeyConfigurationFilterSensitiveLog = exports.KmsGrantConfigurationFilterSensitiveLog = exports.KmsGrantConstraintsFilterSensitiveLog = exports.IamRoleConfigurationFilterSensitiveLog = exports.EfsFileSystemConfigurationFilterSensitiveLog = void 0;
|
|
5
|
+
exports.ValidatePolicyResponseFilterSensitiveLog = exports.ValidatePolicyFindingFilterSensitiveLog = exports.LocationFilterSensitiveLog = exports.SpanFilterSensitiveLog = exports.PositionFilterSensitiveLog = exports.PathElementFilterSensitiveLog = exports.SubstringFilterSensitiveLog = exports.ValidatePolicyRequestFilterSensitiveLog = exports.UpdateFindingsRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.StartResourceScanRequestFilterSensitiveLog = exports.StartPolicyGenerationResponseFilterSensitiveLog = exports.StartPolicyGenerationRequestFilterSensitiveLog = exports.PolicyGenerationDetailsFilterSensitiveLog = exports.CloudTrailDetailsFilterSensitiveLog = exports.TrailFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListPolicyGenerationsResponseFilterSensitiveLog = exports.PolicyGenerationFilterSensitiveLog = exports.ListPolicyGenerationsRequestFilterSensitiveLog = exports.ListFindingsResponseFilterSensitiveLog = exports.FindingSummaryFilterSensitiveLog = exports.ListFindingsRequestFilterSensitiveLog = exports.SortCriteriaFilterSensitiveLog = exports.ListAnalyzedResourcesResponseFilterSensitiveLog = exports.AnalyzedResourceSummaryFilterSensitiveLog = exports.ListAnalyzedResourcesRequestFilterSensitiveLog = void 0;
|
|
6
6
|
const AccessAnalyzerServiceException_1 = require("./AccessAnalyzerServiceException");
|
|
7
7
|
class AccessDeniedException extends AccessAnalyzerServiceException_1.AccessAnalyzerServiceException {
|
|
8
8
|
constructor(opts) {
|
|
@@ -133,6 +133,22 @@ var KmsGrantOperation;
|
|
|
133
133
|
KmsGrantOperation["SIGN"] = "Sign";
|
|
134
134
|
KmsGrantOperation["VERIFY"] = "Verify";
|
|
135
135
|
})(KmsGrantOperation = exports.KmsGrantOperation || (exports.KmsGrantOperation = {}));
|
|
136
|
+
var RdsDbClusterSnapshotAttributeValue;
|
|
137
|
+
(function (RdsDbClusterSnapshotAttributeValue) {
|
|
138
|
+
RdsDbClusterSnapshotAttributeValue.visit = (value, visitor) => {
|
|
139
|
+
if (value.accountIds !== undefined)
|
|
140
|
+
return visitor.accountIds(value.accountIds);
|
|
141
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
142
|
+
};
|
|
143
|
+
})(RdsDbClusterSnapshotAttributeValue = exports.RdsDbClusterSnapshotAttributeValue || (exports.RdsDbClusterSnapshotAttributeValue = {}));
|
|
144
|
+
var RdsDbSnapshotAttributeValue;
|
|
145
|
+
(function (RdsDbSnapshotAttributeValue) {
|
|
146
|
+
RdsDbSnapshotAttributeValue.visit = (value, visitor) => {
|
|
147
|
+
if (value.accountIds !== undefined)
|
|
148
|
+
return visitor.accountIds(value.accountIds);
|
|
149
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
150
|
+
};
|
|
151
|
+
})(RdsDbSnapshotAttributeValue = exports.RdsDbSnapshotAttributeValue || (exports.RdsDbSnapshotAttributeValue = {}));
|
|
136
152
|
var NetworkOriginConfiguration;
|
|
137
153
|
(function (NetworkOriginConfiguration) {
|
|
138
154
|
NetworkOriginConfiguration.visit = (value, visitor) => {
|
|
@@ -164,14 +180,26 @@ var AclPermission;
|
|
|
164
180
|
var Configuration;
|
|
165
181
|
(function (Configuration) {
|
|
166
182
|
Configuration.visit = (value, visitor) => {
|
|
183
|
+
if (value.ebsSnapshot !== undefined)
|
|
184
|
+
return visitor.ebsSnapshot(value.ebsSnapshot);
|
|
185
|
+
if (value.ecrRepository !== undefined)
|
|
186
|
+
return visitor.ecrRepository(value.ecrRepository);
|
|
167
187
|
if (value.iamRole !== undefined)
|
|
168
188
|
return visitor.iamRole(value.iamRole);
|
|
189
|
+
if (value.efsFileSystem !== undefined)
|
|
190
|
+
return visitor.efsFileSystem(value.efsFileSystem);
|
|
169
191
|
if (value.kmsKey !== undefined)
|
|
170
192
|
return visitor.kmsKey(value.kmsKey);
|
|
193
|
+
if (value.rdsDbClusterSnapshot !== undefined)
|
|
194
|
+
return visitor.rdsDbClusterSnapshot(value.rdsDbClusterSnapshot);
|
|
195
|
+
if (value.rdsDbSnapshot !== undefined)
|
|
196
|
+
return visitor.rdsDbSnapshot(value.rdsDbSnapshot);
|
|
171
197
|
if (value.secretsManagerSecret !== undefined)
|
|
172
198
|
return visitor.secretsManagerSecret(value.secretsManagerSecret);
|
|
173
199
|
if (value.s3Bucket !== undefined)
|
|
174
200
|
return visitor.s3Bucket(value.s3Bucket);
|
|
201
|
+
if (value.snsTopic !== undefined)
|
|
202
|
+
return visitor.snsTopic(value.snsTopic);
|
|
175
203
|
if (value.sqsQueue !== undefined)
|
|
176
204
|
return visitor.sqsQueue(value.sqsQueue);
|
|
177
205
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
@@ -348,6 +376,18 @@ const CancelPolicyGenerationResponseFilterSensitiveLog = (obj) => ({
|
|
|
348
376
|
...obj,
|
|
349
377
|
});
|
|
350
378
|
exports.CancelPolicyGenerationResponseFilterSensitiveLog = CancelPolicyGenerationResponseFilterSensitiveLog;
|
|
379
|
+
const EbsSnapshotConfigurationFilterSensitiveLog = (obj) => ({
|
|
380
|
+
...obj,
|
|
381
|
+
});
|
|
382
|
+
exports.EbsSnapshotConfigurationFilterSensitiveLog = EbsSnapshotConfigurationFilterSensitiveLog;
|
|
383
|
+
const EcrRepositoryConfigurationFilterSensitiveLog = (obj) => ({
|
|
384
|
+
...obj,
|
|
385
|
+
});
|
|
386
|
+
exports.EcrRepositoryConfigurationFilterSensitiveLog = EcrRepositoryConfigurationFilterSensitiveLog;
|
|
387
|
+
const EfsFileSystemConfigurationFilterSensitiveLog = (obj) => ({
|
|
388
|
+
...obj,
|
|
389
|
+
});
|
|
390
|
+
exports.EfsFileSystemConfigurationFilterSensitiveLog = EfsFileSystemConfigurationFilterSensitiveLog;
|
|
351
391
|
const IamRoleConfigurationFilterSensitiveLog = (obj) => ({
|
|
352
392
|
...obj,
|
|
353
393
|
});
|
|
@@ -364,6 +404,40 @@ const KmsKeyConfigurationFilterSensitiveLog = (obj) => ({
|
|
|
364
404
|
...obj,
|
|
365
405
|
});
|
|
366
406
|
exports.KmsKeyConfigurationFilterSensitiveLog = KmsKeyConfigurationFilterSensitiveLog;
|
|
407
|
+
const RdsDbClusterSnapshotAttributeValueFilterSensitiveLog = (obj) => {
|
|
408
|
+
if (obj.accountIds !== undefined)
|
|
409
|
+
return { accountIds: obj.accountIds };
|
|
410
|
+
if (obj.$unknown !== undefined)
|
|
411
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
412
|
+
};
|
|
413
|
+
exports.RdsDbClusterSnapshotAttributeValueFilterSensitiveLog = RdsDbClusterSnapshotAttributeValueFilterSensitiveLog;
|
|
414
|
+
const RdsDbClusterSnapshotConfigurationFilterSensitiveLog = (obj) => ({
|
|
415
|
+
...obj,
|
|
416
|
+
...(obj.attributes && {
|
|
417
|
+
attributes: Object.entries(obj.attributes).reduce((acc, [key, value]) => ({
|
|
418
|
+
...acc,
|
|
419
|
+
[key]: (0, exports.RdsDbClusterSnapshotAttributeValueFilterSensitiveLog)(value),
|
|
420
|
+
}), {}),
|
|
421
|
+
}),
|
|
422
|
+
});
|
|
423
|
+
exports.RdsDbClusterSnapshotConfigurationFilterSensitiveLog = RdsDbClusterSnapshotConfigurationFilterSensitiveLog;
|
|
424
|
+
const RdsDbSnapshotAttributeValueFilterSensitiveLog = (obj) => {
|
|
425
|
+
if (obj.accountIds !== undefined)
|
|
426
|
+
return { accountIds: obj.accountIds };
|
|
427
|
+
if (obj.$unknown !== undefined)
|
|
428
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
429
|
+
};
|
|
430
|
+
exports.RdsDbSnapshotAttributeValueFilterSensitiveLog = RdsDbSnapshotAttributeValueFilterSensitiveLog;
|
|
431
|
+
const RdsDbSnapshotConfigurationFilterSensitiveLog = (obj) => ({
|
|
432
|
+
...obj,
|
|
433
|
+
...(obj.attributes && {
|
|
434
|
+
attributes: Object.entries(obj.attributes).reduce((acc, [key, value]) => ({
|
|
435
|
+
...acc,
|
|
436
|
+
[key]: (0, exports.RdsDbSnapshotAttributeValueFilterSensitiveLog)(value),
|
|
437
|
+
}), {}),
|
|
438
|
+
}),
|
|
439
|
+
});
|
|
440
|
+
exports.RdsDbSnapshotConfigurationFilterSensitiveLog = RdsDbSnapshotConfigurationFilterSensitiveLog;
|
|
367
441
|
const InternetConfigurationFilterSensitiveLog = (obj) => ({
|
|
368
442
|
...obj,
|
|
369
443
|
});
|
|
@@ -421,19 +495,35 @@ const SecretsManagerSecretConfigurationFilterSensitiveLog = (obj) => ({
|
|
|
421
495
|
...obj,
|
|
422
496
|
});
|
|
423
497
|
exports.SecretsManagerSecretConfigurationFilterSensitiveLog = SecretsManagerSecretConfigurationFilterSensitiveLog;
|
|
498
|
+
const SnsTopicConfigurationFilterSensitiveLog = (obj) => ({
|
|
499
|
+
...obj,
|
|
500
|
+
});
|
|
501
|
+
exports.SnsTopicConfigurationFilterSensitiveLog = SnsTopicConfigurationFilterSensitiveLog;
|
|
424
502
|
const SqsQueueConfigurationFilterSensitiveLog = (obj) => ({
|
|
425
503
|
...obj,
|
|
426
504
|
});
|
|
427
505
|
exports.SqsQueueConfigurationFilterSensitiveLog = SqsQueueConfigurationFilterSensitiveLog;
|
|
428
506
|
const ConfigurationFilterSensitiveLog = (obj) => {
|
|
507
|
+
if (obj.ebsSnapshot !== undefined)
|
|
508
|
+
return { ebsSnapshot: (0, exports.EbsSnapshotConfigurationFilterSensitiveLog)(obj.ebsSnapshot) };
|
|
509
|
+
if (obj.ecrRepository !== undefined)
|
|
510
|
+
return { ecrRepository: (0, exports.EcrRepositoryConfigurationFilterSensitiveLog)(obj.ecrRepository) };
|
|
429
511
|
if (obj.iamRole !== undefined)
|
|
430
512
|
return { iamRole: (0, exports.IamRoleConfigurationFilterSensitiveLog)(obj.iamRole) };
|
|
513
|
+
if (obj.efsFileSystem !== undefined)
|
|
514
|
+
return { efsFileSystem: (0, exports.EfsFileSystemConfigurationFilterSensitiveLog)(obj.efsFileSystem) };
|
|
431
515
|
if (obj.kmsKey !== undefined)
|
|
432
516
|
return { kmsKey: (0, exports.KmsKeyConfigurationFilterSensitiveLog)(obj.kmsKey) };
|
|
517
|
+
if (obj.rdsDbClusterSnapshot !== undefined)
|
|
518
|
+
return { rdsDbClusterSnapshot: (0, exports.RdsDbClusterSnapshotConfigurationFilterSensitiveLog)(obj.rdsDbClusterSnapshot) };
|
|
519
|
+
if (obj.rdsDbSnapshot !== undefined)
|
|
520
|
+
return { rdsDbSnapshot: (0, exports.RdsDbSnapshotConfigurationFilterSensitiveLog)(obj.rdsDbSnapshot) };
|
|
433
521
|
if (obj.secretsManagerSecret !== undefined)
|
|
434
522
|
return { secretsManagerSecret: (0, exports.SecretsManagerSecretConfigurationFilterSensitiveLog)(obj.secretsManagerSecret) };
|
|
435
523
|
if (obj.s3Bucket !== undefined)
|
|
436
524
|
return { s3Bucket: (0, exports.S3BucketConfigurationFilterSensitiveLog)(obj.s3Bucket) };
|
|
525
|
+
if (obj.snsTopic !== undefined)
|
|
526
|
+
return { snsTopic: (0, exports.SnsTopicConfigurationFilterSensitiveLog)(obj.snsTopic) };
|
|
437
527
|
if (obj.sqsQueue !== undefined)
|
|
438
528
|
return { sqsQueue: (0, exports.SqsQueueConfigurationFilterSensitiveLog)(obj.sqsQueue) };
|
|
439
529
|
if (obj.$unknown !== undefined)
|
|
@@ -515,6 +515,7 @@ const serializeAws_restJson1StartResourceScanCommand = async (input, context) =>
|
|
|
515
515
|
body = JSON.stringify({
|
|
516
516
|
...(input.analyzerArn != null && { analyzerArn: input.analyzerArn }),
|
|
517
517
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
518
|
+
...(input.resourceOwnerAccount != null && { resourceOwnerAccount: input.resourceOwnerAccount }),
|
|
518
519
|
});
|
|
519
520
|
return new protocol_http_1.HttpRequest({
|
|
520
521
|
protocol,
|
|
@@ -2075,12 +2076,20 @@ const serializeAws_restJson1CloudTrailDetails = (input, context) => {
|
|
|
2075
2076
|
};
|
|
2076
2077
|
const serializeAws_restJson1Configuration = (input, context) => {
|
|
2077
2078
|
return models_0_1.Configuration.visit(input, {
|
|
2079
|
+
ebsSnapshot: (value) => ({ ebsSnapshot: serializeAws_restJson1EbsSnapshotConfiguration(value, context) }),
|
|
2080
|
+
ecrRepository: (value) => ({ ecrRepository: serializeAws_restJson1EcrRepositoryConfiguration(value, context) }),
|
|
2081
|
+
efsFileSystem: (value) => ({ efsFileSystem: serializeAws_restJson1EfsFileSystemConfiguration(value, context) }),
|
|
2078
2082
|
iamRole: (value) => ({ iamRole: serializeAws_restJson1IamRoleConfiguration(value, context) }),
|
|
2079
2083
|
kmsKey: (value) => ({ kmsKey: serializeAws_restJson1KmsKeyConfiguration(value, context) }),
|
|
2084
|
+
rdsDbClusterSnapshot: (value) => ({
|
|
2085
|
+
rdsDbClusterSnapshot: serializeAws_restJson1RdsDbClusterSnapshotConfiguration(value, context),
|
|
2086
|
+
}),
|
|
2087
|
+
rdsDbSnapshot: (value) => ({ rdsDbSnapshot: serializeAws_restJson1RdsDbSnapshotConfiguration(value, context) }),
|
|
2080
2088
|
s3Bucket: (value) => ({ s3Bucket: serializeAws_restJson1S3BucketConfiguration(value, context) }),
|
|
2081
2089
|
secretsManagerSecret: (value) => ({
|
|
2082
2090
|
secretsManagerSecret: serializeAws_restJson1SecretsManagerSecretConfiguration(value, context),
|
|
2083
2091
|
}),
|
|
2092
|
+
snsTopic: (value) => ({ snsTopic: serializeAws_restJson1SnsTopicConfiguration(value, context) }),
|
|
2084
2093
|
sqsQueue: (value) => ({ sqsQueue: serializeAws_restJson1SqsQueueConfiguration(value, context) }),
|
|
2085
2094
|
_: (name, value) => ({ name: value }),
|
|
2086
2095
|
});
|
|
@@ -2104,6 +2113,37 @@ const serializeAws_restJson1Criterion = (input, context) => {
|
|
|
2104
2113
|
...(input.neq != null && { neq: serializeAws_restJson1ValueList(input.neq, context) }),
|
|
2105
2114
|
};
|
|
2106
2115
|
};
|
|
2116
|
+
const serializeAws_restJson1EbsGroupList = (input, context) => {
|
|
2117
|
+
return input
|
|
2118
|
+
.filter((e) => e != null)
|
|
2119
|
+
.map((entry) => {
|
|
2120
|
+
return entry;
|
|
2121
|
+
});
|
|
2122
|
+
};
|
|
2123
|
+
const serializeAws_restJson1EbsSnapshotConfiguration = (input, context) => {
|
|
2124
|
+
return {
|
|
2125
|
+
...(input.groups != null && { groups: serializeAws_restJson1EbsGroupList(input.groups, context) }),
|
|
2126
|
+
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2127
|
+
...(input.userIds != null && { userIds: serializeAws_restJson1EbsUserIdList(input.userIds, context) }),
|
|
2128
|
+
};
|
|
2129
|
+
};
|
|
2130
|
+
const serializeAws_restJson1EbsUserIdList = (input, context) => {
|
|
2131
|
+
return input
|
|
2132
|
+
.filter((e) => e != null)
|
|
2133
|
+
.map((entry) => {
|
|
2134
|
+
return entry;
|
|
2135
|
+
});
|
|
2136
|
+
};
|
|
2137
|
+
const serializeAws_restJson1EcrRepositoryConfiguration = (input, context) => {
|
|
2138
|
+
return {
|
|
2139
|
+
...(input.repositoryPolicy != null && { repositoryPolicy: input.repositoryPolicy }),
|
|
2140
|
+
};
|
|
2141
|
+
};
|
|
2142
|
+
const serializeAws_restJson1EfsFileSystemConfiguration = (input, context) => {
|
|
2143
|
+
return {
|
|
2144
|
+
...(input.fileSystemPolicy != null && { fileSystemPolicy: input.fileSystemPolicy }),
|
|
2145
|
+
};
|
|
2146
|
+
};
|
|
2107
2147
|
const serializeAws_restJson1FilterCriteriaMap = (input, context) => {
|
|
2108
2148
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2109
2149
|
if (value === null) {
|
|
@@ -2224,6 +2264,70 @@ const serializeAws_restJson1PolicyGenerationDetails = (input, context) => {
|
|
|
2224
2264
|
...(input.principalArn != null && { principalArn: input.principalArn }),
|
|
2225
2265
|
};
|
|
2226
2266
|
};
|
|
2267
|
+
const serializeAws_restJson1RdsDbClusterSnapshotAccountIdsList = (input, context) => {
|
|
2268
|
+
return input
|
|
2269
|
+
.filter((e) => e != null)
|
|
2270
|
+
.map((entry) => {
|
|
2271
|
+
return entry;
|
|
2272
|
+
});
|
|
2273
|
+
};
|
|
2274
|
+
const serializeAws_restJson1RdsDbClusterSnapshotAttributesMap = (input, context) => {
|
|
2275
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2276
|
+
if (value === null) {
|
|
2277
|
+
return acc;
|
|
2278
|
+
}
|
|
2279
|
+
return {
|
|
2280
|
+
...acc,
|
|
2281
|
+
[key]: serializeAws_restJson1RdsDbClusterSnapshotAttributeValue(value, context),
|
|
2282
|
+
};
|
|
2283
|
+
}, {});
|
|
2284
|
+
};
|
|
2285
|
+
const serializeAws_restJson1RdsDbClusterSnapshotAttributeValue = (input, context) => {
|
|
2286
|
+
return models_0_1.RdsDbClusterSnapshotAttributeValue.visit(input, {
|
|
2287
|
+
accountIds: (value) => ({ accountIds: serializeAws_restJson1RdsDbClusterSnapshotAccountIdsList(value, context) }),
|
|
2288
|
+
_: (name, value) => ({ name: value }),
|
|
2289
|
+
});
|
|
2290
|
+
};
|
|
2291
|
+
const serializeAws_restJson1RdsDbClusterSnapshotConfiguration = (input, context) => {
|
|
2292
|
+
return {
|
|
2293
|
+
...(input.attributes != null && {
|
|
2294
|
+
attributes: serializeAws_restJson1RdsDbClusterSnapshotAttributesMap(input.attributes, context),
|
|
2295
|
+
}),
|
|
2296
|
+
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2297
|
+
};
|
|
2298
|
+
};
|
|
2299
|
+
const serializeAws_restJson1RdsDbSnapshotAccountIdsList = (input, context) => {
|
|
2300
|
+
return input
|
|
2301
|
+
.filter((e) => e != null)
|
|
2302
|
+
.map((entry) => {
|
|
2303
|
+
return entry;
|
|
2304
|
+
});
|
|
2305
|
+
};
|
|
2306
|
+
const serializeAws_restJson1RdsDbSnapshotAttributesMap = (input, context) => {
|
|
2307
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2308
|
+
if (value === null) {
|
|
2309
|
+
return acc;
|
|
2310
|
+
}
|
|
2311
|
+
return {
|
|
2312
|
+
...acc,
|
|
2313
|
+
[key]: serializeAws_restJson1RdsDbSnapshotAttributeValue(value, context),
|
|
2314
|
+
};
|
|
2315
|
+
}, {});
|
|
2316
|
+
};
|
|
2317
|
+
const serializeAws_restJson1RdsDbSnapshotAttributeValue = (input, context) => {
|
|
2318
|
+
return models_0_1.RdsDbSnapshotAttributeValue.visit(input, {
|
|
2319
|
+
accountIds: (value) => ({ accountIds: serializeAws_restJson1RdsDbSnapshotAccountIdsList(value, context) }),
|
|
2320
|
+
_: (name, value) => ({ name: value }),
|
|
2321
|
+
});
|
|
2322
|
+
};
|
|
2323
|
+
const serializeAws_restJson1RdsDbSnapshotConfiguration = (input, context) => {
|
|
2324
|
+
return {
|
|
2325
|
+
...(input.attributes != null && {
|
|
2326
|
+
attributes: serializeAws_restJson1RdsDbSnapshotAttributesMap(input.attributes, context),
|
|
2327
|
+
}),
|
|
2328
|
+
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2329
|
+
};
|
|
2330
|
+
};
|
|
2227
2331
|
const serializeAws_restJson1RegionList = (input, context) => {
|
|
2228
2332
|
return input
|
|
2229
2333
|
.filter((e) => e != null)
|
|
@@ -2292,6 +2396,11 @@ const serializeAws_restJson1SecretsManagerSecretConfiguration = (input, context)
|
|
|
2292
2396
|
...(input.secretPolicy != null && { secretPolicy: input.secretPolicy }),
|
|
2293
2397
|
};
|
|
2294
2398
|
};
|
|
2399
|
+
const serializeAws_restJson1SnsTopicConfiguration = (input, context) => {
|
|
2400
|
+
return {
|
|
2401
|
+
...(input.topicPolicy != null && { topicPolicy: input.topicPolicy }),
|
|
2402
|
+
};
|
|
2403
|
+
};
|
|
2295
2404
|
const serializeAws_restJson1SortCriteria = (input, context) => {
|
|
2296
2405
|
return {
|
|
2297
2406
|
...(input.attributeName != null && { attributeName: input.attributeName }),
|
|
@@ -2530,6 +2639,21 @@ const deserializeAws_restJson1ConditionKeyMap = (output, context) => {
|
|
|
2530
2639
|
}, {});
|
|
2531
2640
|
};
|
|
2532
2641
|
const deserializeAws_restJson1Configuration = (output, context) => {
|
|
2642
|
+
if (output.ebsSnapshot != null) {
|
|
2643
|
+
return {
|
|
2644
|
+
ebsSnapshot: deserializeAws_restJson1EbsSnapshotConfiguration(output.ebsSnapshot, context),
|
|
2645
|
+
};
|
|
2646
|
+
}
|
|
2647
|
+
if (output.ecrRepository != null) {
|
|
2648
|
+
return {
|
|
2649
|
+
ecrRepository: deserializeAws_restJson1EcrRepositoryConfiguration(output.ecrRepository, context),
|
|
2650
|
+
};
|
|
2651
|
+
}
|
|
2652
|
+
if (output.efsFileSystem != null) {
|
|
2653
|
+
return {
|
|
2654
|
+
efsFileSystem: deserializeAws_restJson1EfsFileSystemConfiguration(output.efsFileSystem, context),
|
|
2655
|
+
};
|
|
2656
|
+
}
|
|
2533
2657
|
if (output.iamRole != null) {
|
|
2534
2658
|
return {
|
|
2535
2659
|
iamRole: deserializeAws_restJson1IamRoleConfiguration(output.iamRole, context),
|
|
@@ -2540,6 +2664,16 @@ const deserializeAws_restJson1Configuration = (output, context) => {
|
|
|
2540
2664
|
kmsKey: deserializeAws_restJson1KmsKeyConfiguration(output.kmsKey, context),
|
|
2541
2665
|
};
|
|
2542
2666
|
}
|
|
2667
|
+
if (output.rdsDbClusterSnapshot != null) {
|
|
2668
|
+
return {
|
|
2669
|
+
rdsDbClusterSnapshot: deserializeAws_restJson1RdsDbClusterSnapshotConfiguration(output.rdsDbClusterSnapshot, context),
|
|
2670
|
+
};
|
|
2671
|
+
}
|
|
2672
|
+
if (output.rdsDbSnapshot != null) {
|
|
2673
|
+
return {
|
|
2674
|
+
rdsDbSnapshot: deserializeAws_restJson1RdsDbSnapshotConfiguration(output.rdsDbSnapshot, context),
|
|
2675
|
+
};
|
|
2676
|
+
}
|
|
2543
2677
|
if (output.s3Bucket != null) {
|
|
2544
2678
|
return {
|
|
2545
2679
|
s3Bucket: deserializeAws_restJson1S3BucketConfiguration(output.s3Bucket, context),
|
|
@@ -2550,6 +2684,11 @@ const deserializeAws_restJson1Configuration = (output, context) => {
|
|
|
2550
2684
|
secretsManagerSecret: deserializeAws_restJson1SecretsManagerSecretConfiguration(output.secretsManagerSecret, context),
|
|
2551
2685
|
};
|
|
2552
2686
|
}
|
|
2687
|
+
if (output.snsTopic != null) {
|
|
2688
|
+
return {
|
|
2689
|
+
snsTopic: deserializeAws_restJson1SnsTopicConfiguration(output.snsTopic, context),
|
|
2690
|
+
};
|
|
2691
|
+
}
|
|
2553
2692
|
if (output.sqsQueue != null) {
|
|
2554
2693
|
return {
|
|
2555
2694
|
sqsQueue: deserializeAws_restJson1SqsQueueConfiguration(output.sqsQueue, context),
|
|
@@ -2576,6 +2715,45 @@ const deserializeAws_restJson1Criterion = (output, context) => {
|
|
|
2576
2715
|
neq: output.neq != null ? deserializeAws_restJson1ValueList(output.neq, context) : undefined,
|
|
2577
2716
|
};
|
|
2578
2717
|
};
|
|
2718
|
+
const deserializeAws_restJson1EbsGroupList = (output, context) => {
|
|
2719
|
+
const retVal = (output || [])
|
|
2720
|
+
.filter((e) => e != null)
|
|
2721
|
+
.map((entry) => {
|
|
2722
|
+
if (entry === null) {
|
|
2723
|
+
return null;
|
|
2724
|
+
}
|
|
2725
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2726
|
+
});
|
|
2727
|
+
return retVal;
|
|
2728
|
+
};
|
|
2729
|
+
const deserializeAws_restJson1EbsSnapshotConfiguration = (output, context) => {
|
|
2730
|
+
return {
|
|
2731
|
+
groups: output.groups != null ? deserializeAws_restJson1EbsGroupList(output.groups, context) : undefined,
|
|
2732
|
+
kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
|
|
2733
|
+
userIds: output.userIds != null ? deserializeAws_restJson1EbsUserIdList(output.userIds, context) : undefined,
|
|
2734
|
+
};
|
|
2735
|
+
};
|
|
2736
|
+
const deserializeAws_restJson1EbsUserIdList = (output, context) => {
|
|
2737
|
+
const retVal = (output || [])
|
|
2738
|
+
.filter((e) => e != null)
|
|
2739
|
+
.map((entry) => {
|
|
2740
|
+
if (entry === null) {
|
|
2741
|
+
return null;
|
|
2742
|
+
}
|
|
2743
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2744
|
+
});
|
|
2745
|
+
return retVal;
|
|
2746
|
+
};
|
|
2747
|
+
const deserializeAws_restJson1EcrRepositoryConfiguration = (output, context) => {
|
|
2748
|
+
return {
|
|
2749
|
+
repositoryPolicy: (0, smithy_client_1.expectString)(output.repositoryPolicy),
|
|
2750
|
+
};
|
|
2751
|
+
};
|
|
2752
|
+
const deserializeAws_restJson1EfsFileSystemConfiguration = (output, context) => {
|
|
2753
|
+
return {
|
|
2754
|
+
fileSystemPolicy: (0, smithy_client_1.expectString)(output.fileSystemPolicy),
|
|
2755
|
+
};
|
|
2756
|
+
};
|
|
2579
2757
|
const deserializeAws_restJson1FilterCriteriaMap = (output, context) => {
|
|
2580
2758
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2581
2759
|
if (value === null) {
|
|
@@ -2881,6 +3059,82 @@ const deserializeAws_restJson1PrincipalMap = (output, context) => {
|
|
|
2881
3059
|
};
|
|
2882
3060
|
}, {});
|
|
2883
3061
|
};
|
|
3062
|
+
const deserializeAws_restJson1RdsDbClusterSnapshotAccountIdsList = (output, context) => {
|
|
3063
|
+
const retVal = (output || [])
|
|
3064
|
+
.filter((e) => e != null)
|
|
3065
|
+
.map((entry) => {
|
|
3066
|
+
if (entry === null) {
|
|
3067
|
+
return null;
|
|
3068
|
+
}
|
|
3069
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
3070
|
+
});
|
|
3071
|
+
return retVal;
|
|
3072
|
+
};
|
|
3073
|
+
const deserializeAws_restJson1RdsDbClusterSnapshotAttributesMap = (output, context) => {
|
|
3074
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3075
|
+
if (value === null) {
|
|
3076
|
+
return acc;
|
|
3077
|
+
}
|
|
3078
|
+
return {
|
|
3079
|
+
...acc,
|
|
3080
|
+
[key]: deserializeAws_restJson1RdsDbClusterSnapshotAttributeValue((0, smithy_client_1.expectUnion)(value), context),
|
|
3081
|
+
};
|
|
3082
|
+
}, {});
|
|
3083
|
+
};
|
|
3084
|
+
const deserializeAws_restJson1RdsDbClusterSnapshotAttributeValue = (output, context) => {
|
|
3085
|
+
if (output.accountIds != null) {
|
|
3086
|
+
return {
|
|
3087
|
+
accountIds: deserializeAws_restJson1RdsDbClusterSnapshotAccountIdsList(output.accountIds, context),
|
|
3088
|
+
};
|
|
3089
|
+
}
|
|
3090
|
+
return { $unknown: Object.entries(output)[0] };
|
|
3091
|
+
};
|
|
3092
|
+
const deserializeAws_restJson1RdsDbClusterSnapshotConfiguration = (output, context) => {
|
|
3093
|
+
return {
|
|
3094
|
+
attributes: output.attributes != null
|
|
3095
|
+
? deserializeAws_restJson1RdsDbClusterSnapshotAttributesMap(output.attributes, context)
|
|
3096
|
+
: undefined,
|
|
3097
|
+
kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
|
|
3098
|
+
};
|
|
3099
|
+
};
|
|
3100
|
+
const deserializeAws_restJson1RdsDbSnapshotAccountIdsList = (output, context) => {
|
|
3101
|
+
const retVal = (output || [])
|
|
3102
|
+
.filter((e) => e != null)
|
|
3103
|
+
.map((entry) => {
|
|
3104
|
+
if (entry === null) {
|
|
3105
|
+
return null;
|
|
3106
|
+
}
|
|
3107
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
3108
|
+
});
|
|
3109
|
+
return retVal;
|
|
3110
|
+
};
|
|
3111
|
+
const deserializeAws_restJson1RdsDbSnapshotAttributesMap = (output, context) => {
|
|
3112
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3113
|
+
if (value === null) {
|
|
3114
|
+
return acc;
|
|
3115
|
+
}
|
|
3116
|
+
return {
|
|
3117
|
+
...acc,
|
|
3118
|
+
[key]: deserializeAws_restJson1RdsDbSnapshotAttributeValue((0, smithy_client_1.expectUnion)(value), context),
|
|
3119
|
+
};
|
|
3120
|
+
}, {});
|
|
3121
|
+
};
|
|
3122
|
+
const deserializeAws_restJson1RdsDbSnapshotAttributeValue = (output, context) => {
|
|
3123
|
+
if (output.accountIds != null) {
|
|
3124
|
+
return {
|
|
3125
|
+
accountIds: deserializeAws_restJson1RdsDbSnapshotAccountIdsList(output.accountIds, context),
|
|
3126
|
+
};
|
|
3127
|
+
}
|
|
3128
|
+
return { $unknown: Object.entries(output)[0] };
|
|
3129
|
+
};
|
|
3130
|
+
const deserializeAws_restJson1RdsDbSnapshotConfiguration = (output, context) => {
|
|
3131
|
+
return {
|
|
3132
|
+
attributes: output.attributes != null
|
|
3133
|
+
? deserializeAws_restJson1RdsDbSnapshotAttributesMap(output.attributes, context)
|
|
3134
|
+
: undefined,
|
|
3135
|
+
kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
|
|
3136
|
+
};
|
|
3137
|
+
};
|
|
2884
3138
|
const deserializeAws_restJson1RegionList = (output, context) => {
|
|
2885
3139
|
const retVal = (output || [])
|
|
2886
3140
|
.filter((e) => e != null)
|
|
@@ -2968,6 +3222,11 @@ const deserializeAws_restJson1SharedViaList = (output, context) => {
|
|
|
2968
3222
|
});
|
|
2969
3223
|
return retVal;
|
|
2970
3224
|
};
|
|
3225
|
+
const deserializeAws_restJson1SnsTopicConfiguration = (output, context) => {
|
|
3226
|
+
return {
|
|
3227
|
+
topicPolicy: (0, smithy_client_1.expectString)(output.topicPolicy),
|
|
3228
|
+
};
|
|
3229
|
+
};
|
|
2971
3230
|
const deserializeAws_restJson1Span = (output, context) => {
|
|
2972
3231
|
return {
|
|
2973
3232
|
end: output.end != null ? deserializeAws_restJson1Position(output.end, context) : undefined,
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
|
-
const
|
|
5
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a, _b, _c, _d, _e;
|
|
8
8
|
return ({
|
|
9
9
|
apiVersion: "2019-11-01",
|
|
10
10
|
disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
|
|
12
|
+
logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
|
|
13
13
|
serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "AccessAnalyzer",
|
|
14
14
|
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
15
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { resolveRegionConfig } from "@aws-sdk/config-resolver";
|
|
2
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
|
+
import { resolveEndpointConfig } from "@aws-sdk/middleware-endpoint";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
4
5
|
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
5
6
|
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
@@ -7,18 +8,20 @@ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
|
7
8
|
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
10
12
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
13
|
export class AccessAnalyzerClient extends __Client {
|
|
12
14
|
constructor(configuration) {
|
|
13
15
|
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
-
const _config_1 =
|
|
15
|
-
const _config_2 =
|
|
16
|
-
const _config_3 =
|
|
17
|
-
const _config_4 =
|
|
18
|
-
const _config_5 =
|
|
19
|
-
const _config_6 =
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
17
|
+
const _config_2 = resolveRegionConfig(_config_1);
|
|
18
|
+
const _config_3 = resolveEndpointConfig(_config_2);
|
|
19
|
+
const _config_4 = resolveRetryConfig(_config_3);
|
|
20
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
21
|
+
const _config_6 = resolveAwsAuthConfig(_config_5);
|
|
22
|
+
const _config_7 = resolveUserAgentConfig(_config_6);
|
|
23
|
+
super(_config_7);
|
|
24
|
+
this.config = _config_7;
|
|
22
25
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
26
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
27
|
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { ApplyArchiveRuleRequestFilterSensitiveLog } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class ApplyArchiveRuleCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ApplyArchiveRuleCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "AccessAnalyzerClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CancelPolicyGenerationRequestFilterSensitiveLog, CancelPolicyGenerationResponseFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class CancelPolicyGenerationCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CancelPolicyGenerationCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "AccessAnalyzerClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateAccessPreviewRequestFilterSensitiveLog, CreateAccessPreviewResponseFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class CreateAccessPreviewCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateAccessPreviewCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "AccessAnalyzerClient";
|