{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-medialive/json-schema/amazon-medialive-purchase-offering-request-schema.json",
  "title": "PurchaseOfferingRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-medialive-operations-api-openapi.yml#/components/schemas/PurchaseOfferingRequest",
  "type": "object",
  "properties": {
    "Count": {
      "type": "integer",
      "description": "Number of resources"
    },
    "Name": {
      "type": "string",
      "description": "Name for the new reservation"
    },
    "OfferingId": {
      "type": "string",
      "description": "Offering to purchase, e.g. '87654321'"
    },
    "RenewalSettings": {
      "$ref": "#/$defs/RenewalSettings"
    },
    "RequestId": {
      "type": "string",
      "description": "Unique request ID to be specified. This is needed to prevent retries from creating multiple resources."
    },
    "Start": {
      "type": "string",
      "description": "Requested reservation start time (UTC) in ISO-8601 format. The specified time must be between the first day of the current month and one year from now. If no value is given, the default is now."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A collection of key-value pairs"
    }
  },
  "required": [
    "Count",
    "OfferingId"
  ],
  "$defs": {
    "RenewalSettings": {
      "type": "object",
      "properties": {
        "AutomaticRenewal": {
          "type": "string",
          "enum": [
            "DISABLED",
            "ENABLED",
            "UNAVAILABLE"
          ],
          "description": "Automatic renewal status for the reservation"
        },
        "RenewalCount": {
          "type": "integer",
          "description": "Count for the reservation renewal"
        }
      }
    }
  }
}