{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/ActivationKey",
  "/properties/SecurityGroupArns",
  "/properties/SubnetArns",
  "/properties/VpcEndpointId"
 ],
 "definitions": {
  "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/AgentArn"
 ],
 "properties": {
  "ActivationKey": {
   "maxLength": 29,
   "minLength": 0,
   "pattern": "[A-Z0-9]{5}(-[A-Z0-9]{5}){4}",
   "type": "string"
  },
  "AgentArn": {
   "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}:agent/agent-[0-9a-z]{17}$",
   "type": "string"
  },
  "AgentName": {
   "maxLength": 256,
   "minLength": 0,
   "pattern": "^[a-zA-Z0-9\\s+=._:@/-]+$",
   "type": "string"
  },
  "EndpointType": {
   "enum": [
    "FIPS",
    "PUBLIC",
    "PRIVATE_LINK"
   ],
   "type": "string"
  },
  "SecurityGroupArns": {
   "insertionOrder": false,
   "items": {
    "maxLength": 128,
    "minLength": 0,
    "pattern": "^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):ec2:[a-z\\-0-9]*:[0-9]{12}:security-group/.*$",
    "type": "string"
   },
   "maxItems": 1,
   "minItems": 1,
   "type": "array"
  },
  "SubnetArns": {
   "insertionOrder": false,
   "items": {
    "maxLength": 128,
    "minLength": 0,
    "pattern": "^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):ec2:[a-z\\-0-9]*:[0-9]{12}:subnet/.*$",
    "type": "string"
   },
   "maxItems": 1,
   "minItems": 1,
   "type": "array"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 50,
   "minItems": 0,
   "type": "array",
   "uniqueItems": true
  },
  "VpcEndpointId": {
   "pattern": "^vpce-[0-9a-f]{17}$",
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/AgentArn",
  "/properties/EndpointType"
 ],
 "required": [],
 "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::Agent",
 "writeOnlyProperties": [
  "/properties/ActivationKey"
 ]
}
