{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-appflow-connector.json",
  "title": "AWSAppFlowConnectorProperties",
  "description": "Resource schema for AWS::AppFlow::Connector. Source:- <https://docs.aws.amazon.com/appflow/latest/userguide/what-is-appflow.html>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-appflow-connector.json",
    "sourceSha256": "f3385693aa552a8c0bedc3fb4f925e8a822013914cdbe5c59e61b2900f0f74d7"
  },
  "type": "object",
  "properties": {
    "ConnectorLabel": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[a-zA-Z0-9][\\w!@#.-]+",
          "maxLength": 512
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": " The name of the connector. The name is unique for each ConnectorRegistration in your AWS account."
    },
    "ConnectorProvisioningType": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[a-zA-Z0-9][\\w!@#.-]+",
          "maxLength": 256,
          "minLength": 1
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The provisioning type of the connector. Currently the only supported value is LAMBDA. "
    },
    "ConnectorProvisioningConfig": {
      "description": "Contains information about the configuration of the connector being registered.",
      "$ref": "#/$defs/ConnectorProvisioningConfig"
    },
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[\\s\\w/!@#+=.-]*",
          "maxLength": 2048
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A description about the connector that's being registered."
    }
  },
  "typeName": "AWS::AppFlow::Connector",
  "tagging": {
    "taggable": false,
    "tagOnCreate": false,
    "tagUpdatable": false,
    "cloudFormationSystemTags": false
  },
  "sourceUrl": "https://docs.aws.amazon.com/appflow/latest/userguide/what-is-appflow.html",
  "$defs": {
    "ConnectorProvisioningConfig": {
      "description": "Contains information about the configuration of the connector being registered.",
      "type": "object",
      "properties": {
        "Lambda": {
          "description": "Contains information about the configuration of the lambda which is being registered as the connector.",
          "$ref": "#/$defs/LambdaConnectorProvisioningConfig"
        }
      },
      "title": "AWSAppFlowConnectorConnectorProvisioningConfigDefinition",
      "additionalProperties": false
    },
    "LambdaConnectorProvisioningConfig": {
      "description": "Contains information about the configuration of the lambda which is being registered as the connector.",
      "type": "object",
      "properties": {
        "LambdaArn": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "arn:*:.*:.*:[0-9]+:.*",
              "maxLength": 512
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Lambda ARN of the connector being registered."
        }
      },
      "required": [
        "LambdaArn"
      ],
      "title": "AWSAppFlowConnectorLambdaConnectorProvisioningConfigDefinition",
      "additionalProperties": false
    }
  },
  "primaryIdentifier": [
    "/properties/ConnectorLabel"
  ],
  "additionalProperties": false,
  "required": [
    "ConnectorProvisioningType",
    "ConnectorProvisioningConfig"
  ],
  "createOnlyProperties": [
    "/properties/ConnectorLabel"
  ],
  "readOnlyProperties": [
    "/properties/ConnectorArn"
  ]
}
