@aws-sdk/client-lightsail 3.279.0 → 3.282.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/README.md +1275 -0
  2. package/dist-cjs/Lightsail.js +60 -0
  3. package/dist-cjs/commands/CreateGUISessionAccessDetailsCommand.js +46 -0
  4. package/dist-cjs/commands/GetCostEstimateCommand.js +46 -0
  5. package/dist-cjs/commands/GetDiskCommand.js +3 -3
  6. package/dist-cjs/commands/GetDiskSnapshotCommand.js +3 -3
  7. package/dist-cjs/commands/GetDiskSnapshotsCommand.js +3 -3
  8. package/dist-cjs/commands/GetDisksCommand.js +3 -3
  9. package/dist-cjs/commands/GetDistributionBundlesCommand.js +3 -3
  10. package/dist-cjs/commands/GetDistributionLatestCacheResetCommand.js +3 -3
  11. package/dist-cjs/commands/StartGUISessionCommand.js +46 -0
  12. package/dist-cjs/commands/StopGUISessionCommand.js +46 -0
  13. package/dist-cjs/commands/index.js +4 -0
  14. package/dist-cjs/endpoint/ruleset.js +3 -3
  15. package/dist-cjs/models/models_0.js +75 -54
  16. package/dist-cjs/models/models_1.js +81 -4
  17. package/dist-cjs/protocols/Aws_json1_1.js +390 -7
  18. package/dist-es/Lightsail.js +60 -0
  19. package/dist-es/commands/CreateGUISessionAccessDetailsCommand.js +42 -0
  20. package/dist-es/commands/GetCostEstimateCommand.js +42 -0
  21. package/dist-es/commands/GetDiskCommand.js +1 -1
  22. package/dist-es/commands/GetDiskSnapshotCommand.js +1 -1
  23. package/dist-es/commands/GetDiskSnapshotsCommand.js +1 -1
  24. package/dist-es/commands/GetDisksCommand.js +1 -1
  25. package/dist-es/commands/GetDistributionBundlesCommand.js +1 -1
  26. package/dist-es/commands/GetDistributionLatestCacheResetCommand.js +1 -1
  27. package/dist-es/commands/StartGUISessionCommand.js +42 -0
  28. package/dist-es/commands/StopGUISessionCommand.js +42 -0
  29. package/dist-es/commands/index.js +4 -0
  30. package/dist-es/endpoint/ruleset.js +3 -3
  31. package/dist-es/models/models_0.js +62 -36
  32. package/dist-es/models/models_1.js +57 -0
  33. package/dist-es/protocols/Aws_json1_1.js +375 -0
  34. package/dist-types/Lightsail.d.ts +32 -0
  35. package/dist-types/LightsailClient.d.ts +6 -2
  36. package/dist-types/commands/AllocateStaticIpCommand.d.ts +6 -0
  37. package/dist-types/commands/AttachCertificateToDistributionCommand.d.ts +6 -0
  38. package/dist-types/commands/AttachDiskCommand.d.ts +6 -0
  39. package/dist-types/commands/AttachInstancesToLoadBalancerCommand.d.ts +6 -0
  40. package/dist-types/commands/AttachLoadBalancerTlsCertificateCommand.d.ts +6 -0
  41. package/dist-types/commands/AttachStaticIpCommand.d.ts +6 -0
  42. package/dist-types/commands/CloseInstancePublicPortsCommand.d.ts +6 -0
  43. package/dist-types/commands/CopySnapshotCommand.d.ts +6 -0
  44. package/dist-types/commands/CreateBucketAccessKeyCommand.d.ts +6 -0
  45. package/dist-types/commands/CreateBucketCommand.d.ts +6 -0
  46. package/dist-types/commands/CreateCertificateCommand.d.ts +6 -0
  47. package/dist-types/commands/CreateCloudFormationStackCommand.d.ts +6 -0
  48. package/dist-types/commands/CreateContactMethodCommand.d.ts +6 -0
  49. package/dist-types/commands/CreateContainerServiceCommand.d.ts +6 -0
  50. package/dist-types/commands/CreateContainerServiceDeploymentCommand.d.ts +6 -0
  51. package/dist-types/commands/CreateContainerServiceRegistryLoginCommand.d.ts +6 -0
  52. package/dist-types/commands/CreateDiskCommand.d.ts +6 -0
  53. package/dist-types/commands/CreateDiskFromSnapshotCommand.d.ts +6 -0
  54. package/dist-types/commands/CreateDiskSnapshotCommand.d.ts +6 -0
  55. package/dist-types/commands/CreateDistributionCommand.d.ts +6 -0
  56. package/dist-types/commands/CreateDomainCommand.d.ts +6 -0
  57. package/dist-types/commands/CreateDomainEntryCommand.d.ts +6 -0
  58. package/dist-types/commands/CreateGUISessionAccessDetailsCommand.d.ts +45 -0
  59. package/dist-types/commands/CreateInstanceSnapshotCommand.d.ts +6 -0
  60. package/dist-types/commands/CreateInstancesCommand.d.ts +6 -0
  61. package/dist-types/commands/CreateInstancesFromSnapshotCommand.d.ts +6 -0
  62. package/dist-types/commands/CreateKeyPairCommand.d.ts +6 -0
  63. package/dist-types/commands/CreateLoadBalancerCommand.d.ts +6 -0
  64. package/dist-types/commands/CreateLoadBalancerTlsCertificateCommand.d.ts +6 -0
  65. package/dist-types/commands/CreateRelationalDatabaseCommand.d.ts +6 -0
  66. package/dist-types/commands/CreateRelationalDatabaseFromSnapshotCommand.d.ts +6 -0
  67. package/dist-types/commands/CreateRelationalDatabaseSnapshotCommand.d.ts +6 -0
  68. package/dist-types/commands/DeleteAlarmCommand.d.ts +6 -0
  69. package/dist-types/commands/DeleteAutoSnapshotCommand.d.ts +6 -0
  70. package/dist-types/commands/DeleteBucketAccessKeyCommand.d.ts +6 -0
  71. package/dist-types/commands/DeleteBucketCommand.d.ts +6 -0
  72. package/dist-types/commands/DeleteCertificateCommand.d.ts +6 -0
  73. package/dist-types/commands/DeleteContactMethodCommand.d.ts +6 -0
  74. package/dist-types/commands/DeleteContainerImageCommand.d.ts +6 -0
  75. package/dist-types/commands/DeleteContainerServiceCommand.d.ts +6 -0
  76. package/dist-types/commands/DeleteDiskCommand.d.ts +6 -0
  77. package/dist-types/commands/DeleteDiskSnapshotCommand.d.ts +6 -0
  78. package/dist-types/commands/DeleteDistributionCommand.d.ts +6 -0
  79. package/dist-types/commands/DeleteDomainCommand.d.ts +6 -0
  80. package/dist-types/commands/DeleteDomainEntryCommand.d.ts +6 -0
  81. package/dist-types/commands/DeleteInstanceCommand.d.ts +6 -0
  82. package/dist-types/commands/DeleteInstanceSnapshotCommand.d.ts +6 -0
  83. package/dist-types/commands/DeleteKeyPairCommand.d.ts +6 -0
  84. package/dist-types/commands/DeleteKnownHostKeysCommand.d.ts +6 -0
  85. package/dist-types/commands/DeleteLoadBalancerCommand.d.ts +6 -0
  86. package/dist-types/commands/DeleteLoadBalancerTlsCertificateCommand.d.ts +6 -0
  87. package/dist-types/commands/DeleteRelationalDatabaseCommand.d.ts +6 -0
  88. package/dist-types/commands/DeleteRelationalDatabaseSnapshotCommand.d.ts +6 -0
  89. package/dist-types/commands/DetachCertificateFromDistributionCommand.d.ts +6 -0
  90. package/dist-types/commands/DetachDiskCommand.d.ts +6 -0
  91. package/dist-types/commands/DetachInstancesFromLoadBalancerCommand.d.ts +6 -0
  92. package/dist-types/commands/DetachStaticIpCommand.d.ts +6 -0
  93. package/dist-types/commands/DisableAddOnCommand.d.ts +6 -0
  94. package/dist-types/commands/DownloadDefaultKeyPairCommand.d.ts +6 -0
  95. package/dist-types/commands/EnableAddOnCommand.d.ts +6 -0
  96. package/dist-types/commands/ExportSnapshotCommand.d.ts +6 -0
  97. package/dist-types/commands/GetActiveNamesCommand.d.ts +6 -0
  98. package/dist-types/commands/GetAlarmsCommand.d.ts +6 -0
  99. package/dist-types/commands/GetAutoSnapshotsCommand.d.ts +6 -0
  100. package/dist-types/commands/GetBlueprintsCommand.d.ts +6 -0
  101. package/dist-types/commands/GetBucketAccessKeysCommand.d.ts +6 -0
  102. package/dist-types/commands/GetBucketBundlesCommand.d.ts +6 -0
  103. package/dist-types/commands/GetBucketMetricDataCommand.d.ts +6 -0
  104. package/dist-types/commands/GetBucketsCommand.d.ts +6 -0
  105. package/dist-types/commands/GetBundlesCommand.d.ts +6 -0
  106. package/dist-types/commands/GetCertificatesCommand.d.ts +6 -0
  107. package/dist-types/commands/GetCloudFormationStackRecordsCommand.d.ts +6 -0
  108. package/dist-types/commands/GetContactMethodsCommand.d.ts +6 -0
  109. package/dist-types/commands/GetContainerAPIMetadataCommand.d.ts +6 -0
  110. package/dist-types/commands/GetContainerImagesCommand.d.ts +6 -0
  111. package/dist-types/commands/GetContainerLogCommand.d.ts +6 -0
  112. package/dist-types/commands/GetContainerServiceDeploymentsCommand.d.ts +6 -0
  113. package/dist-types/commands/GetContainerServiceMetricDataCommand.d.ts +6 -0
  114. package/dist-types/commands/GetContainerServicePowersCommand.d.ts +6 -0
  115. package/dist-types/commands/GetContainerServicesCommand.d.ts +6 -0
  116. package/dist-types/commands/GetCostEstimateCommand.d.ts +43 -0
  117. package/dist-types/commands/GetDiskCommand.d.ts +7 -1
  118. package/dist-types/commands/GetDiskSnapshotCommand.d.ts +7 -1
  119. package/dist-types/commands/GetDiskSnapshotsCommand.d.ts +7 -1
  120. package/dist-types/commands/GetDisksCommand.d.ts +7 -1
  121. package/dist-types/commands/GetDistributionBundlesCommand.d.ts +7 -1
  122. package/dist-types/commands/GetDistributionLatestCacheResetCommand.d.ts +7 -1
  123. package/dist-types/commands/GetDistributionMetricDataCommand.d.ts +6 -0
  124. package/dist-types/commands/GetDistributionsCommand.d.ts +6 -0
  125. package/dist-types/commands/GetDomainCommand.d.ts +6 -0
  126. package/dist-types/commands/GetDomainsCommand.d.ts +6 -0
  127. package/dist-types/commands/GetExportSnapshotRecordsCommand.d.ts +6 -0
  128. package/dist-types/commands/GetInstanceAccessDetailsCommand.d.ts +6 -0
  129. package/dist-types/commands/GetInstanceCommand.d.ts +6 -0
  130. package/dist-types/commands/GetInstanceMetricDataCommand.d.ts +6 -0
  131. package/dist-types/commands/GetInstancePortStatesCommand.d.ts +6 -0
  132. package/dist-types/commands/GetInstanceSnapshotCommand.d.ts +6 -0
  133. package/dist-types/commands/GetInstanceSnapshotsCommand.d.ts +6 -0
  134. package/dist-types/commands/GetInstanceStateCommand.d.ts +6 -0
  135. package/dist-types/commands/GetInstancesCommand.d.ts +6 -0
  136. package/dist-types/commands/GetKeyPairCommand.d.ts +6 -0
  137. package/dist-types/commands/GetKeyPairsCommand.d.ts +6 -0
  138. package/dist-types/commands/GetLoadBalancerCommand.d.ts +6 -0
  139. package/dist-types/commands/GetLoadBalancerMetricDataCommand.d.ts +6 -0
  140. package/dist-types/commands/GetLoadBalancerTlsCertificatesCommand.d.ts +6 -0
  141. package/dist-types/commands/GetLoadBalancerTlsPoliciesCommand.d.ts +6 -0
  142. package/dist-types/commands/GetLoadBalancersCommand.d.ts +6 -0
  143. package/dist-types/commands/GetOperationCommand.d.ts +6 -0
  144. package/dist-types/commands/GetOperationsCommand.d.ts +6 -0
  145. package/dist-types/commands/GetOperationsForResourceCommand.d.ts +6 -0
  146. package/dist-types/commands/GetRegionsCommand.d.ts +6 -0
  147. package/dist-types/commands/GetRelationalDatabaseBlueprintsCommand.d.ts +6 -0
  148. package/dist-types/commands/GetRelationalDatabaseBundlesCommand.d.ts +6 -0
  149. package/dist-types/commands/GetRelationalDatabaseCommand.d.ts +6 -0
  150. package/dist-types/commands/GetRelationalDatabaseEventsCommand.d.ts +6 -0
  151. package/dist-types/commands/GetRelationalDatabaseLogEventsCommand.d.ts +6 -0
  152. package/dist-types/commands/GetRelationalDatabaseLogStreamsCommand.d.ts +6 -0
  153. package/dist-types/commands/GetRelationalDatabaseMasterUserPasswordCommand.d.ts +6 -0
  154. package/dist-types/commands/GetRelationalDatabaseMetricDataCommand.d.ts +6 -0
  155. package/dist-types/commands/GetRelationalDatabaseParametersCommand.d.ts +6 -0
  156. package/dist-types/commands/GetRelationalDatabaseSnapshotCommand.d.ts +6 -0
  157. package/dist-types/commands/GetRelationalDatabaseSnapshotsCommand.d.ts +6 -0
  158. package/dist-types/commands/GetRelationalDatabasesCommand.d.ts +6 -0
  159. package/dist-types/commands/GetStaticIpCommand.d.ts +6 -0
  160. package/dist-types/commands/GetStaticIpsCommand.d.ts +6 -0
  161. package/dist-types/commands/ImportKeyPairCommand.d.ts +6 -0
  162. package/dist-types/commands/IsVpcPeeredCommand.d.ts +6 -0
  163. package/dist-types/commands/OpenInstancePublicPortsCommand.d.ts +6 -0
  164. package/dist-types/commands/PeerVpcCommand.d.ts +6 -0
  165. package/dist-types/commands/PutAlarmCommand.d.ts +6 -0
  166. package/dist-types/commands/PutInstancePublicPortsCommand.d.ts +6 -0
  167. package/dist-types/commands/RebootInstanceCommand.d.ts +6 -0
  168. package/dist-types/commands/RebootRelationalDatabaseCommand.d.ts +6 -0
  169. package/dist-types/commands/RegisterContainerImageCommand.d.ts +6 -0
  170. package/dist-types/commands/ReleaseStaticIpCommand.d.ts +6 -0
  171. package/dist-types/commands/ResetDistributionCacheCommand.d.ts +6 -0
  172. package/dist-types/commands/SendContactMethodVerificationCommand.d.ts +6 -0
  173. package/dist-types/commands/SetIpAddressTypeCommand.d.ts +6 -0
  174. package/dist-types/commands/SetResourceAccessForBucketCommand.d.ts +6 -0
  175. package/dist-types/commands/StartGUISessionCommand.d.ts +44 -0
  176. package/dist-types/commands/StartInstanceCommand.d.ts +6 -0
  177. package/dist-types/commands/StartRelationalDatabaseCommand.d.ts +6 -0
  178. package/dist-types/commands/StopGUISessionCommand.d.ts +44 -0
  179. package/dist-types/commands/StopInstanceCommand.d.ts +6 -0
  180. package/dist-types/commands/StopRelationalDatabaseCommand.d.ts +6 -0
  181. package/dist-types/commands/TagResourceCommand.d.ts +6 -0
  182. package/dist-types/commands/TestAlarmCommand.d.ts +6 -0
  183. package/dist-types/commands/UnpeerVpcCommand.d.ts +6 -0
  184. package/dist-types/commands/UntagResourceCommand.d.ts +6 -0
  185. package/dist-types/commands/UpdateBucketBundleCommand.d.ts +6 -0
  186. package/dist-types/commands/UpdateBucketCommand.d.ts +6 -0
  187. package/dist-types/commands/UpdateContainerServiceCommand.d.ts +6 -0
  188. package/dist-types/commands/UpdateDistributionBundleCommand.d.ts +6 -0
  189. package/dist-types/commands/UpdateDistributionCommand.d.ts +6 -0
  190. package/dist-types/commands/UpdateDomainEntryCommand.d.ts +6 -0
  191. package/dist-types/commands/UpdateInstanceMetadataOptionsCommand.d.ts +6 -0
  192. package/dist-types/commands/UpdateLoadBalancerAttributeCommand.d.ts +6 -0
  193. package/dist-types/commands/UpdateRelationalDatabaseCommand.d.ts +6 -0
  194. package/dist-types/commands/UpdateRelationalDatabaseParametersCommand.d.ts +6 -0
  195. package/dist-types/commands/index.d.ts +4 -0
  196. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  197. package/dist-types/models/models_0.d.ts +244 -147
  198. package/dist-types/models/models_1.d.ts +268 -1
  199. package/dist-types/protocols/Aws_json1_1.d.ts +12 -0
  200. package/dist-types/ts3.4/Lightsail.d.ts +68 -0
  201. package/dist-types/ts3.4/LightsailClient.d.ts +24 -0
  202. package/dist-types/ts3.4/commands/CreateGUISessionAccessDetailsCommand.d.ts +41 -0
  203. package/dist-types/ts3.4/commands/GetCostEstimateCommand.d.ts +37 -0
  204. package/dist-types/ts3.4/commands/GetDiskCommand.d.ts +1 -1
  205. package/dist-types/ts3.4/commands/GetDiskSnapshotCommand.d.ts +1 -1
  206. package/dist-types/ts3.4/commands/GetDiskSnapshotsCommand.d.ts +1 -1
  207. package/dist-types/ts3.4/commands/GetDisksCommand.d.ts +1 -1
  208. package/dist-types/ts3.4/commands/GetDistributionBundlesCommand.d.ts +1 -1
  209. package/dist-types/ts3.4/commands/GetDistributionLatestCacheResetCommand.d.ts +1 -1
  210. package/dist-types/ts3.4/commands/StartGUISessionCommand.d.ts +37 -0
  211. package/dist-types/ts3.4/commands/StopGUISessionCommand.d.ts +37 -0
  212. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  213. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  214. package/dist-types/ts3.4/models/models_0.d.ts +92 -73
  215. package/dist-types/ts3.4/models/models_1.d.ts +124 -0
  216. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +48 -0
  217. package/package.json +17 -17
@@ -200,6 +200,15 @@ export const serializeAws_json1_1CreateDomainEntryCommand = async (input, contex
200
200
  body = JSON.stringify(serializeAws_json1_1CreateDomainEntryRequest(input, context));
201
201
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
202
202
  };
203
+ export const serializeAws_json1_1CreateGUISessionAccessDetailsCommand = async (input, context) => {
204
+ const headers = {
205
+ "content-type": "application/x-amz-json-1.1",
206
+ "x-amz-target": "Lightsail_20161128.CreateGUISessionAccessDetails",
207
+ };
208
+ let body;
209
+ body = JSON.stringify(serializeAws_json1_1CreateGUISessionAccessDetailsRequest(input, context));
210
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
211
+ };
203
212
  export const serializeAws_json1_1CreateInstancesCommand = async (input, context) => {
204
213
  const headers = {
205
214
  "content-type": "application/x-amz-json-1.1",
@@ -713,6 +722,15 @@ export const serializeAws_json1_1GetContainerServicesCommand = async (input, con
713
722
  body = JSON.stringify(serializeAws_json1_1GetContainerServicesRequest(input, context));
714
723
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
715
724
  };
725
+ export const serializeAws_json1_1GetCostEstimateCommand = async (input, context) => {
726
+ const headers = {
727
+ "content-type": "application/x-amz-json-1.1",
728
+ "x-amz-target": "Lightsail_20161128.GetCostEstimate",
729
+ };
730
+ let body;
731
+ body = JSON.stringify(serializeAws_json1_1GetCostEstimateRequest(input, context));
732
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
733
+ };
716
734
  export const serializeAws_json1_1GetDiskCommand = async (input, context) => {
717
735
  const headers = {
718
736
  "content-type": "application/x-amz-json-1.1",
@@ -1235,6 +1253,15 @@ export const serializeAws_json1_1SetResourceAccessForBucketCommand = async (inpu
1235
1253
  body = JSON.stringify(serializeAws_json1_1SetResourceAccessForBucketRequest(input, context));
1236
1254
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1237
1255
  };
1256
+ export const serializeAws_json1_1StartGUISessionCommand = async (input, context) => {
1257
+ const headers = {
1258
+ "content-type": "application/x-amz-json-1.1",
1259
+ "x-amz-target": "Lightsail_20161128.StartGUISession",
1260
+ };
1261
+ let body;
1262
+ body = JSON.stringify(serializeAws_json1_1StartGUISessionRequest(input, context));
1263
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
1264
+ };
1238
1265
  export const serializeAws_json1_1StartInstanceCommand = async (input, context) => {
1239
1266
  const headers = {
1240
1267
  "content-type": "application/x-amz-json-1.1",
@@ -1253,6 +1280,15 @@ export const serializeAws_json1_1StartRelationalDatabaseCommand = async (input,
1253
1280
  body = JSON.stringify(serializeAws_json1_1StartRelationalDatabaseRequest(input, context));
1254
1281
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1255
1282
  };
1283
+ export const serializeAws_json1_1StopGUISessionCommand = async (input, context) => {
1284
+ const headers = {
1285
+ "content-type": "application/x-amz-json-1.1",
1286
+ "x-amz-target": "Lightsail_20161128.StopGUISession",
1287
+ };
1288
+ let body;
1289
+ body = JSON.stringify(serializeAws_json1_1StopGUISessionRequest(input, context));
1290
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
1291
+ };
1256
1292
  export const serializeAws_json1_1StopInstanceCommand = async (input, context) => {
1257
1293
  const headers = {
1258
1294
  "content-type": "application/x-amz-json-1.1",
@@ -2471,6 +2507,51 @@ const deserializeAws_json1_1CreateDomainEntryCommandError = async (output, conte
2471
2507
  });
2472
2508
  }
2473
2509
  };
2510
+ export const deserializeAws_json1_1CreateGUISessionAccessDetailsCommand = async (output, context) => {
2511
+ if (output.statusCode >= 300) {
2512
+ return deserializeAws_json1_1CreateGUISessionAccessDetailsCommandError(output, context);
2513
+ }
2514
+ const data = await parseBody(output.body, context);
2515
+ let contents = {};
2516
+ contents = deserializeAws_json1_1CreateGUISessionAccessDetailsResult(data, context);
2517
+ const response = {
2518
+ $metadata: deserializeMetadata(output),
2519
+ ...contents,
2520
+ };
2521
+ return Promise.resolve(response);
2522
+ };
2523
+ const deserializeAws_json1_1CreateGUISessionAccessDetailsCommandError = async (output, context) => {
2524
+ const parsedOutput = {
2525
+ ...output,
2526
+ body: await parseErrorBody(output.body, context),
2527
+ };
2528
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2529
+ switch (errorCode) {
2530
+ case "AccessDeniedException":
2531
+ case "com.amazonaws.lightsail#AccessDeniedException":
2532
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
2533
+ case "InvalidInputException":
2534
+ case "com.amazonaws.lightsail#InvalidInputException":
2535
+ throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
2536
+ case "NotFoundException":
2537
+ case "com.amazonaws.lightsail#NotFoundException":
2538
+ throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
2539
+ case "ServiceException":
2540
+ case "com.amazonaws.lightsail#ServiceException":
2541
+ throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
2542
+ case "UnauthenticatedException":
2543
+ case "com.amazonaws.lightsail#UnauthenticatedException":
2544
+ throw await deserializeAws_json1_1UnauthenticatedExceptionResponse(parsedOutput, context);
2545
+ default:
2546
+ const parsedBody = parsedOutput.body;
2547
+ throwDefaultError({
2548
+ output,
2549
+ parsedBody,
2550
+ exceptionCtor: __BaseException,
2551
+ errorCode,
2552
+ });
2553
+ }
2554
+ };
2474
2555
  export const deserializeAws_json1_1CreateInstancesCommand = async (output, context) => {
2475
2556
  if (output.statusCode >= 300) {
2476
2557
  return deserializeAws_json1_1CreateInstancesCommandError(output, context);
@@ -5237,6 +5318,51 @@ const deserializeAws_json1_1GetContainerServicesCommandError = async (output, co
5237
5318
  });
5238
5319
  }
5239
5320
  };
5321
+ export const deserializeAws_json1_1GetCostEstimateCommand = async (output, context) => {
5322
+ if (output.statusCode >= 300) {
5323
+ return deserializeAws_json1_1GetCostEstimateCommandError(output, context);
5324
+ }
5325
+ const data = await parseBody(output.body, context);
5326
+ let contents = {};
5327
+ contents = deserializeAws_json1_1GetCostEstimateResult(data, context);
5328
+ const response = {
5329
+ $metadata: deserializeMetadata(output),
5330
+ ...contents,
5331
+ };
5332
+ return Promise.resolve(response);
5333
+ };
5334
+ const deserializeAws_json1_1GetCostEstimateCommandError = async (output, context) => {
5335
+ const parsedOutput = {
5336
+ ...output,
5337
+ body: await parseErrorBody(output.body, context),
5338
+ };
5339
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5340
+ switch (errorCode) {
5341
+ case "AccessDeniedException":
5342
+ case "com.amazonaws.lightsail#AccessDeniedException":
5343
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
5344
+ case "InvalidInputException":
5345
+ case "com.amazonaws.lightsail#InvalidInputException":
5346
+ throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
5347
+ case "NotFoundException":
5348
+ case "com.amazonaws.lightsail#NotFoundException":
5349
+ throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
5350
+ case "ServiceException":
5351
+ case "com.amazonaws.lightsail#ServiceException":
5352
+ throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
5353
+ case "UnauthenticatedException":
5354
+ case "com.amazonaws.lightsail#UnauthenticatedException":
5355
+ throw await deserializeAws_json1_1UnauthenticatedExceptionResponse(parsedOutput, context);
5356
+ default:
5357
+ const parsedBody = parsedOutput.body;
5358
+ throwDefaultError({
5359
+ output,
5360
+ parsedBody,
5361
+ exceptionCtor: __BaseException,
5362
+ errorCode,
5363
+ });
5364
+ }
5365
+ };
5240
5366
  export const deserializeAws_json1_1GetDiskCommand = async (output, context) => {
5241
5367
  if (output.statusCode >= 300) {
5242
5368
  return deserializeAws_json1_1GetDiskCommandError(output, context);
@@ -8156,6 +8282,51 @@ const deserializeAws_json1_1SetResourceAccessForBucketCommandError = async (outp
8156
8282
  });
8157
8283
  }
8158
8284
  };
8285
+ export const deserializeAws_json1_1StartGUISessionCommand = async (output, context) => {
8286
+ if (output.statusCode >= 300) {
8287
+ return deserializeAws_json1_1StartGUISessionCommandError(output, context);
8288
+ }
8289
+ const data = await parseBody(output.body, context);
8290
+ let contents = {};
8291
+ contents = deserializeAws_json1_1StartGUISessionResult(data, context);
8292
+ const response = {
8293
+ $metadata: deserializeMetadata(output),
8294
+ ...contents,
8295
+ };
8296
+ return Promise.resolve(response);
8297
+ };
8298
+ const deserializeAws_json1_1StartGUISessionCommandError = async (output, context) => {
8299
+ const parsedOutput = {
8300
+ ...output,
8301
+ body: await parseErrorBody(output.body, context),
8302
+ };
8303
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
8304
+ switch (errorCode) {
8305
+ case "AccessDeniedException":
8306
+ case "com.amazonaws.lightsail#AccessDeniedException":
8307
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
8308
+ case "InvalidInputException":
8309
+ case "com.amazonaws.lightsail#InvalidInputException":
8310
+ throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
8311
+ case "NotFoundException":
8312
+ case "com.amazonaws.lightsail#NotFoundException":
8313
+ throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
8314
+ case "ServiceException":
8315
+ case "com.amazonaws.lightsail#ServiceException":
8316
+ throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
8317
+ case "UnauthenticatedException":
8318
+ case "com.amazonaws.lightsail#UnauthenticatedException":
8319
+ throw await deserializeAws_json1_1UnauthenticatedExceptionResponse(parsedOutput, context);
8320
+ default:
8321
+ const parsedBody = parsedOutput.body;
8322
+ throwDefaultError({
8323
+ output,
8324
+ parsedBody,
8325
+ exceptionCtor: __BaseException,
8326
+ errorCode,
8327
+ });
8328
+ }
8329
+ };
8159
8330
  export const deserializeAws_json1_1StartInstanceCommand = async (output, context) => {
8160
8331
  if (output.statusCode >= 300) {
8161
8332
  return deserializeAws_json1_1StartInstanceCommandError(output, context);
@@ -8258,6 +8429,51 @@ const deserializeAws_json1_1StartRelationalDatabaseCommandError = async (output,
8258
8429
  });
8259
8430
  }
8260
8431
  };
8432
+ export const deserializeAws_json1_1StopGUISessionCommand = async (output, context) => {
8433
+ if (output.statusCode >= 300) {
8434
+ return deserializeAws_json1_1StopGUISessionCommandError(output, context);
8435
+ }
8436
+ const data = await parseBody(output.body, context);
8437
+ let contents = {};
8438
+ contents = deserializeAws_json1_1StopGUISessionResult(data, context);
8439
+ const response = {
8440
+ $metadata: deserializeMetadata(output),
8441
+ ...contents,
8442
+ };
8443
+ return Promise.resolve(response);
8444
+ };
8445
+ const deserializeAws_json1_1StopGUISessionCommandError = async (output, context) => {
8446
+ const parsedOutput = {
8447
+ ...output,
8448
+ body: await parseErrorBody(output.body, context),
8449
+ };
8450
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
8451
+ switch (errorCode) {
8452
+ case "AccessDeniedException":
8453
+ case "com.amazonaws.lightsail#AccessDeniedException":
8454
+ throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
8455
+ case "InvalidInputException":
8456
+ case "com.amazonaws.lightsail#InvalidInputException":
8457
+ throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
8458
+ case "NotFoundException":
8459
+ case "com.amazonaws.lightsail#NotFoundException":
8460
+ throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
8461
+ case "ServiceException":
8462
+ case "com.amazonaws.lightsail#ServiceException":
8463
+ throw await deserializeAws_json1_1ServiceExceptionResponse(parsedOutput, context);
8464
+ case "UnauthenticatedException":
8465
+ case "com.amazonaws.lightsail#UnauthenticatedException":
8466
+ throw await deserializeAws_json1_1UnauthenticatedExceptionResponse(parsedOutput, context);
8467
+ default:
8468
+ const parsedBody = parsedOutput.body;
8469
+ throwDefaultError({
8470
+ output,
8471
+ parsedBody,
8472
+ exceptionCtor: __BaseException,
8473
+ errorCode,
8474
+ });
8475
+ }
8476
+ };
8261
8477
  export const deserializeAws_json1_1StopInstanceCommand = async (output, context) => {
8262
8478
  if (output.statusCode >= 300) {
8263
8479
  return deserializeAws_json1_1StopInstanceCommandError(output, context);
@@ -9122,6 +9338,9 @@ const serializeAws_json1_1AddOnRequest = (input, context) => {
9122
9338
  ...(input.autoSnapshotAddOnRequest != null && {
9123
9339
  autoSnapshotAddOnRequest: serializeAws_json1_1AutoSnapshotAddOnRequest(input.autoSnapshotAddOnRequest, context),
9124
9340
  }),
9341
+ ...(input.stopInstanceOnIdleRequest != null && {
9342
+ stopInstanceOnIdleRequest: serializeAws_json1_1StopInstanceOnIdleRequest(input.stopInstanceOnIdleRequest, context),
9343
+ }),
9125
9344
  };
9126
9345
  };
9127
9346
  const serializeAws_json1_1AddOnRequestList = (input, context) => {
@@ -9144,6 +9363,7 @@ const serializeAws_json1_1AttachCertificateToDistributionRequest = (input, conte
9144
9363
  };
9145
9364
  const serializeAws_json1_1AttachDiskRequest = (input, context) => {
9146
9365
  return {
9366
+ ...(input.autoMounting != null && { autoMounting: input.autoMounting }),
9147
9367
  ...(input.diskName != null && { diskName: input.diskName }),
9148
9368
  ...(input.diskPath != null && { diskPath: input.diskPath }),
9149
9369
  ...(input.instanceName != null && { instanceName: input.instanceName }),
@@ -9447,6 +9667,11 @@ const serializeAws_json1_1CreateDomainRequest = (input, context) => {
9447
9667
  ...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
9448
9668
  };
9449
9669
  };
9670
+ const serializeAws_json1_1CreateGUISessionAccessDetailsRequest = (input, context) => {
9671
+ return {
9672
+ ...(input.resourceName != null && { resourceName: input.resourceName }),
9673
+ };
9674
+ };
9450
9675
  const serializeAws_json1_1CreateInstancesFromSnapshotRequest = (input, context) => {
9451
9676
  return {
9452
9677
  ...(input.addOns != null && { addOns: serializeAws_json1_1AddOnRequestList(input.addOns, context) }),
@@ -9804,6 +10029,7 @@ const serializeAws_json1_1GetAutoSnapshotsRequest = (input, context) => {
9804
10029
  };
9805
10030
  const serializeAws_json1_1GetBlueprintsRequest = (input, context) => {
9806
10031
  return {
10032
+ ...(input.appCategory != null && { appCategory: input.appCategory }),
9807
10033
  ...(input.includeInactive != null && { includeInactive: input.includeInactive }),
9808
10034
  ...(input.pageToken != null && { pageToken: input.pageToken }),
9809
10035
  };
@@ -9838,6 +10064,7 @@ const serializeAws_json1_1GetBucketsRequest = (input, context) => {
9838
10064
  };
9839
10065
  const serializeAws_json1_1GetBundlesRequest = (input, context) => {
9840
10066
  return {
10067
+ ...(input.appCategory != null && { appCategory: input.appCategory }),
9841
10068
  ...(input.includeInactive != null && { includeInactive: input.includeInactive }),
9842
10069
  ...(input.pageToken != null && { pageToken: input.pageToken }),
9843
10070
  };
@@ -9902,6 +10129,13 @@ const serializeAws_json1_1GetContainerServicesRequest = (input, context) => {
9902
10129
  ...(input.serviceName != null && { serviceName: input.serviceName }),
9903
10130
  };
9904
10131
  };
10132
+ const serializeAws_json1_1GetCostEstimateRequest = (input, context) => {
10133
+ return {
10134
+ ...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
10135
+ ...(input.resourceName != null && { resourceName: input.resourceName }),
10136
+ ...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
10137
+ };
10138
+ };
9905
10139
  const serializeAws_json1_1GetDiskRequest = (input, context) => {
9906
10140
  return {
9907
10141
  ...(input.diskName != null && { diskName: input.diskName }),
@@ -10380,6 +10614,11 @@ const serializeAws_json1_1SetResourceAccessForBucketRequest = (input, context) =
10380
10614
  ...(input.resourceName != null && { resourceName: input.resourceName }),
10381
10615
  };
10382
10616
  };
10617
+ const serializeAws_json1_1StartGUISessionRequest = (input, context) => {
10618
+ return {
10619
+ ...(input.resourceName != null && { resourceName: input.resourceName }),
10620
+ };
10621
+ };
10383
10622
  const serializeAws_json1_1StartInstanceRequest = (input, context) => {
10384
10623
  return {
10385
10624
  ...(input.instanceName != null && { instanceName: input.instanceName }),
@@ -10390,6 +10629,17 @@ const serializeAws_json1_1StartRelationalDatabaseRequest = (input, context) => {
10390
10629
  ...(input.relationalDatabaseName != null && { relationalDatabaseName: input.relationalDatabaseName }),
10391
10630
  };
10392
10631
  };
10632
+ const serializeAws_json1_1StopGUISessionRequest = (input, context) => {
10633
+ return {
10634
+ ...(input.resourceName != null && { resourceName: input.resourceName }),
10635
+ };
10636
+ };
10637
+ const serializeAws_json1_1StopInstanceOnIdleRequest = (input, context) => {
10638
+ return {
10639
+ ...(input.duration != null && { duration: input.duration }),
10640
+ ...(input.threshold != null && { threshold: input.threshold }),
10641
+ };
10642
+ };
10393
10643
  const serializeAws_json1_1StopInstanceRequest = (input, context) => {
10394
10644
  return {
10395
10645
  ...(input.force != null && { force: input.force }),
@@ -10634,10 +10884,12 @@ const deserializeAws_json1_1AccountSetupInProgressException = (output, context)
10634
10884
  };
10635
10885
  const deserializeAws_json1_1AddOn = (output, context) => {
10636
10886
  return {
10887
+ duration: __expectString(output.duration),
10637
10888
  name: __expectString(output.name),
10638
10889
  nextSnapshotTimeOfDay: __expectString(output.nextSnapshotTimeOfDay),
10639
10890
  snapshotTimeOfDay: __expectString(output.snapshotTimeOfDay),
10640
10891
  status: __expectString(output.status),
10892
+ threshold: __expectString(output.threshold),
10641
10893
  };
10642
10894
  };
10643
10895
  const deserializeAws_json1_1AddOnList = (output, context) => {
@@ -10697,6 +10949,17 @@ const deserializeAws_json1_1AllocateStaticIpResult = (output, context) => {
10697
10949
  operations: output.operations != null ? deserializeAws_json1_1OperationList(output.operations, context) : undefined,
10698
10950
  };
10699
10951
  };
10952
+ const deserializeAws_json1_1AppCategoryList = (output, context) => {
10953
+ const retVal = (output || [])
10954
+ .filter((e) => e != null)
10955
+ .map((entry) => {
10956
+ if (entry === null) {
10957
+ return null;
10958
+ }
10959
+ return __expectString(entry);
10960
+ });
10961
+ return retVal;
10962
+ };
10700
10963
  const deserializeAws_json1_1AttachCertificateToDistributionResult = (output, context) => {
10701
10964
  return {
10702
10965
  operation: output.operation != null ? deserializeAws_json1_1Operation(output.operation, context) : undefined,
@@ -10779,6 +11042,7 @@ const deserializeAws_json1_1AvailabilityZoneList = (output, context) => {
10779
11042
  };
10780
11043
  const deserializeAws_json1_1Blueprint = (output, context) => {
10781
11044
  return {
11045
+ appCategory: __expectString(output.appCategory),
10782
11046
  blueprintId: __expectString(output.blueprintId),
10783
11047
  description: __expectString(output.description),
10784
11048
  group: __expectString(output.group),
@@ -10886,6 +11150,9 @@ const deserializeAws_json1_1Bundle = (output, context) => {
10886
11150
  power: __expectInt32(output.power),
10887
11151
  price: __limitedParseFloat32(output.price),
10888
11152
  ramSizeInGb: __limitedParseFloat32(output.ramSizeInGb),
11153
+ supportedAppCategories: output.supportedAppCategories != null
11154
+ ? deserializeAws_json1_1AppCategoryList(output.supportedAppCategories, context)
11155
+ : undefined,
10889
11156
  supportedPlatforms: output.supportedPlatforms != null
10890
11157
  ? deserializeAws_json1_1InstancePlatformList(output.supportedPlatforms, context)
10891
11158
  : undefined,
@@ -11315,6 +11582,23 @@ const deserializeAws_json1_1CopySnapshotResult = (output, context) => {
11315
11582
  operations: output.operations != null ? deserializeAws_json1_1OperationList(output.operations, context) : undefined,
11316
11583
  };
11317
11584
  };
11585
+ const deserializeAws_json1_1CostEstimate = (output, context) => {
11586
+ return {
11587
+ resultsByTime: output.resultsByTime != null ? deserializeAws_json1_1EstimatesByTime(output.resultsByTime, context) : undefined,
11588
+ usageType: __expectString(output.usageType),
11589
+ };
11590
+ };
11591
+ const deserializeAws_json1_1CostEstimates = (output, context) => {
11592
+ const retVal = (output || [])
11593
+ .filter((e) => e != null)
11594
+ .map((entry) => {
11595
+ if (entry === null) {
11596
+ return null;
11597
+ }
11598
+ return deserializeAws_json1_1CostEstimate(entry, context);
11599
+ });
11600
+ return retVal;
11601
+ };
11318
11602
  const deserializeAws_json1_1CreateBucketAccessKeyResult = (output, context) => {
11319
11603
  return {
11320
11604
  accessKey: output.accessKey != null ? deserializeAws_json1_1AccessKey(output.accessKey, context) : undefined,
@@ -11397,6 +11681,15 @@ const deserializeAws_json1_1CreateDomainResult = (output, context) => {
11397
11681
  operation: output.operation != null ? deserializeAws_json1_1Operation(output.operation, context) : undefined,
11398
11682
  };
11399
11683
  };
11684
+ const deserializeAws_json1_1CreateGUISessionAccessDetailsResult = (output, context) => {
11685
+ return {
11686
+ failureReason: __expectString(output.failureReason),
11687
+ percentageComplete: __expectInt32(output.percentageComplete),
11688
+ resourceName: __expectString(output.resourceName),
11689
+ sessions: output.sessions != null ? deserializeAws_json1_1Sessions(output.sessions, context) : undefined,
11690
+ status: __expectString(output.status),
11691
+ };
11692
+ };
11400
11693
  const deserializeAws_json1_1CreateInstancesFromSnapshotResult = (output, context) => {
11401
11694
  return {
11402
11695
  operations: output.operations != null ? deserializeAws_json1_1OperationList(output.operations, context) : undefined,
@@ -11583,6 +11876,7 @@ const deserializeAws_json1_1Disk = (output, context) => {
11583
11876
  arn: __expectString(output.arn),
11584
11877
  attachedTo: __expectString(output.attachedTo),
11585
11878
  attachmentState: __expectString(output.attachmentState),
11879
+ autoMountStatus: __expectString(output.autoMountStatus),
11586
11880
  createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
11587
11881
  gbInUse: __expectInt32(output.gbInUse),
11588
11882
  iops: __expectInt32(output.iops),
@@ -11798,6 +12092,26 @@ const deserializeAws_json1_1Environment = (output, context) => {
11798
12092
  return acc;
11799
12093
  }, {});
11800
12094
  };
12095
+ const deserializeAws_json1_1EstimateByTime = (output, context) => {
12096
+ return {
12097
+ currency: __expectString(output.currency),
12098
+ pricingUnit: __expectString(output.pricingUnit),
12099
+ timePeriod: output.timePeriod != null ? deserializeAws_json1_1TimePeriod(output.timePeriod, context) : undefined,
12100
+ unit: __limitedParseDouble(output.unit),
12101
+ usageCost: __limitedParseDouble(output.usageCost),
12102
+ };
12103
+ };
12104
+ const deserializeAws_json1_1EstimatesByTime = (output, context) => {
12105
+ const retVal = (output || [])
12106
+ .filter((e) => e != null)
12107
+ .map((entry) => {
12108
+ if (entry === null) {
12109
+ return null;
12110
+ }
12111
+ return deserializeAws_json1_1EstimateByTime(entry, context);
12112
+ });
12113
+ return retVal;
12114
+ };
11801
12115
  const deserializeAws_json1_1ExportSnapshotRecord = (output, context) => {
11802
12116
  return {
11803
12117
  arn: __expectString(output.arn),
@@ -11966,6 +12280,13 @@ const deserializeAws_json1_1GetContainerServicePowersResult = (output, context)
11966
12280
  powers: output.powers != null ? deserializeAws_json1_1ContainerServicePowerList(output.powers, context) : undefined,
11967
12281
  };
11968
12282
  };
12283
+ const deserializeAws_json1_1GetCostEstimateResult = (output, context) => {
12284
+ return {
12285
+ resourcesBudgetEstimate: output.resourcesBudgetEstimate != null
12286
+ ? deserializeAws_json1_1ResourcesBudgetEstimate(output.resourcesBudgetEstimate, context)
12287
+ : undefined,
12288
+ };
12289
+ };
11969
12290
  const deserializeAws_json1_1GetDiskResult = (output, context) => {
11970
12291
  return {
11971
12292
  disk: output.disk != null ? deserializeAws_json1_1Disk(output.disk, context) : undefined,
@@ -13233,6 +13554,15 @@ const deserializeAws_json1_1ResetDistributionCacheResult = (output, context) =>
13233
13554
  status: __expectString(output.status),
13234
13555
  };
13235
13556
  };
13557
+ const deserializeAws_json1_1ResourceBudgetEstimate = (output, context) => {
13558
+ return {
13559
+ costEstimates: output.costEstimates != null ? deserializeAws_json1_1CostEstimates(output.costEstimates, context) : undefined,
13560
+ endTime: output.endTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime))) : undefined,
13561
+ resourceName: __expectString(output.resourceName),
13562
+ resourceType: __expectString(output.resourceType),
13563
+ startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
13564
+ };
13565
+ };
13236
13566
  const deserializeAws_json1_1ResourceLocation = (output, context) => {
13237
13567
  return {
13238
13568
  availabilityZone: __expectString(output.availabilityZone),
@@ -13252,6 +13582,17 @@ const deserializeAws_json1_1ResourceRecord = (output, context) => {
13252
13582
  value: __expectString(output.value),
13253
13583
  };
13254
13584
  };
13585
+ const deserializeAws_json1_1ResourcesBudgetEstimate = (output, context) => {
13586
+ const retVal = (output || [])
13587
+ .filter((e) => e != null)
13588
+ .map((entry) => {
13589
+ if (entry === null) {
13590
+ return null;
13591
+ }
13592
+ return deserializeAws_json1_1ResourceBudgetEstimate(entry, context);
13593
+ });
13594
+ return retVal;
13595
+ };
13255
13596
  const deserializeAws_json1_1SendContactMethodVerificationResult = (output, context) => {
13256
13597
  return {
13257
13598
  operations: output.operations != null ? deserializeAws_json1_1OperationList(output.operations, context) : undefined,
@@ -13265,6 +13606,24 @@ const deserializeAws_json1_1ServiceException = (output, context) => {
13265
13606
  tip: __expectString(output.tip),
13266
13607
  };
13267
13608
  };
13609
+ const deserializeAws_json1_1Session = (output, context) => {
13610
+ return {
13611
+ isPrimary: __expectBoolean(output.isPrimary),
13612
+ name: __expectString(output.name),
13613
+ url: __expectString(output.url),
13614
+ };
13615
+ };
13616
+ const deserializeAws_json1_1Sessions = (output, context) => {
13617
+ const retVal = (output || [])
13618
+ .filter((e) => e != null)
13619
+ .map((entry) => {
13620
+ if (entry === null) {
13621
+ return null;
13622
+ }
13623
+ return deserializeAws_json1_1Session(entry, context);
13624
+ });
13625
+ return retVal;
13626
+ };
13268
13627
  const deserializeAws_json1_1SetIpAddressTypeResult = (output, context) => {
13269
13628
  return {
13270
13629
  operations: output.operations != null ? deserializeAws_json1_1OperationList(output.operations, context) : undefined,
@@ -13275,6 +13634,11 @@ const deserializeAws_json1_1SetResourceAccessForBucketResult = (output, context)
13275
13634
  operations: output.operations != null ? deserializeAws_json1_1OperationList(output.operations, context) : undefined,
13276
13635
  };
13277
13636
  };
13637
+ const deserializeAws_json1_1StartGUISessionResult = (output, context) => {
13638
+ return {
13639
+ operations: output.operations != null ? deserializeAws_json1_1OperationList(output.operations, context) : undefined,
13640
+ };
13641
+ };
13278
13642
  const deserializeAws_json1_1StartInstanceResult = (output, context) => {
13279
13643
  return {
13280
13644
  operations: output.operations != null ? deserializeAws_json1_1OperationList(output.operations, context) : undefined,
@@ -13309,6 +13673,11 @@ const deserializeAws_json1_1StaticIpList = (output, context) => {
13309
13673
  });
13310
13674
  return retVal;
13311
13675
  };
13676
+ const deserializeAws_json1_1StopGUISessionResult = (output, context) => {
13677
+ return {
13678
+ operations: output.operations != null ? deserializeAws_json1_1OperationList(output.operations, context) : undefined,
13679
+ };
13680
+ };
13312
13681
  const deserializeAws_json1_1StopInstanceResult = (output, context) => {
13313
13682
  return {
13314
13683
  operations: output.operations != null ? deserializeAws_json1_1OperationList(output.operations, context) : undefined,
@@ -13368,6 +13737,12 @@ const deserializeAws_json1_1TestAlarmResult = (output, context) => {
13368
13737
  operations: output.operations != null ? deserializeAws_json1_1OperationList(output.operations, context) : undefined,
13369
13738
  };
13370
13739
  };
13740
+ const deserializeAws_json1_1TimePeriod = (output, context) => {
13741
+ return {
13742
+ end: output.end != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.end))) : undefined,
13743
+ start: output.start != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.start))) : undefined,
13744
+ };
13745
+ };
13371
13746
  const deserializeAws_json1_1UnauthenticatedException = (output, context) => {
13372
13747
  return {
13373
13748
  code: __expectString(output.code),
@@ -21,6 +21,7 @@ import { CreateDiskSnapshotCommandInput, CreateDiskSnapshotCommandOutput } from
21
21
  import { CreateDistributionCommandInput, CreateDistributionCommandOutput } from "./commands/CreateDistributionCommand";
22
22
  import { CreateDomainCommandInput, CreateDomainCommandOutput } from "./commands/CreateDomainCommand";
23
23
  import { CreateDomainEntryCommandInput, CreateDomainEntryCommandOutput } from "./commands/CreateDomainEntryCommand";
24
+ import { CreateGUISessionAccessDetailsCommandInput, CreateGUISessionAccessDetailsCommandOutput } from "./commands/CreateGUISessionAccessDetailsCommand";
24
25
  import { CreateInstancesCommandInput, CreateInstancesCommandOutput } from "./commands/CreateInstancesCommand";
25
26
  import { CreateInstancesFromSnapshotCommandInput, CreateInstancesFromSnapshotCommandOutput } from "./commands/CreateInstancesFromSnapshotCommand";
26
27
  import { CreateInstanceSnapshotCommandInput, CreateInstanceSnapshotCommandOutput } from "./commands/CreateInstanceSnapshotCommand";
@@ -78,6 +79,7 @@ import { GetContainerServiceDeploymentsCommandInput, GetContainerServiceDeployme
78
79
  import { GetContainerServiceMetricDataCommandInput, GetContainerServiceMetricDataCommandOutput } from "./commands/GetContainerServiceMetricDataCommand";
79
80
  import { GetContainerServicePowersCommandInput, GetContainerServicePowersCommandOutput } from "./commands/GetContainerServicePowersCommand";
80
81
  import { GetContainerServicesCommandInput, GetContainerServicesCommandOutput } from "./commands/GetContainerServicesCommand";
82
+ import { GetCostEstimateCommandInput, GetCostEstimateCommandOutput } from "./commands/GetCostEstimateCommand";
81
83
  import { GetDiskCommandInput, GetDiskCommandOutput } from "./commands/GetDiskCommand";
82
84
  import { GetDisksCommandInput, GetDisksCommandOutput } from "./commands/GetDisksCommand";
83
85
  import { GetDiskSnapshotCommandInput, GetDiskSnapshotCommandOutput } from "./commands/GetDiskSnapshotCommand";
@@ -136,8 +138,10 @@ import { ResetDistributionCacheCommandInput, ResetDistributionCacheCommandOutput
136
138
  import { SendContactMethodVerificationCommandInput, SendContactMethodVerificationCommandOutput } from "./commands/SendContactMethodVerificationCommand";
137
139
  import { SetIpAddressTypeCommandInput, SetIpAddressTypeCommandOutput } from "./commands/SetIpAddressTypeCommand";
138
140
  import { SetResourceAccessForBucketCommandInput, SetResourceAccessForBucketCommandOutput } from "./commands/SetResourceAccessForBucketCommand";
141
+ import { StartGUISessionCommandInput, StartGUISessionCommandOutput } from "./commands/StartGUISessionCommand";
139
142
  import { StartInstanceCommandInput, StartInstanceCommandOutput } from "./commands/StartInstanceCommand";
140
143
  import { StartRelationalDatabaseCommandInput, StartRelationalDatabaseCommandOutput } from "./commands/StartRelationalDatabaseCommand";
144
+ import { StopGUISessionCommandInput, StopGUISessionCommandOutput } from "./commands/StopGUISessionCommand";
141
145
  import { StopInstanceCommandInput, StopInstanceCommandOutput } from "./commands/StopInstanceCommand";
142
146
  import { StopRelationalDatabaseCommandInput, StopRelationalDatabaseCommandOutput } from "./commands/StopRelationalDatabaseCommand";
143
147
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
@@ -450,6 +454,14 @@ export declare class Lightsail extends LightsailClient {
450
454
  createDomainEntry(args: CreateDomainEntryCommandInput, options?: __HttpHandlerOptions): Promise<CreateDomainEntryCommandOutput>;
451
455
  createDomainEntry(args: CreateDomainEntryCommandInput, cb: (err: any, data?: CreateDomainEntryCommandOutput) => void): void;
452
456
  createDomainEntry(args: CreateDomainEntryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDomainEntryCommandOutput) => void): void;
457
+ /**
458
+ * <p>Creates two URLs that are used to access a virtual computer’s graphical user interface (GUI)
459
+ * session. The primary URL initiates a web-based NICE DCV session to the virtual computer's application. The secondary URL initiates a web-based NICE DCV session to the virtual computer's operating session. </p>
460
+ * <p>Use <code>StartGUISession</code> to open the session.</p>
461
+ */
462
+ createGUISessionAccessDetails(args: CreateGUISessionAccessDetailsCommandInput, options?: __HttpHandlerOptions): Promise<CreateGUISessionAccessDetailsCommandOutput>;
463
+ createGUISessionAccessDetails(args: CreateGUISessionAccessDetailsCommandInput, cb: (err: any, data?: CreateGUISessionAccessDetailsCommandOutput) => void): void;
464
+ createGUISessionAccessDetails(args: CreateGUISessionAccessDetailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateGUISessionAccessDetailsCommandOutput) => void): void;
453
465
  /**
454
466
  * <p>Creates one or more Amazon Lightsail instances.</p>
455
467
  * <p>The <code>create instances</code> operation supports tag-based access control via request
@@ -1023,6 +1035,12 @@ export declare class Lightsail extends LightsailClient {
1023
1035
  getContainerServices(args: GetContainerServicesCommandInput, options?: __HttpHandlerOptions): Promise<GetContainerServicesCommandOutput>;
1024
1036
  getContainerServices(args: GetContainerServicesCommandInput, cb: (err: any, data?: GetContainerServicesCommandOutput) => void): void;
1025
1037
  getContainerServices(args: GetContainerServicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetContainerServicesCommandOutput) => void): void;
1038
+ /**
1039
+ * <p>Retrieves information about the cost estimate for a specified resource. A cost estimate will not generate for a resource that has been deleted.</p>
1040
+ */
1041
+ getCostEstimate(args: GetCostEstimateCommandInput, options?: __HttpHandlerOptions): Promise<GetCostEstimateCommandOutput>;
1042
+ getCostEstimate(args: GetCostEstimateCommandInput, cb: (err: any, data?: GetCostEstimateCommandOutput) => void): void;
1043
+ getCostEstimate(args: GetCostEstimateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCostEstimateCommandOutput) => void): void;
1026
1044
  /**
1027
1045
  * <p>Returns information about a specific block storage disk.</p>
1028
1046
  */
@@ -1484,6 +1502,13 @@ export declare class Lightsail extends LightsailClient {
1484
1502
  setResourceAccessForBucket(args: SetResourceAccessForBucketCommandInput, options?: __HttpHandlerOptions): Promise<SetResourceAccessForBucketCommandOutput>;
1485
1503
  setResourceAccessForBucket(args: SetResourceAccessForBucketCommandInput, cb: (err: any, data?: SetResourceAccessForBucketCommandOutput) => void): void;
1486
1504
  setResourceAccessForBucket(args: SetResourceAccessForBucketCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetResourceAccessForBucketCommandOutput) => void): void;
1505
+ /**
1506
+ * <p>Initiates a graphical user interface (GUI) session that’s used to access a virtual
1507
+ * computer’s operating system and application. The session will be active for 1 hour. Use this action to resume the session after it expires. </p>
1508
+ */
1509
+ startGUISession(args: StartGUISessionCommandInput, options?: __HttpHandlerOptions): Promise<StartGUISessionCommandOutput>;
1510
+ startGUISession(args: StartGUISessionCommandInput, cb: (err: any, data?: StartGUISessionCommandOutput) => void): void;
1511
+ startGUISession(args: StartGUISessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartGUISessionCommandOutput) => void): void;
1487
1512
  /**
1488
1513
  * <p>Starts a specific Amazon Lightsail instance from a stopped state. To restart an instance,
1489
1514
  * use the <code>reboot instance</code> operation.</p>
@@ -1509,6 +1534,13 @@ export declare class Lightsail extends LightsailClient {
1509
1534
  startRelationalDatabase(args: StartRelationalDatabaseCommandInput, options?: __HttpHandlerOptions): Promise<StartRelationalDatabaseCommandOutput>;
1510
1535
  startRelationalDatabase(args: StartRelationalDatabaseCommandInput, cb: (err: any, data?: StartRelationalDatabaseCommandOutput) => void): void;
1511
1536
  startRelationalDatabase(args: StartRelationalDatabaseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartRelationalDatabaseCommandOutput) => void): void;
1537
+ /**
1538
+ * <p>Terminates a web-based NICE DCV session that’s used to access a virtual computer’s
1539
+ * operating system or application. The session will close and any unsaved data will be lost.</p>
1540
+ */
1541
+ stopGUISession(args: StopGUISessionCommandInput, options?: __HttpHandlerOptions): Promise<StopGUISessionCommandOutput>;
1542
+ stopGUISession(args: StopGUISessionCommandInput, cb: (err: any, data?: StopGUISessionCommandOutput) => void): void;
1543
+ stopGUISession(args: StopGUISessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopGUISessionCommandOutput) => void): void;
1512
1544
  /**
1513
1545
  * <p>Stops a specific Amazon Lightsail instance that is currently running.</p>
1514
1546
  * <note>