{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudtrail/json-schema/amazon-cloudtrail-get-channel-response-schema.json",
  "title": "GetChannelResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudtrail-channel-api-openapi.yml#/components/schemas/GetChannelResponse",
  "type": "object",
  "properties": {
    "ChannelArn": {
      "type": "string",
      "description": "The ARN of an channel returned by a GetChannel request."
    },
    "Name": {
      "type": "string",
      "description": "The name of the CloudTrail channel. For service-linked channels, the name is aws-service-channel/service-name/custom-suffix where service-name represents the name of the Amazon Web Services service that created the channel and custom-suffix represents the suffix generated by the Amazon Web Services service."
    },
    "Source": {
      "type": "string",
      "description": "The source for the CloudTrail channel."
    },
    "SourceConfig": {
      "$ref": "#/$defs/SourceConfig"
    },
    "Destinations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Destination"
      },
      "description": "The destinations for the channel. For channels created for integrations, the destinations are the event data stores that log events arriving through the channel. For service-linked channels, the destination is the Amazon Web Services service that created the service-linked channel to receive events."
    },
    "IngestionStatus": {
      "$ref": "#/$defs/IngestionStatus"
    }
  },
  "$defs": {
    "AdvancedEventSelector": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "An optional, descriptive name for an advanced event selector, such as \"Log data events for only two S3 buckets\"."
        },
        "FieldSelectors": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AdvancedFieldSelector"
          },
          "description": "Contains all selector statements in an advanced event selector."
        }
      },
      "required": [
        "FieldSelectors"
      ]
    },
    "AdvancedFieldSelector": {
      "type": "object",
      "properties": {
        "Field": {
          "type": "string",
          "description": "A field in a CloudTrail event record on which to filter events to be logged. For event data stores for CloudTrail Insights events, Config configuration items, Audit Manager evidence, or events outside of Amazon Web Services, the field is used only for selecting events as filtering is not supported. For more information, see AdvancedFieldSelector in the CloudTrail API Reference. Selectors don't support the use of wildcards like * . To match multiple values with a single condition, you may use StartsWith, EndsWith, NotStartsWith, or NotEndsWith to explicitly match the beginning or end of the eve"
        },
        "Equals": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields."
        },
        "StartsWith": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An operator that includes events that match the first few characters of the event record field specified as the value of Field."
        },
        "EndsWith": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An operator that includes events that match the last few characters of the event record field specified as the value of Field."
        },
        "NotEquals": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An operator that excludes events that match the exact value of the event record field specified as the value of Field."
        },
        "NotStartsWith": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An operator that excludes events that match the first few characters of the event record field specified as the value of Field."
        },
        "NotEndsWith": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An operator that excludes events that match the last few characters of the event record field specified as the value of Field."
        }
      },
      "required": [
        "Field"
      ]
    },
    "Destination": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "EVENT_DATA_STORE",
            "AWS_SERVICE"
          ],
          "description": "The type of destination for events arriving from a channel. For channels used for a CloudTrail Lake integration, the value is EVENT_DATA_STORE. For service-linked channels, the value is AWS_SERVICE."
        },
        "Location": {
          "type": "string",
          "description": "For channels used for a CloudTrail Lake integration, the location is the ARN of an event data store that receives events from a channel. For service-linked channels, the location is the name of the Amazon Web Services service."
        }
      },
      "required": [
        "Type",
        "Location"
      ]
    },
    "IngestionStatus": {
      "type": "object",
      "properties": {
        "LatestIngestionSuccessTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time stamp of the most recent successful ingestion of events for the channel."
        },
        "LatestIngestionSuccessEventID": {
          "type": "string",
          "description": "The event ID of the most recent successful ingestion of events."
        },
        "LatestIngestionErrorCode": {
          "type": "string",
          "description": "The error code for the most recent failure to ingest events."
        },
        "LatestIngestionAttemptTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time stamp of the most recent attempt to ingest events on the channel."
        },
        "LatestIngestionAttemptEventID": {
          "type": "string",
          "description": "The event ID of the most recent attempt to ingest events."
        }
      }
    },
    "SourceConfig": {
      "type": "object",
      "properties": {
        "ApplyToAllRegions": {
          "type": "boolean",
          "description": "Specifies whether the channel applies to a single Region or to all Regions."
        },
        "AdvancedEventSelectors": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AdvancedEventSelector"
          },
          "description": "The advanced event selectors that are configured for the channel."
        }
      }
    }
  }
}