{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-datasync-locationnfs.json",
  "title": "AWSDataSyncLocationNFSProperties",
  "description": "Resource schema for AWS::DataSync::LocationNFS. 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-locationnfs.json",
    "sourceSha256": "1d3120cbc9bc99a93681a8b6eda318c42d930c93f8c8364a1e9bfa350e4a1cd2"
  },
  "type": "object",
  "properties": {
    "MountOptions": {
      "$ref": "#/$defs/MountOptions",
      "default": {
        "Version": "AUTOMATIC"
      }
    },
    "OnPremConfig": {
      "$ref": "#/$defs/OnPremConfig"
    },
    "ServerHostname": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^(([a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9\\-]*[A-Za-z0-9])$",
          "maxLength": 255
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the NFS server. This value is the IP address or DNS name of the NFS server."
    },
    "Subdirectory": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 4096,
          "pattern": "^[a-zA-Z0-9_\\-\\+\\./\\(\\)\\$\\p{Zs}]+$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The subdirectory in the NFS file system that is used to read data from the NFS source location or write data to the NFS destination."
    },
    "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::LocationNFS",
  "writeOnlyProperties": [
    "/properties/ServerHostname",
    "/properties/Subdirectory"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-datasync.git",
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/ServerHostname"
  ],
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": true,
    "tagProperty": "/properties/Tags"
  },
  "$defs": {
    "MountOptions": {
      "title": "AWSDataSyncLocationNFSMountOptionsDefinition",
      "description": "The NFS mount options that DataSync can use to mount your NFS share.",
      "type": "object",
      "properties": {
        "Version": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "AUTOMATIC",
                "NFS3",
                "NFS4_0",
                "NFS4_1"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The specific NFS version that you want DataSync to use to mount your NFS share."
        }
      },
      "additionalProperties": false
    },
    "OnPremConfig": {
      "title": "AWSDataSyncLocationNFSOnPremConfigDefinition",
      "description": "Contains a list of Amazon Resource Names (ARNs) of agents that are used to connect an NFS server.",
      "type": "object",
      "properties": {
        "AgentArns": {
          "description": "ARN(s) of the agent(s) to use for an NFS location.",
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):datasync:[a-z\\-0-9]+:[0-9]{12}:agent/agent-[0-9a-z]{17}$",
            "maxLength": 128
          },
          "minItems": 1,
          "maxItems": 4,
          "insertionOrder": false
        }
      },
      "required": [
        "AgentArns"
      ],
      "additionalProperties": false
    },
    "Tag": {
      "title": "AWSDataSyncLocationNFSTagDefinition",
      "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": [
    "OnPremConfig"
  ],
  "readOnlyProperties": [
    "/properties/LocationArn",
    "/properties/LocationUri"
  ],
  "primaryIdentifier": [
    "/properties/LocationArn"
  ]
}
