{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-datasync-agent.json",
  "title": "AWSDataSyncAgentProperties",
  "description": "Resource schema for AWS::DataSync::Agent.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-datasync.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-datasync-agent.json",
    "sourceSha256": "002729d4263f4acda2ca4492f4c3376b4bcba6f706134afb2a1324292f3315c3"
  },
  "type": "object",
  "properties": {
    "AgentName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[a-zA-Z0-9\\s+=._:@/-]+$",
          "maxLength": 256,
          "minLength": 1
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name configured for the agent. Text reference used to identify the agent in the console."
    },
    "ActivationKey": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[A-Z0-9]{5}(-[A-Z0-9]{5}){4}",
          "maxLength": 29
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Activation key of the Agent."
    },
    "SecurityGroupArns": {
      "description": "The ARNs of the security group used to protect your data transfer task subnets.",
      "type": "array",
      "insertionOrder": false,
      "items": {
        "type": "string",
        "pattern": "^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):ec2:[a-z\\-0-9]*:[0-9]{12}:security-group/.*$",
        "maxLength": 128
      }
    },
    "SubnetArns": {
      "description": "The ARNs of the subnets in which DataSync will create elastic network interfaces for each data transfer task.",
      "type": "array",
      "insertionOrder": false,
      "items": {
        "type": "string",
        "pattern": "^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):ec2:[a-z\\-0-9]*:[0-9]{12}:subnet/.*$",
        "maxLength": 128
      }
    },
    "VpcEndpointId": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^vpce-[0-9a-f]{17}$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The ID of the VPC endpoint that the agent has access to."
    },
    "Tags": {
      "description": "An array of key-value pairs to apply to this resource.",
      "type": "array",
      "maxItems": 50,
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::DataSync::Agent",
  "writeOnlyProperties": [
    "/properties/ActivationKey"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-datasync.git",
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/ActivationKey",
    "/properties/SecurityGroupArns",
    "/properties/SubnetArns",
    "/properties/VpcEndpointId"
  ],
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": true,
    "tagProperty": "/properties/Tags"
  },
  "$defs": {
    "Tag": {
      "title": "AWSDataSyncAgentTagDefinition",
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[a-zA-Z0-9\\s+=._:/-]+$",
              "maxLength": 256,
              "minLength": 1
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key for an AWS resource tag."
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[a-zA-Z0-9\\s+=._:@/-]+$",
              "maxLength": 256,
              "minLength": 1
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value for an AWS resource tag."
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "additionalProperties": false
    }
  },
  "required": [],
  "readOnlyProperties": [
    "/properties/AgentArn",
    "/properties/EndpointType"
  ],
  "primaryIdentifier": [
    "/properties/AgentArn"
  ]
}
