{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudtrail/json-schema/amazon-cloudtrail-create-event-data-store-response-schema.json",
  "title": "CreateEventDataStoreResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudtrail-event-data-stores-api-openapi.yml#/components/schemas/CreateEventDataStoreResponse",
  "type": "object",
  "properties": {
    "EventDataStoreArn": {
      "type": "string",
      "description": "The ARN of the event data store."
    },
    "Name": {
      "type": "string",
      "description": "The name of the event data store."
    },
    "Status": {
      "type": "string",
      "enum": [
        "CREATED",
        "ENABLED",
        "PENDING_DELETION",
        "STARTING_INGESTION",
        "STOPPING_INGESTION",
        "STOPPED_INGESTION"
      ],
      "description": "The status of event data store creation."
    },
    "AdvancedEventSelectors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AdvancedEventSelector"
      },
      "description": "The advanced event selectors that were used to select the events for the data store."
    },
    "MultiRegionEnabled": {
      "type": "boolean",
      "description": "Indicates whether the event data store collects events from all Regions, or only from the Region in which it was created."
    },
    "OrganizationEnabled": {
      "type": "boolean",
      "description": "Indicates whether an event data store is collecting logged events for an organization in Organizations."
    },
    "RetentionPeriod": {
      "type": "integer",
      "description": "The retention period of an event data store, in days."
    },
    "TerminationProtectionEnabled": {
      "type": "boolean",
      "description": "Indicates whether termination protection is enabled for the event data store."
    },
    "TagsList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      }
    },
    "CreatedTimestamp": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp that shows when the event data store was created."
    },
    "UpdatedTimestamp": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp that shows when an event data store was updated, if applicable. UpdatedTimestamp is always either the same or newer than the time shown in CreatedTimestamp."
    },
    "KmsKeyId": {
      "type": "string",
      "description": "Specifies the KMS key ID that encrypts the events delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the following format. arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012"
    },
    "BillingMode": {
      "type": "string",
      "enum": [
        "EXTENDABLE_RETENTION_PRICING",
        "FIXED_RETENTION_PRICING"
      ],
      "description": "The billing mode for the event data store."
    }
  },
  "$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"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key in a key-value pair. The key must be must be no longer than 128 Unicode characters. The key must be unique for the resource to which it applies."
        },
        "Value": {
          "type": "string",
          "description": "The value in a key-value pair of a tag. The value must be no longer than 256 Unicode characters."
        }
      },
      "required": [
        "Key"
      ]
    }
  }
}