{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-guardduty/json-schema/amazon-guardduty-update-publishing-destination-request-schema.json",
  "title": "UpdatePublishingDestinationRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-guardduty-publishingdestination-api-openapi.yml#/components/schemas/UpdatePublishingDestinationRequest",
  "type": "object",
  "properties": {
    "DetectorId": {
      "type": "string",
      "description": "The ID of the detector associated with the publishing destinations to update. To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API."
    },
    "DestinationId": {
      "type": "string",
      "description": "The ID of the publishing destination to update."
    },
    "DestinationProperties": {
      "$ref": "#/$defs/DestinationProperties"
    }
  },
  "required": [
    "DetectorId",
    "DestinationId"
  ],
  "$defs": {
    "DestinationProperties": {
      "type": "object",
      "properties": {
        "DestinationArn": {
          "type": "string",
          "description": "The ARN of the resource to publish to. To specify an S3 bucket folder use the following format: arn:aws:s3:::DOC-EXAMPLE-BUCKET/myFolder/"
        },
        "KmsKeyArn": {
          "type": "string",
          "description": "The ARN of the KMS key to use for encryption."
        },
        "ExpectedBucketOwner": {
          "type": "string",
          "description": "The 12-digit Amazon Web Services account ID of the account that owns the Amazon S3 bucket specified in the DestinationArn parameter. When you provide this value, GuardDuty verifies that the specified account owns the bucket before it exports findings. If the account ID doesn't match the actual owner of the bucket, GuardDuty doesn't export findings to that bucket. This helps prevent GuardDuty from exporting your findings to a bucket that a different Amazon Web Services account owns (for example, if the original bucket was deleted and its name was later claimed by another account). If you don't "
        }
      }
    }
  }
}