Class CfnSimulation
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::SimSpaceWeaver::Simulation.
Use the AWS::SimSpaceWeaver::Simulation resource to specify a simulation that AWS CloudFormation starts in the AWS Cloud , in your AWS account . In the resource properties section of your template, provide the name of an existing IAM role configured with the proper permissions, and the name of an existing Amazon S3 bucket. Your account must have permissions to read the Amazon S3 bucket. The Amazon S3 bucket must contain a valid schema. The schema must refer to simulation assets that are already uploaded to the AWS Cloud . For more information, see the detailed tutorial in the AWS SimSpace Weaver User Guide .
Specify a SnapshotS3Location to start a simulation from a snapshot instead of from a schema. When you start a simulation from a snapshot, SimSpace Weaver initializes the entity data in the State Fabric with data saved in the snapshot, starts the spatial and service apps that were running when the snapshot was created, and restores the clock to the appropriate tick. Your app zip files must be in the same location in Amazon S3 as they were in for the original simulation. You must start any custom apps separately. For more information about snapshots, see Snapshots in the AWS SimSpace Weaver User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.simspaceweaver.*;
CfnSimulation cfnSimulation = CfnSimulation.Builder.create(this, "MyCfnSimulation")
.name("name")
.roleArn("roleArn")
// the properties below are optional
.maximumDuration("maximumDuration")
.schemaS3Location(S3LocationProperty.builder()
.bucketName("bucketName")
.objectKey("objectKey")
.build())
.snapshotS3Location(S3LocationProperty.builder()
.bucketName("bucketName")
.objectKey("objectKey")
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnSimulation.static interfaceA location in Amazon Simple Storage Service ( Amazon S3 ) where SimSpace Weaver stores simulation data, such as your app .zip files and schema file.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnSimulation(Construct scope, String id, CfnSimulationProps props) Create a newAWS::SimSpaceWeaver::Simulation.protectedCfnSimulation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnSimulation(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe JSON blob that the DescribeSimulation action returns.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).getName()The name of the simulation.The Amazon Resource Name (ARN) of the AWS Identity and Access Management ( IAM ) role that the simulation assumes to perform actions.The location of the simulation schema in Amazon Simple Storage Service ( Amazon S3 ).The location of the snapshot in Amazon Simple Storage Service ( Amazon S3 ).voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetMaximumDuration(String value) 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).voidThe name of the simulation.voidsetRoleArn(String value) The Amazon Resource Name (ARN) of the AWS Identity and Access Management ( IAM ) role that the simulation assumes to perform actions.voidsetSchemaS3Location(IResolvable value) The location of the simulation schema in Amazon Simple Storage Service ( Amazon S3 ).voidThe location of the simulation schema in Amazon Simple Storage Service ( Amazon S3 ).voidsetSnapshotS3Location(IResolvable value) The location of the snapshot in Amazon Simple Storage Service ( Amazon S3 ).voidThe location of the snapshot in Amazon Simple Storage Service ( Amazon S3 ).Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnSimulation
protected CfnSimulation(software.amazon.jsii.JsiiObjectRef objRef) -
CfnSimulation
protected CfnSimulation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnSimulation
@Stability(Stable) public CfnSimulation(@NotNull Construct scope, @NotNull String id, @NotNull CfnSimulationProps props) Create a newAWS::SimSpaceWeaver::Simulation.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrDescribePayload
The JSON blob that the DescribeSimulation action returns. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getName
The name of the simulation. -
setName
The name of the simulation. -
getRoleArn
The Amazon Resource Name (ARN) of the AWS 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 AWS General Reference . For more information about IAM roles, see IAM roles in the AWS Identity and Access Management User Guide .
-
setRoleArn
The Amazon Resource Name (ARN) of the AWS 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 AWS General Reference . For more information about IAM roles, see IAM roles in the AWS Identity and Access Management User Guide .
-
getMaximumDuration
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. -
setMaximumDuration
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. -
getSchemaS3Location
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. -
setSchemaS3Location
@Stability(Stable) public void setSchemaS3Location(@Nullable CfnSimulation.S3LocationProperty value) 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. -
setSchemaS3Location
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. -
getSnapshotS3Location
The location of the snapshot 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.If you provide a
SnapshotS3Locationthen you can't provide aSchemaS3Location. -
setSnapshotS3Location
@Stability(Stable) public void setSnapshotS3Location(@Nullable CfnSimulation.S3LocationProperty value) The location of the snapshot 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.If you provide a
SnapshotS3Locationthen you can't provide aSchemaS3Location. -
setSnapshotS3Location
The location of the snapshot 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.If you provide a
SnapshotS3Locationthen you can't provide aSchemaS3Location.
-