SimSpaceWeaver / Client / start_simulation
start_simulation#
- SimSpaceWeaver.Client.start_simulation(**kwargs)#
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.
See also: AWS API Documentation
Request Syntax
response = client.start_simulation( ClientToken='string', Description='string', MaximumDuration='string', Name='string', RoleArn='string', SchemaS3Location={ 'BucketName': 'string', 'ObjectKey': 'string' }, SnapshotS3Location={ 'BucketName': 'string', 'ObjectKey': 'string' }, Tags={ 'string': 'string' } )
- Parameters:
ClientToken (string) –
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. AClientToken
expires after 24 hours.This field is autopopulated if not provided.
Description (string) – The description of the simulation.
MaximumDuration (string) – 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 to0
makes the simulation immediately transition toStopping
as soon as it reachesStarted
.Name (string) –
[REQUIRED]
The name of the simulation.
RoleArn (string) –
[REQUIRED]
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.
SchemaS3Location (dict) –
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 aSnapshotS3Location
.BucketName (string) –
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.
ObjectKey (string) –
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.
SnapshotS3Location (dict) –
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.If you provide a
SnapshotS3Location
then you can’t provide aSchemaS3Location
.BucketName (string) –
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.
ObjectKey (string) –
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.
Tags (dict) –
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.
(string) –
(string) –
- Return type:
dict
- Returns:
Response Syntax
{ 'Arn': 'string', 'CreationTime': datetime(2015, 1, 1), 'ExecutionId': 'string' }
Response Structure
(dict) –
Arn (string) –
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.
CreationTime (datetime) –
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).
ExecutionId (string) –
A universally unique identifier (UUID) for this simulation.
Exceptions
SimSpaceWeaver.Client.exceptions.InternalServerException
SimSpaceWeaver.Client.exceptions.AccessDeniedException
SimSpaceWeaver.Client.exceptions.ValidationException
SimSpaceWeaver.Client.exceptions.ServiceQuotaExceededException
SimSpaceWeaver.Client.exceptions.ConflictException