{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-datasync-storagesystem.json",
  "title": "AWSDataSyncStorageSystemProperties",
  "description": "Resource schema for AWS::DataSync::StorageSystem.. 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-storagesystem.json",
    "sourceSha256": "c707b412cb75dbe66579d5a0d38dad9f98c9b84158f00a50055d7b259dfee096"
  },
  "type": "object",
  "properties": {
    "ServerConfiguration": {
      "$ref": "#/$defs/ServerConfiguration"
    },
    "ServerCredentials": {
      "$ref": "#/$defs/ServerCredentials"
    },
    "SystemType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "NetAppONTAP"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The type of on-premises storage system that DataSync Discovery will analyze."
    },
    "AgentArns": {
      "description": "The ARN of the DataSync agent that connects to and reads from the on-premises storage system's management interface.",
      "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": 1,
      "insertionOrder": false
    },
    "CloudWatchLogGroupArn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):logs:[a-z\\-0-9]+:[0-9]{12}:log-group:([^:\\*]*)(:\\*)?$",
          "maxLength": 562
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The ARN of the Amazon CloudWatch log group used to monitor and log discovery job events."
    },
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[a-zA-Z0-9\\s+=._:@/-]+$",
          "minLength": 1,
          "maxLength": 256
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A familiar name for the on-premises storage system."
    },
    "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::StorageSystem",
  "readOnlyProperties": [
    "/properties/StorageSystemArn",
    "/properties/ConnectivityStatus",
    "/properties/SecretsManagerArn"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-datasync.git",
  "additionalProperties": false,
  "writeOnlyProperties": [
    "/properties/ServerCredentials"
  ],
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": true,
    "tagProperty": "/properties/Tags"
  },
  "$defs": {
    "ServerConfiguration": {
      "title": "AWSDataSyncStorageSystemServerConfigurationDefinition",
      "description": "The server name and network port required to connect with the management interface of the on-premises storage system.",
      "type": "object",
      "properties": {
        "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 domain name or IP address of the storage system's management interface."
        },
        "ServerPort": {
          "type": "integer",
          "description": "The network port needed to access the system's management interface",
          "minimum": 1,
          "maximum": 65535
        }
      },
      "required": [
        "ServerHostname"
      ],
      "additionalProperties": false
    },
    "ServerCredentials": {
      "title": "AWSDataSyncStorageSystemServerCredentialsDefinition",
      "description": "The username and password for accessing your on-premises storage system's management interface.",
      "type": "object",
      "properties": {
        "Username": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 1024
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The username for your storage system's management interface."
        },
        "Password": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 1024
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The password for your storage system's management interface"
        }
      },
      "required": [
        "Username",
        "Password"
      ],
      "additionalProperties": false
    },
    "Tag": {
      "title": "AWSDataSyncStorageSystemTagDefinition",
      "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": [
    "ServerConfiguration",
    "SystemType",
    "AgentArns"
  ],
  "primaryIdentifier": [
    "/properties/StorageSystemArn"
  ]
}
