{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-guardduty/json-schema/amazon-guardduty-create-publishing-destination-request-schema.json",
  "title": "CreatePublishingDestinationRequest",
  "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/CreatePublishingDestinationRequest",
  "type": "object",
  "properties": {
    "DetectorId": {
      "type": "string",
      "description": "The ID of the GuardDuty detector associated with the publishing destination. To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API."
    },
    "DestinationType": {
      "type": "string",
      "enum": [
        "S3"
      ],
      "description": "The type of resource for the publishing destination. Currently only Amazon S3 buckets are supported."
    },
    "DestinationProperties": {
      "$ref": "#/$defs/DestinationProperties"
    },
    "ClientToken": {
      "type": "string",
      "description": "The idempotency token for the request."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags to be added to a new publishing destination resource."
    }
  },
  "required": [
    "DetectorId",
    "DestinationType",
    "DestinationProperties"
  ],
  "$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 "
        }
      }
    }
  }
}