{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudtrail/json-schema/amazon-cloudtrail-restore-event-data-store-response-schema.json",
  "title": "RestoreEventDataStoreResponse",
  "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/RestoreEventDataStoreResponse",
  "type": "object",
  "properties": {
    "EventDataStoreArn": {
      "type": "string",
      "description": "The event data store ARN."
    },
    "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 the event data store."
    },
    "AdvancedEventSelectors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AdvancedEventSelector"
      },
      "description": "The advanced event selectors that were used to select events."
    },
    "MultiRegionEnabled": {
      "type": "boolean",
      "description": "Indicates whether the event data store is collecting events from all Regions, or only from the Region in which the event data store 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, in days."
    },
    "TerminationProtectionEnabled": {
      "type": "boolean",
      "description": "Indicates that termination protection is enabled and the event data store cannot be automatically deleted."
    },
    "CreatedTimestamp": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of an event data store's creation."
    },
    "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"
      ]
    }
  }
}