CfnSimulationProps Struct
Properties for defining a CfnSimulation.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_simspaceweaver as simspaceweaver } from 'aws-cdk-lib';
const cfnSimulationProps: simspaceweaver.CfnSimulationProps = {
name: 'name',
roleArn: 'roleArn',
// the properties below are optional
maximumDuration: 'maximumDuration',
schemaS3Location: {
bucketName: 'bucketName',
objectKey: 'objectKey',
},
snapshotS3Location: {
bucketName: 'bucketName',
objectKey: 'objectKey',
},
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_simspaceweaver as simspaceweaver
cfn_simulation_props = simspaceweaver.CfnSimulationProps(
name="name",
role_arn="roleArn",
# the properties below are optional
maximum_duration="maximumDuration",
schema_s3_location=simspaceweaver.CfnSimulation.S3LocationProperty(
bucket_name="bucketName",
object_key="objectKey"
),
snapshot_s3_location=simspaceweaver.CfnSimulation.S3LocationProperty(
bucket_name="bucketName",
object_key="objectKey"
)
)
// 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.*;
CfnSimulationProps cfnSimulationProps = CfnSimulationProps.builder()
.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();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SimSpaceWeaver;
var cfnSimulationProps = new CfnSimulationProps {
Name = "name",
RoleArn = "roleArn",
// the properties below are optional
MaximumDuration = "maximumDuration",
SchemaS3Location = new S3LocationProperty {
BucketName = "bucketName",
ObjectKey = "objectKey"
},
SnapshotS3Location = new S3LocationProperty {
BucketName = "bucketName",
ObjectKey = "objectKey"
}
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnSimulationProps := &CfnSimulationProps{
Name: jsii.String("name"),
RoleArn: jsii.String("roleArn"),
// the properties below are optional
MaximumDuration: jsii.String("maximumDuration"),
SchemaS3Location: &S3LocationProperty{
BucketName: jsii.String("bucketName"),
ObjectKey: jsii.String("objectKey"),
},
SnapshotS3Location: &S3LocationProperty{
BucketName: jsii.String("bucketName"),
ObjectKey: jsii.String("objectKey"),
},
}
Properties
maximumDurationoptionalstringmaximum_durationoptionalstrmaximumDurationoptionalStringMaximumDurationoptionalstringMaximumDurationoptional*string #notes
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 .
notes
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 .
schemaS3LocationoptionalIResolvable | CfnSimulation.S3LocationPropertyschema_s3_locationoptionaltyping.Union[IResolvable, S3LocationProperty]schemaS3LocationoptionalIResolvableSchemaS3LocationoptionalIResolvableSchemaS3Locationoptionalinterface{} #notes
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 .
snapshotS3LocationoptionalIResolvable | CfnSimulation.S3LocationPropertysnapshot_s3_locationoptionaltyping.Union[IResolvable, S3LocationProperty]snapshotS3LocationoptionalIResolvableSnapshotS3LocationoptionalIResolvableSnapshotS3Locationoptionalinterface{} #notes
For more information about Amazon S3 , see the Amazon Simple Storage Service User Guide .
Provide a SnapshotS3Location to start your simulation from a snapshot.
If you provide a SnapshotS3Location then you can't provide a SchemaS3Location .