{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-osis-pipeline.json",
  "title": "AWSOSISPipelineProperties",
  "description": "An OpenSearch Ingestion Service Data Prepper pipeline running Data Prepper.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-osis.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-osis-pipeline.json",
    "sourceSha256": "d7ab44a91ef9c03d8f45c72436e33b11eb44a53e26687bfb2dc1f6f8827cf781"
  },
  "type": "object",
  "properties": {
    "LogPublishingOptions": {
      "$ref": "#/$defs/LogPublishingOptions"
    },
    "MaxUnits": {
      "description": "The maximum pipeline capacity, in Ingestion Compute Units (ICUs).",
      "type": "integer",
      "minimum": 1,
      "maximum": 24
    },
    "MinUnits": {
      "description": "The minimum pipeline capacity, in Ingestion Compute Units (ICUs).",
      "type": "integer",
      "minimum": 1,
      "maximum": 24
    },
    "PipelineConfigurationBody": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 12000
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The Data Prepper pipeline configuration in YAML format."
    },
    "PipelineName": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 3,
          "maxLength": 28,
          "pattern": "[a-z][a-z0-9\\-]+"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Name of the OpenSearch Ingestion Service pipeline to create. Pipeline names are unique across the pipelines owned by an account within an AWS Region."
    },
    "Tags": {
      "description": "An array of key-value pairs to apply to this resource.",
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    },
    "VpcOptions": {
      "$ref": "#/$defs/VpcOptions"
    }
  },
  "typeName": "AWS::OSIS::Pipeline",
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": true,
    "tagProperty": "/properties/Tags"
  },
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-osis.git",
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/PipelineArn"
  ],
  "$defs": {
    "LogPublishingOptions": {
      "description": "Key-value pairs to configure log publishing.",
      "type": "object",
      "properties": {
        "IsLoggingEnabled": {
          "type": "boolean",
          "description": "Whether logs should be published."
        },
        "CloudWatchLogDestination": {
          "type": "object",
          "description": "The destination for OpenSearch Ingestion Service logs sent to Amazon CloudWatch.",
          "properties": {
            "LogGroup": {
              "oneOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 512,
                  "pattern": "\\/aws\\/vendedlogs\\/[\\.\\-_/#A-Za-z0-9]+"
                },
                {
                  "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
                }
              ]
            }
          },
          "additionalProperties": false
        }
      },
      "title": "AWSOSISPipelineLogPublishingOptionsDefinition",
      "additionalProperties": false
    },
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "title": "AWSOSISPipelineTagDefinition",
      "additionalProperties": false
    },
    "VpcOptions": {
      "description": "Container for the values required to configure VPC access for the pipeline. If you don't specify these values, OpenSearch Ingestion Service creates the pipeline with a public endpoint.",
      "type": "object",
      "properties": {
        "SecurityGroupIds": {
          "type": "array",
          "insertionOrder": false,
          "description": "A list of security groups associated with the VPC endpoint.",
          "items": {
            "type": "string",
            "minLength": 11,
            "maxLength": 20,
            "pattern": "sg-\\w{8}(\\w{9})?"
          }
        },
        "SubnetIds": {
          "type": "array",
          "insertionOrder": false,
          "description": "A list of subnet IDs associated with the VPC endpoint.",
          "items": {
            "type": "string",
            "minLength": 15,
            "maxLength": 24,
            "pattern": "subnet-\\w{8}(\\w{9})?"
          }
        }
      },
      "title": "AWSOSISPipelineVpcOptionsDefinition",
      "additionalProperties": false
    },
    "VpcEndpoint": {
      "description": "An OpenSearch Ingestion Service-managed VPC endpoint that will access one or more pipelines.",
      "type": "object",
      "properties": {
        "VpcEndpointId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The unique identifier of the endpoint."
        },
        "VpcId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The ID for your VPC. AWS Privatelink generates this value when you create a VPC."
        },
        "VpcOptions": {
          "$ref": "#/$defs/VpcOptions"
        }
      },
      "title": "AWSOSISPipelineVpcEndpointDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "MaxUnits",
    "MinUnits",
    "PipelineConfigurationBody",
    "PipelineName"
  ],
  "readOnlyProperties": [
    "/properties/PipelineArn",
    "/properties/IngestEndpointUrls",
    "/properties/VpcEndpoints"
  ],
  "writeOnlyProperties": [
    "/properties/VpcOptions"
  ],
  "createOnlyProperties": [
    "/properties/PipelineName"
  ]
}
