{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-msk/json-schema/amazon-msk-update-replication-info-request-schema.json",
  "title": "UpdateReplicationInfoRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-msk-operations-api-openapi.yml#/components/schemas/UpdateReplicationInfoRequest",
  "type": "object",
  "properties": {
    "ConsumerGroupReplication": {
      "$ref": "#/$defs/ConsumerGroupReplicationUpdate"
    },
    "CurrentVersion": {
      "type": "string",
      "description": "Current replicator version."
    },
    "ReplicatorArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the replicator to be updated."
    },
    "SourceKafkaClusterArn": {
      "type": "string",
      "description": "The ARN of the source Kafka cluster."
    },
    "SourceKafkaClusterId": {
      "type": "string",
      "description": "The ID of the source Kafka cluster."
    },
    "TargetKafkaClusterArn": {
      "type": "string",
      "description": "The ARN of the target Kafka cluster."
    },
    "TargetKafkaClusterId": {
      "type": "string",
      "description": "The ID of the target Kafka cluster."
    },
    "TopicReplication": {
      "$ref": "#/$defs/TopicReplicationUpdate"
    },
    "LogDelivery": {
      "$ref": "#/$defs/LogDelivery"
    }
  },
  "required": [
    "CurrentVersion",
    "ReplicatorArn"
  ],
  "$defs": {
    "ConsumerGroupReplicationUpdate": {
      "type": "object",
      "properties": {
        "ConsumerGroupsToExclude": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of regular expression patterns indicating the consumer groups that should not be replicated."
        },
        "ConsumerGroupsToReplicate": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of regular expression patterns indicating the consumer groups to copy."
        },
        "DetectAndCopyNewConsumerGroups": {
          "type": "boolean",
          "description": "Enables synchronization of consumer groups to target cluster."
        },
        "SynchroniseConsumerGroupOffsets": {
          "type": "boolean",
          "description": "Enables synchronization of consumer group offsets to target cluster. The translated offsets will be written to topic __consumer_offsets."
        }
      },
      "required": [
        "ConsumerGroupsToExclude",
        "ConsumerGroupsToReplicate",
        "DetectAndCopyNewConsumerGroups",
        "SynchroniseConsumerGroupOffsets"
      ]
    },
    "LogDelivery": {
      "type": "object",
      "properties": {
        "ReplicatorLogDelivery": {
          "$ref": "#/$defs/ReplicatorLogDelivery"
        }
      }
    },
    "ReplicatorCloudWatchLogs": {
      "type": "object",
      "properties": {
        "Enabled": {
          "type": "boolean",
          "description": "Whether log delivery to CloudWatch Logs is enabled."
        },
        "LogGroup": {
          "type": "string",
          "description": "The CloudWatch log group that is the destination for log delivery."
        }
      },
      "required": [
        "Enabled"
      ]
    },
    "ReplicatorFirehose": {
      "type": "object",
      "properties": {
        "Enabled": {
          "type": "boolean",
          "description": "Whether log delivery to Firehose is enabled."
        },
        "DeliveryStream": {
          "type": "string",
          "description": "The Firehose delivery stream that is the destination for log delivery."
        }
      },
      "required": [
        "Enabled"
      ]
    },
    "ReplicatorLogDelivery": {
      "type": "object",
      "properties": {
        "CloudWatchLogs": {
          "$ref": "#/$defs/ReplicatorCloudWatchLogs"
        },
        "Firehose": {
          "$ref": "#/$defs/ReplicatorFirehose"
        },
        "S3": {
          "$ref": "#/$defs/ReplicatorS3"
        }
      }
    },
    "ReplicatorS3": {
      "type": "object",
      "properties": {
        "Enabled": {
          "type": "boolean",
          "description": "Whether log delivery to S3 is enabled."
        },
        "Bucket": {
          "type": "string",
          "description": "The S3 bucket that is the destination for log delivery."
        },
        "Prefix": {
          "type": "string",
          "description": "The S3 prefix that is the destination for log delivery."
        }
      },
      "required": [
        "Enabled"
      ]
    },
    "TopicReplicationUpdate": {
      "type": "object",
      "properties": {
        "CopyAccessControlListsForTopics": {
          "type": "boolean",
          "description": "Whether to periodically configure remote topic ACLs to match their corresponding upstream topics."
        },
        "CopyTopicConfigurations": {
          "type": "boolean",
          "description": "Whether to periodically configure remote topics to match their corresponding upstream topics."
        },
        "DetectAndCopyNewTopics": {
          "type": "boolean",
          "description": "Whether to periodically check for new topics and partitions."
        },
        "TopicsToExclude": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of regular expression patterns indicating the topics that should not be replicated."
        },
        "TopicsToReplicate": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of regular expression patterns indicating the topics to copy."
        }
      },
      "required": [
        "CopyAccessControlListsForTopics",
        "CopyTopicConfigurations",
        "DetectAndCopyNewTopics",
        "TopicsToExclude",
        "TopicsToReplicate"
      ]
    }
  }
}