@aws-sdk/client-resiliencehub 3.87.0 → 3.92.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 +11 -0
- package/dist-cjs/models/models_0.js +27 -3
- package/dist-cjs/protocols/Aws_restJson1.js +97 -0
- package/dist-es/models/models_0.js +18 -0
- package/dist-es/protocols/Aws_restJson1.js +97 -7
- package/dist-types/models/models_0.d.ts +204 -58
- package/dist-types/ts3.4/models/models_0.d.ts +63 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.92.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.91.0...v3.92.0) (2022-05-16)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-resiliencehub:** In this release, we are introducing support for Amazon Elastic Container Service, Amazon Route 53, AWS Elastic Disaster Recovery, AWS Backup in addition to the existing supported Services. This release also supports Terraform file input from S3 and scheduling daily assessments ([01ff495](https://github.com/aws/aws-sdk-js-v3/commit/01ff495befc39b9d9c5c6b4d8a40ad28c7d982ed))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.87.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.86.0...v3.87.0) (2022-05-09)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-resiliencehub
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UpdateResiliencyPolicyResponse = exports.UpdateResiliencyPolicyRequest = exports.UpdateAppResponse = exports.UpdateAppRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartAppAssessmentResponse = exports.StartAppAssessmentRequest = exports.ResolveAppVersionResourcesResponse = exports.ResolveAppVersionResourcesRequest = exports.RemoveDraftAppVersionResourceMappingsResponse = exports.RemoveDraftAppVersionResourceMappingsRequest = exports.PutDraftAppVersionTemplateResponse = exports.PutDraftAppVersionTemplateRequest = exports.PublishAppVersionResponse = exports.PublishAppVersionRequest = exports.ListUnsupportedAppVersionResourcesResponse = exports.UnsupportedResource = exports.ListUnsupportedAppVersionResourcesRequest = exports.ListTestRecommendationsResponse = exports.TestRecommendation = exports.TestType = exports.TestRisk = exports.ListTestRecommendationsRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSuggestedResiliencyPoliciesResponse = exports.ListSuggestedResiliencyPoliciesRequest = exports.ListSopRecommendationsResponse = exports.SopRecommendation = exports.SopServiceType = exports.ListSopRecommendationsRequest = exports.ListResiliencyPoliciesResponse = void 0;
|
|
3
|
+
exports.CreateRecommendationTemplateResponse = exports.RecommendationTemplate = exports.S3Location = exports.RecommendationTemplateStatus = exports.CreateRecommendationTemplateRequest = exports.RenderRecommendationType = exports.TemplateFormat = exports.ServiceQuotaExceededException = exports.CreateAppResponse = exports.CreateAppRequest = exports.AppVersionSummary = exports.AppSummary = exports.AppComponentCompliance = exports.AppComponent = exports.AppAssessmentSummary = exports.AppAssessment = exports.ResourceErrorsDetails = exports.ResourceError = exports.ResiliencyScore = exports.ResiliencyPolicy = exports.ResiliencyPolicyTier = exports.FailurePolicy = exports.EstimatedCostTier = exports.DataLocationConstraint = exports.AssessmentInvoker = exports.Cost = exports.CostFrequency = exports.DisruptionCompliance = exports.ComplianceStatus = exports.DisruptionType = exports.AssessmentStatus = exports.App = exports.AppStatusType = exports.AppComplianceStatusType = exports.AppAssessmentScheduleType = exports.AlarmRecommendation = exports.AlarmType = exports.RecommendationItem = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AddDraftAppVersionResourceMappingsResponse = exports.AddDraftAppVersionResourceMappingsRequest = exports.ResourceMapping = exports.PhysicalResourceId = exports.PhysicalIdentifierType = exports.ResourceMappingType = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.ListAppVersionsRequest = exports.ListAppVersionResourcesResponse = exports.PhysicalResource = exports.LogicalResourceId = exports.ListAppVersionResourcesRequest = exports.ListAppVersionResourceMappingsResponse = exports.ListAppVersionResourceMappingsRequest = exports.ListAppsResponse = exports.ListAppsRequest = exports.ListAppComponentRecommendationsResponse = exports.ComponentRecommendation = exports.RecommendationComplianceStatus = exports.ConfigRecommendation = exports.RecommendationDisruptionCompliance = exports.ConfigRecommendationOptimizationType = exports.HaArchitecture = exports.ListAppComponentRecommendationsRequest = exports.ListAppComponentCompliancesResponse = exports.ListAppComponentCompliancesRequest = exports.ListAppAssessmentsResponse = exports.ListAppAssessmentsRequest = exports.ListAlarmRecommendationsResponse = exports.ListAlarmRecommendationsRequest = exports.ImportResourcesToDraftAppVersionResponse = exports.ImportResourcesToDraftAppVersionRequest = exports.TerraformSource = exports.DescribeResiliencyPolicyResponse = exports.DescribeResiliencyPolicyRequest = exports.DescribeDraftAppVersionResourcesImportStatusResponse = exports.ResourceImportStatusType = exports.DescribeDraftAppVersionResourcesImportStatusRequest = exports.DescribeAppVersionTemplateResponse = exports.DescribeAppVersionTemplateRequest = exports.DescribeAppVersionResourcesResolutionStatusResponse = exports.ResourceResolutionStatusType = exports.DescribeAppVersionResourcesResolutionStatusRequest = exports.DescribeAppAssessmentResponse = exports.DescribeAppAssessmentRequest = exports.DescribeAppResponse = exports.DescribeAppRequest = exports.DeleteResiliencyPolicyResponse = exports.DeleteResiliencyPolicyRequest = exports.DeleteRecommendationTemplateResponse = exports.DeleteRecommendationTemplateRequest = exports.DeleteAppAssessmentResponse = exports.DeleteAppAssessmentRequest = exports.DeleteAppResponse = exports.DeleteAppRequest = exports.CreateResiliencyPolicyResponse = exports.CreateResiliencyPolicyRequest = void 0;
|
|
5
|
+
exports.UpdateResiliencyPolicyResponse = exports.UpdateResiliencyPolicyRequest = exports.UpdateAppResponse = exports.UpdateAppRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartAppAssessmentResponse = exports.StartAppAssessmentRequest = exports.ResolveAppVersionResourcesResponse = exports.ResolveAppVersionResourcesRequest = exports.RemoveDraftAppVersionResourceMappingsResponse = exports.RemoveDraftAppVersionResourceMappingsRequest = exports.PutDraftAppVersionTemplateResponse = exports.PutDraftAppVersionTemplateRequest = exports.PublishAppVersionResponse = exports.PublishAppVersionRequest = exports.ListUnsupportedAppVersionResourcesResponse = exports.UnsupportedResource = exports.ListUnsupportedAppVersionResourcesRequest = exports.ListTestRecommendationsResponse = exports.TestRecommendation = exports.TestType = exports.TestRisk = exports.ListTestRecommendationsRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSuggestedResiliencyPoliciesResponse = exports.ListSuggestedResiliencyPoliciesRequest = exports.ListSopRecommendationsResponse = exports.SopRecommendation = exports.SopServiceType = exports.ListSopRecommendationsRequest = exports.ListResiliencyPoliciesResponse = exports.ListResiliencyPoliciesRequest = exports.ListRecommendationTemplatesResponse = exports.ListRecommendationTemplatesRequest = exports.ListAppVersionsResponse = void 0;
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const ResiliencehubServiceException_1 = require("./ResiliencehubServiceException");
|
|
8
8
|
class AccessDeniedException extends ResiliencehubServiceException_1.ResiliencehubServiceException {
|
|
@@ -24,6 +24,7 @@ var ResourceMappingType;
|
|
|
24
24
|
ResourceMappingType["CFN_STACK"] = "CfnStack";
|
|
25
25
|
ResourceMappingType["RESOURCE"] = "Resource";
|
|
26
26
|
ResourceMappingType["RESOURCE_GROUP"] = "ResourceGroup";
|
|
27
|
+
ResourceMappingType["TERRAFORM"] = "Terraform";
|
|
27
28
|
})(ResourceMappingType = exports.ResourceMappingType || (exports.ResourceMappingType = {}));
|
|
28
29
|
var PhysicalIdentifierType;
|
|
29
30
|
(function (PhysicalIdentifierType) {
|
|
@@ -144,6 +145,11 @@ var AlarmRecommendation;
|
|
|
144
145
|
...obj,
|
|
145
146
|
});
|
|
146
147
|
})(AlarmRecommendation = exports.AlarmRecommendation || (exports.AlarmRecommendation = {}));
|
|
148
|
+
var AppAssessmentScheduleType;
|
|
149
|
+
(function (AppAssessmentScheduleType) {
|
|
150
|
+
AppAssessmentScheduleType["DAILY"] = "Daily";
|
|
151
|
+
AppAssessmentScheduleType["DISABLED"] = "Disabled";
|
|
152
|
+
})(AppAssessmentScheduleType = exports.AppAssessmentScheduleType || (exports.AppAssessmentScheduleType = {}));
|
|
147
153
|
var AppComplianceStatusType;
|
|
148
154
|
(function (AppComplianceStatusType) {
|
|
149
155
|
AppComplianceStatusType["CHANGES_DETECTED"] = "ChangesDetected";
|
|
@@ -246,6 +252,18 @@ var ResiliencyScore;
|
|
|
246
252
|
...obj,
|
|
247
253
|
});
|
|
248
254
|
})(ResiliencyScore = exports.ResiliencyScore || (exports.ResiliencyScore = {}));
|
|
255
|
+
var ResourceError;
|
|
256
|
+
(function (ResourceError) {
|
|
257
|
+
ResourceError.filterSensitiveLog = (obj) => ({
|
|
258
|
+
...obj,
|
|
259
|
+
});
|
|
260
|
+
})(ResourceError = exports.ResourceError || (exports.ResourceError = {}));
|
|
261
|
+
var ResourceErrorsDetails;
|
|
262
|
+
(function (ResourceErrorsDetails) {
|
|
263
|
+
ResourceErrorsDetails.filterSensitiveLog = (obj) => ({
|
|
264
|
+
...obj,
|
|
265
|
+
});
|
|
266
|
+
})(ResourceErrorsDetails = exports.ResourceErrorsDetails || (exports.ResourceErrorsDetails = {}));
|
|
249
267
|
var AppAssessment;
|
|
250
268
|
(function (AppAssessment) {
|
|
251
269
|
AppAssessment.filterSensitiveLog = (obj) => ({
|
|
@@ -509,6 +527,12 @@ var DescribeResiliencyPolicyResponse;
|
|
|
509
527
|
...(obj.policy && { policy: ResiliencyPolicy.filterSensitiveLog(obj.policy) }),
|
|
510
528
|
});
|
|
511
529
|
})(DescribeResiliencyPolicyResponse = exports.DescribeResiliencyPolicyResponse || (exports.DescribeResiliencyPolicyResponse = {}));
|
|
530
|
+
var TerraformSource;
|
|
531
|
+
(function (TerraformSource) {
|
|
532
|
+
TerraformSource.filterSensitiveLog = (obj) => ({
|
|
533
|
+
...obj,
|
|
534
|
+
});
|
|
535
|
+
})(TerraformSource = exports.TerraformSource || (exports.TerraformSource = {}));
|
|
512
536
|
var ImportResourcesToDraftAppVersionRequest;
|
|
513
537
|
(function (ImportResourcesToDraftAppVersionRequest) {
|
|
514
538
|
ImportResourcesToDraftAppVersionRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -41,6 +41,8 @@ const serializeAws_restJson1CreateAppCommand = async (input, context) => {
|
|
|
41
41
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/create-app";
|
|
42
42
|
let body;
|
|
43
43
|
body = JSON.stringify({
|
|
44
|
+
...(input.assessmentSchedule !== undefined &&
|
|
45
|
+
input.assessmentSchedule !== null && { assessmentSchedule: input.assessmentSchedule }),
|
|
44
46
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
45
47
|
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
46
48
|
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
@@ -360,6 +362,10 @@ const serializeAws_restJson1ImportResourcesToDraftAppVersionCommand = async (inp
|
|
|
360
362
|
...(input.appArn !== undefined && input.appArn !== null && { appArn: input.appArn }),
|
|
361
363
|
...(input.sourceArns !== undefined &&
|
|
362
364
|
input.sourceArns !== null && { sourceArns: serializeAws_restJson1ArnList(input.sourceArns, context) }),
|
|
365
|
+
...(input.terraformSources !== undefined &&
|
|
366
|
+
input.terraformSources !== null && {
|
|
367
|
+
terraformSources: serializeAws_restJson1TerraformSourceList(input.terraformSources, context),
|
|
368
|
+
}),
|
|
363
369
|
});
|
|
364
370
|
return new protocol_http_1.HttpRequest({
|
|
365
371
|
protocol,
|
|
@@ -803,6 +809,10 @@ const serializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommand = async
|
|
|
803
809
|
input.resourceNames !== null && {
|
|
804
810
|
resourceNames: serializeAws_restJson1EntityNameList(input.resourceNames, context),
|
|
805
811
|
}),
|
|
812
|
+
...(input.terraformSourceNames !== undefined &&
|
|
813
|
+
input.terraformSourceNames !== null && {
|
|
814
|
+
terraformSourceNames: serializeAws_restJson1String255List(input.terraformSourceNames, context),
|
|
815
|
+
}),
|
|
806
816
|
});
|
|
807
817
|
return new protocol_http_1.HttpRequest({
|
|
808
818
|
protocol,
|
|
@@ -934,6 +944,8 @@ const serializeAws_restJson1UpdateAppCommand = async (input, context) => {
|
|
|
934
944
|
let body;
|
|
935
945
|
body = JSON.stringify({
|
|
936
946
|
...(input.appArn !== undefined && input.appArn !== null && { appArn: input.appArn }),
|
|
947
|
+
...(input.assessmentSchedule !== undefined &&
|
|
948
|
+
input.assessmentSchedule !== null && { assessmentSchedule: input.assessmentSchedule }),
|
|
937
949
|
...(input.clearResiliencyPolicyArn !== undefined &&
|
|
938
950
|
input.clearResiliencyPolicyArn !== null && { clearResiliencyPolicyArn: input.clearResiliencyPolicyArn }),
|
|
939
951
|
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
@@ -1752,6 +1764,7 @@ const deserializeAws_restJson1ImportResourcesToDraftAppVersionCommand = async (o
|
|
|
1752
1764
|
appVersion: undefined,
|
|
1753
1765
|
sourceArns: undefined,
|
|
1754
1766
|
status: undefined,
|
|
1767
|
+
terraformSources: undefined,
|
|
1755
1768
|
};
|
|
1756
1769
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1757
1770
|
if (data.appArn !== undefined && data.appArn !== null) {
|
|
@@ -1766,6 +1779,9 @@ const deserializeAws_restJson1ImportResourcesToDraftAppVersionCommand = async (o
|
|
|
1766
1779
|
if (data.status !== undefined && data.status !== null) {
|
|
1767
1780
|
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1768
1781
|
}
|
|
1782
|
+
if (data.terraformSources !== undefined && data.terraformSources !== null) {
|
|
1783
|
+
contents.terraformSources = deserializeAws_restJson1TerraformSourceList(data.terraformSources, context);
|
|
1784
|
+
}
|
|
1769
1785
|
return Promise.resolve(contents);
|
|
1770
1786
|
};
|
|
1771
1787
|
exports.deserializeAws_restJson1ImportResourcesToDraftAppVersionCommand = deserializeAws_restJson1ImportResourcesToDraftAppVersionCommand;
|
|
@@ -3267,6 +3283,8 @@ const serializeAws_restJson1ResourceMapping = (input, context) => {
|
|
|
3267
3283
|
...(input.resourceGroupName !== undefined &&
|
|
3268
3284
|
input.resourceGroupName !== null && { resourceGroupName: input.resourceGroupName }),
|
|
3269
3285
|
...(input.resourceName !== undefined && input.resourceName !== null && { resourceName: input.resourceName }),
|
|
3286
|
+
...(input.terraformSourceName !== undefined &&
|
|
3287
|
+
input.terraformSourceName !== null && { terraformSourceName: input.terraformSourceName }),
|
|
3270
3288
|
};
|
|
3271
3289
|
};
|
|
3272
3290
|
const serializeAws_restJson1ResourceMappingList = (input, context) => {
|
|
@@ -3300,6 +3318,22 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
3300
3318
|
};
|
|
3301
3319
|
}, {});
|
|
3302
3320
|
};
|
|
3321
|
+
const serializeAws_restJson1TerraformSource = (input, context) => {
|
|
3322
|
+
return {
|
|
3323
|
+
...(input.s3StateFileUrl !== undefined &&
|
|
3324
|
+
input.s3StateFileUrl !== null && { s3StateFileUrl: input.s3StateFileUrl }),
|
|
3325
|
+
};
|
|
3326
|
+
};
|
|
3327
|
+
const serializeAws_restJson1TerraformSourceList = (input, context) => {
|
|
3328
|
+
return input
|
|
3329
|
+
.filter((e) => e != null)
|
|
3330
|
+
.map((entry) => {
|
|
3331
|
+
if (entry === null) {
|
|
3332
|
+
return null;
|
|
3333
|
+
}
|
|
3334
|
+
return serializeAws_restJson1TerraformSource(entry, context);
|
|
3335
|
+
});
|
|
3336
|
+
};
|
|
3303
3337
|
const deserializeAws_restJson1AlarmRecommendation = (output, context) => {
|
|
3304
3338
|
return {
|
|
3305
3339
|
appComponentName: (0, smithy_client_1.expectString)(output.appComponentName),
|
|
@@ -3325,9 +3359,21 @@ const deserializeAws_restJson1AlarmRecommendationList = (output, context) => {
|
|
|
3325
3359
|
});
|
|
3326
3360
|
return retVal;
|
|
3327
3361
|
};
|
|
3362
|
+
const deserializeAws_restJson1AlarmReferenceIdList = (output, context) => {
|
|
3363
|
+
const retVal = (output || [])
|
|
3364
|
+
.filter((e) => e != null)
|
|
3365
|
+
.map((entry) => {
|
|
3366
|
+
if (entry === null) {
|
|
3367
|
+
return null;
|
|
3368
|
+
}
|
|
3369
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
3370
|
+
});
|
|
3371
|
+
return retVal;
|
|
3372
|
+
};
|
|
3328
3373
|
const deserializeAws_restJson1App = (output, context) => {
|
|
3329
3374
|
return {
|
|
3330
3375
|
appArn: (0, smithy_client_1.expectString)(output.appArn),
|
|
3376
|
+
assessmentSchedule: (0, smithy_client_1.expectString)(output.assessmentSchedule),
|
|
3331
3377
|
complianceStatus: (0, smithy_client_1.expectString)(output.complianceStatus),
|
|
3332
3378
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
3333
3379
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
@@ -3373,6 +3419,9 @@ const deserializeAws_restJson1AppAssessment = (output, context) => {
|
|
|
3373
3419
|
resiliencyScore: output.resiliencyScore !== undefined && output.resiliencyScore !== null
|
|
3374
3420
|
? deserializeAws_restJson1ResiliencyScore(output.resiliencyScore, context)
|
|
3375
3421
|
: undefined,
|
|
3422
|
+
resourceErrorsDetails: output.resourceErrorsDetails !== undefined && output.resourceErrorsDetails !== null
|
|
3423
|
+
? deserializeAws_restJson1ResourceErrorsDetails(output.resourceErrorsDetails, context)
|
|
3424
|
+
: undefined,
|
|
3376
3425
|
startTime: output.startTime !== undefined && output.startTime !== null
|
|
3377
3426
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
|
|
3378
3427
|
: undefined,
|
|
@@ -3450,6 +3499,7 @@ const deserializeAws_restJson1AppComponentList = (output, context) => {
|
|
|
3450
3499
|
const deserializeAws_restJson1AppSummary = (output, context) => {
|
|
3451
3500
|
return {
|
|
3452
3501
|
appArn: (0, smithy_client_1.expectString)(output.appArn),
|
|
3502
|
+
assessmentSchedule: (0, smithy_client_1.expectString)(output.assessmentSchedule),
|
|
3453
3503
|
complianceStatus: (0, smithy_client_1.expectString)(output.complianceStatus),
|
|
3454
3504
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
3455
3505
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
@@ -3626,6 +3676,7 @@ const deserializeAws_restJson1LogicalResourceId = (output, context) => {
|
|
|
3626
3676
|
identifier: (0, smithy_client_1.expectString)(output.identifier),
|
|
3627
3677
|
logicalStackName: (0, smithy_client_1.expectString)(output.logicalStackName),
|
|
3628
3678
|
resourceGroupName: (0, smithy_client_1.expectString)(output.resourceGroupName),
|
|
3679
|
+
terraformSourceName: (0, smithy_client_1.expectString)(output.terraformSourceName),
|
|
3629
3680
|
};
|
|
3630
3681
|
};
|
|
3631
3682
|
const deserializeAws_restJson1PhysicalResource = (output, context) => {
|
|
@@ -3802,6 +3853,32 @@ const deserializeAws_restJson1ResiliencyScore = (output, context) => {
|
|
|
3802
3853
|
score: (0, smithy_client_1.limitedParseDouble)(output.score),
|
|
3803
3854
|
};
|
|
3804
3855
|
};
|
|
3856
|
+
const deserializeAws_restJson1ResourceError = (output, context) => {
|
|
3857
|
+
return {
|
|
3858
|
+
logicalResourceId: (0, smithy_client_1.expectString)(output.logicalResourceId),
|
|
3859
|
+
physicalResourceId: (0, smithy_client_1.expectString)(output.physicalResourceId),
|
|
3860
|
+
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
3861
|
+
};
|
|
3862
|
+
};
|
|
3863
|
+
const deserializeAws_restJson1ResourceErrorList = (output, context) => {
|
|
3864
|
+
const retVal = (output || [])
|
|
3865
|
+
.filter((e) => e != null)
|
|
3866
|
+
.map((entry) => {
|
|
3867
|
+
if (entry === null) {
|
|
3868
|
+
return null;
|
|
3869
|
+
}
|
|
3870
|
+
return deserializeAws_restJson1ResourceError(entry, context);
|
|
3871
|
+
});
|
|
3872
|
+
return retVal;
|
|
3873
|
+
};
|
|
3874
|
+
const deserializeAws_restJson1ResourceErrorsDetails = (output, context) => {
|
|
3875
|
+
return {
|
|
3876
|
+
hasMoreErrors: (0, smithy_client_1.expectBoolean)(output.hasMoreErrors),
|
|
3877
|
+
resourceErrors: output.resourceErrors !== undefined && output.resourceErrors !== null
|
|
3878
|
+
? deserializeAws_restJson1ResourceErrorList(output.resourceErrors, context)
|
|
3879
|
+
: undefined,
|
|
3880
|
+
};
|
|
3881
|
+
};
|
|
3805
3882
|
const deserializeAws_restJson1ResourceMapping = (output, context) => {
|
|
3806
3883
|
return {
|
|
3807
3884
|
appRegistryAppName: (0, smithy_client_1.expectString)(output.appRegistryAppName),
|
|
@@ -3812,6 +3889,7 @@ const deserializeAws_restJson1ResourceMapping = (output, context) => {
|
|
|
3812
3889
|
: undefined,
|
|
3813
3890
|
resourceGroupName: (0, smithy_client_1.expectString)(output.resourceGroupName),
|
|
3814
3891
|
resourceName: (0, smithy_client_1.expectString)(output.resourceName),
|
|
3892
|
+
terraformSourceName: (0, smithy_client_1.expectString)(output.terraformSourceName),
|
|
3815
3893
|
};
|
|
3816
3894
|
};
|
|
3817
3895
|
const deserializeAws_restJson1ResourceMappingList = (output, context) => {
|
|
@@ -3878,9 +3956,28 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
3878
3956
|
};
|
|
3879
3957
|
}, {});
|
|
3880
3958
|
};
|
|
3959
|
+
const deserializeAws_restJson1TerraformSource = (output, context) => {
|
|
3960
|
+
return {
|
|
3961
|
+
s3StateFileUrl: (0, smithy_client_1.expectString)(output.s3StateFileUrl),
|
|
3962
|
+
};
|
|
3963
|
+
};
|
|
3964
|
+
const deserializeAws_restJson1TerraformSourceList = (output, context) => {
|
|
3965
|
+
const retVal = (output || [])
|
|
3966
|
+
.filter((e) => e != null)
|
|
3967
|
+
.map((entry) => {
|
|
3968
|
+
if (entry === null) {
|
|
3969
|
+
return null;
|
|
3970
|
+
}
|
|
3971
|
+
return deserializeAws_restJson1TerraformSource(entry, context);
|
|
3972
|
+
});
|
|
3973
|
+
return retVal;
|
|
3974
|
+
};
|
|
3881
3975
|
const deserializeAws_restJson1TestRecommendation = (output, context) => {
|
|
3882
3976
|
return {
|
|
3883
3977
|
appComponentName: (0, smithy_client_1.expectString)(output.appComponentName),
|
|
3978
|
+
dependsOnAlarms: output.dependsOnAlarms !== undefined && output.dependsOnAlarms !== null
|
|
3979
|
+
? deserializeAws_restJson1AlarmReferenceIdList(output.dependsOnAlarms, context)
|
|
3980
|
+
: undefined,
|
|
3884
3981
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
3885
3982
|
intent: (0, smithy_client_1.expectString)(output.intent),
|
|
3886
3983
|
items: output.items !== undefined && output.items !== null
|
|
@@ -19,6 +19,7 @@ export var ResourceMappingType;
|
|
|
19
19
|
ResourceMappingType["CFN_STACK"] = "CfnStack";
|
|
20
20
|
ResourceMappingType["RESOURCE"] = "Resource";
|
|
21
21
|
ResourceMappingType["RESOURCE_GROUP"] = "ResourceGroup";
|
|
22
|
+
ResourceMappingType["TERRAFORM"] = "Terraform";
|
|
22
23
|
})(ResourceMappingType || (ResourceMappingType = {}));
|
|
23
24
|
export var PhysicalIdentifierType;
|
|
24
25
|
(function (PhysicalIdentifierType) {
|
|
@@ -122,6 +123,11 @@ export var AlarmRecommendation;
|
|
|
122
123
|
(function (AlarmRecommendation) {
|
|
123
124
|
AlarmRecommendation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
124
125
|
})(AlarmRecommendation || (AlarmRecommendation = {}));
|
|
126
|
+
export var AppAssessmentScheduleType;
|
|
127
|
+
(function (AppAssessmentScheduleType) {
|
|
128
|
+
AppAssessmentScheduleType["DAILY"] = "Daily";
|
|
129
|
+
AppAssessmentScheduleType["DISABLED"] = "Disabled";
|
|
130
|
+
})(AppAssessmentScheduleType || (AppAssessmentScheduleType = {}));
|
|
125
131
|
export var AppComplianceStatusType;
|
|
126
132
|
(function (AppComplianceStatusType) {
|
|
127
133
|
AppComplianceStatusType["CHANGES_DETECTED"] = "ChangesDetected";
|
|
@@ -210,6 +216,14 @@ export var ResiliencyScore;
|
|
|
210
216
|
(function (ResiliencyScore) {
|
|
211
217
|
ResiliencyScore.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
212
218
|
})(ResiliencyScore || (ResiliencyScore = {}));
|
|
219
|
+
export var ResourceError;
|
|
220
|
+
(function (ResourceError) {
|
|
221
|
+
ResourceError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
222
|
+
})(ResourceError || (ResourceError = {}));
|
|
223
|
+
export var ResourceErrorsDetails;
|
|
224
|
+
(function (ResourceErrorsDetails) {
|
|
225
|
+
ResourceErrorsDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
226
|
+
})(ResourceErrorsDetails || (ResourceErrorsDetails = {}));
|
|
213
227
|
export var AppAssessment;
|
|
214
228
|
(function (AppAssessment) {
|
|
215
229
|
AppAssessment.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.policy && { policy: ResiliencyPolicy.filterSensitiveLog(obj.policy) })), (obj.tags && { tags: SENSITIVE_STRING }))); };
|
|
@@ -392,6 +406,10 @@ export var DescribeResiliencyPolicyResponse;
|
|
|
392
406
|
(function (DescribeResiliencyPolicyResponse) {
|
|
393
407
|
DescribeResiliencyPolicyResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.policy && { policy: ResiliencyPolicy.filterSensitiveLog(obj.policy) }))); };
|
|
394
408
|
})(DescribeResiliencyPolicyResponse || (DescribeResiliencyPolicyResponse = {}));
|
|
409
|
+
export var TerraformSource;
|
|
410
|
+
(function (TerraformSource) {
|
|
411
|
+
TerraformSource.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
412
|
+
})(TerraformSource || (TerraformSource = {}));
|
|
395
413
|
export var ImportResourcesToDraftAppVersionRequest;
|
|
396
414
|
(function (ImportResourcesToDraftAppVersionRequest) {
|
|
397
415
|
ImportResourcesToDraftAppVersionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -43,7 +43,8 @@ export var serializeAws_restJson1CreateAppCommand = function (input, context) {
|
|
|
43
43
|
"content-type": "application/json",
|
|
44
44
|
};
|
|
45
45
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/create-app";
|
|
46
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(
|
|
46
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.assessmentSchedule !== undefined &&
|
|
47
|
+
input.assessmentSchedule !== null && { assessmentSchedule: input.assessmentSchedule })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.description !== undefined && input.description !== null && { description: input.description })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.policyArn !== undefined && input.policyArn !== null && { policyArn: input.policyArn })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
47
48
|
return [2, new __HttpRequest({
|
|
48
49
|
protocol: protocol,
|
|
49
50
|
hostname: hostname,
|
|
@@ -373,8 +374,11 @@ export var serializeAws_restJson1ImportResourcesToDraftAppVersionCommand = funct
|
|
|
373
374
|
"content-type": "application/json",
|
|
374
375
|
};
|
|
375
376
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/import-resources-to-draft-app-version";
|
|
376
|
-
body = JSON.stringify(__assign(__assign({}, (input.appArn !== undefined && input.appArn !== null && { appArn: input.appArn })), (input.sourceArns !== undefined &&
|
|
377
|
-
input.sourceArns !== null && { sourceArns: serializeAws_restJson1ArnList(input.sourceArns, context) }))
|
|
377
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.appArn !== undefined && input.appArn !== null && { appArn: input.appArn })), (input.sourceArns !== undefined &&
|
|
378
|
+
input.sourceArns !== null && { sourceArns: serializeAws_restJson1ArnList(input.sourceArns, context) })), (input.terraformSources !== undefined &&
|
|
379
|
+
input.terraformSources !== null && {
|
|
380
|
+
terraformSources: serializeAws_restJson1TerraformSourceList(input.terraformSources, context),
|
|
381
|
+
})));
|
|
378
382
|
return [2, new __HttpRequest({
|
|
379
383
|
protocol: protocol,
|
|
380
384
|
hostname: hostname,
|
|
@@ -814,7 +818,7 @@ export var serializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommand =
|
|
|
814
818
|
};
|
|
815
819
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
816
820
|
"/remove-draft-app-version-resource-mappings";
|
|
817
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.appArn !== undefined && input.appArn !== null && { appArn: input.appArn })), (input.appRegistryAppNames !== undefined &&
|
|
821
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.appArn !== undefined && input.appArn !== null && { appArn: input.appArn })), (input.appRegistryAppNames !== undefined &&
|
|
818
822
|
input.appRegistryAppNames !== null && {
|
|
819
823
|
appRegistryAppNames: serializeAws_restJson1EntityNameList(input.appRegistryAppNames, context),
|
|
820
824
|
})), (input.logicalStackNames !== undefined &&
|
|
@@ -826,6 +830,9 @@ export var serializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommand =
|
|
|
826
830
|
})), (input.resourceNames !== undefined &&
|
|
827
831
|
input.resourceNames !== null && {
|
|
828
832
|
resourceNames: serializeAws_restJson1EntityNameList(input.resourceNames, context),
|
|
833
|
+
})), (input.terraformSourceNames !== undefined &&
|
|
834
|
+
input.terraformSourceNames !== null && {
|
|
835
|
+
terraformSourceNames: serializeAws_restJson1String255List(input.terraformSourceNames, context),
|
|
829
836
|
})));
|
|
830
837
|
return [2, new __HttpRequest({
|
|
831
838
|
protocol: protocol,
|
|
@@ -967,7 +974,8 @@ export var serializeAws_restJson1UpdateAppCommand = function (input, context) {
|
|
|
967
974
|
"content-type": "application/json",
|
|
968
975
|
};
|
|
969
976
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/update-app";
|
|
970
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.appArn !== undefined && input.appArn !== null && { appArn: input.appArn })), (input.
|
|
977
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.appArn !== undefined && input.appArn !== null && { appArn: input.appArn })), (input.assessmentSchedule !== undefined &&
|
|
978
|
+
input.assessmentSchedule !== null && { assessmentSchedule: input.assessmentSchedule })), (input.clearResiliencyPolicyArn !== undefined &&
|
|
971
979
|
input.clearResiliencyPolicyArn !== null && { clearResiliencyPolicyArn: input.clearResiliencyPolicyArn })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.policyArn !== undefined && input.policyArn !== null && { policyArn: input.policyArn })));
|
|
972
980
|
return [2, new __HttpRequest({
|
|
973
981
|
protocol: protocol,
|
|
@@ -2114,6 +2122,7 @@ export var deserializeAws_restJson1ImportResourcesToDraftAppVersionCommand = fun
|
|
|
2114
2122
|
appVersion: undefined,
|
|
2115
2123
|
sourceArns: undefined,
|
|
2116
2124
|
status: undefined,
|
|
2125
|
+
terraformSources: undefined,
|
|
2117
2126
|
};
|
|
2118
2127
|
_a = __expectNonNull;
|
|
2119
2128
|
_b = __expectObject;
|
|
@@ -2132,6 +2141,9 @@ export var deserializeAws_restJson1ImportResourcesToDraftAppVersionCommand = fun
|
|
|
2132
2141
|
if (data.status !== undefined && data.status !== null) {
|
|
2133
2142
|
contents.status = __expectString(data.status);
|
|
2134
2143
|
}
|
|
2144
|
+
if (data.terraformSources !== undefined && data.terraformSources !== null) {
|
|
2145
|
+
contents.terraformSources = deserializeAws_restJson1TerraformSourceList(data.terraformSources, context);
|
|
2146
|
+
}
|
|
2135
2147
|
return [2, Promise.resolve(contents)];
|
|
2136
2148
|
}
|
|
2137
2149
|
});
|
|
@@ -4184,13 +4196,14 @@ var serializeAws_restJson1RenderRecommendationTypeList = function (input, contex
|
|
|
4184
4196
|
});
|
|
4185
4197
|
};
|
|
4186
4198
|
var serializeAws_restJson1ResourceMapping = function (input, context) {
|
|
4187
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.appRegistryAppName !== undefined &&
|
|
4199
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.appRegistryAppName !== undefined &&
|
|
4188
4200
|
input.appRegistryAppName !== null && { appRegistryAppName: input.appRegistryAppName })), (input.logicalStackName !== undefined &&
|
|
4189
4201
|
input.logicalStackName !== null && { logicalStackName: input.logicalStackName })), (input.mappingType !== undefined && input.mappingType !== null && { mappingType: input.mappingType })), (input.physicalResourceId !== undefined &&
|
|
4190
4202
|
input.physicalResourceId !== null && {
|
|
4191
4203
|
physicalResourceId: serializeAws_restJson1PhysicalResourceId(input.physicalResourceId, context),
|
|
4192
4204
|
})), (input.resourceGroupName !== undefined &&
|
|
4193
|
-
input.resourceGroupName !== null && { resourceGroupName: input.resourceGroupName })), (input.resourceName !== undefined && input.resourceName !== null && { resourceName: input.resourceName }))
|
|
4205
|
+
input.resourceGroupName !== null && { resourceGroupName: input.resourceGroupName })), (input.resourceName !== undefined && input.resourceName !== null && { resourceName: input.resourceName })), (input.terraformSourceName !== undefined &&
|
|
4206
|
+
input.terraformSourceName !== null && { terraformSourceName: input.terraformSourceName }));
|
|
4194
4207
|
};
|
|
4195
4208
|
var serializeAws_restJson1ResourceMappingList = function (input, context) {
|
|
4196
4209
|
return input
|
|
@@ -4222,6 +4235,20 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
4222
4235
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
4223
4236
|
}, {});
|
|
4224
4237
|
};
|
|
4238
|
+
var serializeAws_restJson1TerraformSource = function (input, context) {
|
|
4239
|
+
return __assign({}, (input.s3StateFileUrl !== undefined &&
|
|
4240
|
+
input.s3StateFileUrl !== null && { s3StateFileUrl: input.s3StateFileUrl }));
|
|
4241
|
+
};
|
|
4242
|
+
var serializeAws_restJson1TerraformSourceList = function (input, context) {
|
|
4243
|
+
return input
|
|
4244
|
+
.filter(function (e) { return e != null; })
|
|
4245
|
+
.map(function (entry) {
|
|
4246
|
+
if (entry === null) {
|
|
4247
|
+
return null;
|
|
4248
|
+
}
|
|
4249
|
+
return serializeAws_restJson1TerraformSource(entry, context);
|
|
4250
|
+
});
|
|
4251
|
+
};
|
|
4225
4252
|
var deserializeAws_restJson1AlarmRecommendation = function (output, context) {
|
|
4226
4253
|
return {
|
|
4227
4254
|
appComponentName: __expectString(output.appComponentName),
|
|
@@ -4247,9 +4274,21 @@ var deserializeAws_restJson1AlarmRecommendationList = function (output, context)
|
|
|
4247
4274
|
});
|
|
4248
4275
|
return retVal;
|
|
4249
4276
|
};
|
|
4277
|
+
var deserializeAws_restJson1AlarmReferenceIdList = function (output, context) {
|
|
4278
|
+
var retVal = (output || [])
|
|
4279
|
+
.filter(function (e) { return e != null; })
|
|
4280
|
+
.map(function (entry) {
|
|
4281
|
+
if (entry === null) {
|
|
4282
|
+
return null;
|
|
4283
|
+
}
|
|
4284
|
+
return __expectString(entry);
|
|
4285
|
+
});
|
|
4286
|
+
return retVal;
|
|
4287
|
+
};
|
|
4250
4288
|
var deserializeAws_restJson1App = function (output, context) {
|
|
4251
4289
|
return {
|
|
4252
4290
|
appArn: __expectString(output.appArn),
|
|
4291
|
+
assessmentSchedule: __expectString(output.assessmentSchedule),
|
|
4253
4292
|
complianceStatus: __expectString(output.complianceStatus),
|
|
4254
4293
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
4255
4294
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
@@ -4295,6 +4334,9 @@ var deserializeAws_restJson1AppAssessment = function (output, context) {
|
|
|
4295
4334
|
resiliencyScore: output.resiliencyScore !== undefined && output.resiliencyScore !== null
|
|
4296
4335
|
? deserializeAws_restJson1ResiliencyScore(output.resiliencyScore, context)
|
|
4297
4336
|
: undefined,
|
|
4337
|
+
resourceErrorsDetails: output.resourceErrorsDetails !== undefined && output.resourceErrorsDetails !== null
|
|
4338
|
+
? deserializeAws_restJson1ResourceErrorsDetails(output.resourceErrorsDetails, context)
|
|
4339
|
+
: undefined,
|
|
4298
4340
|
startTime: output.startTime !== undefined && output.startTime !== null
|
|
4299
4341
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
|
|
4300
4342
|
: undefined,
|
|
@@ -4372,6 +4414,7 @@ var deserializeAws_restJson1AppComponentList = function (output, context) {
|
|
|
4372
4414
|
var deserializeAws_restJson1AppSummary = function (output, context) {
|
|
4373
4415
|
return {
|
|
4374
4416
|
appArn: __expectString(output.appArn),
|
|
4417
|
+
assessmentSchedule: __expectString(output.assessmentSchedule),
|
|
4375
4418
|
complianceStatus: __expectString(output.complianceStatus),
|
|
4376
4419
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
4377
4420
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
@@ -4545,6 +4588,7 @@ var deserializeAws_restJson1LogicalResourceId = function (output, context) {
|
|
|
4545
4588
|
identifier: __expectString(output.identifier),
|
|
4546
4589
|
logicalStackName: __expectString(output.logicalStackName),
|
|
4547
4590
|
resourceGroupName: __expectString(output.resourceGroupName),
|
|
4591
|
+
terraformSourceName: __expectString(output.terraformSourceName),
|
|
4548
4592
|
};
|
|
4549
4593
|
};
|
|
4550
4594
|
var deserializeAws_restJson1PhysicalResource = function (output, context) {
|
|
@@ -4720,6 +4764,32 @@ var deserializeAws_restJson1ResiliencyScore = function (output, context) {
|
|
|
4720
4764
|
score: __limitedParseDouble(output.score),
|
|
4721
4765
|
};
|
|
4722
4766
|
};
|
|
4767
|
+
var deserializeAws_restJson1ResourceError = function (output, context) {
|
|
4768
|
+
return {
|
|
4769
|
+
logicalResourceId: __expectString(output.logicalResourceId),
|
|
4770
|
+
physicalResourceId: __expectString(output.physicalResourceId),
|
|
4771
|
+
reason: __expectString(output.reason),
|
|
4772
|
+
};
|
|
4773
|
+
};
|
|
4774
|
+
var deserializeAws_restJson1ResourceErrorList = function (output, context) {
|
|
4775
|
+
var retVal = (output || [])
|
|
4776
|
+
.filter(function (e) { return e != null; })
|
|
4777
|
+
.map(function (entry) {
|
|
4778
|
+
if (entry === null) {
|
|
4779
|
+
return null;
|
|
4780
|
+
}
|
|
4781
|
+
return deserializeAws_restJson1ResourceError(entry, context);
|
|
4782
|
+
});
|
|
4783
|
+
return retVal;
|
|
4784
|
+
};
|
|
4785
|
+
var deserializeAws_restJson1ResourceErrorsDetails = function (output, context) {
|
|
4786
|
+
return {
|
|
4787
|
+
hasMoreErrors: __expectBoolean(output.hasMoreErrors),
|
|
4788
|
+
resourceErrors: output.resourceErrors !== undefined && output.resourceErrors !== null
|
|
4789
|
+
? deserializeAws_restJson1ResourceErrorList(output.resourceErrors, context)
|
|
4790
|
+
: undefined,
|
|
4791
|
+
};
|
|
4792
|
+
};
|
|
4723
4793
|
var deserializeAws_restJson1ResourceMapping = function (output, context) {
|
|
4724
4794
|
return {
|
|
4725
4795
|
appRegistryAppName: __expectString(output.appRegistryAppName),
|
|
@@ -4730,6 +4800,7 @@ var deserializeAws_restJson1ResourceMapping = function (output, context) {
|
|
|
4730
4800
|
: undefined,
|
|
4731
4801
|
resourceGroupName: __expectString(output.resourceGroupName),
|
|
4732
4802
|
resourceName: __expectString(output.resourceName),
|
|
4803
|
+
terraformSourceName: __expectString(output.terraformSourceName),
|
|
4733
4804
|
};
|
|
4734
4805
|
};
|
|
4735
4806
|
var deserializeAws_restJson1ResourceMappingList = function (output, context) {
|
|
@@ -4795,9 +4866,28 @@ var deserializeAws_restJson1TagMap = function (output, context) {
|
|
|
4795
4866
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
4796
4867
|
}, {});
|
|
4797
4868
|
};
|
|
4869
|
+
var deserializeAws_restJson1TerraformSource = function (output, context) {
|
|
4870
|
+
return {
|
|
4871
|
+
s3StateFileUrl: __expectString(output.s3StateFileUrl),
|
|
4872
|
+
};
|
|
4873
|
+
};
|
|
4874
|
+
var deserializeAws_restJson1TerraformSourceList = function (output, context) {
|
|
4875
|
+
var retVal = (output || [])
|
|
4876
|
+
.filter(function (e) { return e != null; })
|
|
4877
|
+
.map(function (entry) {
|
|
4878
|
+
if (entry === null) {
|
|
4879
|
+
return null;
|
|
4880
|
+
}
|
|
4881
|
+
return deserializeAws_restJson1TerraformSource(entry, context);
|
|
4882
|
+
});
|
|
4883
|
+
return retVal;
|
|
4884
|
+
};
|
|
4798
4885
|
var deserializeAws_restJson1TestRecommendation = function (output, context) {
|
|
4799
4886
|
return {
|
|
4800
4887
|
appComponentName: __expectString(output.appComponentName),
|
|
4888
|
+
dependsOnAlarms: output.dependsOnAlarms !== undefined && output.dependsOnAlarms !== null
|
|
4889
|
+
? deserializeAws_restJson1AlarmReferenceIdList(output.dependsOnAlarms, context)
|
|
4890
|
+
: undefined,
|
|
4801
4891
|
description: __expectString(output.description),
|
|
4802
4892
|
intent: __expectString(output.intent),
|
|
4803
4893
|
items: output.items !== undefined && output.items !== null
|