/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the simspaceweaver-2022-10-28.normal.json service model.
*/
using System;
using System.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.SimSpaceWeaver.Model;
using Amazon.SimSpaceWeaver.Model.Internal.MarshallTransformations;
using Amazon.SimSpaceWeaver.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.SimSpaceWeaver
{
///
/// Implementation for accessing SimSpaceWeaver
///
/// SimSpace Weaver (SimSpace Weaver) is a managed service that you can use to build and
/// operate large-scale spatial simulations in the Amazon Web Services Cloud. For example,
/// you can create a digital twin of a city, crowd simulations with millions of people
/// and objects, and massively multiplayer games with hundreds of thousands of connected
/// players. For more information about SimSpace Weaver, see the SimSpace
/// Weaver User Guide .
///
///
///
/// This API reference describes the API operations and data types that you can use to
/// communicate directly with SimSpace Weaver.
///
///
///
/// SimSpace Weaver also provides the SimSpace Weaver app SDK, which you use for app development.
/// The SimSpace Weaver app SDK API reference is included in the SimSpace Weaver app SDK
/// documentation. This documentation is part of the SimSpace Weaver app SDK distributable
/// package.
///
///
public partial class AmazonSimSpaceWeaverClient : AmazonServiceClient, IAmazonSimSpaceWeaver
{
private static IServiceMetadata serviceMetadata = new AmazonSimSpaceWeaverMetadata();
#region Constructors
///
/// Constructs AmazonSimSpaceWeaverClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
public AmazonSimSpaceWeaverClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonSimSpaceWeaverConfig()) { }
///
/// Constructs AmazonSimSpaceWeaverClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The region to connect.
public AmazonSimSpaceWeaverClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonSimSpaceWeaverConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonSimSpaceWeaverClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The AmazonSimSpaceWeaverClient Configuration Object
public AmazonSimSpaceWeaverClient(AmazonSimSpaceWeaverConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonSimSpaceWeaverClient with AWS Credentials
///
/// AWS Credentials
public AmazonSimSpaceWeaverClient(AWSCredentials credentials)
: this(credentials, new AmazonSimSpaceWeaverConfig())
{
}
///
/// Constructs AmazonSimSpaceWeaverClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonSimSpaceWeaverClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonSimSpaceWeaverConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonSimSpaceWeaverClient with AWS Credentials and an
/// AmazonSimSpaceWeaverClient Configuration object.
///
/// AWS Credentials
/// The AmazonSimSpaceWeaverClient Configuration Object
public AmazonSimSpaceWeaverClient(AWSCredentials credentials, AmazonSimSpaceWeaverConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonSimSpaceWeaverClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonSimSpaceWeaverClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonSimSpaceWeaverConfig())
{
}
///
/// Constructs AmazonSimSpaceWeaverClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonSimSpaceWeaverClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonSimSpaceWeaverConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonSimSpaceWeaverClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonSimSpaceWeaverClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonSimSpaceWeaverClient Configuration Object
public AmazonSimSpaceWeaverClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonSimSpaceWeaverConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonSimSpaceWeaverClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonSimSpaceWeaverClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonSimSpaceWeaverConfig())
{
}
///
/// Constructs AmazonSimSpaceWeaverClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The region to connect.
public AmazonSimSpaceWeaverClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonSimSpaceWeaverConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonSimSpaceWeaverClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonSimSpaceWeaverClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonSimSpaceWeaverClient Configuration Object
public AmazonSimSpaceWeaverClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonSimSpaceWeaverConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private ISimSpaceWeaverPaginatorFactory _paginators;
///
/// Paginators for the service
///
public ISimSpaceWeaverPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new SimSpaceWeaverPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customizes the runtime pipeline.
///
/// Runtime pipeline for the current client.
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonSimSpaceWeaverEndpointResolver());
}
///
/// Capture metadata for the service.
///
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
///
/// Disposes the service client.
///
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region CreateSnapshot
internal virtual CreateSnapshotResponse CreateSnapshot(CreateSnapshotRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateSnapshotResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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
///
///
///
/// Container for the necessary parameters to execute the CreateSnapshot service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateSnapshot service method, as returned by SimSpaceWeaver.
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for CreateSnapshot Operation
public virtual Task CreateSnapshotAsync(CreateSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateSnapshotResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteApp
internal virtual DeleteAppResponse DeleteApp(DeleteAppRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAppRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAppResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes the instance of the given custom app.
///
/// Container for the necessary parameters to execute the DeleteApp service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteApp service method, as returned by SimSpaceWeaver.
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for DeleteApp Operation
public virtual Task DeleteAppAsync(DeleteAppRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAppRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAppResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteSimulation
internal virtual DeleteSimulationResponse DeleteSimulation(DeleteSimulationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteSimulationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteSimulationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
///
/// Container for the necessary parameters to execute the DeleteSimulation service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteSimulation service method, as returned by SimSpaceWeaver.
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for DeleteSimulation Operation
public virtual Task DeleteSimulationAsync(DeleteSimulationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteSimulationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteSimulationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeApp
internal virtual DescribeAppResponse DescribeApp(DescribeAppRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAppRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAppResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the state of the given custom app.
///
/// Container for the necessary parameters to execute the DescribeApp service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeApp service method, as returned by SimSpaceWeaver.
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for DescribeApp Operation
public virtual Task DescribeAppAsync(DescribeAppRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAppRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAppResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeSimulation
internal virtual DescribeSimulationResponse DescribeSimulation(DescribeSimulationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSimulationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSimulationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the current state of the given simulation.
///
/// Container for the necessary parameters to execute the DescribeSimulation service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeSimulation service method, as returned by SimSpaceWeaver.
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for DescribeSimulation Operation
public virtual Task DescribeSimulationAsync(DescribeSimulationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSimulationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSimulationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListApps
internal virtual ListAppsResponse ListApps(ListAppsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAppsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAppsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists all custom apps or service apps for the given simulation and domain.
///
/// Container for the necessary parameters to execute the ListApps service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListApps service method, as returned by SimSpaceWeaver.
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for ListApps Operation
public virtual Task ListAppsAsync(ListAppsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAppsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAppsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListSimulations
internal virtual ListSimulationsResponse ListSimulations(ListSimulationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListSimulationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListSimulationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the SimSpace Weaver simulations in the Amazon Web Services account used to make
/// the API call.
///
/// Container for the necessary parameters to execute the ListSimulations service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListSimulations service method, as returned by SimSpaceWeaver.
///
///
///
///
///
///
///
///
///
/// REST API Reference for ListSimulations Operation
public virtual Task ListSimulationsAsync(ListSimulationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListSimulationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListSimulationsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists all tags on a SimSpace Weaver resource.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTagsForResource service method, as returned by SimSpaceWeaver.
///
///
///
///
///
///
/// REST API Reference for ListTagsForResource Operation
public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StartApp
internal virtual StartAppResponse StartApp(StartAppRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartAppRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartAppResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Starts a custom app with the configuration specified in the simulation schema.
///
/// Container for the necessary parameters to execute the StartApp service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StartApp service method, as returned by SimSpaceWeaver.
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for StartApp Operation
public virtual Task StartAppAsync(StartAppRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartAppRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartAppResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StartClock
internal virtual StartClockResponse StartClock(StartClockRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartClockRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartClockResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Starts the simulation clock.
///
/// Container for the necessary parameters to execute the StartClock service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StartClock service method, as returned by SimSpaceWeaver.
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for StartClock Operation
public virtual Task StartClockAsync(StartClockRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartClockRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartClockResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StartSimulation
internal virtual StartSimulationResponse StartSimulation(StartSimulationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartSimulationRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartSimulationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// Container for the necessary parameters to execute the StartSimulation service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StartSimulation service method, as returned by SimSpaceWeaver.
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for StartSimulation Operation
public virtual Task StartSimulationAsync(StartSimulationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartSimulationRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartSimulationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StopApp
internal virtual StopAppResponse StopApp(StopAppRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StopAppRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopAppResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Stops the given custom app and shuts down all of its allocated compute resources.
///
/// Container for the necessary parameters to execute the StopApp service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StopApp service method, as returned by SimSpaceWeaver.
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for StopApp Operation
public virtual Task StopAppAsync(StopAppRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StopAppRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopAppResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StopClock
internal virtual StopClockResponse StopClock(StopClockRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StopClockRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopClockResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Stops the simulation clock.
///
/// Container for the necessary parameters to execute the StopClock service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StopClock service method, as returned by SimSpaceWeaver.
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for StopClock Operation
public virtual Task StopClockAsync(StopClockRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StopClockRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopClockResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region StopSimulation
internal virtual StopSimulationResponse StopSimulation(StopSimulationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StopSimulationRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopSimulationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
///
///
/// Container for the necessary parameters to execute the StopSimulation service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the StopSimulation service method, as returned by SimSpaceWeaver.
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
/// REST API Reference for StopSimulation Operation
public virtual Task StopSimulationAsync(StopSimulationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StopSimulationRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopSimulationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region TagResource
internal virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the TagResource service method, as returned by SimSpaceWeaver.
///
///
///
///
///
///
///
///
///
/// REST API Reference for TagResource Operation
public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UntagResource
internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UntagResource service method, as returned by SimSpaceWeaver.
///
///
///
///
///
///
/// REST API Reference for UntagResource Operation
public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}