{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediatailor/json-schema/amazon-mediatailor-update-source-location-request-schema.json",
  "title": "UpdateSourceLocationRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-mediatailor-source-location-api-openapi.yml#/components/schemas/UpdateSourceLocationRequest",
  "type": "object",
  "properties": {
    "AccessConfiguration": {
      "$ref": "#/$defs/AccessConfiguration"
    },
    "DefaultSegmentDeliveryConfiguration": {
      "$ref": "#/$defs/DefaultSegmentDeliveryConfiguration"
    },
    "HttpConfiguration": {
      "$ref": "#/$defs/HttpConfiguration"
    },
    "SegmentDeliveryConfigurations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SegmentDeliveryConfiguration"
      },
      "description": "A list of the segment delivery configurations associated with this resource."
    },
    "SourceLocationName": {
      "type": "string",
      "description": "The name of the source location."
    }
  },
  "required": [
    "HttpConfiguration",
    "SourceLocationName"
  ],
  "$defs": {
    "AccessConfiguration": {
      "type": "object",
      "properties": {
        "AccessType": {
          "type": "string",
          "enum": [
            "S3_SIGV4",
            "SECRETS_MANAGER_ACCESS_TOKEN",
            "AUTODETECT_SIGV4"
          ],
          "description": "The type of authentication used to access content from HttpConfiguration::BaseUrl on your source location. S3_SIGV4 - AWS Signature Version 4 authentication for Amazon S3 hosted virtual-style access. If your source location base URL is an Amazon S3 bucket, MediaTailor can use AWS Signature Version 4 (SigV4) authentication to access the bucket where your source content is stored. Your MediaTailor source location baseURL must follow the S3 virtual hosted-style request URL format. For example, https://bucket-name.s3.Region.amazonaws.com/key-name. Before you can use S3_SIGV4, you must meet these r"
        },
        "SecretsManagerAccessTokenConfiguration": {
          "$ref": "#/$defs/SecretsManagerAccessTokenConfiguration"
        }
      }
    },
    "DefaultSegmentDeliveryConfiguration": {
      "type": "object",
      "properties": {
        "BaseUrl": {
          "type": "string",
          "description": "The hostname of the server that will be used to serve segments. This string must include the protocol, such as https://."
        }
      }
    },
    "HttpConfiguration": {
      "type": "object",
      "properties": {
        "BaseUrl": {
          "type": "string",
          "description": "The base URL for the source location host server. This string must include the protocol, such as https://."
        }
      },
      "required": [
        "BaseUrl"
      ]
    },
    "SecretsManagerAccessTokenConfiguration": {
      "type": "object",
      "properties": {
        "HeaderName": {
          "type": "string",
          "description": "The name of the HTTP header used to supply the access token in requests to the source location."
        },
        "SecretArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the access token."
        },
        "SecretStringKey": {
          "type": "string",
          "description": "The AWS Secrets Manager SecretString key associated with the access token. MediaTailor uses the key to look up SecretString key and value pair containing the access token."
        }
      }
    },
    "SegmentDeliveryConfiguration": {
      "type": "object",
      "properties": {
        "BaseUrl": {
          "type": "string",
          "description": "The base URL of the host or path of the segment delivery server that you're using to serve segments. This is typically a content delivery network (CDN). The URL can be absolute or relative. To use an absolute URL include the protocol, such as https://example.com/some/path. To use a relative URL specify the relative path, such as /some/path*."
        },
        "Name": {
          "type": "string",
          "description": "A unique identifier used to distinguish between multiple segment delivery configurations in a source location."
        }
      }
    }
  }
}