{
  "openapi": "3.0.1",
  "info": {
    "title": "AWS Endpoints Region Drift Monitor",
    "description": "Monitor public AWS SDK endpoint metadata for service-region coverage, hostnames, FIPS/dual-stack variants, and deprecation drift.",
    "version": "0.0",
    "x-build-id": "avxiSHGHY55aRd3wR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/defenestrator~aws-endpoints-region-drift-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-defenestrator-aws-endpoints-region-drift-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/defenestrator~aws-endpoints-region-drift-monitor/runs": {
      "post": {
        "operationId": "runs-sync-defenestrator-aws-endpoints-region-drift-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/defenestrator~aws-endpoints-region-drift-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-defenestrator-aws-endpoints-region-drift-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "partitions": {
            "title": "AWS partitions",
            "type": "array",
            "description": "AWS endpoint partitions to inspect from the public botocore endpoints metadata. Typical values are aws, aws-us-gov, and aws-cn.",
            "items": {
              "type": "string"
            }
          },
          "services": {
            "title": "Watched services",
            "type": "array",
            "description": "Exact AWS service endpoint identifiers to monitor, such as s3, sts, lambda, ec2, iam, kms, rds, dynamodb, eks, ecs, bedrock, or bedrock-runtime.",
            "items": {
              "type": "string"
            }
          },
          "servicePatterns": {
            "title": "Service wildcard patterns",
            "type": "array",
            "description": "Optional wildcard service patterns, for example bedrock* or *marketplace*. Matching services are checked in addition to exact watched services.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "endpointKeyPatterns": {
            "title": "Endpoint/region wildcard patterns",
            "type": "array",
            "description": "Wildcard patterns for endpoint keys to include. Endpoint keys are usually AWS region IDs, plus global or legacy keys such as aws-global. Examples: us-*, eu-*, ap-*, aws-global.",
            "items": {
              "type": "string"
            }
          },
          "criticalServices": {
            "title": "Critical services",
            "type": "array",
            "description": "Services where new endpoints, endpoint fingerprint changes, variant changes, or source errors should be promoted to high priority.",
            "items": {
              "type": "string"
            },
            "default": [
              "s3",
              "sts",
              "iam",
              "ec2",
              "lambda",
              "kms",
              "rds",
              "dynamodb",
              "eks"
            ]
          },
          "baselineDataset": {
            "title": "Previous run dataset",
            "type": "string",
            "description": "Optional previous run dataset for drift comparison. Use the picker so this limited-permission Actor receives READ access to the selected private dataset."
          },
          "baselineDatasetId": {
            "title": "Previous dataset ID (advanced)",
            "type": "string",
            "description": "Advanced/API fallback for a previous dataset ID. Prefer the picker under limited permissions."
          },
          "baselineRows": {
            "title": "Inline previous rows",
            "type": "array",
            "description": "Optional rows copied from a previous run. Rows with rowKey and endpointHash are used for drift comparison.",
            "items": {
              "type": "object"
            },
            "default": []
          },
          "maxBaselineRows": {
            "title": "Max baseline rows to read",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum rows to read from the selected previous dataset.",
            "default": 10000
          },
          "includeDeprecatedEndpoints": {
            "title": "Include deprecated endpoint keys",
            "type": "boolean",
            "description": "If true, include endpoint records marked deprecated in the source metadata. Deprecated rows can still alert so legacy endpoints are visible.",
            "default": false
          },
          "includeUnchangedRows": {
            "title": "Include unchanged rows",
            "type": "boolean",
            "description": "If false, only alert, changed, or error rows are pushed to the dataset. OUTPUT.snapshot still includes every checked endpoint row.",
            "default": true
          },
          "alertOnNewEndpoint": {
            "title": "Alert on new endpoint after baseline",
            "type": "boolean",
            "description": "If true, an endpoint row absent from the previous baseline creates an alert.",
            "default": true
          },
          "alertOnEndpointHashDrift": {
            "title": "Alert on endpoint fingerprint drift",
            "type": "boolean",
            "description": "If true, a changed canonical endpoint fingerprint compared with baseline creates an alert.",
            "default": true
          },
          "alertOnVariantChanges": {
            "title": "Alert on FIPS or dual-stack variant changes",
            "type": "boolean",
            "description": "If true, changes in FIPS or dual-stack variant availability compared with baseline create alerts.",
            "default": true
          },
          "alertOnDeprecatedEndpoint": {
            "title": "Alert on deprecated endpoints",
            "type": "boolean",
            "description": "If true, included endpoint rows marked deprecated in the source metadata create alerts.",
            "default": true
          },
          "expectedSourceVersion": {
            "title": "Expected source version",
            "type": "string",
            "description": "Optional exact endpoints.json version expected from the public source metadata. A mismatch creates warning rows."
          },
          "maxRows": {
            "title": "Max dataset rows",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum endpoint rows to emit to the dataset after alert/change priority sorting. Checked rows are still summarized in OUTPUT.snapshot up to this same limit.",
            "default": 250
          },
          "maxBytes": {
            "title": "Max source bytes",
            "minimum": 1000000,
            "maximum": 25000000,
            "type": "integer",
            "description": "Maximum size of the public endpoints metadata response after HTTP decoding.",
            "default": 8000000
          },
          "requestTimeoutSecs": {
            "title": "Request timeout seconds",
            "minimum": 5,
            "maximum": 90,
            "type": "integer",
            "description": "Timeout for the public GitHub raw endpoints metadata request.",
            "default": 30
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}