{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-opensearch/json-schema/amazon-opensearch-update-pipeline-request-schema.json",
  "title": "UpdatePipelineRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-opensearch-osis-api-openapi.yml#/components/schemas/UpdatePipelineRequest",
  "type": "object",
  "properties": {
    "PipelineName": {
      "type": "string",
      "description": "The name of the pipeline to update."
    },
    "MinUnits": {
      "type": "integer",
      "description": "The minimum pipeline capacity, in Ingestion Compute Units (ICUs)."
    },
    "MaxUnits": {
      "type": "integer",
      "description": "The maximum pipeline capacity, in Ingestion Compute Units (ICUs)"
    },
    "PipelineConfigurationBody": {
      "type": "string",
      "description": "The pipeline configuration in YAML format. The command accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with \\n."
    },
    "LogPublishingOptions": {
      "$ref": "#/$defs/LogPublishingOptions"
    },
    "BufferOptions": {
      "$ref": "#/$defs/BufferOptions"
    },
    "EncryptionAtRestOptions": {
      "$ref": "#/$defs/OsisEncryptionAtRestOptions"
    },
    "PipelineRoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the IAM role that grants the pipeline permission to access Amazon Web Services resources."
    }
  },
  "required": [
    "PipelineName"
  ],
  "$defs": {
    "BufferOptions": {
      "type": "object",
      "properties": {
        "PersistentBufferEnabled": {
          "type": "boolean",
          "description": "Whether persistent buffering should be enabled."
        }
      },
      "required": [
        "PersistentBufferEnabled"
      ]
    },
    "CloudWatchLogDestination": {
      "type": "object",
      "properties": {
        "LogGroup": {
          "type": "string",
          "description": "The name of the CloudWatch Logs group to send pipeline logs to. You can specify an existing log group or create a new one. For example, /aws/vendedlogs/OpenSearchService/pipelines."
        }
      },
      "required": [
        "LogGroup"
      ]
    },
    "LogPublishingOptions": {
      "type": "object",
      "properties": {
        "IsLoggingEnabled": {
          "type": "boolean",
          "description": "Whether logs should be published."
        },
        "CloudWatchLogDestination": {
          "$ref": "#/$defs/CloudWatchLogDestination"
        }
      }
    },
    "OsisEncryptionAtRestOptions": {
      "type": "object",
      "properties": {
        "KmsKeyArn": {
          "type": "string",
          "description": "The ARN of the KMS key used to encrypt buffer data. By default, data is encrypted using an Amazon Web Services owned key."
        }
      },
      "required": [
        "KmsKeyArn"
      ]
    }
  }
}