Simspaceweaver

This page documents function available when using the Simspaceweaver module, created with @service Simspaceweaver.

Index

Documentation

Main.Simspaceweaver.create_snapshotMethod
create_snapshot(destination, simulation)
create_snapshot(destination, simulation, params::Dict{String,<:Any})

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

Arguments

  • destination: 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.
  • simulation: The name of the simulation.
source
Main.Simspaceweaver.delete_appMethod
delete_app(app, domain, simulation)
delete_app(app, domain, simulation, params::Dict{String,<:Any})

Deletes the instance of the given custom app.

Arguments

  • app: The name of the app.
  • domain: The name of the domain of the app.
  • simulation: The name of the simulation of the app.
source
Main.Simspaceweaver.delete_simulationMethod
delete_simulation(simulation)
delete_simulation(simulation, params::Dict{String,<:Any})

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.

Arguments

  • simulation: The name of the simulation.
source
Main.Simspaceweaver.describe_appMethod
describe_app(app, domain, simulation)
describe_app(app, domain, simulation, params::Dict{String,<:Any})

Returns the state of the given custom app.

Arguments

  • app: The name of the app.
  • domain: The name of the domain of the app.
  • simulation: The name of the simulation of the app.
source
Main.Simspaceweaver.describe_simulationMethod
describe_simulation(simulation)
describe_simulation(simulation, params::Dict{String,<:Any})

Returns the current state of the given simulation.

Arguments

  • simulation: The name of the simulation.
source
Main.Simspaceweaver.list_appsMethod
list_apps(simulation)
list_apps(simulation, params::Dict{String,<:Any})

Lists all custom apps or service apps for the given simulation and domain.

Arguments

  • simulation: The name of the simulation that you want to list apps for.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "domain": The name of the domain that you want to list apps for.
  • "maxResults": The maximum number of apps to list.
  • "nextToken": 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.
source
Main.Simspaceweaver.list_simulationsMethod
list_simulations()
list_simulations(params::Dict{String,<:Any})

Lists the SimSpace Weaver simulations in the Amazon Web Services account used to make the API call.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "maxResults": The maximum number of simulations to list.
  • "nextToken": 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.
source
Main.Simspaceweaver.list_tags_for_resourceMethod
list_tags_for_resource(resource_arn)
list_tags_for_resource(resource_arn, params::Dict{String,<:Any})

Lists all tags on a SimSpace Weaver resource.

Arguments

  • resource_arn: 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.
source
Main.Simspaceweaver.start_appMethod
start_app(domain, name, simulation)
start_app(domain, name, simulation, params::Dict{String,<:Any})

Starts a custom app with the configuration specified in the simulation schema.

Arguments

  • domain: The name of the domain of the app.
  • name: The name of the app.
  • simulation: The name of the simulation of the app.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "ClientToken": 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.
  • "Description": The description of the app.
  • "LaunchOverrides":
source
Main.Simspaceweaver.start_clockMethod
start_clock(simulation)
start_clock(simulation, params::Dict{String,<:Any})

Starts the simulation clock.

Arguments

  • simulation: The name of the simulation.
source
Main.Simspaceweaver.start_simulationMethod
start_simulation(name, role_arn)
start_simulation(name, role_arn, params::Dict{String,<:Any})

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.

Arguments

  • name: The name of the simulation.
  • role_arn: 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.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "ClientToken": 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.
  • "Description": The description of the simulation.
  • "MaximumDuration": 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.
  • "SchemaS3Location": 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.
  • "SnapshotS3Location": 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.
  • "Tags": 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.
source
Main.Simspaceweaver.stop_appMethod
stop_app(app, domain, simulation)
stop_app(app, domain, simulation, params::Dict{String,<:Any})

Stops the given custom app and shuts down all of its allocated compute resources.

Arguments

  • app: The name of the app.
  • domain: The name of the domain of the app.
  • simulation: The name of the simulation of the app.
source
Main.Simspaceweaver.stop_clockMethod
stop_clock(simulation)
stop_clock(simulation, params::Dict{String,<:Any})

Stops the simulation clock.

Arguments

  • simulation: The name of the simulation.
source
Main.Simspaceweaver.stop_simulationMethod
stop_simulation(simulation)
stop_simulation(simulation, params::Dict{String,<:Any})

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.

Arguments

  • simulation: The name of the simulation.
source
Main.Simspaceweaver.tag_resourceMethod
tag_resource(resource_arn, tags)
tag_resource(resource_arn, tags, params::Dict{String,<:Any})

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.

Arguments

  • resource_arn: 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.
  • tags: A list of tags to apply to the resource.
source
Main.Simspaceweaver.untag_resourceMethod
untag_resource(resource_arn, tag_keys)
untag_resource(resource_arn, tag_keys, params::Dict{String,<:Any})

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.

Arguments

  • resource_arn: 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.
  • tag_keys: A list of tag keys to remove from the resource.
source