@aws-sdk/client-appconfig 3.121.0 → 3.127.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 +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +55 -74
- package/dist-es/protocols/Aws_restJson1.js +21 -40
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-appconfig
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
15
|
|
|
8
16
|
|
|
@@ -14,9 +14,9 @@ const serializeAws_restJson1CreateApplicationCommand = async (input, context) =>
|
|
|
14
14
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify({
|
|
17
|
-
...(input.Description
|
|
18
|
-
...(input.Name
|
|
19
|
-
...(input.Tags
|
|
17
|
+
...(input.Description != null && { Description: input.Description }),
|
|
18
|
+
...(input.Name != null && { Name: input.Name }),
|
|
19
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
20
20
|
});
|
|
21
21
|
return new protocol_http_1.HttpRequest({
|
|
22
22
|
protocol,
|
|
@@ -48,15 +48,13 @@ const serializeAws_restJson1CreateConfigurationProfileCommand = async (input, co
|
|
|
48
48
|
}
|
|
49
49
|
let body;
|
|
50
50
|
body = JSON.stringify({
|
|
51
|
-
...(input.Description
|
|
52
|
-
...(input.LocationUri
|
|
53
|
-
...(input.Name
|
|
54
|
-
...(input.RetrievalRoleArn
|
|
55
|
-
|
|
56
|
-
...(input.
|
|
57
|
-
...(input.
|
|
58
|
-
...(input.Validators !== undefined &&
|
|
59
|
-
input.Validators !== null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) }),
|
|
51
|
+
...(input.Description != null && { Description: input.Description }),
|
|
52
|
+
...(input.LocationUri != null && { LocationUri: input.LocationUri }),
|
|
53
|
+
...(input.Name != null && { Name: input.Name }),
|
|
54
|
+
...(input.RetrievalRoleArn != null && { RetrievalRoleArn: input.RetrievalRoleArn }),
|
|
55
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
56
|
+
...(input.Type != null && { Type: input.Type }),
|
|
57
|
+
...(input.Validators != null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) }),
|
|
60
58
|
});
|
|
61
59
|
return new protocol_http_1.HttpRequest({
|
|
62
60
|
protocol,
|
|
@@ -77,17 +75,16 @@ const serializeAws_restJson1CreateDeploymentStrategyCommand = async (input, cont
|
|
|
77
75
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/deploymentstrategies";
|
|
78
76
|
let body;
|
|
79
77
|
body = JSON.stringify({
|
|
80
|
-
...(input.DeploymentDurationInMinutes
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
...(input.
|
|
84
|
-
|
|
85
|
-
...(input.GrowthFactor
|
|
86
|
-
|
|
87
|
-
...(input.
|
|
88
|
-
...(input.
|
|
89
|
-
...(input.
|
|
90
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
78
|
+
...(input.DeploymentDurationInMinutes != null && {
|
|
79
|
+
DeploymentDurationInMinutes: input.DeploymentDurationInMinutes,
|
|
80
|
+
}),
|
|
81
|
+
...(input.Description != null && { Description: input.Description }),
|
|
82
|
+
...(input.FinalBakeTimeInMinutes != null && { FinalBakeTimeInMinutes: input.FinalBakeTimeInMinutes }),
|
|
83
|
+
...(input.GrowthFactor != null && { GrowthFactor: (0, smithy_client_1.serializeFloat)(input.GrowthFactor) }),
|
|
84
|
+
...(input.GrowthType != null && { GrowthType: input.GrowthType }),
|
|
85
|
+
...(input.Name != null && { Name: input.Name }),
|
|
86
|
+
...(input.ReplicateTo != null && { ReplicateTo: input.ReplicateTo }),
|
|
87
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
91
88
|
});
|
|
92
89
|
return new protocol_http_1.HttpRequest({
|
|
93
90
|
protocol,
|
|
@@ -119,11 +116,10 @@ const serializeAws_restJson1CreateEnvironmentCommand = async (input, context) =>
|
|
|
119
116
|
}
|
|
120
117
|
let body;
|
|
121
118
|
body = JSON.stringify({
|
|
122
|
-
...(input.Description
|
|
123
|
-
...(input.Monitors
|
|
124
|
-
|
|
125
|
-
...(input.
|
|
126
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
119
|
+
...(input.Description != null && { Description: input.Description }),
|
|
120
|
+
...(input.Monitors != null && { Monitors: serializeAws_restJson1MonitorList(input.Monitors, context) }),
|
|
121
|
+
...(input.Name != null && { Name: input.Name }),
|
|
122
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
127
123
|
});
|
|
128
124
|
return new protocol_http_1.HttpRequest({
|
|
129
125
|
protocol,
|
|
@@ -878,14 +874,11 @@ const serializeAws_restJson1StartDeploymentCommand = async (input, context) => {
|
|
|
878
874
|
}
|
|
879
875
|
let body;
|
|
880
876
|
body = JSON.stringify({
|
|
881
|
-
...(input.ConfigurationProfileId
|
|
882
|
-
|
|
883
|
-
...(input.
|
|
884
|
-
|
|
885
|
-
...(input.
|
|
886
|
-
input.DeploymentStrategyId !== null && { DeploymentStrategyId: input.DeploymentStrategyId }),
|
|
887
|
-
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
888
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
877
|
+
...(input.ConfigurationProfileId != null && { ConfigurationProfileId: input.ConfigurationProfileId }),
|
|
878
|
+
...(input.ConfigurationVersion != null && { ConfigurationVersion: input.ConfigurationVersion }),
|
|
879
|
+
...(input.DeploymentStrategyId != null && { DeploymentStrategyId: input.DeploymentStrategyId }),
|
|
880
|
+
...(input.Description != null && { Description: input.Description }),
|
|
881
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
889
882
|
});
|
|
890
883
|
return new protocol_http_1.HttpRequest({
|
|
891
884
|
protocol,
|
|
@@ -963,7 +956,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
963
956
|
}
|
|
964
957
|
let body;
|
|
965
958
|
body = JSON.stringify({
|
|
966
|
-
...(input.Tags
|
|
959
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
967
960
|
});
|
|
968
961
|
return new protocol_http_1.HttpRequest({
|
|
969
962
|
protocol,
|
|
@@ -1024,8 +1017,8 @@ const serializeAws_restJson1UpdateApplicationCommand = async (input, context) =>
|
|
|
1024
1017
|
}
|
|
1025
1018
|
let body;
|
|
1026
1019
|
body = JSON.stringify({
|
|
1027
|
-
...(input.Description
|
|
1028
|
-
...(input.Name
|
|
1020
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1021
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1029
1022
|
});
|
|
1030
1023
|
return new protocol_http_1.HttpRequest({
|
|
1031
1024
|
protocol,
|
|
@@ -1067,12 +1060,10 @@ const serializeAws_restJson1UpdateConfigurationProfileCommand = async (input, co
|
|
|
1067
1060
|
}
|
|
1068
1061
|
let body;
|
|
1069
1062
|
body = JSON.stringify({
|
|
1070
|
-
...(input.Description
|
|
1071
|
-
...(input.Name
|
|
1072
|
-
...(input.RetrievalRoleArn
|
|
1073
|
-
|
|
1074
|
-
...(input.Validators !== undefined &&
|
|
1075
|
-
input.Validators !== null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) }),
|
|
1063
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1064
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1065
|
+
...(input.RetrievalRoleArn != null && { RetrievalRoleArn: input.RetrievalRoleArn }),
|
|
1066
|
+
...(input.Validators != null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) }),
|
|
1076
1067
|
});
|
|
1077
1068
|
return new protocol_http_1.HttpRequest({
|
|
1078
1069
|
protocol,
|
|
@@ -1104,14 +1095,13 @@ const serializeAws_restJson1UpdateDeploymentStrategyCommand = async (input, cont
|
|
|
1104
1095
|
}
|
|
1105
1096
|
let body;
|
|
1106
1097
|
body = JSON.stringify({
|
|
1107
|
-
...(input.DeploymentDurationInMinutes
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
...(input.
|
|
1111
|
-
|
|
1112
|
-
...(input.GrowthFactor
|
|
1113
|
-
|
|
1114
|
-
...(input.GrowthType !== undefined && input.GrowthType !== null && { GrowthType: input.GrowthType }),
|
|
1098
|
+
...(input.DeploymentDurationInMinutes != null && {
|
|
1099
|
+
DeploymentDurationInMinutes: input.DeploymentDurationInMinutes,
|
|
1100
|
+
}),
|
|
1101
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1102
|
+
...(input.FinalBakeTimeInMinutes != null && { FinalBakeTimeInMinutes: input.FinalBakeTimeInMinutes }),
|
|
1103
|
+
...(input.GrowthFactor != null && { GrowthFactor: (0, smithy_client_1.serializeFloat)(input.GrowthFactor) }),
|
|
1104
|
+
...(input.GrowthType != null && { GrowthType: input.GrowthType }),
|
|
1115
1105
|
});
|
|
1116
1106
|
return new protocol_http_1.HttpRequest({
|
|
1117
1107
|
protocol,
|
|
@@ -1153,10 +1143,9 @@ const serializeAws_restJson1UpdateEnvironmentCommand = async (input, context) =>
|
|
|
1153
1143
|
}
|
|
1154
1144
|
let body;
|
|
1155
1145
|
body = JSON.stringify({
|
|
1156
|
-
...(input.Description
|
|
1157
|
-
...(input.Monitors
|
|
1158
|
-
|
|
1159
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
1146
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1147
|
+
...(input.Monitors != null && { Monitors: serializeAws_restJson1MonitorList(input.Monitors, context) }),
|
|
1148
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1160
1149
|
});
|
|
1161
1150
|
return new protocol_http_1.HttpRequest({
|
|
1162
1151
|
protocol,
|
|
@@ -3250,8 +3239,8 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
3250
3239
|
};
|
|
3251
3240
|
const serializeAws_restJson1Monitor = (input, context) => {
|
|
3252
3241
|
return {
|
|
3253
|
-
...(input.AlarmArn
|
|
3254
|
-
...(input.AlarmRoleArn
|
|
3242
|
+
...(input.AlarmArn != null && { AlarmArn: input.AlarmArn }),
|
|
3243
|
+
...(input.AlarmRoleArn != null && { AlarmRoleArn: input.AlarmRoleArn }),
|
|
3255
3244
|
};
|
|
3256
3245
|
};
|
|
3257
3246
|
const serializeAws_restJson1MonitorList = (input, context) => {
|
|
@@ -3277,8 +3266,8 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
3277
3266
|
};
|
|
3278
3267
|
const serializeAws_restJson1Validator = (input, context) => {
|
|
3279
3268
|
return {
|
|
3280
|
-
...(input.Content
|
|
3281
|
-
...(input.Type
|
|
3269
|
+
...(input.Content != null && { Content: input.Content }),
|
|
3270
|
+
...(input.Type != null && { Type: input.Type }),
|
|
3282
3271
|
};
|
|
3283
3272
|
};
|
|
3284
3273
|
const serializeAws_restJson1ValidatorList = (input, context) => {
|
|
@@ -3324,7 +3313,7 @@ const deserializeAws_restJson1ConfigurationProfileSummary = (output, context) =>
|
|
|
3324
3313
|
LocationUri: (0, smithy_client_1.expectString)(output.LocationUri),
|
|
3325
3314
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3326
3315
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3327
|
-
ValidatorTypes: output.ValidatorTypes
|
|
3316
|
+
ValidatorTypes: output.ValidatorTypes != null
|
|
3328
3317
|
? deserializeAws_restJson1ValidatorTypeList(output.ValidatorTypes, context)
|
|
3329
3318
|
: undefined,
|
|
3330
3319
|
};
|
|
@@ -3344,9 +3333,7 @@ const deserializeAws_restJson1DeploymentEvent = (output, context) => {
|
|
|
3344
3333
|
return {
|
|
3345
3334
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3346
3335
|
EventType: (0, smithy_client_1.expectString)(output.EventType),
|
|
3347
|
-
OccurredAt: output.OccurredAt
|
|
3348
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.OccurredAt))
|
|
3349
|
-
: undefined,
|
|
3336
|
+
OccurredAt: output.OccurredAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.OccurredAt)) : undefined,
|
|
3350
3337
|
TriggeredBy: (0, smithy_client_1.expectString)(output.TriggeredBy),
|
|
3351
3338
|
};
|
|
3352
3339
|
};
|
|
@@ -3397,9 +3384,7 @@ const deserializeAws_restJson1DeploymentStrategyList = (output, context) => {
|
|
|
3397
3384
|
};
|
|
3398
3385
|
const deserializeAws_restJson1DeploymentSummary = (output, context) => {
|
|
3399
3386
|
return {
|
|
3400
|
-
CompletedAt: output.CompletedAt
|
|
3401
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CompletedAt))
|
|
3402
|
-
: undefined,
|
|
3387
|
+
CompletedAt: output.CompletedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CompletedAt)) : undefined,
|
|
3403
3388
|
ConfigurationName: (0, smithy_client_1.expectString)(output.ConfigurationName),
|
|
3404
3389
|
ConfigurationVersion: (0, smithy_client_1.expectString)(output.ConfigurationVersion),
|
|
3405
3390
|
DeploymentDurationInMinutes: (0, smithy_client_1.expectInt32)(output.DeploymentDurationInMinutes),
|
|
@@ -3408,9 +3393,7 @@ const deserializeAws_restJson1DeploymentSummary = (output, context) => {
|
|
|
3408
3393
|
GrowthFactor: (0, smithy_client_1.limitedParseFloat32)(output.GrowthFactor),
|
|
3409
3394
|
GrowthType: (0, smithy_client_1.expectString)(output.GrowthType),
|
|
3410
3395
|
PercentageComplete: (0, smithy_client_1.limitedParseFloat32)(output.PercentageComplete),
|
|
3411
|
-
StartedAt: output.StartedAt
|
|
3412
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.StartedAt))
|
|
3413
|
-
: undefined,
|
|
3396
|
+
StartedAt: output.StartedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.StartedAt)) : undefined,
|
|
3414
3397
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
3415
3398
|
};
|
|
3416
3399
|
};
|
|
@@ -3419,9 +3402,7 @@ const deserializeAws_restJson1Environment = (output, context) => {
|
|
|
3419
3402
|
ApplicationId: (0, smithy_client_1.expectString)(output.ApplicationId),
|
|
3420
3403
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3421
3404
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
3422
|
-
Monitors: output.Monitors
|
|
3423
|
-
? deserializeAws_restJson1MonitorList(output.Monitors, context)
|
|
3424
|
-
: undefined,
|
|
3405
|
+
Monitors: output.Monitors != null ? deserializeAws_restJson1MonitorList(output.Monitors, context) : undefined,
|
|
3425
3406
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3426
3407
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
3427
3408
|
};
|
|
@@ -14,7 +14,7 @@ export var serializeAws_restJson1CreateApplicationCommand = function (input, con
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications";
|
|
17
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description
|
|
17
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
18
18
|
return [2, new __HttpRequest({
|
|
19
19
|
protocol: protocol,
|
|
20
20
|
hostname: hostname,
|
|
@@ -49,9 +49,7 @@ export var serializeAws_restJson1CreateConfigurationProfileCommand = function (i
|
|
|
49
49
|
else {
|
|
50
50
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
51
51
|
}
|
|
52
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description
|
|
53
|
-
input.RetrievalRoleArn !== null && { RetrievalRoleArn: input.RetrievalRoleArn })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })), (input.Validators !== undefined &&
|
|
54
|
-
input.Validators !== null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) })));
|
|
52
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.LocationUri != null && { LocationUri: input.LocationUri })), (input.Name != null && { Name: input.Name })), (input.RetrievalRoleArn != null && { RetrievalRoleArn: input.RetrievalRoleArn })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.Type != null && { Type: input.Type })), (input.Validators != null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) })));
|
|
55
53
|
return [2, new __HttpRequest({
|
|
56
54
|
protocol: protocol,
|
|
57
55
|
hostname: hostname,
|
|
@@ -75,10 +73,9 @@ export var serializeAws_restJson1CreateDeploymentStrategyCommand = function (inp
|
|
|
75
73
|
"content-type": "application/json",
|
|
76
74
|
};
|
|
77
75
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/deploymentstrategies";
|
|
78
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DeploymentDurationInMinutes
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
input.GrowthFactor !== null && { GrowthFactor: __serializeFloat(input.GrowthFactor) })), (input.GrowthType !== undefined && input.GrowthType !== null && { GrowthType: input.GrowthType })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.ReplicateTo !== undefined && input.ReplicateTo !== null && { ReplicateTo: input.ReplicateTo })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
76
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DeploymentDurationInMinutes != null && {
|
|
77
|
+
DeploymentDurationInMinutes: input.DeploymentDurationInMinutes,
|
|
78
|
+
})), (input.Description != null && { Description: input.Description })), (input.FinalBakeTimeInMinutes != null && { FinalBakeTimeInMinutes: input.FinalBakeTimeInMinutes })), (input.GrowthFactor != null && { GrowthFactor: __serializeFloat(input.GrowthFactor) })), (input.GrowthType != null && { GrowthType: input.GrowthType })), (input.Name != null && { Name: input.Name })), (input.ReplicateTo != null && { ReplicateTo: input.ReplicateTo })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
82
79
|
return [2, new __HttpRequest({
|
|
83
80
|
protocol: protocol,
|
|
84
81
|
hostname: hostname,
|
|
@@ -113,8 +110,7 @@ export var serializeAws_restJson1CreateEnvironmentCommand = function (input, con
|
|
|
113
110
|
else {
|
|
114
111
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
115
112
|
}
|
|
116
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description
|
|
117
|
-
input.Monitors !== null && { Monitors: serializeAws_restJson1MonitorList(input.Monitors, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
113
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Monitors != null && { Monitors: serializeAws_restJson1MonitorList(input.Monitors, context) })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
118
114
|
return [2, new __HttpRequest({
|
|
119
115
|
protocol: protocol,
|
|
120
116
|
hostname: hostname,
|
|
@@ -945,10 +941,7 @@ export var serializeAws_restJson1StartDeploymentCommand = function (input, conte
|
|
|
945
941
|
else {
|
|
946
942
|
throw new Error("No value provided for input HTTP label: EnvironmentId.");
|
|
947
943
|
}
|
|
948
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.ConfigurationProfileId
|
|
949
|
-
input.ConfigurationProfileId !== null && { ConfigurationProfileId: input.ConfigurationProfileId })), (input.ConfigurationVersion !== undefined &&
|
|
950
|
-
input.ConfigurationVersion !== null && { ConfigurationVersion: input.ConfigurationVersion })), (input.DeploymentStrategyId !== undefined &&
|
|
951
|
-
input.DeploymentStrategyId !== null && { DeploymentStrategyId: input.DeploymentStrategyId })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
944
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.ConfigurationProfileId != null && { ConfigurationProfileId: input.ConfigurationProfileId })), (input.ConfigurationVersion != null && { ConfigurationVersion: input.ConfigurationVersion })), (input.DeploymentStrategyId != null && { DeploymentStrategyId: input.DeploymentStrategyId })), (input.Description != null && { Description: input.Description })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
952
945
|
return [2, new __HttpRequest({
|
|
953
946
|
protocol: protocol,
|
|
954
947
|
hostname: hostname,
|
|
@@ -1034,7 +1027,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1034
1027
|
else {
|
|
1035
1028
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
1036
1029
|
}
|
|
1037
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
1030
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
1038
1031
|
return [2, new __HttpRequest({
|
|
1039
1032
|
protocol: protocol,
|
|
1040
1033
|
hostname: hostname,
|
|
@@ -1101,7 +1094,7 @@ export var serializeAws_restJson1UpdateApplicationCommand = function (input, con
|
|
|
1101
1094
|
else {
|
|
1102
1095
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
1103
1096
|
}
|
|
1104
|
-
body = JSON.stringify(__assign(__assign({}, (input.Description
|
|
1097
|
+
body = JSON.stringify(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })));
|
|
1105
1098
|
return [2, new __HttpRequest({
|
|
1106
1099
|
protocol: protocol,
|
|
1107
1100
|
hostname: hostname,
|
|
@@ -1146,9 +1139,7 @@ export var serializeAws_restJson1UpdateConfigurationProfileCommand = function (i
|
|
|
1146
1139
|
else {
|
|
1147
1140
|
throw new Error("No value provided for input HTTP label: ConfigurationProfileId.");
|
|
1148
1141
|
}
|
|
1149
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description
|
|
1150
|
-
input.RetrievalRoleArn !== null && { RetrievalRoleArn: input.RetrievalRoleArn })), (input.Validators !== undefined &&
|
|
1151
|
-
input.Validators !== null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) })));
|
|
1142
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.RetrievalRoleArn != null && { RetrievalRoleArn: input.RetrievalRoleArn })), (input.Validators != null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) })));
|
|
1152
1143
|
return [2, new __HttpRequest({
|
|
1153
1144
|
protocol: protocol,
|
|
1154
1145
|
hostname: hostname,
|
|
@@ -1183,10 +1174,9 @@ export var serializeAws_restJson1UpdateDeploymentStrategyCommand = function (inp
|
|
|
1183
1174
|
else {
|
|
1184
1175
|
throw new Error("No value provided for input HTTP label: DeploymentStrategyId.");
|
|
1185
1176
|
}
|
|
1186
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.DeploymentDurationInMinutes
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
input.GrowthFactor !== null && { GrowthFactor: __serializeFloat(input.GrowthFactor) })), (input.GrowthType !== undefined && input.GrowthType !== null && { GrowthType: input.GrowthType })));
|
|
1177
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.DeploymentDurationInMinutes != null && {
|
|
1178
|
+
DeploymentDurationInMinutes: input.DeploymentDurationInMinutes,
|
|
1179
|
+
})), (input.Description != null && { Description: input.Description })), (input.FinalBakeTimeInMinutes != null && { FinalBakeTimeInMinutes: input.FinalBakeTimeInMinutes })), (input.GrowthFactor != null && { GrowthFactor: __serializeFloat(input.GrowthFactor) })), (input.GrowthType != null && { GrowthType: input.GrowthType })));
|
|
1190
1180
|
return [2, new __HttpRequest({
|
|
1191
1181
|
protocol: protocol,
|
|
1192
1182
|
hostname: hostname,
|
|
@@ -1231,8 +1221,7 @@ export var serializeAws_restJson1UpdateEnvironmentCommand = function (input, con
|
|
|
1231
1221
|
else {
|
|
1232
1222
|
throw new Error("No value provided for input HTTP label: EnvironmentId.");
|
|
1233
1223
|
}
|
|
1234
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description
|
|
1235
|
-
input.Monitors !== null && { Monitors: serializeAws_restJson1MonitorList(input.Monitors, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })));
|
|
1224
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Monitors != null && { Monitors: serializeAws_restJson1MonitorList(input.Monitors, context) })), (input.Name != null && { Name: input.Name })));
|
|
1236
1225
|
return [2, new __HttpRequest({
|
|
1237
1226
|
protocol: protocol,
|
|
1238
1227
|
hostname: hostname,
|
|
@@ -4001,7 +3990,7 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
4001
3990
|
});
|
|
4002
3991
|
}); };
|
|
4003
3992
|
var serializeAws_restJson1Monitor = function (input, context) {
|
|
4004
|
-
return __assign(__assign({}, (input.AlarmArn
|
|
3993
|
+
return __assign(__assign({}, (input.AlarmArn != null && { AlarmArn: input.AlarmArn })), (input.AlarmRoleArn != null && { AlarmRoleArn: input.AlarmRoleArn }));
|
|
4005
3994
|
};
|
|
4006
3995
|
var serializeAws_restJson1MonitorList = function (input, context) {
|
|
4007
3996
|
return input
|
|
@@ -4024,7 +4013,7 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
4024
4013
|
}, {});
|
|
4025
4014
|
};
|
|
4026
4015
|
var serializeAws_restJson1Validator = function (input, context) {
|
|
4027
|
-
return __assign(__assign({}, (input.Content
|
|
4016
|
+
return __assign(__assign({}, (input.Content != null && { Content: input.Content })), (input.Type != null && { Type: input.Type }));
|
|
4028
4017
|
};
|
|
4029
4018
|
var serializeAws_restJson1ValidatorList = function (input, context) {
|
|
4030
4019
|
return input
|
|
@@ -4069,7 +4058,7 @@ var deserializeAws_restJson1ConfigurationProfileSummary = function (output, cont
|
|
|
4069
4058
|
LocationUri: __expectString(output.LocationUri),
|
|
4070
4059
|
Name: __expectString(output.Name),
|
|
4071
4060
|
Type: __expectString(output.Type),
|
|
4072
|
-
ValidatorTypes: output.ValidatorTypes
|
|
4061
|
+
ValidatorTypes: output.ValidatorTypes != null
|
|
4073
4062
|
? deserializeAws_restJson1ValidatorTypeList(output.ValidatorTypes, context)
|
|
4074
4063
|
: undefined,
|
|
4075
4064
|
};
|
|
@@ -4089,9 +4078,7 @@ var deserializeAws_restJson1DeploymentEvent = function (output, context) {
|
|
|
4089
4078
|
return {
|
|
4090
4079
|
Description: __expectString(output.Description),
|
|
4091
4080
|
EventType: __expectString(output.EventType),
|
|
4092
|
-
OccurredAt: output.OccurredAt
|
|
4093
|
-
? __expectNonNull(__parseRfc3339DateTime(output.OccurredAt))
|
|
4094
|
-
: undefined,
|
|
4081
|
+
OccurredAt: output.OccurredAt != null ? __expectNonNull(__parseRfc3339DateTime(output.OccurredAt)) : undefined,
|
|
4095
4082
|
TriggeredBy: __expectString(output.TriggeredBy),
|
|
4096
4083
|
};
|
|
4097
4084
|
};
|
|
@@ -4142,9 +4129,7 @@ var deserializeAws_restJson1DeploymentStrategyList = function (output, context)
|
|
|
4142
4129
|
};
|
|
4143
4130
|
var deserializeAws_restJson1DeploymentSummary = function (output, context) {
|
|
4144
4131
|
return {
|
|
4145
|
-
CompletedAt: output.CompletedAt
|
|
4146
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CompletedAt))
|
|
4147
|
-
: undefined,
|
|
4132
|
+
CompletedAt: output.CompletedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.CompletedAt)) : undefined,
|
|
4148
4133
|
ConfigurationName: __expectString(output.ConfigurationName),
|
|
4149
4134
|
ConfigurationVersion: __expectString(output.ConfigurationVersion),
|
|
4150
4135
|
DeploymentDurationInMinutes: __expectInt32(output.DeploymentDurationInMinutes),
|
|
@@ -4153,9 +4138,7 @@ var deserializeAws_restJson1DeploymentSummary = function (output, context) {
|
|
|
4153
4138
|
GrowthFactor: __limitedParseFloat32(output.GrowthFactor),
|
|
4154
4139
|
GrowthType: __expectString(output.GrowthType),
|
|
4155
4140
|
PercentageComplete: __limitedParseFloat32(output.PercentageComplete),
|
|
4156
|
-
StartedAt: output.StartedAt
|
|
4157
|
-
? __expectNonNull(__parseRfc3339DateTime(output.StartedAt))
|
|
4158
|
-
: undefined,
|
|
4141
|
+
StartedAt: output.StartedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.StartedAt)) : undefined,
|
|
4159
4142
|
State: __expectString(output.State),
|
|
4160
4143
|
};
|
|
4161
4144
|
};
|
|
@@ -4164,9 +4147,7 @@ var deserializeAws_restJson1Environment = function (output, context) {
|
|
|
4164
4147
|
ApplicationId: __expectString(output.ApplicationId),
|
|
4165
4148
|
Description: __expectString(output.Description),
|
|
4166
4149
|
Id: __expectString(output.Id),
|
|
4167
|
-
Monitors: output.Monitors
|
|
4168
|
-
? deserializeAws_restJson1MonitorList(output.Monitors, context)
|
|
4169
|
-
: undefined,
|
|
4150
|
+
Monitors: output.Monitors != null ? deserializeAws_restJson1MonitorList(output.Monitors, context) : undefined,
|
|
4170
4151
|
Name: __expectString(output.Name),
|
|
4171
4152
|
State: __expectString(output.State),
|
|
4172
4153
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-appconfig",
|
|
3
3
|
"description": "AWS SDK for JavaScript Appconfig Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.127.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.127.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.127.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.127.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.127.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.127.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|