@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
@@ -23,6 +23,7 @@ const CreateDiskSnapshotCommand_1 = require("./commands/CreateDiskSnapshotComman
23
23
  const CreateDistributionCommand_1 = require("./commands/CreateDistributionCommand");
24
24
  const CreateDomainCommand_1 = require("./commands/CreateDomainCommand");
25
25
  const CreateDomainEntryCommand_1 = require("./commands/CreateDomainEntryCommand");
26
+ const CreateGUISessionAccessDetailsCommand_1 = require("./commands/CreateGUISessionAccessDetailsCommand");
26
27
  const CreateInstancesCommand_1 = require("./commands/CreateInstancesCommand");
27
28
  const CreateInstancesFromSnapshotCommand_1 = require("./commands/CreateInstancesFromSnapshotCommand");
28
29
  const CreateInstanceSnapshotCommand_1 = require("./commands/CreateInstanceSnapshotCommand");
@@ -80,6 +81,7 @@ const GetContainerServiceDeploymentsCommand_1 = require("./commands/GetContainer
80
81
  const GetContainerServiceMetricDataCommand_1 = require("./commands/GetContainerServiceMetricDataCommand");
81
82
  const GetContainerServicePowersCommand_1 = require("./commands/GetContainerServicePowersCommand");
82
83
  const GetContainerServicesCommand_1 = require("./commands/GetContainerServicesCommand");
84
+ const GetCostEstimateCommand_1 = require("./commands/GetCostEstimateCommand");
83
85
  const GetDiskCommand_1 = require("./commands/GetDiskCommand");
84
86
  const GetDisksCommand_1 = require("./commands/GetDisksCommand");
85
87
  const GetDiskSnapshotCommand_1 = require("./commands/GetDiskSnapshotCommand");
@@ -138,8 +140,10 @@ const ResetDistributionCacheCommand_1 = require("./commands/ResetDistributionCac
138
140
  const SendContactMethodVerificationCommand_1 = require("./commands/SendContactMethodVerificationCommand");
139
141
  const SetIpAddressTypeCommand_1 = require("./commands/SetIpAddressTypeCommand");
140
142
  const SetResourceAccessForBucketCommand_1 = require("./commands/SetResourceAccessForBucketCommand");
143
+ const StartGUISessionCommand_1 = require("./commands/StartGUISessionCommand");
141
144
  const StartInstanceCommand_1 = require("./commands/StartInstanceCommand");
142
145
  const StartRelationalDatabaseCommand_1 = require("./commands/StartRelationalDatabaseCommand");
146
+ const StopGUISessionCommand_1 = require("./commands/StopGUISessionCommand");
143
147
  const StopInstanceCommand_1 = require("./commands/StopInstanceCommand");
144
148
  const StopRelationalDatabaseCommand_1 = require("./commands/StopRelationalDatabaseCommand");
145
149
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
@@ -466,6 +470,20 @@ class Lightsail extends LightsailClient_1.LightsailClient {
466
470
  return this.send(command, optionsOrCb);
467
471
  }
468
472
  }
473
+ createGUISessionAccessDetails(args, optionsOrCb, cb) {
474
+ const command = new CreateGUISessionAccessDetailsCommand_1.CreateGUISessionAccessDetailsCommand(args);
475
+ if (typeof optionsOrCb === "function") {
476
+ this.send(command, optionsOrCb);
477
+ }
478
+ else if (typeof cb === "function") {
479
+ if (typeof optionsOrCb !== "object")
480
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
481
+ this.send(command, optionsOrCb || {}, cb);
482
+ }
483
+ else {
484
+ return this.send(command, optionsOrCb);
485
+ }
486
+ }
469
487
  createInstances(args, optionsOrCb, cb) {
470
488
  const command = new CreateInstancesCommand_1.CreateInstancesCommand(args);
471
489
  if (typeof optionsOrCb === "function") {
@@ -1264,6 +1282,20 @@ class Lightsail extends LightsailClient_1.LightsailClient {
1264
1282
  return this.send(command, optionsOrCb);
1265
1283
  }
1266
1284
  }
1285
+ getCostEstimate(args, optionsOrCb, cb) {
1286
+ const command = new GetCostEstimateCommand_1.GetCostEstimateCommand(args);
1287
+ if (typeof optionsOrCb === "function") {
1288
+ this.send(command, optionsOrCb);
1289
+ }
1290
+ else if (typeof cb === "function") {
1291
+ if (typeof optionsOrCb !== "object")
1292
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1293
+ this.send(command, optionsOrCb || {}, cb);
1294
+ }
1295
+ else {
1296
+ return this.send(command, optionsOrCb);
1297
+ }
1298
+ }
1267
1299
  getDisk(args, optionsOrCb, cb) {
1268
1300
  const command = new GetDiskCommand_1.GetDiskCommand(args);
1269
1301
  if (typeof optionsOrCb === "function") {
@@ -2076,6 +2108,20 @@ class Lightsail extends LightsailClient_1.LightsailClient {
2076
2108
  return this.send(command, optionsOrCb);
2077
2109
  }
2078
2110
  }
2111
+ startGUISession(args, optionsOrCb, cb) {
2112
+ const command = new StartGUISessionCommand_1.StartGUISessionCommand(args);
2113
+ if (typeof optionsOrCb === "function") {
2114
+ this.send(command, optionsOrCb);
2115
+ }
2116
+ else if (typeof cb === "function") {
2117
+ if (typeof optionsOrCb !== "object")
2118
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2119
+ this.send(command, optionsOrCb || {}, cb);
2120
+ }
2121
+ else {
2122
+ return this.send(command, optionsOrCb);
2123
+ }
2124
+ }
2079
2125
  startInstance(args, optionsOrCb, cb) {
2080
2126
  const command = new StartInstanceCommand_1.StartInstanceCommand(args);
2081
2127
  if (typeof optionsOrCb === "function") {
@@ -2104,6 +2150,20 @@ class Lightsail extends LightsailClient_1.LightsailClient {
2104
2150
  return this.send(command, optionsOrCb);
2105
2151
  }
2106
2152
  }
2153
+ stopGUISession(args, optionsOrCb, cb) {
2154
+ const command = new StopGUISessionCommand_1.StopGUISessionCommand(args);
2155
+ if (typeof optionsOrCb === "function") {
2156
+ this.send(command, optionsOrCb);
2157
+ }
2158
+ else if (typeof cb === "function") {
2159
+ if (typeof optionsOrCb !== "object")
2160
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2161
+ this.send(command, optionsOrCb || {}, cb);
2162
+ }
2163
+ else {
2164
+ return this.send(command, optionsOrCb);
2165
+ }
2166
+ }
2107
2167
  stopInstance(args, optionsOrCb, cb) {
2108
2168
  const command = new StopInstanceCommand_1.StopInstanceCommand(args);
2109
2169
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateGUISessionAccessDetailsCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
+ class CreateGUISessionAccessDetailsCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateGUISessionAccessDetailsCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "LightsailClient";
28
+ const commandName = "CreateGUISessionAccessDetailsCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.CreateGUISessionAccessDetailsRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.CreateGUISessionAccessDetailsResultFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_json1_1_1.serializeAws_json1_1CreateGUISessionAccessDetailsCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_1_1.deserializeAws_json1_1CreateGUISessionAccessDetailsCommand)(output, context);
44
+ }
45
+ }
46
+ exports.CreateGUISessionAccessDetailsCommand = CreateGUISessionAccessDetailsCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetCostEstimateCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_1_1 = require("../models/models_1");
8
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
+ class GetCostEstimateCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetCostEstimateCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "LightsailClient";
28
+ const commandName = "GetCostEstimateCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_1_1.GetCostEstimateRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_1_1.GetCostEstimateResultFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_json1_1_1.serializeAws_json1_1GetCostEstimateCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_1_1.deserializeAws_json1_1GetCostEstimateCommand)(output, context);
44
+ }
45
+ }
46
+ exports.GetCostEstimateCommand = GetCostEstimateCommand;
@@ -4,7 +4,7 @@ exports.GetDiskCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_0_1 = require("../models/models_0");
7
+ const models_1_1 = require("../models/models_1");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
9
  class GetDiskCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class GetDiskCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_0_1.GetDiskRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_0_1.GetDiskResultFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_1_1.GetDiskRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_1_1.GetDiskResultFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,7 @@ exports.GetDiskSnapshotCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_0_1 = require("../models/models_0");
7
+ const models_1_1 = require("../models/models_1");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
9
  class GetDiskSnapshotCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class GetDiskSnapshotCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_0_1.GetDiskSnapshotRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_0_1.GetDiskSnapshotResultFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_1_1.GetDiskSnapshotRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_1_1.GetDiskSnapshotResultFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,7 @@ exports.GetDiskSnapshotsCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_0_1 = require("../models/models_0");
7
+ const models_1_1 = require("../models/models_1");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
9
  class GetDiskSnapshotsCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class GetDiskSnapshotsCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_0_1.GetDiskSnapshotsRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_0_1.GetDiskSnapshotsResultFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_1_1.GetDiskSnapshotsRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_1_1.GetDiskSnapshotsResultFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,7 @@ exports.GetDisksCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_0_1 = require("../models/models_0");
7
+ const models_1_1 = require("../models/models_1");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
9
  class GetDisksCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class GetDisksCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_0_1.GetDisksRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_0_1.GetDisksResultFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_1_1.GetDisksRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_1_1.GetDisksResultFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,7 @@ exports.GetDistributionBundlesCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_0_1 = require("../models/models_0");
7
+ const models_1_1 = require("../models/models_1");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
9
  class GetDistributionBundlesCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class GetDistributionBundlesCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_0_1.GetDistributionBundlesRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_0_1.GetDistributionBundlesResultFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_1_1.GetDistributionBundlesRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_1_1.GetDistributionBundlesResultFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -4,7 +4,7 @@ exports.GetDistributionLatestCacheResetCommand = void 0;
4
4
  const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
- const models_0_1 = require("../models/models_0");
7
+ const models_1_1 = require("../models/models_1");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
9
  class GetDistributionLatestCacheResetCommand extends smithy_client_1.Command {
10
10
  constructor(input) {
@@ -30,8 +30,8 @@ class GetDistributionLatestCacheResetCommand extends smithy_client_1.Command {
30
30
  logger,
31
31
  clientName,
32
32
  commandName,
33
- inputFilterSensitiveLog: models_0_1.GetDistributionLatestCacheResetRequestFilterSensitiveLog,
34
- outputFilterSensitiveLog: models_0_1.GetDistributionLatestCacheResetResultFilterSensitiveLog,
33
+ inputFilterSensitiveLog: models_1_1.GetDistributionLatestCacheResetRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_1_1.GetDistributionLatestCacheResetResultFilterSensitiveLog,
35
35
  };
36
36
  const { requestHandler } = configuration;
37
37
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StartGUISessionCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_1_1 = require("../models/models_1");
8
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
+ class StartGUISessionCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartGUISessionCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "LightsailClient";
28
+ const commandName = "StartGUISessionCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_1_1.StartGUISessionRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_1_1.StartGUISessionResultFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_json1_1_1.serializeAws_json1_1StartGUISessionCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_1_1.deserializeAws_json1_1StartGUISessionCommand)(output, context);
44
+ }
45
+ }
46
+ exports.StartGUISessionCommand = StartGUISessionCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StopGUISessionCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_1_1 = require("../models/models_1");
8
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
+ class StopGUISessionCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StopGUISessionCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "LightsailClient";
28
+ const commandName = "StopGUISessionCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_1_1.StopGUISessionRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_1_1.StopGUISessionResultFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_json1_1_1.serializeAws_json1_1StopGUISessionCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_json1_1_1.deserializeAws_json1_1StopGUISessionCommand)(output, context);
44
+ }
45
+ }
46
+ exports.StopGUISessionCommand = StopGUISessionCommand;
@@ -23,6 +23,7 @@ tslib_1.__exportStar(require("./CreateDiskSnapshotCommand"), exports);
23
23
  tslib_1.__exportStar(require("./CreateDistributionCommand"), exports);
24
24
  tslib_1.__exportStar(require("./CreateDomainCommand"), exports);
25
25
  tslib_1.__exportStar(require("./CreateDomainEntryCommand"), exports);
26
+ tslib_1.__exportStar(require("./CreateGUISessionAccessDetailsCommand"), exports);
26
27
  tslib_1.__exportStar(require("./CreateInstanceSnapshotCommand"), exports);
27
28
  tslib_1.__exportStar(require("./CreateInstancesCommand"), exports);
28
29
  tslib_1.__exportStar(require("./CreateInstancesFromSnapshotCommand"), exports);
@@ -80,6 +81,7 @@ tslib_1.__exportStar(require("./GetContainerServiceDeploymentsCommand"), exports
80
81
  tslib_1.__exportStar(require("./GetContainerServiceMetricDataCommand"), exports);
81
82
  tslib_1.__exportStar(require("./GetContainerServicePowersCommand"), exports);
82
83
  tslib_1.__exportStar(require("./GetContainerServicesCommand"), exports);
84
+ tslib_1.__exportStar(require("./GetCostEstimateCommand"), exports);
83
85
  tslib_1.__exportStar(require("./GetDiskCommand"), exports);
84
86
  tslib_1.__exportStar(require("./GetDiskSnapshotCommand"), exports);
85
87
  tslib_1.__exportStar(require("./GetDiskSnapshotsCommand"), exports);
@@ -138,8 +140,10 @@ tslib_1.__exportStar(require("./ResetDistributionCacheCommand"), exports);
138
140
  tslib_1.__exportStar(require("./SendContactMethodVerificationCommand"), exports);
139
141
  tslib_1.__exportStar(require("./SetIpAddressTypeCommand"), exports);
140
142
  tslib_1.__exportStar(require("./SetResourceAccessForBucketCommand"), exports);
143
+ tslib_1.__exportStar(require("./StartGUISessionCommand"), exports);
141
144
  tslib_1.__exportStar(require("./StartInstanceCommand"), exports);
142
145
  tslib_1.__exportStar(require("./StartRelationalDatabaseCommand"), exports);
146
+ tslib_1.__exportStar(require("./StopGUISessionCommand"), exports);
143
147
  tslib_1.__exportStar(require("./StopInstanceCommand"), exports);
144
148
  tslib_1.__exportStar(require("./StopRelationalDatabaseCommand"), exports);
145
149
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const q = "fn", r = "argv", s = "ref";
5
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
6
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://lightsail-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://lightsail-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://lightsail.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ endpoint: { url: "https://lightsail.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }] };
4
+ const q = "required", r = "fn", s = "argv", t = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://lightsail-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://lightsail-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://lightsail.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://lightsail.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
7
7
  exports.ruleSet = _data;