start_simulation
¶
start_simulation(
name: SimSpaceWeaverResourceName,
role_arn: RoleArn,
*,
config_overrides: Optional[SimSpaceWeaverClientConfig] = None,
client_token: Optional[ClientToken] = None,
description: Optional[Description] = None,
schema_s3_location: Optional[S3Location] = None,
maximum_duration: Optional[TimeToLiveString] = None,
tags: Optional[TagMap] = None,
snapshot_s3_location: Optional[S3Location] = None,
) -> StartSimulationOutput
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.
Parameters:
-
client_token(Optional[ClientToken], default:None) –A value that you provide to ensure that repeated calls to this API operation using the same parameters complete only once. A
ClientTokenis also known as an idempotency token. AClientTokenexpires after 24 hours. -
name(SimSpaceWeaverResourceName) –The name of the simulation.
-
description(Optional[Description], default:None) –The description of the simulation.
-
role_arn(RoleArn) –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.
-
schema_s3_location(Optional[S3Location], default:None) –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
SchemaS3Locationto start your simulation from a schema.If you provide a
SchemaS3Locationthen you can't provide aSnapshotS3Location. -
maximum_duration(Optional[TimeToLiveString], default:None) –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 is14D. A value equivalent to0makes the simulation immediately transition toStoppingas soon as it reachesStarted. -
tags(Optional[TagMap], default:None) –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.
-
snapshot_s3_location(Optional[S3Location], default:None) –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
SnapshotS3Locationto 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
SnapshotS3Locationthen you can't provide aSchemaS3Location.
Raises:
-
AccessDeniedException– -
ConflictException– -
InternalServerException– -
ServiceQuotaExceededException– -
ValidationException– -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_simspaceweaver/_services/sim_space_weaver.py
341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 | |