{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/Name",
  "/properties/RoleArn",
  "/properties/SchemaS3Location",
  "/properties/SnapshotS3Location",
  "/properties/MaximumDuration"
 ],
 "definitions": {
  "S3Location": {
   "additionalProperties": false,
   "properties": {
    "BucketName": {
     "format": "AWS::S3::Bucket.Name",
     "maxLength": 63,
     "minLength": 3,
     "pattern": "[a-zA-Z0-9_\\-]{3,63}$",
     "type": "string"
    },
    "ObjectKey": {
     "maxLength": 255,
     "minLength": 3,
     "type": "string"
    }
   },
   "required": [
    "BucketName",
    "ObjectKey"
   ],
   "type": "object"
  }
 },
 "lifecycle": {
  "date": "2026-05-20",
  "status": "sunset"
 },
 "oneOf": [
  {
   "required": [
    "SchemaS3Location"
   ]
  },
  {
   "required": [
    "SnapshotS3Location"
   ]
  }
 ],
 "primaryIdentifier": [
  "/properties/Name"
 ],
 "properties": {
  "DescribePayload": {
   "type": "string"
  },
  "MaximumDuration": {
   "maxLength": 6,
   "minLength": 2,
   "pattern": "^\\d{1,5}[mhdMHD]$",
   "type": "string"
  },
  "Name": {
   "maxLength": 2048,
   "minLength": 1,
   "pattern": "[a-zA-Z0-9_\\-]{1,2048}$",
   "type": "string"
  },
  "RoleArn": {
   "format": "AWS::IAM::Role.Arn",
   "maxLength": 1600,
   "minLength": 0,
   "pattern": "^arn:(?:aws|aws-cn|aws-us-gov):iam::(\\d{12})?:role\\/(.+)$",
   "type": "string"
  },
  "SchemaS3Location": {
   "$ref": "#/definitions/S3Location"
  },
  "SnapshotS3Location": {
   "$ref": "#/definitions/S3Location"
  }
 },
 "propertyTransform": {
  "properties/MaximumDuration": "$uppercase(MaximumDuration)"
 },
 "readOnlyProperties": [
  "/properties/DescribePayload"
 ],
 "required": [
  "Name",
  "RoleArn"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": false,
  "tagUpdatable": false,
  "taggable": false
 },
 "typeName": "AWS::SimSpaceWeaver::Simulation"
}
