@aws-sdk/client-imagebuilder 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 +309 -496
- package/dist-es/protocols/Aws_restJson1.js +169 -356
- package/package.json +26 -26
|
@@ -16,8 +16,7 @@ export var serializeAws_restJson1CancelImageCreationCommand = function (input, c
|
|
|
16
16
|
"content-type": "application/json",
|
|
17
17
|
};
|
|
18
18
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CancelImageCreation";
|
|
19
|
-
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.imageBuildVersionArn
|
|
20
|
-
input.imageBuildVersionArn !== null && { imageBuildVersionArn: input.imageBuildVersionArn })));
|
|
19
|
+
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.imageBuildVersionArn != null && { imageBuildVersionArn: input.imageBuildVersionArn })));
|
|
21
20
|
return [2, new __HttpRequest({
|
|
22
21
|
protocol: protocol,
|
|
23
22
|
hostname: hostname,
|
|
@@ -42,12 +41,9 @@ export var serializeAws_restJson1CreateComponentCommand = function (input, conte
|
|
|
42
41
|
"content-type": "application/json",
|
|
43
42
|
};
|
|
44
43
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateComponent";
|
|
45
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.changeDescription !==
|
|
46
|
-
input.changeDescription !== null && { changeDescription: input.changeDescription })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.data !== undefined && input.data !== null && { data: input.data })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.platform !== undefined && input.platform !== null && { platform: input.platform })), (input.semanticVersion !== undefined &&
|
|
47
|
-
input.semanticVersion !== null && { semanticVersion: input.semanticVersion })), (input.supportedOsVersions !== undefined &&
|
|
48
|
-
input.supportedOsVersions !== null && {
|
|
44
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.changeDescription != null && { changeDescription: input.changeDescription })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.data != null && { data: input.data })), (input.description != null && { description: input.description })), (input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId })), (input.name != null && { name: input.name })), (input.platform != null && { platform: input.platform })), (input.semanticVersion != null && { semanticVersion: input.semanticVersion })), (input.supportedOsVersions != null && {
|
|
49
45
|
supportedOsVersions: serializeAws_restJson1OsVersionList(input.supportedOsVersions, context),
|
|
50
|
-
})), (input.tags
|
|
46
|
+
})), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.uri != null && { uri: input.uri })));
|
|
51
47
|
return [2, new __HttpRequest({
|
|
52
48
|
protocol: protocol,
|
|
53
49
|
hostname: hostname,
|
|
@@ -72,22 +68,13 @@ export var serializeAws_restJson1CreateContainerRecipeCommand = function (input,
|
|
|
72
68
|
"content-type": "application/json",
|
|
73
69
|
};
|
|
74
70
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateContainerRecipe";
|
|
75
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.components
|
|
76
|
-
input.components !== null && {
|
|
71
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.components != null && {
|
|
77
72
|
components: serializeAws_restJson1ComponentConfigurationList(input.components, context),
|
|
78
|
-
})), (input.containerType
|
|
79
|
-
input.dockerfileTemplateData !== null && { dockerfileTemplateData: input.dockerfileTemplateData })), (input.dockerfileTemplateUri !== undefined &&
|
|
80
|
-
input.dockerfileTemplateUri !== null && { dockerfileTemplateUri: input.dockerfileTemplateUri })), (input.imageOsVersionOverride !== undefined &&
|
|
81
|
-
input.imageOsVersionOverride !== null && { imageOsVersionOverride: input.imageOsVersionOverride })), (input.instanceConfiguration !== undefined &&
|
|
82
|
-
input.instanceConfiguration !== null && {
|
|
73
|
+
})), (input.containerType != null && { containerType: input.containerType })), (input.description != null && { description: input.description })), (input.dockerfileTemplateData != null && { dockerfileTemplateData: input.dockerfileTemplateData })), (input.dockerfileTemplateUri != null && { dockerfileTemplateUri: input.dockerfileTemplateUri })), (input.imageOsVersionOverride != null && { imageOsVersionOverride: input.imageOsVersionOverride })), (input.instanceConfiguration != null && {
|
|
83
74
|
instanceConfiguration: serializeAws_restJson1InstanceConfiguration(input.instanceConfiguration, context),
|
|
84
|
-
})), (input.kmsKeyId
|
|
85
|
-
input.platformOverride !== null && { platformOverride: input.platformOverride })), (input.semanticVersion !== undefined &&
|
|
86
|
-
input.semanticVersion !== null && { semanticVersion: input.semanticVersion })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.targetRepository !== undefined &&
|
|
87
|
-
input.targetRepository !== null && {
|
|
75
|
+
})), (input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId })), (input.name != null && { name: input.name })), (input.parentImage != null && { parentImage: input.parentImage })), (input.platformOverride != null && { platformOverride: input.platformOverride })), (input.semanticVersion != null && { semanticVersion: input.semanticVersion })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.targetRepository != null && {
|
|
88
76
|
targetRepository: serializeAws_restJson1TargetContainerRepository(input.targetRepository, context),
|
|
89
|
-
})), (input.workingDirectory
|
|
90
|
-
input.workingDirectory !== null && { workingDirectory: input.workingDirectory })));
|
|
77
|
+
})), (input.workingDirectory != null && { workingDirectory: input.workingDirectory })));
|
|
91
78
|
return [2, new __HttpRequest({
|
|
92
79
|
protocol: protocol,
|
|
93
80
|
hostname: hostname,
|
|
@@ -112,10 +99,9 @@ export var serializeAws_restJson1CreateDistributionConfigurationCommand = functi
|
|
|
112
99
|
"content-type": "application/json",
|
|
113
100
|
};
|
|
114
101
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateDistributionConfiguration";
|
|
115
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description
|
|
116
|
-
input.distributions !== null && {
|
|
102
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description != null && { description: input.description })), (input.distributions != null && {
|
|
117
103
|
distributions: serializeAws_restJson1DistributionList(input.distributions, context),
|
|
118
|
-
})), (input.name
|
|
104
|
+
})), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
119
105
|
return [2, new __HttpRequest({
|
|
120
106
|
protocol: protocol,
|
|
121
107
|
hostname: hostname,
|
|
@@ -140,21 +126,15 @@ export var serializeAws_restJson1CreateImageCommand = function (input, context)
|
|
|
140
126
|
"content-type": "application/json",
|
|
141
127
|
};
|
|
142
128
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateImage";
|
|
143
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.containerRecipeArn
|
|
144
|
-
input.containerRecipeArn !== null && { containerRecipeArn: input.containerRecipeArn })), (input.distributionConfigurationArn !== undefined &&
|
|
145
|
-
input.distributionConfigurationArn !== null && {
|
|
129
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.containerRecipeArn != null && { containerRecipeArn: input.containerRecipeArn })), (input.distributionConfigurationArn != null && {
|
|
146
130
|
distributionConfigurationArn: input.distributionConfigurationArn,
|
|
147
|
-
})), (input.enhancedImageMetadataEnabled
|
|
148
|
-
input.enhancedImageMetadataEnabled !== null && {
|
|
131
|
+
})), (input.enhancedImageMetadataEnabled != null && {
|
|
149
132
|
enhancedImageMetadataEnabled: input.enhancedImageMetadataEnabled,
|
|
150
|
-
})), (input.imageRecipeArn
|
|
151
|
-
input.imageRecipeArn !== null && { imageRecipeArn: input.imageRecipeArn })), (input.imageTestsConfiguration !== undefined &&
|
|
152
|
-
input.imageTestsConfiguration !== null && {
|
|
133
|
+
})), (input.imageRecipeArn != null && { imageRecipeArn: input.imageRecipeArn })), (input.imageTestsConfiguration != null && {
|
|
153
134
|
imageTestsConfiguration: serializeAws_restJson1ImageTestsConfiguration(input.imageTestsConfiguration, context),
|
|
154
|
-
})), (input.infrastructureConfigurationArn
|
|
155
|
-
input.infrastructureConfigurationArn !== null && {
|
|
135
|
+
})), (input.infrastructureConfigurationArn != null && {
|
|
156
136
|
infrastructureConfigurationArn: input.infrastructureConfigurationArn,
|
|
157
|
-
})), (input.tags
|
|
137
|
+
})), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
158
138
|
return [2, new __HttpRequest({
|
|
159
139
|
protocol: protocol,
|
|
160
140
|
hostname: hostname,
|
|
@@ -179,22 +159,15 @@ export var serializeAws_restJson1CreateImagePipelineCommand = function (input, c
|
|
|
179
159
|
"content-type": "application/json",
|
|
180
160
|
};
|
|
181
161
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateImagePipeline";
|
|
182
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.containerRecipeArn
|
|
183
|
-
input.containerRecipeArn !== null && { containerRecipeArn: input.containerRecipeArn })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.distributionConfigurationArn !== undefined &&
|
|
184
|
-
input.distributionConfigurationArn !== null && {
|
|
162
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.containerRecipeArn != null && { containerRecipeArn: input.containerRecipeArn })), (input.description != null && { description: input.description })), (input.distributionConfigurationArn != null && {
|
|
185
163
|
distributionConfigurationArn: input.distributionConfigurationArn,
|
|
186
|
-
})), (input.enhancedImageMetadataEnabled
|
|
187
|
-
input.enhancedImageMetadataEnabled !== null && {
|
|
164
|
+
})), (input.enhancedImageMetadataEnabled != null && {
|
|
188
165
|
enhancedImageMetadataEnabled: input.enhancedImageMetadataEnabled,
|
|
189
|
-
})), (input.imageRecipeArn
|
|
190
|
-
input.imageRecipeArn !== null && { imageRecipeArn: input.imageRecipeArn })), (input.imageTestsConfiguration !== undefined &&
|
|
191
|
-
input.imageTestsConfiguration !== null && {
|
|
166
|
+
})), (input.imageRecipeArn != null && { imageRecipeArn: input.imageRecipeArn })), (input.imageTestsConfiguration != null && {
|
|
192
167
|
imageTestsConfiguration: serializeAws_restJson1ImageTestsConfiguration(input.imageTestsConfiguration, context),
|
|
193
|
-
})), (input.infrastructureConfigurationArn
|
|
194
|
-
input.infrastructureConfigurationArn !== null && {
|
|
168
|
+
})), (input.infrastructureConfigurationArn != null && {
|
|
195
169
|
infrastructureConfigurationArn: input.infrastructureConfigurationArn,
|
|
196
|
-
})), (input.name
|
|
197
|
-
input.schedule !== null && { schedule: serializeAws_restJson1Schedule(input.schedule, context) })), (input.status !== undefined && input.status !== null && { status: input.status })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
170
|
+
})), (input.name != null && { name: input.name })), (input.schedule != null && { schedule: serializeAws_restJson1Schedule(input.schedule, context) })), (input.status != null && { status: input.status })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
198
171
|
return [2, new __HttpRequest({
|
|
199
172
|
protocol: protocol,
|
|
200
173
|
hostname: hostname,
|
|
@@ -219,18 +192,13 @@ export var serializeAws_restJson1CreateImageRecipeCommand = function (input, con
|
|
|
219
192
|
"content-type": "application/json",
|
|
220
193
|
};
|
|
221
194
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateImageRecipe";
|
|
222
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalInstanceConfiguration
|
|
223
|
-
input.additionalInstanceConfiguration !== null && {
|
|
195
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalInstanceConfiguration != null && {
|
|
224
196
|
additionalInstanceConfiguration: serializeAws_restJson1AdditionalInstanceConfiguration(input.additionalInstanceConfiguration, context),
|
|
225
|
-
})), (input.blockDeviceMappings
|
|
226
|
-
input.blockDeviceMappings !== null && {
|
|
197
|
+
})), (input.blockDeviceMappings != null && {
|
|
227
198
|
blockDeviceMappings: serializeAws_restJson1InstanceBlockDeviceMappings(input.blockDeviceMappings, context),
|
|
228
|
-
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.components
|
|
229
|
-
input.components !== null && {
|
|
199
|
+
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.components != null && {
|
|
230
200
|
components: serializeAws_restJson1ComponentConfigurationList(input.components, context),
|
|
231
|
-
})), (input.description
|
|
232
|
-
input.semanticVersion !== null && { semanticVersion: input.semanticVersion })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.workingDirectory !== undefined &&
|
|
233
|
-
input.workingDirectory !== null && { workingDirectory: input.workingDirectory })));
|
|
201
|
+
})), (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.parentImage != null && { parentImage: input.parentImage })), (input.semanticVersion != null && { semanticVersion: input.semanticVersion })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.workingDirectory != null && { workingDirectory: input.workingDirectory })));
|
|
234
202
|
return [2, new __HttpRequest({
|
|
235
203
|
protocol: protocol,
|
|
236
204
|
hostname: hostname,
|
|
@@ -255,22 +223,15 @@ export var serializeAws_restJson1CreateInfrastructureConfigurationCommand = func
|
|
|
255
223
|
"content-type": "application/json",
|
|
256
224
|
};
|
|
257
225
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateInfrastructureConfiguration";
|
|
258
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description
|
|
259
|
-
input.instanceMetadataOptions !== null && {
|
|
226
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description != null && { description: input.description })), (input.instanceMetadataOptions != null && {
|
|
260
227
|
instanceMetadataOptions: serializeAws_restJson1InstanceMetadataOptions(input.instanceMetadataOptions, context),
|
|
261
|
-
})), (input.instanceProfileName
|
|
262
|
-
input.instanceProfileName !== null && { instanceProfileName: input.instanceProfileName })), (input.instanceTypes !== undefined &&
|
|
263
|
-
input.instanceTypes !== null && {
|
|
228
|
+
})), (input.instanceProfileName != null && { instanceProfileName: input.instanceProfileName })), (input.instanceTypes != null && {
|
|
264
229
|
instanceTypes: serializeAws_restJson1InstanceTypeList(input.instanceTypes, context),
|
|
265
|
-
})), (input.keyPair
|
|
266
|
-
input.logging !== null && { logging: serializeAws_restJson1Logging(input.logging, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.resourceTags !== undefined &&
|
|
267
|
-
input.resourceTags !== null && {
|
|
230
|
+
})), (input.keyPair != null && { keyPair: input.keyPair })), (input.logging != null && { logging: serializeAws_restJson1Logging(input.logging, context) })), (input.name != null && { name: input.name })), (input.resourceTags != null && {
|
|
268
231
|
resourceTags: serializeAws_restJson1ResourceTagMap(input.resourceTags, context),
|
|
269
|
-
})), (input.securityGroupIds
|
|
270
|
-
input.securityGroupIds !== null && {
|
|
232
|
+
})), (input.securityGroupIds != null && {
|
|
271
233
|
securityGroupIds: serializeAws_restJson1SecurityGroupIds(input.securityGroupIds, context),
|
|
272
|
-
})), (input.snsTopicArn
|
|
273
|
-
input.terminateInstanceOnFailure !== null && { terminateInstanceOnFailure: input.terminateInstanceOnFailure })));
|
|
234
|
+
})), (input.snsTopicArn != null && { snsTopicArn: input.snsTopicArn })), (input.subnetId != null && { subnetId: input.subnetId })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.terminateInstanceOnFailure != null && { terminateInstanceOnFailure: input.terminateInstanceOnFailure })));
|
|
274
235
|
return [2, new __HttpRequest({
|
|
275
236
|
protocol: protocol,
|
|
276
237
|
hostname: hostname,
|
|
@@ -717,9 +678,7 @@ export var serializeAws_restJson1ImportComponentCommand = function (input, conte
|
|
|
717
678
|
"content-type": "application/json",
|
|
718
679
|
};
|
|
719
680
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ImportComponent";
|
|
720
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.changeDescription !==
|
|
721
|
-
input.changeDescription !== null && { changeDescription: input.changeDescription })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.data !== undefined && input.data !== null && { data: input.data })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.format !== undefined && input.format !== null && { format: input.format })), (input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.platform !== undefined && input.platform !== null && { platform: input.platform })), (input.semanticVersion !== undefined &&
|
|
722
|
-
input.semanticVersion !== null && { semanticVersion: input.semanticVersion })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.type !== undefined && input.type !== null && { type: input.type })), (input.uri !== undefined && input.uri !== null && { uri: input.uri })));
|
|
681
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.changeDescription != null && { changeDescription: input.changeDescription })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.data != null && { data: input.data })), (input.description != null && { description: input.description })), (input.format != null && { format: input.format })), (input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId })), (input.name != null && { name: input.name })), (input.platform != null && { platform: input.platform })), (input.semanticVersion != null && { semanticVersion: input.semanticVersion })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.type != null && { type: input.type })), (input.uri != null && { uri: input.uri })));
|
|
723
682
|
return [2, new __HttpRequest({
|
|
724
683
|
protocol: protocol,
|
|
725
684
|
hostname: hostname,
|
|
@@ -744,9 +703,7 @@ export var serializeAws_restJson1ImportVmImageCommand = function (input, context
|
|
|
744
703
|
"content-type": "application/json",
|
|
745
704
|
};
|
|
746
705
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ImportVmImage";
|
|
747
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description
|
|
748
|
-
input.semanticVersion !== null && { semanticVersion: input.semanticVersion })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.vmImportTaskId !== undefined &&
|
|
749
|
-
input.vmImportTaskId !== null && { vmImportTaskId: input.vmImportTaskId })));
|
|
706
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.osVersion != null && { osVersion: input.osVersion })), (input.platform != null && { platform: input.platform })), (input.semanticVersion != null && { semanticVersion: input.semanticVersion })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.vmImportTaskId != null && { vmImportTaskId: input.vmImportTaskId })));
|
|
750
707
|
return [2, new __HttpRequest({
|
|
751
708
|
protocol: protocol,
|
|
752
709
|
hostname: hostname,
|
|
@@ -770,8 +727,7 @@ export var serializeAws_restJson1ListComponentBuildVersionsCommand = function (i
|
|
|
770
727
|
"content-type": "application/json",
|
|
771
728
|
};
|
|
772
729
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListComponentBuildVersions";
|
|
773
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.componentVersionArn
|
|
774
|
-
input.componentVersionArn !== null && { componentVersionArn: input.componentVersionArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
730
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.componentVersionArn != null && { componentVersionArn: input.componentVersionArn })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
775
731
|
return [2, new __HttpRequest({
|
|
776
732
|
protocol: protocol,
|
|
777
733
|
hostname: hostname,
|
|
@@ -795,8 +751,7 @@ export var serializeAws_restJson1ListComponentsCommand = function (input, contex
|
|
|
795
751
|
"content-type": "application/json",
|
|
796
752
|
};
|
|
797
753
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListComponents";
|
|
798
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.byName
|
|
799
|
-
input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.owner !== undefined && input.owner !== null && { owner: input.owner })));
|
|
754
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.byName != null && { byName: input.byName })), (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.owner != null && { owner: input.owner })));
|
|
800
755
|
return [2, new __HttpRequest({
|
|
801
756
|
protocol: protocol,
|
|
802
757
|
hostname: hostname,
|
|
@@ -820,8 +775,7 @@ export var serializeAws_restJson1ListContainerRecipesCommand = function (input,
|
|
|
820
775
|
"content-type": "application/json",
|
|
821
776
|
};
|
|
822
777
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListContainerRecipes";
|
|
823
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters
|
|
824
|
-
input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.owner !== undefined && input.owner !== null && { owner: input.owner })));
|
|
778
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.owner != null && { owner: input.owner })));
|
|
825
779
|
return [2, new __HttpRequest({
|
|
826
780
|
protocol: protocol,
|
|
827
781
|
hostname: hostname,
|
|
@@ -845,8 +799,7 @@ export var serializeAws_restJson1ListDistributionConfigurationsCommand = functio
|
|
|
845
799
|
"content-type": "application/json",
|
|
846
800
|
};
|
|
847
801
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListDistributionConfigurations";
|
|
848
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters
|
|
849
|
-
input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
802
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
850
803
|
return [2, new __HttpRequest({
|
|
851
804
|
protocol: protocol,
|
|
852
805
|
hostname: hostname,
|
|
@@ -870,9 +823,7 @@ export var serializeAws_restJson1ListImageBuildVersionsCommand = function (input
|
|
|
870
823
|
"content-type": "application/json",
|
|
871
824
|
};
|
|
872
825
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImageBuildVersions";
|
|
873
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters
|
|
874
|
-
input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.imageVersionArn !== undefined &&
|
|
875
|
-
input.imageVersionArn !== null && { imageVersionArn: input.imageVersionArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
826
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.imageVersionArn != null && { imageVersionArn: input.imageVersionArn })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
876
827
|
return [2, new __HttpRequest({
|
|
877
828
|
protocol: protocol,
|
|
878
829
|
hostname: hostname,
|
|
@@ -896,8 +847,7 @@ export var serializeAws_restJson1ListImagePackagesCommand = function (input, con
|
|
|
896
847
|
"content-type": "application/json",
|
|
897
848
|
};
|
|
898
849
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImagePackages";
|
|
899
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.imageBuildVersionArn
|
|
900
|
-
input.imageBuildVersionArn !== null && { imageBuildVersionArn: input.imageBuildVersionArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
850
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.imageBuildVersionArn != null && { imageBuildVersionArn: input.imageBuildVersionArn })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
901
851
|
return [2, new __HttpRequest({
|
|
902
852
|
protocol: protocol,
|
|
903
853
|
hostname: hostname,
|
|
@@ -921,9 +871,7 @@ export var serializeAws_restJson1ListImagePipelineImagesCommand = function (inpu
|
|
|
921
871
|
"content-type": "application/json",
|
|
922
872
|
};
|
|
923
873
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImagePipelineImages";
|
|
924
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters
|
|
925
|
-
input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.imagePipelineArn !== undefined &&
|
|
926
|
-
input.imagePipelineArn !== null && { imagePipelineArn: input.imagePipelineArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
874
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.imagePipelineArn != null && { imagePipelineArn: input.imagePipelineArn })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
927
875
|
return [2, new __HttpRequest({
|
|
928
876
|
protocol: protocol,
|
|
929
877
|
hostname: hostname,
|
|
@@ -947,8 +895,7 @@ export var serializeAws_restJson1ListImagePipelinesCommand = function (input, co
|
|
|
947
895
|
"content-type": "application/json",
|
|
948
896
|
};
|
|
949
897
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImagePipelines";
|
|
950
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters
|
|
951
|
-
input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
898
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
952
899
|
return [2, new __HttpRequest({
|
|
953
900
|
protocol: protocol,
|
|
954
901
|
hostname: hostname,
|
|
@@ -972,8 +919,7 @@ export var serializeAws_restJson1ListImageRecipesCommand = function (input, cont
|
|
|
972
919
|
"content-type": "application/json",
|
|
973
920
|
};
|
|
974
921
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImageRecipes";
|
|
975
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters
|
|
976
|
-
input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.owner !== undefined && input.owner !== null && { owner: input.owner })));
|
|
922
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.owner != null && { owner: input.owner })));
|
|
977
923
|
return [2, new __HttpRequest({
|
|
978
924
|
protocol: protocol,
|
|
979
925
|
hostname: hostname,
|
|
@@ -997,9 +943,7 @@ export var serializeAws_restJson1ListImagesCommand = function (input, context) {
|
|
|
997
943
|
"content-type": "application/json",
|
|
998
944
|
};
|
|
999
945
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImages";
|
|
1000
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.byName
|
|
1001
|
-
input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.includeDeprecated !== undefined &&
|
|
1002
|
-
input.includeDeprecated !== null && { includeDeprecated: input.includeDeprecated })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.owner !== undefined && input.owner !== null && { owner: input.owner })));
|
|
946
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.byName != null && { byName: input.byName })), (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.includeDeprecated != null && { includeDeprecated: input.includeDeprecated })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.owner != null && { owner: input.owner })));
|
|
1003
947
|
return [2, new __HttpRequest({
|
|
1004
948
|
protocol: protocol,
|
|
1005
949
|
hostname: hostname,
|
|
@@ -1023,8 +967,7 @@ export var serializeAws_restJson1ListInfrastructureConfigurationsCommand = funct
|
|
|
1023
967
|
"content-type": "application/json",
|
|
1024
968
|
};
|
|
1025
969
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListInfrastructureConfigurations";
|
|
1026
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters
|
|
1027
|
-
input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
970
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
1028
971
|
return [2, new __HttpRequest({
|
|
1029
972
|
protocol: protocol,
|
|
1030
973
|
hostname: hostname,
|
|
@@ -1079,7 +1022,7 @@ export var serializeAws_restJson1PutComponentPolicyCommand = function (input, co
|
|
|
1079
1022
|
"content-type": "application/json",
|
|
1080
1023
|
};
|
|
1081
1024
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/PutComponentPolicy";
|
|
1082
|
-
body = JSON.stringify(__assign(__assign({}, (input.componentArn
|
|
1025
|
+
body = JSON.stringify(__assign(__assign({}, (input.componentArn != null && { componentArn: input.componentArn })), (input.policy != null && { policy: input.policy })));
|
|
1083
1026
|
return [2, new __HttpRequest({
|
|
1084
1027
|
protocol: protocol,
|
|
1085
1028
|
hostname: hostname,
|
|
@@ -1103,8 +1046,7 @@ export var serializeAws_restJson1PutContainerRecipePolicyCommand = function (inp
|
|
|
1103
1046
|
"content-type": "application/json",
|
|
1104
1047
|
};
|
|
1105
1048
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/PutContainerRecipePolicy";
|
|
1106
|
-
body = JSON.stringify(__assign(__assign({}, (input.containerRecipeArn
|
|
1107
|
-
input.containerRecipeArn !== null && { containerRecipeArn: input.containerRecipeArn })), (input.policy !== undefined && input.policy !== null && { policy: input.policy })));
|
|
1049
|
+
body = JSON.stringify(__assign(__assign({}, (input.containerRecipeArn != null && { containerRecipeArn: input.containerRecipeArn })), (input.policy != null && { policy: input.policy })));
|
|
1108
1050
|
return [2, new __HttpRequest({
|
|
1109
1051
|
protocol: protocol,
|
|
1110
1052
|
hostname: hostname,
|
|
@@ -1128,7 +1070,7 @@ export var serializeAws_restJson1PutImagePolicyCommand = function (input, contex
|
|
|
1128
1070
|
"content-type": "application/json",
|
|
1129
1071
|
};
|
|
1130
1072
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/PutImagePolicy";
|
|
1131
|
-
body = JSON.stringify(__assign(__assign({}, (input.imageArn
|
|
1073
|
+
body = JSON.stringify(__assign(__assign({}, (input.imageArn != null && { imageArn: input.imageArn })), (input.policy != null && { policy: input.policy })));
|
|
1132
1074
|
return [2, new __HttpRequest({
|
|
1133
1075
|
protocol: protocol,
|
|
1134
1076
|
hostname: hostname,
|
|
@@ -1152,8 +1094,7 @@ export var serializeAws_restJson1PutImageRecipePolicyCommand = function (input,
|
|
|
1152
1094
|
"content-type": "application/json",
|
|
1153
1095
|
};
|
|
1154
1096
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/PutImageRecipePolicy";
|
|
1155
|
-
body = JSON.stringify(__assign(__assign({}, (input.imageRecipeArn
|
|
1156
|
-
input.imageRecipeArn !== null && { imageRecipeArn: input.imageRecipeArn })), (input.policy !== undefined && input.policy !== null && { policy: input.policy })));
|
|
1097
|
+
body = JSON.stringify(__assign(__assign({}, (input.imageRecipeArn != null && { imageRecipeArn: input.imageRecipeArn })), (input.policy != null && { policy: input.policy })));
|
|
1157
1098
|
return [2, new __HttpRequest({
|
|
1158
1099
|
protocol: protocol,
|
|
1159
1100
|
hostname: hostname,
|
|
@@ -1178,8 +1119,7 @@ export var serializeAws_restJson1StartImagePipelineExecutionCommand = function (
|
|
|
1178
1119
|
"content-type": "application/json",
|
|
1179
1120
|
};
|
|
1180
1121
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/StartImagePipelineExecution";
|
|
1181
|
-
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.imagePipelineArn
|
|
1182
|
-
input.imagePipelineArn !== null && { imagePipelineArn: input.imagePipelineArn })));
|
|
1122
|
+
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.imagePipelineArn != null && { imagePipelineArn: input.imagePipelineArn })));
|
|
1183
1123
|
return [2, new __HttpRequest({
|
|
1184
1124
|
protocol: protocol,
|
|
1185
1125
|
hostname: hostname,
|
|
@@ -1213,7 +1153,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1213
1153
|
else {
|
|
1214
1154
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1215
1155
|
}
|
|
1216
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
1156
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
1217
1157
|
return [2, new __HttpRequest({
|
|
1218
1158
|
protocol: protocol,
|
|
1219
1159
|
hostname: hostname,
|
|
@@ -1271,11 +1211,9 @@ export var serializeAws_restJson1UpdateDistributionConfigurationCommand = functi
|
|
|
1271
1211
|
"content-type": "application/json",
|
|
1272
1212
|
};
|
|
1273
1213
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateDistributionConfiguration";
|
|
1274
|
-
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description
|
|
1275
|
-
input.distributionConfigurationArn !== null && {
|
|
1214
|
+
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description != null && { description: input.description })), (input.distributionConfigurationArn != null && {
|
|
1276
1215
|
distributionConfigurationArn: input.distributionConfigurationArn,
|
|
1277
|
-
})), (input.distributions
|
|
1278
|
-
input.distributions !== null && {
|
|
1216
|
+
})), (input.distributions != null && {
|
|
1279
1217
|
distributions: serializeAws_restJson1DistributionList(input.distributions, context),
|
|
1280
1218
|
})));
|
|
1281
1219
|
return [2, new __HttpRequest({
|
|
@@ -1302,23 +1240,15 @@ export var serializeAws_restJson1UpdateImagePipelineCommand = function (input, c
|
|
|
1302
1240
|
"content-type": "application/json",
|
|
1303
1241
|
};
|
|
1304
1242
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateImagePipeline";
|
|
1305
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.containerRecipeArn
|
|
1306
|
-
input.containerRecipeArn !== null && { containerRecipeArn: input.containerRecipeArn })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.distributionConfigurationArn !== undefined &&
|
|
1307
|
-
input.distributionConfigurationArn !== null && {
|
|
1243
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.containerRecipeArn != null && { containerRecipeArn: input.containerRecipeArn })), (input.description != null && { description: input.description })), (input.distributionConfigurationArn != null && {
|
|
1308
1244
|
distributionConfigurationArn: input.distributionConfigurationArn,
|
|
1309
|
-
})), (input.enhancedImageMetadataEnabled
|
|
1310
|
-
input.enhancedImageMetadataEnabled !== null && {
|
|
1245
|
+
})), (input.enhancedImageMetadataEnabled != null && {
|
|
1311
1246
|
enhancedImageMetadataEnabled: input.enhancedImageMetadataEnabled,
|
|
1312
|
-
})), (input.imagePipelineArn
|
|
1313
|
-
input.imagePipelineArn !== null && { imagePipelineArn: input.imagePipelineArn })), (input.imageRecipeArn !== undefined &&
|
|
1314
|
-
input.imageRecipeArn !== null && { imageRecipeArn: input.imageRecipeArn })), (input.imageTestsConfiguration !== undefined &&
|
|
1315
|
-
input.imageTestsConfiguration !== null && {
|
|
1247
|
+
})), (input.imagePipelineArn != null && { imagePipelineArn: input.imagePipelineArn })), (input.imageRecipeArn != null && { imageRecipeArn: input.imageRecipeArn })), (input.imageTestsConfiguration != null && {
|
|
1316
1248
|
imageTestsConfiguration: serializeAws_restJson1ImageTestsConfiguration(input.imageTestsConfiguration, context),
|
|
1317
|
-
})), (input.infrastructureConfigurationArn
|
|
1318
|
-
input.infrastructureConfigurationArn !== null && {
|
|
1249
|
+
})), (input.infrastructureConfigurationArn != null && {
|
|
1319
1250
|
infrastructureConfigurationArn: input.infrastructureConfigurationArn,
|
|
1320
|
-
})), (input.schedule
|
|
1321
|
-
input.schedule !== null && { schedule: serializeAws_restJson1Schedule(input.schedule, context) })), (input.status !== undefined && input.status !== null && { status: input.status })));
|
|
1251
|
+
})), (input.schedule != null && { schedule: serializeAws_restJson1Schedule(input.schedule, context) })), (input.status != null && { status: input.status })));
|
|
1322
1252
|
return [2, new __HttpRequest({
|
|
1323
1253
|
protocol: protocol,
|
|
1324
1254
|
hostname: hostname,
|
|
@@ -1343,25 +1273,17 @@ export var serializeAws_restJson1UpdateInfrastructureConfigurationCommand = func
|
|
|
1343
1273
|
"content-type": "application/json",
|
|
1344
1274
|
};
|
|
1345
1275
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateInfrastructureConfiguration";
|
|
1346
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description
|
|
1347
|
-
input.infrastructureConfigurationArn !== null && {
|
|
1276
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description != null && { description: input.description })), (input.infrastructureConfigurationArn != null && {
|
|
1348
1277
|
infrastructureConfigurationArn: input.infrastructureConfigurationArn,
|
|
1349
|
-
})), (input.instanceMetadataOptions
|
|
1350
|
-
input.instanceMetadataOptions !== null && {
|
|
1278
|
+
})), (input.instanceMetadataOptions != null && {
|
|
1351
1279
|
instanceMetadataOptions: serializeAws_restJson1InstanceMetadataOptions(input.instanceMetadataOptions, context),
|
|
1352
|
-
})), (input.instanceProfileName
|
|
1353
|
-
input.instanceProfileName !== null && { instanceProfileName: input.instanceProfileName })), (input.instanceTypes !== undefined &&
|
|
1354
|
-
input.instanceTypes !== null && {
|
|
1280
|
+
})), (input.instanceProfileName != null && { instanceProfileName: input.instanceProfileName })), (input.instanceTypes != null && {
|
|
1355
1281
|
instanceTypes: serializeAws_restJson1InstanceTypeList(input.instanceTypes, context),
|
|
1356
|
-
})), (input.keyPair
|
|
1357
|
-
input.logging !== null && { logging: serializeAws_restJson1Logging(input.logging, context) })), (input.resourceTags !== undefined &&
|
|
1358
|
-
input.resourceTags !== null && {
|
|
1282
|
+
})), (input.keyPair != null && { keyPair: input.keyPair })), (input.logging != null && { logging: serializeAws_restJson1Logging(input.logging, context) })), (input.resourceTags != null && {
|
|
1359
1283
|
resourceTags: serializeAws_restJson1ResourceTagMap(input.resourceTags, context),
|
|
1360
|
-
})), (input.securityGroupIds
|
|
1361
|
-
input.securityGroupIds !== null && {
|
|
1284
|
+
})), (input.securityGroupIds != null && {
|
|
1362
1285
|
securityGroupIds: serializeAws_restJson1SecurityGroupIds(input.securityGroupIds, context),
|
|
1363
|
-
})), (input.snsTopicArn
|
|
1364
|
-
input.terminateInstanceOnFailure !== null && { terminateInstanceOnFailure: input.terminateInstanceOnFailure })));
|
|
1286
|
+
})), (input.snsTopicArn != null && { snsTopicArn: input.snsTopicArn })), (input.subnetId != null && { subnetId: input.subnetId })), (input.terminateInstanceOnFailure != null && { terminateInstanceOnFailure: input.terminateInstanceOnFailure })));
|
|
1365
1287
|
return [2, new __HttpRequest({
|
|
1366
1288
|
protocol: protocol,
|
|
1367
1289
|
hostname: hostname,
|
|
@@ -5968,25 +5890,19 @@ var serializeAws_restJson1AccountList = function (input, context) {
|
|
|
5968
5890
|
});
|
|
5969
5891
|
};
|
|
5970
5892
|
var serializeAws_restJson1AdditionalInstanceConfiguration = function (input, context) {
|
|
5971
|
-
return __assign(__assign({}, (input.systemsManagerAgent
|
|
5972
|
-
input.systemsManagerAgent !== null && {
|
|
5893
|
+
return __assign(__assign({}, (input.systemsManagerAgent != null && {
|
|
5973
5894
|
systemsManagerAgent: serializeAws_restJson1SystemsManagerAgent(input.systemsManagerAgent, context),
|
|
5974
|
-
})), (input.userDataOverride
|
|
5975
|
-
input.userDataOverride !== null && { userDataOverride: input.userDataOverride }));
|
|
5895
|
+
})), (input.userDataOverride != null && { userDataOverride: input.userDataOverride }));
|
|
5976
5896
|
};
|
|
5977
5897
|
var serializeAws_restJson1AmiDistributionConfiguration = function (input, context) {
|
|
5978
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.amiTags
|
|
5979
|
-
input.amiTags !== null && { amiTags: serializeAws_restJson1TagMap(input.amiTags, context) })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId })), (input.launchPermission !== undefined &&
|
|
5980
|
-
input.launchPermission !== null && {
|
|
5898
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.amiTags != null && { amiTags: serializeAws_restJson1TagMap(input.amiTags, context) })), (input.description != null && { description: input.description })), (input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId })), (input.launchPermission != null && {
|
|
5981
5899
|
launchPermission: serializeAws_restJson1LaunchPermissionConfiguration(input.launchPermission, context),
|
|
5982
|
-
})), (input.name
|
|
5983
|
-
input.targetAccountIds !== null && {
|
|
5900
|
+
})), (input.name != null && { name: input.name })), (input.targetAccountIds != null && {
|
|
5984
5901
|
targetAccountIds: serializeAws_restJson1AccountList(input.targetAccountIds, context),
|
|
5985
5902
|
}));
|
|
5986
5903
|
};
|
|
5987
5904
|
var serializeAws_restJson1ComponentConfiguration = function (input, context) {
|
|
5988
|
-
return __assign(__assign({}, (input.componentArn
|
|
5989
|
-
input.parameters !== null && {
|
|
5905
|
+
return __assign(__assign({}, (input.componentArn != null && { componentArn: input.componentArn })), (input.parameters != null && {
|
|
5990
5906
|
parameters: serializeAws_restJson1ComponentParameterList(input.parameters, context),
|
|
5991
5907
|
}));
|
|
5992
5908
|
};
|
|
@@ -6001,8 +5917,7 @@ var serializeAws_restJson1ComponentConfigurationList = function (input, context)
|
|
|
6001
5917
|
});
|
|
6002
5918
|
};
|
|
6003
5919
|
var serializeAws_restJson1ComponentParameter = function (input, context) {
|
|
6004
|
-
return __assign(__assign({}, (input.name
|
|
6005
|
-
input.value !== null && { value: serializeAws_restJson1ComponentParameterValueList(input.value, context) }));
|
|
5920
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: serializeAws_restJson1ComponentParameterValueList(input.value, context) }));
|
|
6006
5921
|
};
|
|
6007
5922
|
var serializeAws_restJson1ComponentParameterList = function (input, context) {
|
|
6008
5923
|
return input
|
|
@@ -6025,32 +5940,24 @@ var serializeAws_restJson1ComponentParameterValueList = function (input, context
|
|
|
6025
5940
|
});
|
|
6026
5941
|
};
|
|
6027
5942
|
var serializeAws_restJson1ContainerDistributionConfiguration = function (input, context) {
|
|
6028
|
-
return __assign(__assign(__assign({}, (input.containerTags
|
|
6029
|
-
input.containerTags !== null && {
|
|
5943
|
+
return __assign(__assign(__assign({}, (input.containerTags != null && {
|
|
6030
5944
|
containerTags: serializeAws_restJson1StringList(input.containerTags, context),
|
|
6031
|
-
})), (input.description
|
|
6032
|
-
input.targetRepository !== null && {
|
|
5945
|
+
})), (input.description != null && { description: input.description })), (input.targetRepository != null && {
|
|
6033
5946
|
targetRepository: serializeAws_restJson1TargetContainerRepository(input.targetRepository, context),
|
|
6034
5947
|
}));
|
|
6035
5948
|
};
|
|
6036
5949
|
var serializeAws_restJson1Distribution = function (input, context) {
|
|
6037
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.amiDistributionConfiguration
|
|
6038
|
-
input.amiDistributionConfiguration !== null && {
|
|
5950
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.amiDistributionConfiguration != null && {
|
|
6039
5951
|
amiDistributionConfiguration: serializeAws_restJson1AmiDistributionConfiguration(input.amiDistributionConfiguration, context),
|
|
6040
|
-
})), (input.containerDistributionConfiguration
|
|
6041
|
-
input.containerDistributionConfiguration !== null && {
|
|
5952
|
+
})), (input.containerDistributionConfiguration != null && {
|
|
6042
5953
|
containerDistributionConfiguration: serializeAws_restJson1ContainerDistributionConfiguration(input.containerDistributionConfiguration, context),
|
|
6043
|
-
})), (input.fastLaunchConfigurations
|
|
6044
|
-
input.fastLaunchConfigurations !== null && {
|
|
5954
|
+
})), (input.fastLaunchConfigurations != null && {
|
|
6045
5955
|
fastLaunchConfigurations: serializeAws_restJson1FastLaunchConfigurationList(input.fastLaunchConfigurations, context),
|
|
6046
|
-
})), (input.launchTemplateConfigurations
|
|
6047
|
-
input.launchTemplateConfigurations !== null && {
|
|
5956
|
+
})), (input.launchTemplateConfigurations != null && {
|
|
6048
5957
|
launchTemplateConfigurations: serializeAws_restJson1LaunchTemplateConfigurationList(input.launchTemplateConfigurations, context),
|
|
6049
|
-
})), (input.licenseConfigurationArns
|
|
6050
|
-
input.licenseConfigurationArns !== null && {
|
|
5958
|
+
})), (input.licenseConfigurationArns != null && {
|
|
6051
5959
|
licenseConfigurationArns: serializeAws_restJson1LicenseConfigurationArnList(input.licenseConfigurationArns, context),
|
|
6052
|
-
})), (input.region
|
|
6053
|
-
input.s3ExportConfiguration !== null && {
|
|
5960
|
+
})), (input.region != null && { region: input.region })), (input.s3ExportConfiguration != null && {
|
|
6054
5961
|
s3ExportConfiguration: serializeAws_restJson1S3ExportConfiguration(input.s3ExportConfiguration, context),
|
|
6055
5962
|
}));
|
|
6056
5963
|
};
|
|
@@ -6065,16 +5972,12 @@ var serializeAws_restJson1DistributionList = function (input, context) {
|
|
|
6065
5972
|
});
|
|
6066
5973
|
};
|
|
6067
5974
|
var serializeAws_restJson1EbsInstanceBlockDeviceSpecification = function (input, context) {
|
|
6068
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.deleteOnTermination
|
|
6069
|
-
input.deleteOnTermination !== null && { deleteOnTermination: input.deleteOnTermination })), (input.encrypted !== undefined && input.encrypted !== null && { encrypted: input.encrypted })), (input.iops !== undefined && input.iops !== null && { iops: input.iops })), (input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId })), (input.snapshotId !== undefined && input.snapshotId !== null && { snapshotId: input.snapshotId })), (input.throughput !== undefined && input.throughput !== null && { throughput: input.throughput })), (input.volumeSize !== undefined && input.volumeSize !== null && { volumeSize: input.volumeSize })), (input.volumeType !== undefined && input.volumeType !== null && { volumeType: input.volumeType }));
|
|
5975
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.deleteOnTermination != null && { deleteOnTermination: input.deleteOnTermination })), (input.encrypted != null && { encrypted: input.encrypted })), (input.iops != null && { iops: input.iops })), (input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId })), (input.snapshotId != null && { snapshotId: input.snapshotId })), (input.throughput != null && { throughput: input.throughput })), (input.volumeSize != null && { volumeSize: input.volumeSize })), (input.volumeType != null && { volumeType: input.volumeType }));
|
|
6070
5976
|
};
|
|
6071
5977
|
var serializeAws_restJson1FastLaunchConfiguration = function (input, context) {
|
|
6072
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.accountId
|
|
6073
|
-
input.launchTemplate !== null && {
|
|
5978
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.accountId != null && { accountId: input.accountId })), (input.enabled != null && { enabled: input.enabled })), (input.launchTemplate != null && {
|
|
6074
5979
|
launchTemplate: serializeAws_restJson1FastLaunchLaunchTemplateSpecification(input.launchTemplate, context),
|
|
6075
|
-
})), (input.maxParallelLaunches
|
|
6076
|
-
input.maxParallelLaunches !== null && { maxParallelLaunches: input.maxParallelLaunches })), (input.snapshotConfiguration !== undefined &&
|
|
6077
|
-
input.snapshotConfiguration !== null && {
|
|
5980
|
+
})), (input.maxParallelLaunches != null && { maxParallelLaunches: input.maxParallelLaunches })), (input.snapshotConfiguration != null && {
|
|
6078
5981
|
snapshotConfiguration: serializeAws_restJson1FastLaunchSnapshotConfiguration(input.snapshotConfiguration, context),
|
|
6079
5982
|
}));
|
|
6080
5983
|
};
|
|
@@ -6089,18 +5992,13 @@ var serializeAws_restJson1FastLaunchConfigurationList = function (input, context
|
|
|
6089
5992
|
});
|
|
6090
5993
|
};
|
|
6091
5994
|
var serializeAws_restJson1FastLaunchLaunchTemplateSpecification = function (input, context) {
|
|
6092
|
-
return __assign(__assign(__assign({}, (input.launchTemplateId
|
|
6093
|
-
input.launchTemplateId !== null && { launchTemplateId: input.launchTemplateId })), (input.launchTemplateName !== undefined &&
|
|
6094
|
-
input.launchTemplateName !== null && { launchTemplateName: input.launchTemplateName })), (input.launchTemplateVersion !== undefined &&
|
|
6095
|
-
input.launchTemplateVersion !== null && { launchTemplateVersion: input.launchTemplateVersion }));
|
|
5995
|
+
return __assign(__assign(__assign({}, (input.launchTemplateId != null && { launchTemplateId: input.launchTemplateId })), (input.launchTemplateName != null && { launchTemplateName: input.launchTemplateName })), (input.launchTemplateVersion != null && { launchTemplateVersion: input.launchTemplateVersion }));
|
|
6096
5996
|
};
|
|
6097
5997
|
var serializeAws_restJson1FastLaunchSnapshotConfiguration = function (input, context) {
|
|
6098
|
-
return __assign({}, (input.targetResourceCount
|
|
6099
|
-
input.targetResourceCount !== null && { targetResourceCount: input.targetResourceCount }));
|
|
5998
|
+
return __assign({}, (input.targetResourceCount != null && { targetResourceCount: input.targetResourceCount }));
|
|
6100
5999
|
};
|
|
6101
6000
|
var serializeAws_restJson1Filter = function (input, context) {
|
|
6102
|
-
return __assign(__assign({}, (input.name
|
|
6103
|
-
input.values !== null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
|
|
6001
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.values != null && { values: serializeAws_restJson1FilterValues(input.values, context) }));
|
|
6104
6002
|
};
|
|
6105
6003
|
var serializeAws_restJson1FilterList = function (input, context) {
|
|
6106
6004
|
return input
|
|
@@ -6123,13 +6021,10 @@ var serializeAws_restJson1FilterValues = function (input, context) {
|
|
|
6123
6021
|
});
|
|
6124
6022
|
};
|
|
6125
6023
|
var serializeAws_restJson1ImageTestsConfiguration = function (input, context) {
|
|
6126
|
-
return __assign(__assign({}, (input.imageTestsEnabled
|
|
6127
|
-
input.imageTestsEnabled !== null && { imageTestsEnabled: input.imageTestsEnabled })), (input.timeoutMinutes !== undefined &&
|
|
6128
|
-
input.timeoutMinutes !== null && { timeoutMinutes: input.timeoutMinutes }));
|
|
6024
|
+
return __assign(__assign({}, (input.imageTestsEnabled != null && { imageTestsEnabled: input.imageTestsEnabled })), (input.timeoutMinutes != null && { timeoutMinutes: input.timeoutMinutes }));
|
|
6129
6025
|
};
|
|
6130
6026
|
var serializeAws_restJson1InstanceBlockDeviceMapping = function (input, context) {
|
|
6131
|
-
return __assign(__assign(__assign(__assign({}, (input.deviceName
|
|
6132
|
-
input.ebs !== null && { ebs: serializeAws_restJson1EbsInstanceBlockDeviceSpecification(input.ebs, context) })), (input.noDevice !== undefined && input.noDevice !== null && { noDevice: input.noDevice })), (input.virtualName !== undefined && input.virtualName !== null && { virtualName: input.virtualName }));
|
|
6027
|
+
return __assign(__assign(__assign(__assign({}, (input.deviceName != null && { deviceName: input.deviceName })), (input.ebs != null && { ebs: serializeAws_restJson1EbsInstanceBlockDeviceSpecification(input.ebs, context) })), (input.noDevice != null && { noDevice: input.noDevice })), (input.virtualName != null && { virtualName: input.virtualName }));
|
|
6133
6028
|
};
|
|
6134
6029
|
var serializeAws_restJson1InstanceBlockDeviceMappings = function (input, context) {
|
|
6135
6030
|
return input
|
|
@@ -6142,14 +6037,12 @@ var serializeAws_restJson1InstanceBlockDeviceMappings = function (input, context
|
|
|
6142
6037
|
});
|
|
6143
6038
|
};
|
|
6144
6039
|
var serializeAws_restJson1InstanceConfiguration = function (input, context) {
|
|
6145
|
-
return __assign(__assign({}, (input.blockDeviceMappings
|
|
6146
|
-
input.blockDeviceMappings !== null && {
|
|
6040
|
+
return __assign(__assign({}, (input.blockDeviceMappings != null && {
|
|
6147
6041
|
blockDeviceMappings: serializeAws_restJson1InstanceBlockDeviceMappings(input.blockDeviceMappings, context),
|
|
6148
|
-
})), (input.image
|
|
6042
|
+
})), (input.image != null && { image: input.image }));
|
|
6149
6043
|
};
|
|
6150
6044
|
var serializeAws_restJson1InstanceMetadataOptions = function (input, context) {
|
|
6151
|
-
return __assign(__assign({}, (input.httpPutResponseHopLimit
|
|
6152
|
-
input.httpPutResponseHopLimit !== null && { httpPutResponseHopLimit: input.httpPutResponseHopLimit })), (input.httpTokens !== undefined && input.httpTokens !== null && { httpTokens: input.httpTokens }));
|
|
6045
|
+
return __assign(__assign({}, (input.httpPutResponseHopLimit != null && { httpPutResponseHopLimit: input.httpPutResponseHopLimit })), (input.httpTokens != null && { httpTokens: input.httpTokens }));
|
|
6153
6046
|
};
|
|
6154
6047
|
var serializeAws_restJson1InstanceTypeList = function (input, context) {
|
|
6155
6048
|
return input
|
|
@@ -6162,20 +6055,14 @@ var serializeAws_restJson1InstanceTypeList = function (input, context) {
|
|
|
6162
6055
|
});
|
|
6163
6056
|
};
|
|
6164
6057
|
var serializeAws_restJson1LaunchPermissionConfiguration = function (input, context) {
|
|
6165
|
-
return __assign(__assign(__assign(__assign({}, (input.organizationArns
|
|
6166
|
-
input.organizationArns !== null && {
|
|
6058
|
+
return __assign(__assign(__assign(__assign({}, (input.organizationArns != null && {
|
|
6167
6059
|
organizationArns: serializeAws_restJson1OrganizationArnList(input.organizationArns, context),
|
|
6168
|
-
})), (input.organizationalUnitArns
|
|
6169
|
-
input.organizationalUnitArns !== null && {
|
|
6060
|
+
})), (input.organizationalUnitArns != null && {
|
|
6170
6061
|
organizationalUnitArns: serializeAws_restJson1OrganizationalUnitArnList(input.organizationalUnitArns, context),
|
|
6171
|
-
})), (input.userGroups
|
|
6172
|
-
input.userGroups !== null && { userGroups: serializeAws_restJson1StringList(input.userGroups, context) })), (input.userIds !== undefined &&
|
|
6173
|
-
input.userIds !== null && { userIds: serializeAws_restJson1AccountList(input.userIds, context) }));
|
|
6062
|
+
})), (input.userGroups != null && { userGroups: serializeAws_restJson1StringList(input.userGroups, context) })), (input.userIds != null && { userIds: serializeAws_restJson1AccountList(input.userIds, context) }));
|
|
6174
6063
|
};
|
|
6175
6064
|
var serializeAws_restJson1LaunchTemplateConfiguration = function (input, context) {
|
|
6176
|
-
return __assign(__assign(__assign({}, (input.accountId
|
|
6177
|
-
input.launchTemplateId !== null && { launchTemplateId: input.launchTemplateId })), (input.setDefaultVersion !== undefined &&
|
|
6178
|
-
input.setDefaultVersion !== null && { setDefaultVersion: input.setDefaultVersion }));
|
|
6065
|
+
return __assign(__assign(__assign({}, (input.accountId != null && { accountId: input.accountId })), (input.launchTemplateId != null && { launchTemplateId: input.launchTemplateId })), (input.setDefaultVersion != null && { setDefaultVersion: input.setDefaultVersion }));
|
|
6179
6066
|
};
|
|
6180
6067
|
var serializeAws_restJson1LaunchTemplateConfigurationList = function (input, context) {
|
|
6181
6068
|
return input
|
|
@@ -6198,8 +6085,7 @@ var serializeAws_restJson1LicenseConfigurationArnList = function (input, context
|
|
|
6198
6085
|
});
|
|
6199
6086
|
};
|
|
6200
6087
|
var serializeAws_restJson1Logging = function (input, context) {
|
|
6201
|
-
return __assign({}, (input.s3Logs
|
|
6202
|
-
input.s3Logs !== null && { s3Logs: serializeAws_restJson1S3Logs(input.s3Logs, context) }));
|
|
6088
|
+
return __assign({}, (input.s3Logs != null && { s3Logs: serializeAws_restJson1S3Logs(input.s3Logs, context) }));
|
|
6203
6089
|
};
|
|
6204
6090
|
var serializeAws_restJson1OrganizationalUnitArnList = function (input, context) {
|
|
6205
6091
|
return input
|
|
@@ -6242,18 +6128,15 @@ var serializeAws_restJson1ResourceTagMap = function (input, context) {
|
|
|
6242
6128
|
}, {});
|
|
6243
6129
|
};
|
|
6244
6130
|
var serializeAws_restJson1S3ExportConfiguration = function (input, context) {
|
|
6245
|
-
return __assign(__assign(__assign(__assign({}, (input.diskImageFormat
|
|
6246
|
-
input.diskImageFormat !== null && { diskImageFormat: input.diskImageFormat })), (input.roleName !== undefined && input.roleName !== null && { roleName: input.roleName })), (input.s3Bucket !== undefined && input.s3Bucket !== null && { s3Bucket: input.s3Bucket })), (input.s3Prefix !== undefined && input.s3Prefix !== null && { s3Prefix: input.s3Prefix }));
|
|
6131
|
+
return __assign(__assign(__assign(__assign({}, (input.diskImageFormat != null && { diskImageFormat: input.diskImageFormat })), (input.roleName != null && { roleName: input.roleName })), (input.s3Bucket != null && { s3Bucket: input.s3Bucket })), (input.s3Prefix != null && { s3Prefix: input.s3Prefix }));
|
|
6247
6132
|
};
|
|
6248
6133
|
var serializeAws_restJson1S3Logs = function (input, context) {
|
|
6249
|
-
return __assign(__assign({}, (input.s3BucketName
|
|
6134
|
+
return __assign(__assign({}, (input.s3BucketName != null && { s3BucketName: input.s3BucketName })), (input.s3KeyPrefix != null && { s3KeyPrefix: input.s3KeyPrefix }));
|
|
6250
6135
|
};
|
|
6251
6136
|
var serializeAws_restJson1Schedule = function (input, context) {
|
|
6252
|
-
return __assign(__assign(__assign({}, (input.pipelineExecutionStartCondition
|
|
6253
|
-
input.pipelineExecutionStartCondition !== null && {
|
|
6137
|
+
return __assign(__assign(__assign({}, (input.pipelineExecutionStartCondition != null && {
|
|
6254
6138
|
pipelineExecutionStartCondition: input.pipelineExecutionStartCondition,
|
|
6255
|
-
})), (input.scheduleExpression
|
|
6256
|
-
input.scheduleExpression !== null && { scheduleExpression: input.scheduleExpression })), (input.timezone !== undefined && input.timezone !== null && { timezone: input.timezone }));
|
|
6139
|
+
})), (input.scheduleExpression != null && { scheduleExpression: input.scheduleExpression })), (input.timezone != null && { timezone: input.timezone }));
|
|
6257
6140
|
};
|
|
6258
6141
|
var serializeAws_restJson1SecurityGroupIds = function (input, context) {
|
|
6259
6142
|
return input
|
|
@@ -6276,8 +6159,7 @@ var serializeAws_restJson1StringList = function (input, context) {
|
|
|
6276
6159
|
});
|
|
6277
6160
|
};
|
|
6278
6161
|
var serializeAws_restJson1SystemsManagerAgent = function (input, context) {
|
|
6279
|
-
return __assign({}, (input.uninstallAfterBuild
|
|
6280
|
-
input.uninstallAfterBuild !== null && { uninstallAfterBuild: input.uninstallAfterBuild }));
|
|
6162
|
+
return __assign({}, (input.uninstallAfterBuild != null && { uninstallAfterBuild: input.uninstallAfterBuild }));
|
|
6281
6163
|
};
|
|
6282
6164
|
var serializeAws_restJson1TagMap = function (input, context) {
|
|
6283
6165
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -6290,8 +6172,7 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
6290
6172
|
}, {});
|
|
6291
6173
|
};
|
|
6292
6174
|
var serializeAws_restJson1TargetContainerRepository = function (input, context) {
|
|
6293
|
-
return __assign(__assign({}, (input.repositoryName
|
|
6294
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.service !== undefined && input.service !== null && { service: input.service }));
|
|
6175
|
+
return __assign(__assign({}, (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.service != null && { service: input.service }));
|
|
6295
6176
|
};
|
|
6296
6177
|
var deserializeAws_restJson1AccountList = function (output, context) {
|
|
6297
6178
|
var retVal = (output || [])
|
|
@@ -6306,7 +6187,7 @@ var deserializeAws_restJson1AccountList = function (output, context) {
|
|
|
6306
6187
|
};
|
|
6307
6188
|
var deserializeAws_restJson1AdditionalInstanceConfiguration = function (output, context) {
|
|
6308
6189
|
return {
|
|
6309
|
-
systemsManagerAgent: output.systemsManagerAgent
|
|
6190
|
+
systemsManagerAgent: output.systemsManagerAgent != null
|
|
6310
6191
|
? deserializeAws_restJson1SystemsManagerAgent(output.systemsManagerAgent, context)
|
|
6311
6192
|
: undefined,
|
|
6312
6193
|
userDataOverride: __expectString(output.userDataOverride),
|
|
@@ -6319,23 +6200,19 @@ var deserializeAws_restJson1Ami = function (output, context) {
|
|
|
6319
6200
|
image: __expectString(output.image),
|
|
6320
6201
|
name: __expectString(output.name),
|
|
6321
6202
|
region: __expectString(output.region),
|
|
6322
|
-
state: output.state
|
|
6323
|
-
? deserializeAws_restJson1ImageState(output.state, context)
|
|
6324
|
-
: undefined,
|
|
6203
|
+
state: output.state != null ? deserializeAws_restJson1ImageState(output.state, context) : undefined,
|
|
6325
6204
|
};
|
|
6326
6205
|
};
|
|
6327
6206
|
var deserializeAws_restJson1AmiDistributionConfiguration = function (output, context) {
|
|
6328
6207
|
return {
|
|
6329
|
-
amiTags: output.amiTags
|
|
6330
|
-
? deserializeAws_restJson1TagMap(output.amiTags, context)
|
|
6331
|
-
: undefined,
|
|
6208
|
+
amiTags: output.amiTags != null ? deserializeAws_restJson1TagMap(output.amiTags, context) : undefined,
|
|
6332
6209
|
description: __expectString(output.description),
|
|
6333
6210
|
kmsKeyId: __expectString(output.kmsKeyId),
|
|
6334
|
-
launchPermission: output.launchPermission
|
|
6211
|
+
launchPermission: output.launchPermission != null
|
|
6335
6212
|
? deserializeAws_restJson1LaunchPermissionConfiguration(output.launchPermission, context)
|
|
6336
6213
|
: undefined,
|
|
6337
6214
|
name: __expectString(output.name),
|
|
6338
|
-
targetAccountIds: output.targetAccountIds
|
|
6215
|
+
targetAccountIds: output.targetAccountIds != null
|
|
6339
6216
|
? deserializeAws_restJson1AccountList(output.targetAccountIds, context)
|
|
6340
6217
|
: undefined,
|
|
6341
6218
|
};
|
|
@@ -6362,19 +6239,15 @@ var deserializeAws_restJson1Component = function (output, context) {
|
|
|
6362
6239
|
kmsKeyId: __expectString(output.kmsKeyId),
|
|
6363
6240
|
name: __expectString(output.name),
|
|
6364
6241
|
owner: __expectString(output.owner),
|
|
6365
|
-
parameters: output.parameters
|
|
6242
|
+
parameters: output.parameters != null
|
|
6366
6243
|
? deserializeAws_restJson1ComponentParameterDetailList(output.parameters, context)
|
|
6367
6244
|
: undefined,
|
|
6368
6245
|
platform: __expectString(output.platform),
|
|
6369
|
-
state: output.state
|
|
6370
|
-
|
|
6371
|
-
: undefined,
|
|
6372
|
-
supportedOsVersions: output.supportedOsVersions !== undefined && output.supportedOsVersions !== null
|
|
6246
|
+
state: output.state != null ? deserializeAws_restJson1ComponentState(output.state, context) : undefined,
|
|
6247
|
+
supportedOsVersions: output.supportedOsVersions != null
|
|
6373
6248
|
? deserializeAws_restJson1OsVersionList(output.supportedOsVersions, context)
|
|
6374
6249
|
: undefined,
|
|
6375
|
-
tags: output.tags
|
|
6376
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6377
|
-
: undefined,
|
|
6250
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6378
6251
|
type: __expectString(output.type),
|
|
6379
6252
|
version: __expectString(output.version),
|
|
6380
6253
|
};
|
|
@@ -6382,7 +6255,7 @@ var deserializeAws_restJson1Component = function (output, context) {
|
|
|
6382
6255
|
var deserializeAws_restJson1ComponentConfiguration = function (output, context) {
|
|
6383
6256
|
return {
|
|
6384
6257
|
componentArn: __expectString(output.componentArn),
|
|
6385
|
-
parameters: output.parameters
|
|
6258
|
+
parameters: output.parameters != null
|
|
6386
6259
|
? deserializeAws_restJson1ComponentParameterList(output.parameters, context)
|
|
6387
6260
|
: undefined,
|
|
6388
6261
|
};
|
|
@@ -6401,14 +6274,12 @@ var deserializeAws_restJson1ComponentConfigurationList = function (output, conte
|
|
|
6401
6274
|
var deserializeAws_restJson1ComponentParameter = function (output, context) {
|
|
6402
6275
|
return {
|
|
6403
6276
|
name: __expectString(output.name),
|
|
6404
|
-
value: output.value
|
|
6405
|
-
? deserializeAws_restJson1ComponentParameterValueList(output.value, context)
|
|
6406
|
-
: undefined,
|
|
6277
|
+
value: output.value != null ? deserializeAws_restJson1ComponentParameterValueList(output.value, context) : undefined,
|
|
6407
6278
|
};
|
|
6408
6279
|
};
|
|
6409
6280
|
var deserializeAws_restJson1ComponentParameterDetail = function (output, context) {
|
|
6410
6281
|
return {
|
|
6411
|
-
defaultValue: output.defaultValue
|
|
6282
|
+
defaultValue: output.defaultValue != null
|
|
6412
6283
|
? deserializeAws_restJson1ComponentParameterValueList(output.defaultValue, context)
|
|
6413
6284
|
: undefined,
|
|
6414
6285
|
description: __expectString(output.description),
|
|
@@ -6464,15 +6335,11 @@ var deserializeAws_restJson1ComponentSummary = function (output, context) {
|
|
|
6464
6335
|
name: __expectString(output.name),
|
|
6465
6336
|
owner: __expectString(output.owner),
|
|
6466
6337
|
platform: __expectString(output.platform),
|
|
6467
|
-
state: output.state
|
|
6468
|
-
|
|
6469
|
-
: undefined,
|
|
6470
|
-
supportedOsVersions: output.supportedOsVersions !== undefined && output.supportedOsVersions !== null
|
|
6338
|
+
state: output.state != null ? deserializeAws_restJson1ComponentState(output.state, context) : undefined,
|
|
6339
|
+
supportedOsVersions: output.supportedOsVersions != null
|
|
6471
6340
|
? deserializeAws_restJson1OsVersionList(output.supportedOsVersions, context)
|
|
6472
6341
|
: undefined,
|
|
6473
|
-
tags: output.tags
|
|
6474
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6475
|
-
: undefined,
|
|
6342
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6476
6343
|
type: __expectString(output.type),
|
|
6477
6344
|
version: __expectString(output.version),
|
|
6478
6345
|
};
|
|
@@ -6496,7 +6363,7 @@ var deserializeAws_restJson1ComponentVersion = function (output, context) {
|
|
|
6496
6363
|
name: __expectString(output.name),
|
|
6497
6364
|
owner: __expectString(output.owner),
|
|
6498
6365
|
platform: __expectString(output.platform),
|
|
6499
|
-
supportedOsVersions: output.supportedOsVersions
|
|
6366
|
+
supportedOsVersions: output.supportedOsVersions != null
|
|
6500
6367
|
? deserializeAws_restJson1OsVersionList(output.supportedOsVersions, context)
|
|
6501
6368
|
: undefined,
|
|
6502
6369
|
type: __expectString(output.type),
|
|
@@ -6516,19 +6383,15 @@ var deserializeAws_restJson1ComponentVersionList = function (output, context) {
|
|
|
6516
6383
|
};
|
|
6517
6384
|
var deserializeAws_restJson1Container = function (output, context) {
|
|
6518
6385
|
return {
|
|
6519
|
-
imageUris: output.imageUris
|
|
6520
|
-
? deserializeAws_restJson1StringList(output.imageUris, context)
|
|
6521
|
-
: undefined,
|
|
6386
|
+
imageUris: output.imageUris != null ? deserializeAws_restJson1StringList(output.imageUris, context) : undefined,
|
|
6522
6387
|
region: __expectString(output.region),
|
|
6523
6388
|
};
|
|
6524
6389
|
};
|
|
6525
6390
|
var deserializeAws_restJson1ContainerDistributionConfiguration = function (output, context) {
|
|
6526
6391
|
return {
|
|
6527
|
-
containerTags: output.containerTags
|
|
6528
|
-
? deserializeAws_restJson1StringList(output.containerTags, context)
|
|
6529
|
-
: undefined,
|
|
6392
|
+
containerTags: output.containerTags != null ? deserializeAws_restJson1StringList(output.containerTags, context) : undefined,
|
|
6530
6393
|
description: __expectString(output.description),
|
|
6531
|
-
targetRepository: output.targetRepository
|
|
6394
|
+
targetRepository: output.targetRepository != null
|
|
6532
6395
|
? deserializeAws_restJson1TargetContainerRepository(output.targetRepository, context)
|
|
6533
6396
|
: undefined,
|
|
6534
6397
|
};
|
|
@@ -6547,7 +6410,7 @@ var deserializeAws_restJson1ContainerList = function (output, context) {
|
|
|
6547
6410
|
var deserializeAws_restJson1ContainerRecipe = function (output, context) {
|
|
6548
6411
|
return {
|
|
6549
6412
|
arn: __expectString(output.arn),
|
|
6550
|
-
components: output.components
|
|
6413
|
+
components: output.components != null
|
|
6551
6414
|
? deserializeAws_restJson1ComponentConfigurationList(output.components, context)
|
|
6552
6415
|
: undefined,
|
|
6553
6416
|
containerType: __expectString(output.containerType),
|
|
@@ -6555,7 +6418,7 @@ var deserializeAws_restJson1ContainerRecipe = function (output, context) {
|
|
|
6555
6418
|
description: __expectString(output.description),
|
|
6556
6419
|
dockerfileTemplateData: __expectString(output.dockerfileTemplateData),
|
|
6557
6420
|
encrypted: __expectBoolean(output.encrypted),
|
|
6558
|
-
instanceConfiguration: output.instanceConfiguration
|
|
6421
|
+
instanceConfiguration: output.instanceConfiguration != null
|
|
6559
6422
|
? deserializeAws_restJson1InstanceConfiguration(output.instanceConfiguration, context)
|
|
6560
6423
|
: undefined,
|
|
6561
6424
|
kmsKeyId: __expectString(output.kmsKeyId),
|
|
@@ -6563,10 +6426,8 @@ var deserializeAws_restJson1ContainerRecipe = function (output, context) {
|
|
|
6563
6426
|
owner: __expectString(output.owner),
|
|
6564
6427
|
parentImage: __expectString(output.parentImage),
|
|
6565
6428
|
platform: __expectString(output.platform),
|
|
6566
|
-
tags: output.tags
|
|
6567
|
-
|
|
6568
|
-
: undefined,
|
|
6569
|
-
targetRepository: output.targetRepository !== undefined && output.targetRepository !== null
|
|
6429
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6430
|
+
targetRepository: output.targetRepository != null
|
|
6570
6431
|
? deserializeAws_restJson1TargetContainerRepository(output.targetRepository, context)
|
|
6571
6432
|
: undefined,
|
|
6572
6433
|
version: __expectString(output.version),
|
|
@@ -6582,9 +6443,7 @@ var deserializeAws_restJson1ContainerRecipeSummary = function (output, context)
|
|
|
6582
6443
|
owner: __expectString(output.owner),
|
|
6583
6444
|
parentImage: __expectString(output.parentImage),
|
|
6584
6445
|
platform: __expectString(output.platform),
|
|
6585
|
-
tags: output.tags
|
|
6586
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6587
|
-
: undefined,
|
|
6446
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6588
6447
|
};
|
|
6589
6448
|
};
|
|
6590
6449
|
var deserializeAws_restJson1ContainerRecipeSummaryList = function (output, context) {
|
|
@@ -6600,23 +6459,23 @@ var deserializeAws_restJson1ContainerRecipeSummaryList = function (output, conte
|
|
|
6600
6459
|
};
|
|
6601
6460
|
var deserializeAws_restJson1Distribution = function (output, context) {
|
|
6602
6461
|
return {
|
|
6603
|
-
amiDistributionConfiguration: output.amiDistributionConfiguration
|
|
6462
|
+
amiDistributionConfiguration: output.amiDistributionConfiguration != null
|
|
6604
6463
|
? deserializeAws_restJson1AmiDistributionConfiguration(output.amiDistributionConfiguration, context)
|
|
6605
6464
|
: undefined,
|
|
6606
|
-
containerDistributionConfiguration: output.containerDistributionConfiguration
|
|
6465
|
+
containerDistributionConfiguration: output.containerDistributionConfiguration != null
|
|
6607
6466
|
? deserializeAws_restJson1ContainerDistributionConfiguration(output.containerDistributionConfiguration, context)
|
|
6608
6467
|
: undefined,
|
|
6609
|
-
fastLaunchConfigurations: output.fastLaunchConfigurations
|
|
6468
|
+
fastLaunchConfigurations: output.fastLaunchConfigurations != null
|
|
6610
6469
|
? deserializeAws_restJson1FastLaunchConfigurationList(output.fastLaunchConfigurations, context)
|
|
6611
6470
|
: undefined,
|
|
6612
|
-
launchTemplateConfigurations: output.launchTemplateConfigurations
|
|
6471
|
+
launchTemplateConfigurations: output.launchTemplateConfigurations != null
|
|
6613
6472
|
? deserializeAws_restJson1LaunchTemplateConfigurationList(output.launchTemplateConfigurations, context)
|
|
6614
6473
|
: undefined,
|
|
6615
|
-
licenseConfigurationArns: output.licenseConfigurationArns
|
|
6474
|
+
licenseConfigurationArns: output.licenseConfigurationArns != null
|
|
6616
6475
|
? deserializeAws_restJson1LicenseConfigurationArnList(output.licenseConfigurationArns, context)
|
|
6617
6476
|
: undefined,
|
|
6618
6477
|
region: __expectString(output.region),
|
|
6619
|
-
s3ExportConfiguration: output.s3ExportConfiguration
|
|
6478
|
+
s3ExportConfiguration: output.s3ExportConfiguration != null
|
|
6620
6479
|
? deserializeAws_restJson1S3ExportConfiguration(output.s3ExportConfiguration, context)
|
|
6621
6480
|
: undefined,
|
|
6622
6481
|
};
|
|
@@ -6627,13 +6486,11 @@ var deserializeAws_restJson1DistributionConfiguration = function (output, contex
|
|
|
6627
6486
|
dateCreated: __expectString(output.dateCreated),
|
|
6628
6487
|
dateUpdated: __expectString(output.dateUpdated),
|
|
6629
6488
|
description: __expectString(output.description),
|
|
6630
|
-
distributions: output.distributions
|
|
6489
|
+
distributions: output.distributions != null
|
|
6631
6490
|
? deserializeAws_restJson1DistributionList(output.distributions, context)
|
|
6632
6491
|
: undefined,
|
|
6633
6492
|
name: __expectString(output.name),
|
|
6634
|
-
tags: output.tags
|
|
6635
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6636
|
-
: undefined,
|
|
6493
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6637
6494
|
timeoutMinutes: __expectInt32(output.timeoutMinutes),
|
|
6638
6495
|
};
|
|
6639
6496
|
};
|
|
@@ -6644,12 +6501,8 @@ var deserializeAws_restJson1DistributionConfigurationSummary = function (output,
|
|
|
6644
6501
|
dateUpdated: __expectString(output.dateUpdated),
|
|
6645
6502
|
description: __expectString(output.description),
|
|
6646
6503
|
name: __expectString(output.name),
|
|
6647
|
-
regions: output.regions
|
|
6648
|
-
|
|
6649
|
-
: undefined,
|
|
6650
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
6651
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6652
|
-
: undefined,
|
|
6504
|
+
regions: output.regions != null ? deserializeAws_restJson1RegionList(output.regions, context) : undefined,
|
|
6505
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6653
6506
|
};
|
|
6654
6507
|
};
|
|
6655
6508
|
var deserializeAws_restJson1DistributionConfigurationSummaryList = function (output, context) {
|
|
@@ -6690,11 +6543,11 @@ var deserializeAws_restJson1FastLaunchConfiguration = function (output, context)
|
|
|
6690
6543
|
return {
|
|
6691
6544
|
accountId: __expectString(output.accountId),
|
|
6692
6545
|
enabled: __expectBoolean(output.enabled),
|
|
6693
|
-
launchTemplate: output.launchTemplate
|
|
6546
|
+
launchTemplate: output.launchTemplate != null
|
|
6694
6547
|
? deserializeAws_restJson1FastLaunchLaunchTemplateSpecification(output.launchTemplate, context)
|
|
6695
6548
|
: undefined,
|
|
6696
6549
|
maxParallelLaunches: __expectInt32(output.maxParallelLaunches),
|
|
6697
|
-
snapshotConfiguration: output.snapshotConfiguration
|
|
6550
|
+
snapshotConfiguration: output.snapshotConfiguration != null
|
|
6698
6551
|
? deserializeAws_restJson1FastLaunchSnapshotConfiguration(output.snapshotConfiguration, context)
|
|
6699
6552
|
: undefined,
|
|
6700
6553
|
};
|
|
@@ -6726,37 +6579,31 @@ var deserializeAws_restJson1Image = function (output, context) {
|
|
|
6726
6579
|
return {
|
|
6727
6580
|
arn: __expectString(output.arn),
|
|
6728
6581
|
buildType: __expectString(output.buildType),
|
|
6729
|
-
containerRecipe: output.containerRecipe
|
|
6582
|
+
containerRecipe: output.containerRecipe != null
|
|
6730
6583
|
? deserializeAws_restJson1ContainerRecipe(output.containerRecipe, context)
|
|
6731
6584
|
: undefined,
|
|
6732
6585
|
dateCreated: __expectString(output.dateCreated),
|
|
6733
|
-
distributionConfiguration: output.distributionConfiguration
|
|
6586
|
+
distributionConfiguration: output.distributionConfiguration != null
|
|
6734
6587
|
? deserializeAws_restJson1DistributionConfiguration(output.distributionConfiguration, context)
|
|
6735
6588
|
: undefined,
|
|
6736
6589
|
enhancedImageMetadataEnabled: __expectBoolean(output.enhancedImageMetadataEnabled),
|
|
6737
|
-
imageRecipe: output.imageRecipe
|
|
6738
|
-
|
|
6739
|
-
: undefined,
|
|
6740
|
-
imageTestsConfiguration: output.imageTestsConfiguration !== undefined && output.imageTestsConfiguration !== null
|
|
6590
|
+
imageRecipe: output.imageRecipe != null ? deserializeAws_restJson1ImageRecipe(output.imageRecipe, context) : undefined,
|
|
6591
|
+
imageTestsConfiguration: output.imageTestsConfiguration != null
|
|
6741
6592
|
? deserializeAws_restJson1ImageTestsConfiguration(output.imageTestsConfiguration, context)
|
|
6742
6593
|
: undefined,
|
|
6743
|
-
infrastructureConfiguration: output.infrastructureConfiguration
|
|
6594
|
+
infrastructureConfiguration: output.infrastructureConfiguration != null
|
|
6744
6595
|
? deserializeAws_restJson1InfrastructureConfiguration(output.infrastructureConfiguration, context)
|
|
6745
6596
|
: undefined,
|
|
6746
6597
|
name: __expectString(output.name),
|
|
6747
6598
|
osVersion: __expectString(output.osVersion),
|
|
6748
|
-
outputResources: output.outputResources
|
|
6599
|
+
outputResources: output.outputResources != null
|
|
6749
6600
|
? deserializeAws_restJson1OutputResources(output.outputResources, context)
|
|
6750
6601
|
: undefined,
|
|
6751
6602
|
platform: __expectString(output.platform),
|
|
6752
6603
|
sourcePipelineArn: __expectString(output.sourcePipelineArn),
|
|
6753
6604
|
sourcePipelineName: __expectString(output.sourcePipelineName),
|
|
6754
|
-
state: output.state
|
|
6755
|
-
|
|
6756
|
-
: undefined,
|
|
6757
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
6758
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6759
|
-
: undefined,
|
|
6605
|
+
state: output.state != null ? deserializeAws_restJson1ImageState(output.state, context) : undefined,
|
|
6606
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6760
6607
|
type: __expectString(output.type),
|
|
6761
6608
|
version: __expectString(output.version),
|
|
6762
6609
|
};
|
|
@@ -6790,19 +6637,15 @@ var deserializeAws_restJson1ImagePipeline = function (output, context) {
|
|
|
6790
6637
|
distributionConfigurationArn: __expectString(output.distributionConfigurationArn),
|
|
6791
6638
|
enhancedImageMetadataEnabled: __expectBoolean(output.enhancedImageMetadataEnabled),
|
|
6792
6639
|
imageRecipeArn: __expectString(output.imageRecipeArn),
|
|
6793
|
-
imageTestsConfiguration: output.imageTestsConfiguration
|
|
6640
|
+
imageTestsConfiguration: output.imageTestsConfiguration != null
|
|
6794
6641
|
? deserializeAws_restJson1ImageTestsConfiguration(output.imageTestsConfiguration, context)
|
|
6795
6642
|
: undefined,
|
|
6796
6643
|
infrastructureConfigurationArn: __expectString(output.infrastructureConfigurationArn),
|
|
6797
6644
|
name: __expectString(output.name),
|
|
6798
6645
|
platform: __expectString(output.platform),
|
|
6799
|
-
schedule: output.schedule
|
|
6800
|
-
? deserializeAws_restJson1Schedule(output.schedule, context)
|
|
6801
|
-
: undefined,
|
|
6646
|
+
schedule: output.schedule != null ? deserializeAws_restJson1Schedule(output.schedule, context) : undefined,
|
|
6802
6647
|
status: __expectString(output.status),
|
|
6803
|
-
tags: output.tags
|
|
6804
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6805
|
-
: undefined,
|
|
6648
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6806
6649
|
};
|
|
6807
6650
|
};
|
|
6808
6651
|
var deserializeAws_restJson1ImagePipelineList = function (output, context) {
|
|
@@ -6818,14 +6661,14 @@ var deserializeAws_restJson1ImagePipelineList = function (output, context) {
|
|
|
6818
6661
|
};
|
|
6819
6662
|
var deserializeAws_restJson1ImageRecipe = function (output, context) {
|
|
6820
6663
|
return {
|
|
6821
|
-
additionalInstanceConfiguration: output.additionalInstanceConfiguration
|
|
6664
|
+
additionalInstanceConfiguration: output.additionalInstanceConfiguration != null
|
|
6822
6665
|
? deserializeAws_restJson1AdditionalInstanceConfiguration(output.additionalInstanceConfiguration, context)
|
|
6823
6666
|
: undefined,
|
|
6824
6667
|
arn: __expectString(output.arn),
|
|
6825
|
-
blockDeviceMappings: output.blockDeviceMappings
|
|
6668
|
+
blockDeviceMappings: output.blockDeviceMappings != null
|
|
6826
6669
|
? deserializeAws_restJson1InstanceBlockDeviceMappings(output.blockDeviceMappings, context)
|
|
6827
6670
|
: undefined,
|
|
6828
|
-
components: output.components
|
|
6671
|
+
components: output.components != null
|
|
6829
6672
|
? deserializeAws_restJson1ComponentConfigurationList(output.components, context)
|
|
6830
6673
|
: undefined,
|
|
6831
6674
|
dateCreated: __expectString(output.dateCreated),
|
|
@@ -6834,9 +6677,7 @@ var deserializeAws_restJson1ImageRecipe = function (output, context) {
|
|
|
6834
6677
|
owner: __expectString(output.owner),
|
|
6835
6678
|
parentImage: __expectString(output.parentImage),
|
|
6836
6679
|
platform: __expectString(output.platform),
|
|
6837
|
-
tags: output.tags
|
|
6838
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6839
|
-
: undefined,
|
|
6680
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6840
6681
|
type: __expectString(output.type),
|
|
6841
6682
|
version: __expectString(output.version),
|
|
6842
6683
|
workingDirectory: __expectString(output.workingDirectory),
|
|
@@ -6850,9 +6691,7 @@ var deserializeAws_restJson1ImageRecipeSummary = function (output, context) {
|
|
|
6850
6691
|
owner: __expectString(output.owner),
|
|
6851
6692
|
parentImage: __expectString(output.parentImage),
|
|
6852
6693
|
platform: __expectString(output.platform),
|
|
6853
|
-
tags: output.tags
|
|
6854
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6855
|
-
: undefined,
|
|
6694
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6856
6695
|
};
|
|
6857
6696
|
};
|
|
6858
6697
|
var deserializeAws_restJson1ImageRecipeSummaryList = function (output, context) {
|
|
@@ -6879,17 +6718,13 @@ var deserializeAws_restJson1ImageSummary = function (output, context) {
|
|
|
6879
6718
|
dateCreated: __expectString(output.dateCreated),
|
|
6880
6719
|
name: __expectString(output.name),
|
|
6881
6720
|
osVersion: __expectString(output.osVersion),
|
|
6882
|
-
outputResources: output.outputResources
|
|
6721
|
+
outputResources: output.outputResources != null
|
|
6883
6722
|
? deserializeAws_restJson1OutputResources(output.outputResources, context)
|
|
6884
6723
|
: undefined,
|
|
6885
6724
|
owner: __expectString(output.owner),
|
|
6886
6725
|
platform: __expectString(output.platform),
|
|
6887
|
-
state: output.state
|
|
6888
|
-
|
|
6889
|
-
: undefined,
|
|
6890
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
6891
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6892
|
-
: undefined,
|
|
6726
|
+
state: output.state != null ? deserializeAws_restJson1ImageState(output.state, context) : undefined,
|
|
6727
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6893
6728
|
type: __expectString(output.type),
|
|
6894
6729
|
version: __expectString(output.version),
|
|
6895
6730
|
};
|
|
@@ -6941,29 +6776,23 @@ var deserializeAws_restJson1InfrastructureConfiguration = function (output, cont
|
|
|
6941
6776
|
dateCreated: __expectString(output.dateCreated),
|
|
6942
6777
|
dateUpdated: __expectString(output.dateUpdated),
|
|
6943
6778
|
description: __expectString(output.description),
|
|
6944
|
-
instanceMetadataOptions: output.instanceMetadataOptions
|
|
6779
|
+
instanceMetadataOptions: output.instanceMetadataOptions != null
|
|
6945
6780
|
? deserializeAws_restJson1InstanceMetadataOptions(output.instanceMetadataOptions, context)
|
|
6946
6781
|
: undefined,
|
|
6947
6782
|
instanceProfileName: __expectString(output.instanceProfileName),
|
|
6948
|
-
instanceTypes: output.instanceTypes
|
|
6783
|
+
instanceTypes: output.instanceTypes != null
|
|
6949
6784
|
? deserializeAws_restJson1InstanceTypeList(output.instanceTypes, context)
|
|
6950
6785
|
: undefined,
|
|
6951
6786
|
keyPair: __expectString(output.keyPair),
|
|
6952
|
-
logging: output.logging
|
|
6953
|
-
? deserializeAws_restJson1Logging(output.logging, context)
|
|
6954
|
-
: undefined,
|
|
6787
|
+
logging: output.logging != null ? deserializeAws_restJson1Logging(output.logging, context) : undefined,
|
|
6955
6788
|
name: __expectString(output.name),
|
|
6956
|
-
resourceTags: output.resourceTags
|
|
6957
|
-
|
|
6958
|
-
: undefined,
|
|
6959
|
-
securityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
|
|
6789
|
+
resourceTags: output.resourceTags != null ? deserializeAws_restJson1ResourceTagMap(output.resourceTags, context) : undefined,
|
|
6790
|
+
securityGroupIds: output.securityGroupIds != null
|
|
6960
6791
|
? deserializeAws_restJson1SecurityGroupIds(output.securityGroupIds, context)
|
|
6961
6792
|
: undefined,
|
|
6962
6793
|
snsTopicArn: __expectString(output.snsTopicArn),
|
|
6963
6794
|
subnetId: __expectString(output.subnetId),
|
|
6964
|
-
tags: output.tags
|
|
6965
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6966
|
-
: undefined,
|
|
6795
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6967
6796
|
terminateInstanceOnFailure: __expectBoolean(output.terminateInstanceOnFailure),
|
|
6968
6797
|
};
|
|
6969
6798
|
};
|
|
@@ -6974,16 +6803,12 @@ var deserializeAws_restJson1InfrastructureConfigurationSummary = function (outpu
|
|
|
6974
6803
|
dateUpdated: __expectString(output.dateUpdated),
|
|
6975
6804
|
description: __expectString(output.description),
|
|
6976
6805
|
instanceProfileName: __expectString(output.instanceProfileName),
|
|
6977
|
-
instanceTypes: output.instanceTypes
|
|
6806
|
+
instanceTypes: output.instanceTypes != null
|
|
6978
6807
|
? deserializeAws_restJson1InstanceTypeList(output.instanceTypes, context)
|
|
6979
6808
|
: undefined,
|
|
6980
6809
|
name: __expectString(output.name),
|
|
6981
|
-
resourceTags: output.resourceTags
|
|
6982
|
-
|
|
6983
|
-
: undefined,
|
|
6984
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
6985
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
6986
|
-
: undefined,
|
|
6810
|
+
resourceTags: output.resourceTags != null ? deserializeAws_restJson1ResourceTagMap(output.resourceTags, context) : undefined,
|
|
6811
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
6987
6812
|
};
|
|
6988
6813
|
};
|
|
6989
6814
|
var deserializeAws_restJson1InfrastructureConfigurationSummaryList = function (output, context) {
|
|
@@ -7000,9 +6825,7 @@ var deserializeAws_restJson1InfrastructureConfigurationSummaryList = function (o
|
|
|
7000
6825
|
var deserializeAws_restJson1InstanceBlockDeviceMapping = function (output, context) {
|
|
7001
6826
|
return {
|
|
7002
6827
|
deviceName: __expectString(output.deviceName),
|
|
7003
|
-
ebs: output.ebs
|
|
7004
|
-
? deserializeAws_restJson1EbsInstanceBlockDeviceSpecification(output.ebs, context)
|
|
7005
|
-
: undefined,
|
|
6828
|
+
ebs: output.ebs != null ? deserializeAws_restJson1EbsInstanceBlockDeviceSpecification(output.ebs, context) : undefined,
|
|
7006
6829
|
noDevice: __expectString(output.noDevice),
|
|
7007
6830
|
virtualName: __expectString(output.virtualName),
|
|
7008
6831
|
};
|
|
@@ -7020,7 +6843,7 @@ var deserializeAws_restJson1InstanceBlockDeviceMappings = function (output, cont
|
|
|
7020
6843
|
};
|
|
7021
6844
|
var deserializeAws_restJson1InstanceConfiguration = function (output, context) {
|
|
7022
6845
|
return {
|
|
7023
|
-
blockDeviceMappings: output.blockDeviceMappings
|
|
6846
|
+
blockDeviceMappings: output.blockDeviceMappings != null
|
|
7024
6847
|
? deserializeAws_restJson1InstanceBlockDeviceMappings(output.blockDeviceMappings, context)
|
|
7025
6848
|
: undefined,
|
|
7026
6849
|
image: __expectString(output.image),
|
|
@@ -7045,18 +6868,14 @@ var deserializeAws_restJson1InstanceTypeList = function (output, context) {
|
|
|
7045
6868
|
};
|
|
7046
6869
|
var deserializeAws_restJson1LaunchPermissionConfiguration = function (output, context) {
|
|
7047
6870
|
return {
|
|
7048
|
-
organizationArns: output.organizationArns
|
|
6871
|
+
organizationArns: output.organizationArns != null
|
|
7049
6872
|
? deserializeAws_restJson1OrganizationArnList(output.organizationArns, context)
|
|
7050
6873
|
: undefined,
|
|
7051
|
-
organizationalUnitArns: output.organizationalUnitArns
|
|
6874
|
+
organizationalUnitArns: output.organizationalUnitArns != null
|
|
7052
6875
|
? deserializeAws_restJson1OrganizationalUnitArnList(output.organizationalUnitArns, context)
|
|
7053
6876
|
: undefined,
|
|
7054
|
-
userGroups: output.userGroups
|
|
7055
|
-
|
|
7056
|
-
: undefined,
|
|
7057
|
-
userIds: output.userIds !== undefined && output.userIds !== null
|
|
7058
|
-
? deserializeAws_restJson1AccountList(output.userIds, context)
|
|
7059
|
-
: undefined,
|
|
6877
|
+
userGroups: output.userGroups != null ? deserializeAws_restJson1StringList(output.userGroups, context) : undefined,
|
|
6878
|
+
userIds: output.userIds != null ? deserializeAws_restJson1AccountList(output.userIds, context) : undefined,
|
|
7060
6879
|
};
|
|
7061
6880
|
};
|
|
7062
6881
|
var deserializeAws_restJson1LaunchTemplateConfiguration = function (output, context) {
|
|
@@ -7090,9 +6909,7 @@ var deserializeAws_restJson1LicenseConfigurationArnList = function (output, cont
|
|
|
7090
6909
|
};
|
|
7091
6910
|
var deserializeAws_restJson1Logging = function (output, context) {
|
|
7092
6911
|
return {
|
|
7093
|
-
s3Logs: output.s3Logs
|
|
7094
|
-
? deserializeAws_restJson1S3Logs(output.s3Logs, context)
|
|
7095
|
-
: undefined,
|
|
6912
|
+
s3Logs: output.s3Logs != null ? deserializeAws_restJson1S3Logs(output.s3Logs, context) : undefined,
|
|
7096
6913
|
};
|
|
7097
6914
|
};
|
|
7098
6915
|
var deserializeAws_restJson1OrganizationalUnitArnList = function (output, context) {
|
|
@@ -7130,12 +6947,8 @@ var deserializeAws_restJson1OsVersionList = function (output, context) {
|
|
|
7130
6947
|
};
|
|
7131
6948
|
var deserializeAws_restJson1OutputResources = function (output, context) {
|
|
7132
6949
|
return {
|
|
7133
|
-
amis: output.amis
|
|
7134
|
-
|
|
7135
|
-
: undefined,
|
|
7136
|
-
containers: output.containers !== undefined && output.containers !== null
|
|
7137
|
-
? deserializeAws_restJson1ContainerList(output.containers, context)
|
|
7138
|
-
: undefined,
|
|
6950
|
+
amis: output.amis != null ? deserializeAws_restJson1AmiList(output.amis, context) : undefined,
|
|
6951
|
+
containers: output.containers != null ? deserializeAws_restJson1ContainerList(output.containers, context) : undefined,
|
|
7139
6952
|
};
|
|
7140
6953
|
};
|
|
7141
6954
|
var deserializeAws_restJson1RegionList = function (output, context) {
|