{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/S3BucketArn"
 ],
 "definitions": {
  "S3Config": {
   "additionalProperties": false,
   "properties": {
    "BucketAccessRoleArn": {
     "format": "AWS::IAM::Role.Arn",
     "maxLength": 2048,
     "minLength": 0,
     "pattern": "^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):iam::[0-9]{12}:role/.*$",
     "type": "string"
    }
   },
   "required": [
    "BucketAccessRoleArn"
   ],
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 256,
     "minLength": 1,
     "pattern": "^[a-zA-Z0-9\\s+=._:/-]+$",
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 1,
     "pattern": "^[a-zA-Z0-9\\s+=._:@/-]+$",
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/LocationArn"
 ],
 "properties": {
  "LocationArn": {
   "maxLength": 128,
   "pattern": "^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):datasync:[a-z\\-0-9]+:[0-9]{12}:location/loc-[0-9a-z]{17}$",
   "type": "string"
  },
  "LocationUri": {
   "maxLength": 4356,
   "pattern": "^(efs|nfs|s3|smb|fsxw)://[a-zA-Z0-9.\\-/]+$",
   "type": "string"
  },
  "S3BucketArn": {
   "maxLength": 156,
   "minLength": 0,
   "pattern": "^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):s3:[a-z\\-0-9]*:[0-9]*:.*$",
   "type": "string"
  },
  "S3Config": {
   "$ref": "#/definitions/S3Config"
  },
  "S3StorageClass": {
   "default": "STANDARD",
   "enum": [
    "STANDARD",
    "STANDARD_IA",
    "ONEZONE_IA",
    "INTELLIGENT_TIERING",
    "GLACIER",
    "GLACIER_INSTANT_RETRIEVAL",
    "DEEP_ARCHIVE"
   ],
   "type": "string"
  },
  "Subdirectory": {
   "maxLength": 1024,
   "minLength": 0,
   "pattern": "^[\\p{L}\\p{M}\\p{Z}\\p{S}\\p{N}\\p{P}\\p{C}]*$",
   "type": "string"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 50,
   "minItems": 0,
   "type": "array",
   "uniqueItems": true
  }
 },
 "readOnlyProperties": [
  "/properties/LocationArn",
  "/properties/LocationUri"
 ],
 "required": [
  "S3Config"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-datasync.git",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::DataSync::LocationS3",
 "writeOnlyProperties": [
  "/properties/Subdirectory",
  "/properties/S3BucketArn"
 ]
}
