simspaceweaver.d.ts 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688
  1. import {Request} from '../lib/request';
  2. import {Response} from '../lib/response';
  3. import {AWSError} from '../lib/error';
  4. import {Service} from '../lib/service';
  5. import {ServiceConfigurationOptions} from '../lib/service';
  6. import {ConfigBase as Config} from '../lib/config-base';
  7. interface Blob {}
  8. declare class SimSpaceWeaver extends Service {
  9. /**
  10. * Constructs a service object. This object has one method for each API operation.
  11. */
  12. constructor(options?: SimSpaceWeaver.Types.ClientConfiguration)
  13. config: Config & SimSpaceWeaver.Types.ClientConfiguration;
  14. /**
  15. * Creates a snapshot of the specified simulation. A snapshot is a file that contains simulation state data at a specific time. The state data saved in a snapshot includes entity data from the State Fabric, the simulation configuration specified in the schema, and the clock tick number. You can use the snapshot to initialize a new simulation. For more information about snapshots, see Snapshots in the SimSpace Weaver User Guide. You specify a Destination when you create a snapshot. The Destination is the name of an Amazon S3 bucket and an optional ObjectKeyPrefix. The ObjectKeyPrefix is usually the name of a folder in the bucket. SimSpace Weaver creates a snapshot folder inside the Destination and places the snapshot file there. The snapshot file is an Amazon S3 object. It has an object key with the form: object-key-prefix/snapshot/simulation-name-YYMMdd-HHmm-ss.zip, where: YY is the 2-digit year MM is the 2-digit month dd is the 2-digit day of the month HH is the 2-digit hour (24-hour clock) mm is the 2-digit minutes ss is the 2-digit seconds
  16. */
  17. createSnapshot(params: SimSpaceWeaver.Types.CreateSnapshotInput, callback?: (err: AWSError, data: SimSpaceWeaver.Types.CreateSnapshotOutput) => void): Request<SimSpaceWeaver.Types.CreateSnapshotOutput, AWSError>;
  18. /**
  19. * Creates a snapshot of the specified simulation. A snapshot is a file that contains simulation state data at a specific time. The state data saved in a snapshot includes entity data from the State Fabric, the simulation configuration specified in the schema, and the clock tick number. You can use the snapshot to initialize a new simulation. For more information about snapshots, see Snapshots in the SimSpace Weaver User Guide. You specify a Destination when you create a snapshot. The Destination is the name of an Amazon S3 bucket and an optional ObjectKeyPrefix. The ObjectKeyPrefix is usually the name of a folder in the bucket. SimSpace Weaver creates a snapshot folder inside the Destination and places the snapshot file there. The snapshot file is an Amazon S3 object. It has an object key with the form: object-key-prefix/snapshot/simulation-name-YYMMdd-HHmm-ss.zip, where: YY is the 2-digit year MM is the 2-digit month dd is the 2-digit day of the month HH is the 2-digit hour (24-hour clock) mm is the 2-digit minutes ss is the 2-digit seconds
  20. */
  21. createSnapshot(callback?: (err: AWSError, data: SimSpaceWeaver.Types.CreateSnapshotOutput) => void): Request<SimSpaceWeaver.Types.CreateSnapshotOutput, AWSError>;
  22. /**
  23. * Deletes the instance of the given custom app.
  24. */
  25. deleteApp(params: SimSpaceWeaver.Types.DeleteAppInput, callback?: (err: AWSError, data: SimSpaceWeaver.Types.DeleteAppOutput) => void): Request<SimSpaceWeaver.Types.DeleteAppOutput, AWSError>;
  26. /**
  27. * Deletes the instance of the given custom app.
  28. */
  29. deleteApp(callback?: (err: AWSError, data: SimSpaceWeaver.Types.DeleteAppOutput) => void): Request<SimSpaceWeaver.Types.DeleteAppOutput, AWSError>;
  30. /**
  31. * Deletes all SimSpace Weaver resources assigned to the given simulation. Your simulation uses resources in other Amazon Web Services. This API operation doesn't delete resources in other Amazon Web Services.
  32. */
  33. deleteSimulation(params: SimSpaceWeaver.Types.DeleteSimulationInput, callback?: (err: AWSError, data: SimSpaceWeaver.Types.DeleteSimulationOutput) => void): Request<SimSpaceWeaver.Types.DeleteSimulationOutput, AWSError>;
  34. /**
  35. * Deletes all SimSpace Weaver resources assigned to the given simulation. Your simulation uses resources in other Amazon Web Services. This API operation doesn't delete resources in other Amazon Web Services.
  36. */
  37. deleteSimulation(callback?: (err: AWSError, data: SimSpaceWeaver.Types.DeleteSimulationOutput) => void): Request<SimSpaceWeaver.Types.DeleteSimulationOutput, AWSError>;
  38. /**
  39. * Returns the state of the given custom app.
  40. */
  41. describeApp(params: SimSpaceWeaver.Types.DescribeAppInput, callback?: (err: AWSError, data: SimSpaceWeaver.Types.DescribeAppOutput) => void): Request<SimSpaceWeaver.Types.DescribeAppOutput, AWSError>;
  42. /**
  43. * Returns the state of the given custom app.
  44. */
  45. describeApp(callback?: (err: AWSError, data: SimSpaceWeaver.Types.DescribeAppOutput) => void): Request<SimSpaceWeaver.Types.DescribeAppOutput, AWSError>;
  46. /**
  47. * Returns the current state of the given simulation.
  48. */
  49. describeSimulation(params: SimSpaceWeaver.Types.DescribeSimulationInput, callback?: (err: AWSError, data: SimSpaceWeaver.Types.DescribeSimulationOutput) => void): Request<SimSpaceWeaver.Types.DescribeSimulationOutput, AWSError>;
  50. /**
  51. * Returns the current state of the given simulation.
  52. */
  53. describeSimulation(callback?: (err: AWSError, data: SimSpaceWeaver.Types.DescribeSimulationOutput) => void): Request<SimSpaceWeaver.Types.DescribeSimulationOutput, AWSError>;
  54. /**
  55. * Lists all custom apps or service apps for the given simulation and domain.
  56. */
  57. listApps(params: SimSpaceWeaver.Types.ListAppsInput, callback?: (err: AWSError, data: SimSpaceWeaver.Types.ListAppsOutput) => void): Request<SimSpaceWeaver.Types.ListAppsOutput, AWSError>;
  58. /**
  59. * Lists all custom apps or service apps for the given simulation and domain.
  60. */
  61. listApps(callback?: (err: AWSError, data: SimSpaceWeaver.Types.ListAppsOutput) => void): Request<SimSpaceWeaver.Types.ListAppsOutput, AWSError>;
  62. /**
  63. * Lists the SimSpace Weaver simulations in the Amazon Web Services account used to make the API call.
  64. */
  65. listSimulations(params: SimSpaceWeaver.Types.ListSimulationsInput, callback?: (err: AWSError, data: SimSpaceWeaver.Types.ListSimulationsOutput) => void): Request<SimSpaceWeaver.Types.ListSimulationsOutput, AWSError>;
  66. /**
  67. * Lists the SimSpace Weaver simulations in the Amazon Web Services account used to make the API call.
  68. */
  69. listSimulations(callback?: (err: AWSError, data: SimSpaceWeaver.Types.ListSimulationsOutput) => void): Request<SimSpaceWeaver.Types.ListSimulationsOutput, AWSError>;
  70. /**
  71. * Lists all tags on a SimSpace Weaver resource.
  72. */
  73. listTagsForResource(params: SimSpaceWeaver.Types.ListTagsForResourceInput, callback?: (err: AWSError, data: SimSpaceWeaver.Types.ListTagsForResourceOutput) => void): Request<SimSpaceWeaver.Types.ListTagsForResourceOutput, AWSError>;
  74. /**
  75. * Lists all tags on a SimSpace Weaver resource.
  76. */
  77. listTagsForResource(callback?: (err: AWSError, data: SimSpaceWeaver.Types.ListTagsForResourceOutput) => void): Request<SimSpaceWeaver.Types.ListTagsForResourceOutput, AWSError>;
  78. /**
  79. * Starts a custom app with the configuration specified in the simulation schema.
  80. */
  81. startApp(params: SimSpaceWeaver.Types.StartAppInput, callback?: (err: AWSError, data: SimSpaceWeaver.Types.StartAppOutput) => void): Request<SimSpaceWeaver.Types.StartAppOutput, AWSError>;
  82. /**
  83. * Starts a custom app with the configuration specified in the simulation schema.
  84. */
  85. startApp(callback?: (err: AWSError, data: SimSpaceWeaver.Types.StartAppOutput) => void): Request<SimSpaceWeaver.Types.StartAppOutput, AWSError>;
  86. /**
  87. * Starts the simulation clock.
  88. */
  89. startClock(params: SimSpaceWeaver.Types.StartClockInput, callback?: (err: AWSError, data: SimSpaceWeaver.Types.StartClockOutput) => void): Request<SimSpaceWeaver.Types.StartClockOutput, AWSError>;
  90. /**
  91. * Starts the simulation clock.
  92. */
  93. startClock(callback?: (err: AWSError, data: SimSpaceWeaver.Types.StartClockOutput) => void): Request<SimSpaceWeaver.Types.StartClockOutput, AWSError>;
  94. /**
  95. * Starts a simulation with the given name. You must choose to start your simulation from a schema or from a snapshot. For more information about the schema, see the schema reference in the SimSpace Weaver User Guide. For more information about snapshots, see Snapshots in the SimSpace Weaver User Guide.
  96. */
  97. startSimulation(params: SimSpaceWeaver.Types.StartSimulationInput, callback?: (err: AWSError, data: SimSpaceWeaver.Types.StartSimulationOutput) => void): Request<SimSpaceWeaver.Types.StartSimulationOutput, AWSError>;
  98. /**
  99. * Starts a simulation with the given name. You must choose to start your simulation from a schema or from a snapshot. For more information about the schema, see the schema reference in the SimSpace Weaver User Guide. For more information about snapshots, see Snapshots in the SimSpace Weaver User Guide.
  100. */
  101. startSimulation(callback?: (err: AWSError, data: SimSpaceWeaver.Types.StartSimulationOutput) => void): Request<SimSpaceWeaver.Types.StartSimulationOutput, AWSError>;
  102. /**
  103. * Stops the given custom app and shuts down all of its allocated compute resources.
  104. */
  105. stopApp(params: SimSpaceWeaver.Types.StopAppInput, callback?: (err: AWSError, data: SimSpaceWeaver.Types.StopAppOutput) => void): Request<SimSpaceWeaver.Types.StopAppOutput, AWSError>;
  106. /**
  107. * Stops the given custom app and shuts down all of its allocated compute resources.
  108. */
  109. stopApp(callback?: (err: AWSError, data: SimSpaceWeaver.Types.StopAppOutput) => void): Request<SimSpaceWeaver.Types.StopAppOutput, AWSError>;
  110. /**
  111. * Stops the simulation clock.
  112. */
  113. stopClock(params: SimSpaceWeaver.Types.StopClockInput, callback?: (err: AWSError, data: SimSpaceWeaver.Types.StopClockOutput) => void): Request<SimSpaceWeaver.Types.StopClockOutput, AWSError>;
  114. /**
  115. * Stops the simulation clock.
  116. */
  117. stopClock(callback?: (err: AWSError, data: SimSpaceWeaver.Types.StopClockOutput) => void): Request<SimSpaceWeaver.Types.StopClockOutput, AWSError>;
  118. /**
  119. * Stops the given simulation. You can't restart a simulation after you stop it. If you want to restart a simulation, then you must stop it, delete it, and start a new instance of it.
  120. */
  121. stopSimulation(params: SimSpaceWeaver.Types.StopSimulationInput, callback?: (err: AWSError, data: SimSpaceWeaver.Types.StopSimulationOutput) => void): Request<SimSpaceWeaver.Types.StopSimulationOutput, AWSError>;
  122. /**
  123. * Stops the given simulation. You can't restart a simulation after you stop it. If you want to restart a simulation, then you must stop it, delete it, and start a new instance of it.
  124. */
  125. stopSimulation(callback?: (err: AWSError, data: SimSpaceWeaver.Types.StopSimulationOutput) => void): Request<SimSpaceWeaver.Types.StopSimulationOutput, AWSError>;
  126. /**
  127. * Adds tags to a SimSpace Weaver resource. For more information about tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.
  128. */
  129. tagResource(params: SimSpaceWeaver.Types.TagResourceInput, callback?: (err: AWSError, data: SimSpaceWeaver.Types.TagResourceOutput) => void): Request<SimSpaceWeaver.Types.TagResourceOutput, AWSError>;
  130. /**
  131. * Adds tags to a SimSpace Weaver resource. For more information about tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.
  132. */
  133. tagResource(callback?: (err: AWSError, data: SimSpaceWeaver.Types.TagResourceOutput) => void): Request<SimSpaceWeaver.Types.TagResourceOutput, AWSError>;
  134. /**
  135. * Removes tags from a SimSpace Weaver resource. For more information about tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.
  136. */
  137. untagResource(params: SimSpaceWeaver.Types.UntagResourceInput, callback?: (err: AWSError, data: SimSpaceWeaver.Types.UntagResourceOutput) => void): Request<SimSpaceWeaver.Types.UntagResourceOutput, AWSError>;
  138. /**
  139. * Removes tags from a SimSpace Weaver resource. For more information about tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.
  140. */
  141. untagResource(callback?: (err: AWSError, data: SimSpaceWeaver.Types.UntagResourceOutput) => void): Request<SimSpaceWeaver.Types.UntagResourceOutput, AWSError>;
  142. }
  143. declare namespace SimSpaceWeaver {
  144. export type AppPortMappings = SimulationAppPortMapping[];
  145. export type BucketName = string;
  146. export type ClientToken = string;
  147. export type ClockStatus = "UNKNOWN"|"STARTING"|"STARTED"|"STOPPING"|"STOPPED"|string;
  148. export type ClockTargetStatus = "UNKNOWN"|"STARTED"|"STOPPED"|string;
  149. export interface CloudWatchLogsLogGroup {
  150. /**
  151. * The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log group for the simulation. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference. For more information about log groups, see Working with log groups and log streams in the Amazon CloudWatch Logs User Guide.
  152. */
  153. LogGroupArn?: LogGroupArn;
  154. }
  155. export interface CreateSnapshotInput {
  156. /**
  157. * The Amazon S3 bucket and optional folder (object key prefix) where SimSpace Weaver creates the snapshot file. The Amazon S3 bucket must be in the same Amazon Web Services Region as the simulation.
  158. */
  159. Destination: S3Destination;
  160. /**
  161. * The name of the simulation.
  162. */
  163. Simulation: SimSpaceWeaverResourceName;
  164. }
  165. export interface CreateSnapshotOutput {
  166. }
  167. export interface DeleteAppInput {
  168. /**
  169. * The name of the app.
  170. */
  171. App: SimSpaceWeaverResourceName;
  172. /**
  173. * The name of the domain of the app.
  174. */
  175. Domain: SimSpaceWeaverResourceName;
  176. /**
  177. * The name of the simulation of the app.
  178. */
  179. Simulation: SimSpaceWeaverResourceName;
  180. }
  181. export interface DeleteAppOutput {
  182. }
  183. export interface DeleteSimulationInput {
  184. /**
  185. * The name of the simulation.
  186. */
  187. Simulation: SimSpaceWeaverResourceName;
  188. }
  189. export interface DeleteSimulationOutput {
  190. }
  191. export interface DescribeAppInput {
  192. /**
  193. * The name of the app.
  194. */
  195. App: SimSpaceWeaverLongResourceName;
  196. /**
  197. * The name of the domain of the app.
  198. */
  199. Domain: SimSpaceWeaverResourceName;
  200. /**
  201. * The name of the simulation of the app.
  202. */
  203. Simulation: SimSpaceWeaverResourceName;
  204. }
  205. export interface DescribeAppOutput {
  206. /**
  207. * The description of the app.
  208. */
  209. Description?: Description;
  210. /**
  211. * The name of the domain of the app.
  212. */
  213. Domain?: SimSpaceWeaverResourceName;
  214. /**
  215. * Information about the network endpoint for the custom app. You can use the endpoint to connect to the custom app.
  216. */
  217. EndpointInfo?: SimulationAppEndpointInfo;
  218. LaunchOverrides?: LaunchOverrides;
  219. /**
  220. * The name of the app.
  221. */
  222. Name?: SimSpaceWeaverLongResourceName;
  223. /**
  224. * The name of the simulation of the app.
  225. */
  226. Simulation?: SimSpaceWeaverResourceName;
  227. /**
  228. * The current lifecycle state of the custom app.
  229. */
  230. Status?: SimulationAppStatus;
  231. /**
  232. * The desired lifecycle state of the custom app.
  233. */
  234. TargetStatus?: SimulationAppTargetStatus;
  235. }
  236. export interface DescribeSimulationInput {
  237. /**
  238. * The name of the simulation.
  239. */
  240. Simulation: SimSpaceWeaverResourceName;
  241. }
  242. export interface DescribeSimulationOutput {
  243. /**
  244. * The Amazon Resource Name (ARN) of the simulation. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
  245. */
  246. Arn?: SimSpaceWeaverArn;
  247. /**
  248. * The time when the simulation was created, expressed as the number of seconds and milliseconds in UTC since the Unix epoch (0:0:0.000, January 1, 1970).
  249. */
  250. CreationTime?: Timestamp;
  251. /**
  252. * The description of the simulation.
  253. */
  254. Description?: Description;
  255. /**
  256. * A universally unique identifier (UUID) for this simulation.
  257. */
  258. ExecutionId?: UUID;
  259. /**
  260. * A collection of additional state information, such as domain and clock configuration.
  261. */
  262. LiveSimulationState?: LiveSimulationState;
  263. /**
  264. * Settings that control how SimSpace Weaver handles your simulation log data.
  265. */
  266. LoggingConfiguration?: LoggingConfiguration;
  267. /**
  268. * The maximum running time of the simulation, specified as a number of minutes (m or M), hours (h or H), or days (d or D). The simulation stops when it reaches this limit. The maximum value is 14D, or its equivalent in the other units. The default value is 14D. A value equivalent to 0 makes the simulation immediately transition to Stopping as soon as it reaches Started.
  269. */
  270. MaximumDuration?: TimeToLiveString;
  271. /**
  272. * The name of the simulation.
  273. */
  274. Name?: SimSpaceWeaverResourceName;
  275. /**
  276. * The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that the simulation assumes to perform actions. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference. For more information about IAM roles, see IAM roles in the Identity and Access Management User Guide.
  277. */
  278. RoleArn?: RoleArn;
  279. /**
  280. * An error message that SimSpace Weaver returns only if there is a problem with the simulation schema.
  281. */
  282. SchemaError?: OptionalString;
  283. /**
  284. * The location of the simulation schema in Amazon Simple Storage Service (Amazon S3). For more information about Amazon S3, see the Amazon Simple Storage Service User Guide .
  285. */
  286. SchemaS3Location?: S3Location;
  287. SnapshotS3Location?: S3Location;
  288. /**
  289. * An error message that SimSpace Weaver returns only if a problem occurs when the simulation is in the STARTING state.
  290. */
  291. StartError?: OptionalString;
  292. /**
  293. * The current lifecycle state of the simulation.
  294. */
  295. Status?: SimulationStatus;
  296. /**
  297. * The desired lifecycle state of the simulation.
  298. */
  299. TargetStatus?: SimulationTargetStatus;
  300. }
  301. export type Description = string;
  302. export interface Domain {
  303. /**
  304. * The type of lifecycle management for apps in the domain. Indicates whether apps in this domain are managed (SimSpace Weaver starts and stops the apps) or unmanaged (you must start and stop the apps). Lifecycle types PerWorker – Managed: SimSpace Weaver starts one app on each worker. BySpatialSubdivision – Managed: SimSpace Weaver starts one app for each spatial partition. ByRequest – Unmanaged: You use the StartApp API to start the apps and use the StopApp API to stop the apps.
  305. */
  306. Lifecycle?: LifecycleManagementStrategy;
  307. /**
  308. * The name of the domain.
  309. */
  310. Name?: SimSpaceWeaverResourceName;
  311. }
  312. export type DomainList = Domain[];
  313. export type LaunchCommandList = NonEmptyString[];
  314. export interface LaunchOverrides {
  315. /**
  316. * App launch commands and command line parameters that override the launch command configured in the simulation schema.
  317. */
  318. LaunchCommands?: LaunchCommandList;
  319. }
  320. export type LifecycleManagementStrategy = "Unknown"|"PerWorker"|"BySpatialSubdivision"|"ByRequest"|string;
  321. export interface ListAppsInput {
  322. /**
  323. * The name of the domain that you want to list apps for.
  324. */
  325. Domain?: SimSpaceWeaverResourceName;
  326. /**
  327. * The maximum number of apps to list.
  328. */
  329. MaxResults?: PositiveInteger;
  330. /**
  331. * If SimSpace Weaver returns nextToken, then there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, call the operation again using the returned token. Keep all other arguments unchanged. If no results remain, then nextToken is set to null. Each pagination token expires after 24 hours. If you provide a token that isn't valid, then you receive an HTTP 400 ValidationException error.
  332. */
  333. NextToken?: OptionalString;
  334. /**
  335. * The name of the simulation that you want to list apps for.
  336. */
  337. Simulation: SimSpaceWeaverResourceName;
  338. }
  339. export interface ListAppsOutput {
  340. /**
  341. * The list of apps for the given simulation and domain.
  342. */
  343. Apps?: SimulationAppList;
  344. /**
  345. * If SimSpace Weaver returns nextToken, then there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, call the operation again using the returned token. Keep all other arguments unchanged. If no results remain, then nextToken is set to null. Each pagination token expires after 24 hours. If you provide a token that isn't valid, then you receive an HTTP 400 ValidationException error.
  346. */
  347. NextToken?: OptionalString;
  348. }
  349. export interface ListSimulationsInput {
  350. /**
  351. * The maximum number of simulations to list.
  352. */
  353. MaxResults?: PositiveInteger;
  354. /**
  355. * If SimSpace Weaver returns nextToken, then there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, call the operation again using the returned token. Keep all other arguments unchanged. If no results remain, then nextToken is set to null. Each pagination token expires after 24 hours. If you provide a token that isn't valid, then you receive an HTTP 400 ValidationException error.
  356. */
  357. NextToken?: OptionalString;
  358. }
  359. export interface ListSimulationsOutput {
  360. /**
  361. * If SimSpace Weaver returns nextToken, then there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, call the operation again using the returned token. Keep all other arguments unchanged. If no results remain, then nextToken is set to null. Each pagination token expires after 24 hours. If you provide a token that isn't valid, then you receive an HTTP 400 ValidationException error.
  362. */
  363. NextToken?: OptionalString;
  364. /**
  365. * The list of simulations.
  366. */
  367. Simulations?: SimulationList;
  368. }
  369. export interface ListTagsForResourceInput {
  370. /**
  371. * The Amazon Resource Name (ARN) of the resource. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
  372. */
  373. ResourceArn: SimSpaceWeaverArn;
  374. }
  375. export interface ListTagsForResourceOutput {
  376. /**
  377. * The list of tags for the resource.
  378. */
  379. Tags?: TagMap;
  380. }
  381. export interface LiveSimulationState {
  382. /**
  383. * A list of simulation clocks. At this time, a simulation has only one clock.
  384. */
  385. Clocks?: SimulationClockList;
  386. /**
  387. * A list of domains for the simulation. For more information about domains, see Key concepts: Domains in the SimSpace Weaver User Guide.
  388. */
  389. Domains?: DomainList;
  390. }
  391. export interface LogDestination {
  392. /**
  393. * An Amazon CloudWatch Logs log group that stores simulation log data. For more information about log groups, see Working with log groups and log streams in the Amazon CloudWatch Logs User Guide.
  394. */
  395. CloudWatchLogsLogGroup?: CloudWatchLogsLogGroup;
  396. }
  397. export type LogDestinations = LogDestination[];
  398. export type LogGroupArn = string;
  399. export interface LoggingConfiguration {
  400. /**
  401. * A list of the locations where SimSpace Weaver sends simulation log data.
  402. */
  403. Destinations?: LogDestinations;
  404. }
  405. export type NonEmptyString = string;
  406. export type ObjectKey = string;
  407. export type ObjectKeyPrefix = string;
  408. export type OptionalString = string;
  409. export type PortNumber = number;
  410. export type PositiveInteger = number;
  411. export type RoleArn = string;
  412. export interface S3Destination {
  413. /**
  414. * The name of an Amazon S3 bucket. For more information about buckets, see Creating, configuring, and working with Amazon S3 buckets in the Amazon Simple Storage Service User Guide.
  415. */
  416. BucketName: BucketName;
  417. /**
  418. * A string prefix for an Amazon S3 object key. It's usually a folder name. For more information about folders in Amazon S3, see Organizing objects in the Amazon S3 console using folders in the Amazon Simple Storage Service User Guide.
  419. */
  420. ObjectKeyPrefix?: ObjectKeyPrefix;
  421. }
  422. export interface S3Location {
  423. /**
  424. * The name of an Amazon S3 bucket. For more information about buckets, see Creating, configuring, and working with Amazon S3 buckets in the Amazon Simple Storage Service User Guide.
  425. */
  426. BucketName: BucketName;
  427. /**
  428. * The key name of an object in Amazon S3. For more information about Amazon S3 objects and object keys, see Uploading, downloading, and working with objects in Amazon S3 in the Amazon Simple Storage Service User Guide.
  429. */
  430. ObjectKey: ObjectKey;
  431. }
  432. export type SimSpaceWeaverArn = string;
  433. export type SimSpaceWeaverLongResourceName = string;
  434. export type SimSpaceWeaverResourceName = string;
  435. export interface SimulationAppEndpointInfo {
  436. /**
  437. * The IP address of the app. SimSpace Weaver dynamically assigns this IP address when the app starts.
  438. */
  439. Address?: NonEmptyString;
  440. /**
  441. * The inbound TCP/UDP port numbers of the app. The combination of an IP address and a port number form a network endpoint.
  442. */
  443. IngressPortMappings?: AppPortMappings;
  444. }
  445. export type SimulationAppList = SimulationAppMetadata[];
  446. export interface SimulationAppMetadata {
  447. /**
  448. * The domain of the app. For more information about domains, see Key concepts: Domains in the SimSpace Weaver User Guide.
  449. */
  450. Domain?: SimSpaceWeaverResourceName;
  451. /**
  452. * The name of the app.
  453. */
  454. Name?: SimSpaceWeaverLongResourceName;
  455. /**
  456. * The name of the simulation of the app.
  457. */
  458. Simulation?: SimSpaceWeaverResourceName;
  459. /**
  460. * The current status of the app.
  461. */
  462. Status?: SimulationAppStatus;
  463. /**
  464. * The desired status of the app.
  465. */
  466. TargetStatus?: SimulationAppTargetStatus;
  467. }
  468. export interface SimulationAppPortMapping {
  469. /**
  470. * The TCP/UDP port number of the running app. SimSpace Weaver dynamically assigns this port number when the app starts. SimSpace Weaver maps the Declared port to the Actual port. Clients connect to the app using the app's IP address and the Actual port number.
  471. */
  472. Actual?: PortNumber;
  473. /**
  474. * The TCP/UDP port number of the app, declared in the simulation schema. SimSpace Weaver maps the Declared port to the Actual port. The source code for the app should bind to the Declared port.
  475. */
  476. Declared?: PortNumber;
  477. }
  478. export type SimulationAppStatus = "STARTING"|"STARTED"|"STOPPING"|"STOPPED"|"ERROR"|"UNKNOWN"|string;
  479. export type SimulationAppTargetStatus = "UNKNOWN"|"STARTED"|"STOPPED"|string;
  480. export interface SimulationClock {
  481. /**
  482. * The current status of the simulation clock.
  483. */
  484. Status?: ClockStatus;
  485. /**
  486. * The desired status of the simulation clock.
  487. */
  488. TargetStatus?: ClockTargetStatus;
  489. }
  490. export type SimulationClockList = SimulationClock[];
  491. export type SimulationList = SimulationMetadata[];
  492. export interface SimulationMetadata {
  493. /**
  494. * The Amazon Resource Name (ARN) of the simulation. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
  495. */
  496. Arn?: SimSpaceWeaverArn;
  497. /**
  498. * The time when the simulation was created, expressed as the number of seconds and milliseconds in UTC since the Unix epoch (0:0:0.000, January 1, 1970).
  499. */
  500. CreationTime?: Timestamp;
  501. /**
  502. * The name of the simulation.
  503. */
  504. Name?: SimSpaceWeaverResourceName;
  505. /**
  506. * The current status of the simulation.
  507. */
  508. Status?: SimulationStatus;
  509. /**
  510. * The desired status of the simulation.
  511. */
  512. TargetStatus?: SimulationTargetStatus;
  513. }
  514. export type SimulationStatus = "UNKNOWN"|"STARTING"|"STARTED"|"STOPPING"|"STOPPED"|"FAILED"|"DELETING"|"DELETED"|"SNAPSHOT_IN_PROGRESS"|string;
  515. export type SimulationTargetStatus = "UNKNOWN"|"STARTED"|"STOPPED"|"DELETED"|string;
  516. export interface StartAppInput {
  517. /**
  518. * A value that you provide to ensure that repeated calls to this API operation using the same parameters complete only once. A ClientToken is also known as an idempotency token. A ClientToken expires after 24 hours.
  519. */
  520. ClientToken?: ClientToken;
  521. /**
  522. * The description of the app.
  523. */
  524. Description?: Description;
  525. /**
  526. * The name of the domain of the app.
  527. */
  528. Domain: SimSpaceWeaverResourceName;
  529. LaunchOverrides?: LaunchOverrides;
  530. /**
  531. * The name of the app.
  532. */
  533. Name: SimSpaceWeaverResourceName;
  534. /**
  535. * The name of the simulation of the app.
  536. */
  537. Simulation: SimSpaceWeaverResourceName;
  538. }
  539. export interface StartAppOutput {
  540. /**
  541. * The name of the domain of the app.
  542. */
  543. Domain?: SimSpaceWeaverResourceName;
  544. /**
  545. * The name of the app.
  546. */
  547. Name?: SimSpaceWeaverResourceName;
  548. /**
  549. * The name of the simulation of the app.
  550. */
  551. Simulation?: SimSpaceWeaverResourceName;
  552. }
  553. export interface StartClockInput {
  554. /**
  555. * The name of the simulation.
  556. */
  557. Simulation: SimSpaceWeaverResourceName;
  558. }
  559. export interface StartClockOutput {
  560. }
  561. export interface StartSimulationInput {
  562. /**
  563. * A value that you provide to ensure that repeated calls to this API operation using the same parameters complete only once. A ClientToken is also known as an idempotency token. A ClientToken expires after 24 hours.
  564. */
  565. ClientToken?: ClientToken;
  566. /**
  567. * The description of the simulation.
  568. */
  569. Description?: Description;
  570. /**
  571. * The maximum running time of the simulation, specified as a number of minutes (m or M), hours (h or H), or days (d or D). The simulation stops when it reaches this limit. The maximum value is 14D, or its equivalent in the other units. The default value is 14D. A value equivalent to 0 makes the simulation immediately transition to Stopping as soon as it reaches Started.
  572. */
  573. MaximumDuration?: TimeToLiveString;
  574. /**
  575. * The name of the simulation.
  576. */
  577. Name: SimSpaceWeaverResourceName;
  578. /**
  579. * The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that the simulation assumes to perform actions. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference. For more information about IAM roles, see IAM roles in the Identity and Access Management User Guide.
  580. */
  581. RoleArn: RoleArn;
  582. /**
  583. * The location of the simulation schema in Amazon Simple Storage Service (Amazon S3). For more information about Amazon S3, see the Amazon Simple Storage Service User Guide . Provide a SchemaS3Location to start your simulation from a schema. If you provide a SchemaS3Location then you can't provide a SnapshotS3Location.
  584. */
  585. SchemaS3Location?: S3Location;
  586. /**
  587. * The location of the snapshot .zip file in Amazon Simple Storage Service (Amazon S3). For more information about Amazon S3, see the Amazon Simple Storage Service User Guide . Provide a SnapshotS3Location to start your simulation from a snapshot. The Amazon S3 bucket must be in the same Amazon Web Services Region as the simulation. If you provide a SnapshotS3Location then you can't provide a SchemaS3Location.
  588. */
  589. SnapshotS3Location?: S3Location;
  590. /**
  591. * A list of tags for the simulation. For more information about tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.
  592. */
  593. Tags?: TagMap;
  594. }
  595. export interface StartSimulationOutput {
  596. /**
  597. * The Amazon Resource Name (ARN) of the simulation. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
  598. */
  599. Arn?: SimSpaceWeaverArn;
  600. /**
  601. * The time when the simulation was created, expressed as the number of seconds and milliseconds in UTC since the Unix epoch (0:0:0.000, January 1, 1970).
  602. */
  603. CreationTime?: Timestamp;
  604. /**
  605. * A universally unique identifier (UUID) for this simulation.
  606. */
  607. ExecutionId?: UUID;
  608. }
  609. export interface StopAppInput {
  610. /**
  611. * The name of the app.
  612. */
  613. App: SimSpaceWeaverResourceName;
  614. /**
  615. * The name of the domain of the app.
  616. */
  617. Domain: SimSpaceWeaverResourceName;
  618. /**
  619. * The name of the simulation of the app.
  620. */
  621. Simulation: SimSpaceWeaverResourceName;
  622. }
  623. export interface StopAppOutput {
  624. }
  625. export interface StopClockInput {
  626. /**
  627. * The name of the simulation.
  628. */
  629. Simulation: SimSpaceWeaverResourceName;
  630. }
  631. export interface StopClockOutput {
  632. }
  633. export interface StopSimulationInput {
  634. /**
  635. * The name of the simulation.
  636. */
  637. Simulation: SimSpaceWeaverResourceName;
  638. }
  639. export interface StopSimulationOutput {
  640. }
  641. export type TagKey = string;
  642. export type TagKeyList = TagKey[];
  643. export type TagMap = {[key: string]: TagValue};
  644. export interface TagResourceInput {
  645. /**
  646. * The Amazon Resource Name (ARN) of the resource that you want to add tags to. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
  647. */
  648. ResourceArn: SimSpaceWeaverArn;
  649. /**
  650. * A list of tags to apply to the resource.
  651. */
  652. Tags: TagMap;
  653. }
  654. export interface TagResourceOutput {
  655. }
  656. export type TagValue = string;
  657. export type TimeToLiveString = string;
  658. export type Timestamp = Date;
  659. export type UUID = string;
  660. export interface UntagResourceInput {
  661. /**
  662. * The Amazon Resource Name (ARN) of the resource that you want to remove tags from. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
  663. */
  664. ResourceArn: SimSpaceWeaverArn;
  665. /**
  666. * A list of tag keys to remove from the resource.
  667. */
  668. TagKeys: TagKeyList;
  669. }
  670. export interface UntagResourceOutput {
  671. }
  672. /**
  673. * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
  674. */
  675. export type apiVersion = "2022-10-28"|"latest"|string;
  676. export interface ClientApiVersions {
  677. /**
  678. * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
  679. */
  680. apiVersion?: apiVersion;
  681. }
  682. export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
  683. /**
  684. * Contains interfaces for use with the SimSpaceWeaver client.
  685. */
  686. export import Types = SimSpaceWeaver;
  687. }
  688. export = SimSpaceWeaver;