AWS SimSpace Weaver

2022/11/29 - AWS SimSpace Weaver - 15 new api methods

Changes  AWS SimSpace Weaver is a new service that helps customers build spatial simulations at new levels of scale - resulting in virtual worlds with millions of dynamic entities. See the AWS SimSpace Weaver developer guide for more details on how to get started. https://docs.aws.amazon.com/simspaceweaver

DescribeSimulation (new) Link ¶

Returns the current state of the given simulation.

See also: AWS API Documentation

Request Syntax

client.describe_simulation(
    Simulation='string'
)
type Simulation

string

param Simulation

[REQUIRED]

The name of the simulation.

rtype

dict

returns

Response Syntax

{
    'Arn': 'string',
    'CreationTime': datetime(2015, 1, 1),
    'Description': 'string',
    'ExecutionId': 'string',
    'LiveSimulationState': {
        'Clocks': [
            {
                'Status': 'UNKNOWN'|'STARTING'|'STARTED'|'STOPPING'|'STOPPED',
                'TargetStatus': 'UNKNOWN'|'STARTED'|'STOPPED'
            },
        ],
        'Domains': [
            {
                'Lifecycle': 'Unknown'|'PerWorker'|'BySpatialSubdivision'|'ByRequest',
                'Name': 'string'
            },
        ]
    },
    'LoggingConfiguration': {
        'Destinations': [
            {
                'CloudWatchLogsLogGroup': {
                    'LogGroupArn': 'string'
                }
            },
        ]
    },
    'MaximumDuration': 'string',
    'Name': 'string',
    'RoleArn': 'string',
    'SchemaError': 'string',
    'SchemaS3Location': {
        'BucketName': 'string',
        'ObjectKey': 'string'
    },
    'Status': 'UNKNOWN'|'STARTING'|'STARTED'|'STOPPING'|'STOPPED'|'FAILED'|'DELETING'|'DELETED',
    'TargetStatus': 'UNKNOWN'|'STARTED'|'STOPPED'|'DELETED'
}

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).

    • Description (string) --

      The description of the simulation.

    • ExecutionId (string) --

      A universally unique identifier (UUID) for this simulation.

    • LiveSimulationState (dict) --

      A collection of additional state information, such as domain and clock configuration.

      • Clocks (list) --

        A list of simulation clocks.

        Note

        At this time, a simulation has only one clock.

        • (dict) --

          Status information about the simulation clock.

          • Status (string) --

            The current status of the simulation clock.

          • TargetStatus (string) --

            The desired status of the simulation clock.

      • Domains (list) --

        A list of domains for the simulation. For more information about domains, see Key concepts in the Amazon Web Services SimSpace Weaver User Guide .

        • (dict) --

          A collection of app instances that run the same executable app code and have the same launch options and commands.

          For more information about domains, see Key concepts in the Amazon Web Services SimSpace Weaver User Guide .

          • Lifecycle (string) --

            The type of lifecycle management for apps in the domain. This value 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 1 app on each worker

            • BySpatialSubdivision – Managed: SimSpace Weaver starts 1 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.

            Note

            The lifecycle types will change when the service is released for general availability (GA).

          • Name (string) --

            The name of the domain.

    • LoggingConfiguration (dict) --

      Settings that control how SimSpace Weaver handles your simulation log data.

      • Destinations (list) --

        A list of the locations where SimSpace Weaver sends simulation log data.

        • (dict) --

          The location where SimSpace Weaver sends simulation log data.

          • CloudWatchLogsLogGroup (dict) --

            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 .

            • LogGroupArn (string) --

              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 .

    • MaximumDuration (string) --

      The maximum running time of the simulation, specified as a number of months (m or M), hours (h or H), or days (d or D). The simulation stops when it reaches this limit.

    • Name (string) --

      The name of the simulation.

    • RoleArn (string) --

      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 .

    • SchemaError (string) --

      An error message that SimSpace Weaver returns only if there is a problem with the simulation schema.

    • 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.

    • Status (string) --

      The current lifecycle state of the simulation.

    • TargetStatus (string) --

      The desired lifecycle state of the simulation.

StopApp (new) Link ¶

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

See also: AWS API Documentation

Request Syntax

client.stop_app(
    App='string',
    Domain='string',
    Simulation='string'
)
type App

string

param App

[REQUIRED]

The name of the app.

type Domain

string

param Domain

[REQUIRED]

The name of the domain of the app.

type Simulation

string

param Simulation

[REQUIRED]

The name of the simulation of the app.

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

StopSimulation (new) Link ¶

Stops the given simulation.

Warning

You can't restart a simulation after you stop it. If you need to restart a simulation, you must stop it, delete it, and start a new instance of it.

See also: AWS API Documentation

Request Syntax

client.stop_simulation(
    Simulation='string'
)
type Simulation

string

param Simulation

[REQUIRED]

The name of the simulation.

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

TagResource (new) Link ¶

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 .

See also: AWS API Documentation

Request Syntax

client.tag_resource(
    ResourceArn='string',
    Tags={
        'string': 'string'
    }
)
type ResourceArn

string

param ResourceArn

[REQUIRED]

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 .

type Tags

dict

param Tags

[REQUIRED]

A list of tags to apply to the resource.

  • (string) --

    • (string) --

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

ListApps (new) Link ¶

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

See also: AWS API Documentation

Request Syntax

client.list_apps(
    Domain='string',
    MaxResults=123,
    NextToken='string',
    Simulation='string'
)
type Domain

string

param Domain

The name of the domain that you want to list apps for.

type MaxResults

integer

param MaxResults

The maximum number of apps to list.

type NextToken

string

param NextToken

If SimSpace Weaver returns nextToken , 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, nextToken is set to null . Each pagination token expires after 24 hours. If you provide a token that isn't valid, you receive an HTTP 400 ValidationException error.

type Simulation

string

param Simulation

[REQUIRED]

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

rtype

dict

returns

Response Syntax

{
    'Apps': [
        {
            'Domain': 'string',
            'Name': 'string',
            'Simulation': 'string',
            'Status': 'STARTING'|'STARTED'|'STOPPING'|'STOPPED'|'ERROR'|'UNKNOWN',
            'TargetStatus': 'UNKNOWN'|'STARTED'|'STOPPED'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Apps (list) --

      The list of apps for the given simulation and domain.

      • (dict) --

        A collection of metadata about an app.

        • Domain (string) --

          The domain of the app. For more information about domains, see Key concepts in the Amazon Web Services SimSpace Weaver User Guide .

        • Name (string) --

          The name of the app.

        • Simulation (string) --

          The name of the simulation of the app.

        • Status (string) --

          The current status of the app.

        • TargetStatus (string) --

          The desired status of the app.

    • NextToken (string) --

      If SimSpace Weaver returns nextToken , 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, nextToken is set to null . Each pagination token expires after 24 hours. If you provide a token that isn't valid, you receive an HTTP 400 ValidationException error.

ListSimulations (new) Link ¶

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

See also: AWS API Documentation

Request Syntax

client.list_simulations(
    MaxResults=123,
    NextToken='string'
)
type MaxResults

integer

param MaxResults

The maximum number of simulations to list.

type NextToken

string

param NextToken

If SimSpace Weaver returns nextToken , 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, nextToken is set to null . Each pagination token expires after 24 hours. If you provide a token that isn't valid, you receive an HTTP 400 ValidationException error.

rtype

dict

returns

Response Syntax

{
    'NextToken': 'string',
    'Simulations': [
        {
            'Arn': 'string',
            'CreationTime': datetime(2015, 1, 1),
            'Name': 'string',
            'Status': 'UNKNOWN'|'STARTING'|'STARTED'|'STOPPING'|'STOPPED'|'FAILED'|'DELETING'|'DELETED',
            'TargetStatus': 'UNKNOWN'|'STARTED'|'STOPPED'|'DELETED'
        },
    ]
}

Response Structure

  • (dict) --

    • NextToken (string) --

      If SimSpace Weaver returns nextToken , 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, nextToken is set to null . Each pagination token expires after 24 hours. If you provide a token that isn't valid, you receive an HTTP 400 ValidationException error.

    • Simulations (list) --

      The list of simulations.

      • (dict) --

        A collection of data about the simulation.

        • 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).

        • Name (string) --

          The name of the simulation.

        • Status (string) --

          The current status of the simulation.

        • TargetStatus (string) --

          The desired status of the simulation.

StopClock (new) Link ¶

Stops the simulation clock.

See also: AWS API Documentation

Request Syntax

client.stop_clock(
    Simulation='string'
)
type Simulation

string

param Simulation

[REQUIRED]

The name of the simulation.

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

UntagResource (new) Link ¶

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 .

See also: AWS API Documentation

Request Syntax

client.untag_resource(
    ResourceArn='string',
    TagKeys=[
        'string',
    ]
)
type ResourceArn

string

param ResourceArn

[REQUIRED]

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 .

type TagKeys

list

param TagKeys

[REQUIRED]

A list of tag keys to remove from the resource.

  • (string) --

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

DescribeApp (new) Link ¶

Returns the state of the given custom app.

See also: AWS API Documentation

Request Syntax

client.describe_app(
    App='string',
    Domain='string',
    Simulation='string'
)
type App

string

param App

[REQUIRED]

The name of the app.

type Domain

string

param Domain

[REQUIRED]

The name of the domain of the app.

type Simulation

string

param Simulation

[REQUIRED]

The name of the simulation of the app.

rtype

dict

returns

Response Syntax

{
    'Description': 'string',
    'Domain': 'string',
    'EndpointInfo': {
        'Address': 'string',
        'IngressPortMappings': [
            {
                'Actual': 123,
                'Declared': 123
            },
        ]
    },
    'LaunchOverrides': {
        'LaunchCommands': [
            'string',
        ]
    },
    'Name': 'string',
    'Simulation': 'string',
    'Status': 'STARTING'|'STARTED'|'STOPPING'|'STOPPED'|'ERROR'|'UNKNOWN',
    'TargetStatus': 'UNKNOWN'|'STARTED'|'STOPPED'
}

Response Structure

  • (dict) --

    • Description (string) --

      The description of the app.

    • Domain (string) --

      The name of the domain of the app.

    • EndpointInfo (dict) --

      Information about the network endpoint for the custom app. You can use the endpoint to connect to the custom app.

      • Address (string) --

        The IP address of the app. SimSpace Weaver dynamically assigns this IP address when the app starts.

      • IngressPortMappings (list) --

        The inbound TCP/UDP port numbers of the app. The combination of an IP address and a port number form a network endpoint.

        • (dict) --

          A collection of TCP/UDP ports for a custom or service app.

          • Actual (integer) --

            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.

          • Declared (integer) --

            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.

    • LaunchOverrides (dict) --

      Options that apply when the app starts. These optiAons override default behavior.

      • LaunchCommands (list) --

        App launch commands and command line parameters that override the launch command configured in the simulation schema.

        • (string) --

    • Name (string) --

      The name of the app.

    • Simulation (string) --

      The name of the simulation of the app.

    • Status (string) --

      The current lifecycle state of the custom app.

    • TargetStatus (string) --

      The desired lifecycle state of the custom app.

StartApp (new) Link ¶

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

See also: AWS API Documentation

Request Syntax

client.start_app(
    ClientToken='string',
    Description='string',
    Domain='string',
    LaunchOverrides={
        'LaunchCommands': [
            'string',
        ]
    },
    Name='string',
    Simulation='string'
)
type ClientToken

string

param 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.

This field is autopopulated if not provided.

type Description

string

param Description

The description of the app.

type Domain

string

param Domain

[REQUIRED]

The name of the domain of the app.

type LaunchOverrides

dict

param LaunchOverrides

Options that apply when the app starts. These optiAons override default behavior.

  • LaunchCommands (list) --

    App launch commands and command line parameters that override the launch command configured in the simulation schema.

    • (string) --

type Name

string

param Name

[REQUIRED]

The name of the app.

type Simulation

string

param Simulation

[REQUIRED]

The name of the simulation of the app.

rtype

dict

returns

Response Syntax

{
    'Domain': 'string',
    'Name': 'string',
    'Simulation': 'string'
}

Response Structure

  • (dict) --

    • Domain (string) --

      The name of the domain of the app.

    • Name (string) --

      The name of the app.

    • Simulation (string) --

      The name of the simulation of the app.

DeleteApp (new) Link ¶

Deletes the instance of the given custom app.

See also: AWS API Documentation

Request Syntax

client.delete_app(
    App='string',
    Domain='string',
    Simulation='string'
)
type App

string

param App

[REQUIRED]

The name of the app.

type Domain

string

param Domain

[REQUIRED]

The name of the domain of the app.

type Simulation

string

param Simulation

[REQUIRED]

The name of the simulation of the app.

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

StartClock (new) Link ¶

Starts the simulation clock.

See also: AWS API Documentation

Request Syntax

client.start_clock(
    Simulation='string'
)
type Simulation

string

param Simulation

[REQUIRED]

The name of the simulation.

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

ListTagsForResource (new) Link ¶

Lists all tags on a SimSpace Weaver resource.

See also: AWS API Documentation

Request Syntax

client.list_tags_for_resource(
    ResourceArn='string'
)
type ResourceArn

string

param ResourceArn

[REQUIRED]

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 .

rtype

dict

returns

Response Syntax

{
    'Tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    • Tags (dict) --

      The list of tags for the resource.

      • (string) --

        • (string) --

StartSimulation (new) Link ¶

Starts a simulation with the given name and schema.

See also: AWS API Documentation

Request Syntax

client.start_simulation(
    ClientToken='string',
    Description='string',
    MaximumDuration='string',
    Name='string',
    RoleArn='string',
    SchemaS3Location={
        'BucketName': 'string',
        'ObjectKey': 'string'
    },
    Tags={
        'string': 'string'
    }
)
type ClientToken

string

param 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.

This field is autopopulated if not provided.

type Description

string

param Description

The description of the simulation.

type MaximumDuration

string

param MaximumDuration

The maximum running time of the simulation, specified as a number of months (m or M), hours (h or H), or days (d or D). The simulation stops when it reaches this limit.

type Name

string

param Name

[REQUIRED]

The name of the simulation.

type RoleArn

string

param RoleArn

[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 .

type SchemaS3Location

dict

param SchemaS3Location

[REQUIRED]

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.

type Tags

dict

param 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 .

  • (string) --

    • (string) --

rtype

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.

DeleteSimulation (new) Link ¶

Deletes all SimSpace Weaver resources assigned to the given simulation.

Note

Your simulation uses resources in other Amazon Web Services services. This API operation doesn't delete resources in other Amazon Web Services services.

See also: AWS API Documentation

Request Syntax

client.delete_simulation(
    Simulation='string'
)
type Simulation

string

param Simulation

[REQUIRED]

The name of the simulation.

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --