class CfnSimulationPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.SimSpaceWeaver.Mixins.CfnSimulationPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awssimspaceweaver/mixins#CfnSimulationPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.simspaceweaver.mixins.CfnSimulationPropsMixin |
Python | aws_cdk.mixins_preview.aws_simspaceweaver.mixins.CfnSimulationPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_simspaceweaver » mixins » CfnSimulationPropsMixin |
Implements
IMixin
Extends
Mixin
Use the AWS::SimSpaceWeaver::Simulation resource to specify a simulation that 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 { mixins } from '@aws-cdk/mixins-preview';
import { mixins as simspaceweaver_mixins } from '@aws-cdk/mixins-preview/aws-simspaceweaver';
const cfnSimulationPropsMixin = new simspaceweaver_mixins.CfnSimulationPropsMixin({
maximumDuration: 'maximumDuration',
name: 'name',
roleArn: 'roleArn',
schemaS3Location: {
bucketName: 'bucketName',
objectKey: 'objectKey',
},
snapshotS3Location: {
bucketName: 'bucketName',
objectKey: 'objectKey',
},
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnSimulationPropsMixin(props: CfnSimulationMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Simulation Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::SimSpaceWeaver::Simulation.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript