{
 "additionalProperties": false,
 "definitions": {
  "ConnectorAsyncMdnConfig": {
   "additionalProperties": false,
   "properties": {
    "ServerIds": {
     "insertionOrder": false,
     "items": {
      "$ref": "#/definitions/ServerId"
     },
     "maxItems": 10,
     "minItems": 1,
     "type": "array",
     "uniqueItems": true
    },
    "Url": {
     "maxLength": 255,
     "minLength": 0,
     "type": "string"
    }
   },
   "required": [
    "Url",
    "ServerIds"
   ],
   "type": "object"
  },
  "ConnectorEgressConfig": {
   "additionalProperties": false,
   "properties": {
    "VpcLattice": {
     "$ref": "#/definitions/ConnectorVpcLatticeEgressConfig"
    }
   },
   "required": [
    "VpcLattice"
   ],
   "type": "object"
  },
  "ConnectorEgressType": {
   "enum": [
    "SERVICE_MANAGED",
    "VPC_LATTICE"
   ],
   "type": "string"
  },
  "ConnectorStatus": {
   "enum": [
    "ACTIVE",
    "PENDING",
    "ERRORED"
   ],
   "type": "string"
  },
  "ConnectorVpcLatticeEgressConfig": {
   "additionalProperties": false,
   "properties": {
    "PortNumber": {
     "maximum": 65535,
     "minimum": 1,
     "type": "integer"
    },
    "ResourceConfigurationArn": {
     "maxLength": 2048,
     "minLength": 1,
     "pattern": "^arn:[a-z0-9\\-]+:vpc-lattice:[a-zA-Z0-9\\-]+:\\d{12}:resourceconfiguration/rcfg-[0-9a-z]{17}$",
     "type": "string"
    }
   },
   "required": [
    "ResourceConfigurationArn"
   ],
   "type": "object"
  },
  "IpAddressType": {
   "enum": [
    "IPV4",
    "DUALSTACK"
   ],
   "type": "string"
  },
  "ServerId": {
   "maxLength": 19,
   "minLength": 19,
   "pattern": "^s-([0-9a-f]{17})$",
   "type": "string"
  },
  "SftpConnectorTrustedHostKey": {
   "maxLength": 2048,
   "minLength": 1,
   "type": "string"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/ConnectorId"
 ],
 "properties": {
  "AccessRole": {
   "maxLength": 2048,
   "minLength": 20,
   "pattern": "arn:.*role/.*",
   "type": "string"
  },
  "Arn": {
   "maxLength": 1600,
   "minLength": 20,
   "pattern": "arn:.*",
   "type": "string"
  },
  "As2Config": {
   "additionalProperties": false,
   "properties": {
    "AsyncMdnConfig": {
     "$ref": "#/definitions/ConnectorAsyncMdnConfig"
    },
    "BasicAuthSecretId": {
     "maxLength": 2048,
     "minLength": 0,
     "type": "string"
    },
    "Compression": {
     "enum": [
      "ZLIB",
      "DISABLED"
     ],
     "type": "string"
    },
    "EncryptionAlgorithm": {
     "enum": [
      "AES128_CBC",
      "AES192_CBC",
      "AES256_CBC",
      "NONE",
      "DES_EDE3_CBC"
     ],
     "type": "string"
    },
    "LocalProfileId": {
     "maxLength": 19,
     "minLength": 19,
     "pattern": "^p-([0-9a-f]{17})$",
     "type": "string"
    },
    "MdnResponse": {
     "enum": [
      "SYNC",
      "ASYNC",
      "NONE"
     ],
     "type": "string"
    },
    "MdnSigningAlgorithm": {
     "enum": [
      "SHA256",
      "SHA384",
      "SHA512",
      "SHA1",
      "NONE",
      "DEFAULT"
     ],
     "type": "string"
    },
    "MessageSubject": {
     "maxLength": 1024,
     "minLength": 1,
     "pattern": "^[\\u0020-\\u007E\\t]+$",
     "type": "string"
    },
    "PartnerProfileId": {
     "maxLength": 19,
     "minLength": 19,
     "pattern": "^p-([0-9a-f]{17})$",
     "type": "string"
    },
    "PreserveContentType": {
     "enum": [
      "ENABLED",
      "DISABLED"
     ],
     "type": "string"
    },
    "SigningAlgorithm": {
     "enum": [
      "SHA256",
      "SHA384",
      "SHA512",
      "SHA1",
      "NONE"
     ],
     "type": "string"
    }
   },
   "type": "object"
  },
  "ConnectorId": {
   "maxLength": 19,
   "minLength": 19,
   "pattern": "^c-([0-9a-f]{17})$",
   "type": "string"
  },
  "EgressConfig": {
   "$ref": "#/definitions/ConnectorEgressConfig"
  },
  "EgressType": {
   "$ref": "#/definitions/ConnectorEgressType"
  },
  "ErrorMessage": {
   "maxLength": 2048,
   "type": "string"
  },
  "IpAddressType": {
   "$ref": "#/definitions/IpAddressType"
  },
  "LoggingRole": {
   "maxLength": 2048,
   "minLength": 20,
   "pattern": "arn:.*role/.*",
   "type": "string"
  },
  "SecurityPolicyName": {
   "maxLength": 50,
   "minLength": 0,
   "pattern": "TransferSFTPConnectorSecurityPolicy-[A-Za-z0-9-]+",
   "type": "string"
  },
  "ServiceManagedEgressIpAddresses": {
   "insertionOrder": false,
   "items": {
    "pattern": "^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$",
    "type": "string"
   },
   "type": "array"
  },
  "SftpConfig": {
   "additionalProperties": false,
   "properties": {
    "MaxConcurrentConnections": {
     "default": 1,
     "maximum": 5,
     "minimum": 1,
     "type": "integer"
    },
    "TrustedHostKeys": {
     "insertionOrder": false,
     "items": {
      "$ref": "#/definitions/SftpConnectorTrustedHostKey"
     },
     "maxItems": 10,
     "minItems": 0,
     "type": "array",
     "uniqueItems": false
    },
    "UserSecretId": {
     "maxLength": 2048,
     "minLength": 1,
     "type": "string"
    }
   },
   "type": "object"
  },
  "Status": {
   "$ref": "#/definitions/ConnectorStatus"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 50,
   "minItems": 1,
   "type": "array",
   "uniqueItems": true
  },
  "Url": {
   "maxLength": 255,
   "minLength": 0,
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/Arn",
  "/properties/ConnectorId",
  "/properties/ServiceManagedEgressIpAddresses",
  "/properties/Status",
  "/properties/ErrorMessage"
 ],
 "required": [
  "AccessRole"
 ],
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::Transfer::Connector"
}
