Amazon Managed Service for Prometheus API

The Amazon Managed Service for Prometheus API provides programmatic access to create and manage workspaces, alert manager definitions, rule groups namespaces, logging configurations, and scrapers for Prometheus-compatible monitoring. Covers the full workspace lifecycle and monitoring configuration management.

OpenAPI Specification

amazon-managed-prometheus-openapi-original.yaml Raw ↑
openapi: 3.0.0
info:
  version: '2020-08-01'
  x-release: v4
  title: Amazon Prometheus Service
  description: Amazon Managed Service for Prometheus
  x-logo:
    url: 'https://twitter.com/awscloud/profile_image?size=original'
    backgroundColor: '#FFFFFF'
  termsOfService: 'https://aws.amazon.com/service-terms/'
  contact:
    name: Mike Ralphson
    email: [email protected]
    url: 'https://github.com/mermade/aws2openapi'
    x-twitter: PermittedSoc
  license:
    name: Apache 2.0 License
    url: 'http://www.apache.org/licenses/'
  x-providerName: amazonaws.com
  x-serviceName: amp
  x-aws-signingName: aps
  x-origin:
  - contentType: application/json
    url: 'https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/amp-2020-08-01.normal.json'
    converter:
      url: 'https://github.com/mermade/aws2openapi'
      version: 1.0.0
    x-apisguru-driver: external
  x-apiClientRegistration:
    url: 'https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct'
  x-apisguru-categories:
  - cloud
  x-preferred: true
externalDocs:
  description: Amazon Web Services documentation
  url: 'https://docs.aws.amazon.com/aps/'
servers:
- url: 'http://aps.{region}.amazonaws.com'
  variables:
    region:
      description: The AWS region
      enum:
      - us-east-1
      - us-east-2
      - us-west-1
      - us-west-2
      - us-gov-west-1
      - us-gov-east-1
      - ca-central-1
      - eu-north-1
      - eu-west-1
      - eu-west-2
      - eu-west-3
      - eu-central-1
      - eu-south-1
      - af-south-1
      - ap-northeast-1
      - ap-northeast-2
      - ap-northeast-3
      - ap-southeast-1
      - ap-southeast-2
      - ap-east-1
      - ap-south-1
      - sa-east-1
      - me-south-1
      default: us-east-1
  description: The Amazon Prometheus Service multi-region endpoint
- url: 'https://aps.{region}.amazonaws.com'
  variables:
    region:
      description: The AWS region
      enum:
      - us-east-1
      - us-east-2
      - us-west-1
      - us-west-2
      - us-gov-west-1
      - us-gov-east-1
      - ca-central-1
      - eu-north-1
      - eu-west-1
      - eu-west-2
      - eu-west-3
      - eu-central-1
      - eu-south-1
      - af-south-1
      - ap-northeast-1
      - ap-northeast-2
      - ap-northeast-3
      - ap-southeast-1
      - ap-southeast-2
      - ap-east-1
      - ap-south-1
      - sa-east-1
      - me-south-1
      default: us-east-1
  description: The Amazon Prometheus Service multi-region endpoint
- url: 'http://aps.{region}.amazonaws.com.cn'
  variables:
    region:
      description: The AWS region
      enum:
      - cn-north-1
      - cn-northwest-1
      default: cn-north-1
  description: The Amazon Prometheus Service endpoint for China (Beijing) and China (Ningxia)
- url: 'https://aps.{region}.amazonaws.com.cn'
  variables:
    region:
      description: The AWS region
      enum:
      - cn-north-1
      - cn-northwest-1
      default: cn-north-1
  description: The Amazon Prometheus Service endpoint for China (Beijing) and China (Ningxia)
x-hasEquivalentPaths: true
paths:
  '/workspaces/{workspaceId}/alertmanager/definition':
    post:
      operationId: CreateAlertManagerDefinition
      description: Create an alert manager definition.
      responses:
        '202':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateAlertManagerDefinitionResponse'
        '480':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '481':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '482':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
        '483':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '484':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '485':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '486':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
      parameters:
      - name: workspaceId
        in: path
        required: true
        description: The ID of the workspace in which to create the alert manager definition.
        schema:
          type: string
          pattern: '.*[0-9A-Za-z][-.0-9A-Z_a-z]*.*'
          description: A workspace ID.
          minLength: 1
          maxLength: 64
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - data
              properties:
                data:
                  description: The alert manager definition data.
                  type: string
                clientToken:
                  description: An identifier used to ensure the idempotency of a write request.
                  type: string
                  pattern: '[!-~]+'
                  minLength: 1
                  maxLength: 64
      summary: Amazon Managed Service for Prometheus Create Alert Manager Definition
    parameters:
    - $ref: '#/components/parameters/X-Amz-Content-Sha256'
    - $ref: '#/components/parameters/X-Amz-Date'
    - $ref: '#/components/parameters/X-Amz-Algorithm'
    - $ref: '#/components/parameters/X-Amz-Credential'
    - $ref: '#/components/parameters/X-Amz-Security-Token'
    - $ref: '#/components/parameters/X-Amz-Signature'
    - $ref: '#/components/parameters/X-Amz-SignedHeaders'
    delete:
      operationId: DeleteAlertManagerDefinition
      description: Deletes an alert manager definition.
      responses:
        '202':
          description: Success
        '480':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '481':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '482':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
        '483':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '484':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '485':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
      parameters:
      - name: workspaceId
        in: path
        required: true
        description: The ID of the workspace in which to delete the alert manager definition.
        schema:
          type: string
          pattern: '.*[0-9A-Za-z][-.0-9A-Z_a-z]*.*'
          description: A workspace ID.
          minLength: 1
          maxLength: 64
      - name: clientToken
        in: query
        required: false
        description: 'Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.'
        schema:
          type: string
          pattern: '[!-~]+'
          description: An identifier used to ensure the idempotency of a write request.
          minLength: 1
          maxLength: 64
      summary: Amazon Managed Service for Prometheus Delete Alert Manager Definition
    get:
      operationId: DescribeAlertManagerDefinition
      description: Describes an alert manager definition.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DescribeAlertManagerDefinitionResponse'
        '480':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '481':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
        '482':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '483':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '484':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
      parameters:
      - name: workspaceId
        in: path
        required: true
        description: The ID of the workspace to describe.
        schema:
          type: string
          pattern: '.*[0-9A-Za-z][-.0-9A-Z_a-z]*.*'
          description: A workspace ID.
          minLength: 1
          maxLength: 64
      summary: Amazon Managed Service for Prometheus Describe Alert Manager Definition
    put:
      operationId: PutAlertManagerDefinition
      description: Update an alert manager definition.
      responses:
        '202':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PutAlertManagerDefinitionResponse'
        '480':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '481':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '482':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
        '483':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '484':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '485':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '486':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
      parameters:
      - name: workspaceId
        in: path
        required: true
        description: The ID of the workspace in which to update the alert manager definition.
        schema:
          type: string
          pattern: '.*[0-9A-Za-z][-.0-9A-Z_a-z]*.*'
          description: A workspace ID.
          minLength: 1
          maxLength: 64
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - data
              properties:
                data:
                  description: The alert manager definition data.
                  type: string
                clientToken:
                  description: An identifier used to ensure the idempotency of a write request.
                  type: string
                  pattern: '[!-~]+'
                  minLength: 1
                  maxLength: 64
      summary: Amazon Managed Service for Prometheus Put Alert Manager Definition
  '/workspaces/{workspaceId}/logging':
    post:
      operationId: CreateLoggingConfiguration
      description: Create logging configuration.
      responses:
        '202':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateLoggingConfigurationResponse'
        '480':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
        '481':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '482':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '483':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
      parameters:
      - name: workspaceId
        in: path
        required: true
        description: The ID of the workspace to vend logs to.
        schema:
          type: string
          pattern: '.*[0-9A-Za-z][-.0-9A-Z_a-z]*.*'
          description: A workspace ID.
          minLength: 1
          maxLength: 64
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - logGroupArn
              properties:
                logGroupArn:
                  description: The ARN of the CW log group to which the vended log data will be published.
                  type: string
                  pattern: 'arn:aws[a-z0-9-]*:logs:[a-z0-9-]+:\d{12}:log-group:[A-Za-z0-9\.\-\_\#/]{1,512}\:\*'
                clientToken:
                  description: An identifier used to ensure the idempotency of a write request.
                  type: string
                  pattern: '[!-~]+'
                  minLength: 1
                  maxLength: 64
      summary: Amazon Managed Service for Prometheus Create Logging Configuration
    parameters:
    - $ref: '#/components/parameters/X-Amz-Content-Sha256'
    - $ref: '#/components/parameters/X-Amz-Date'
    - $ref: '#/components/parameters/X-Amz-Algorithm'
    - $ref: '#/components/parameters/X-Amz-Credential'
    - $ref: '#/components/parameters/X-Amz-Security-Token'
    - $ref: '#/components/parameters/X-Amz-Signature'
    - $ref: '#/components/parameters/X-Amz-SignedHeaders'
    delete:
      operationId: DeleteLoggingConfiguration
      description: Delete logging configuration.
      responses:
        '202':
          description: Success
        '480':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '481':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
        '482':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '483':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '484':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
      parameters:
      - name: workspaceId
        in: path
        required: true
        description: The ID of the workspace to vend logs to.
        schema:
          type: string
          pattern: '.*[0-9A-Za-z][-.0-9A-Z_a-z]*.*'
          description: A workspace ID.
          minLength: 1
          maxLength: 64
      - name: clientToken
        in: query
        required: false
        description: 'Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.'
        schema:
          type: string
          pattern: '[!-~]+'
          description: An identifier used to ensure the idempotency of a write request.
          minLength: 1
          maxLength: 64
      summary: Amazon Managed Service for Prometheus Delete Logging Configuration
    get:
      operationId: DescribeLoggingConfiguration
      description: Describes logging configuration.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DescribeLoggingConfigurationResponse'
        '480':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
        '481':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '482':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '483':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
      parameters:
      - name: workspaceId
        in: path
        required: true
        description: The ID of the workspace to vend logs to.
        schema:
          type: string
          pattern: '.*[0-9A-Za-z][-.0-9A-Z_a-z]*.*'
          description: A workspace ID.
          minLength: 1
          maxLength: 64
      summary: Amazon Managed Service for Prometheus Describe Logging Configuration
    put:
      operationId: UpdateLoggingConfiguration
      description: Update logging configuration.
      responses:
        '202':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateLoggingConfigurationResponse'
        '480':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '481':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
        '482':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '483':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '484':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
      parameters:
      - name: workspaceId
        in: path
        required: true
        description: The ID of the workspace to vend logs to.
        schema:
          type: string
          pattern: '.*[0-9A-Za-z][-.0-9A-Z_a-z]*.*'
          description: A workspace ID.
          minLength: 1
          maxLength: 64
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - logGroupArn
              properties:
                logGroupArn:
                  description: The ARN of the CW log group to which the vended log data will be published.
                  type: string
                  pattern: 'arn:aws[a-z0-9-]*:logs:[a-z0-9-]+:\d{12}:log-group:[A-Za-z0-9\.\-\_\#/]{1,512}\:\*'
                clientToken:
                  description: An identifier used to ensure the idempotency of a write request.
                  type: string
                  pattern: '[!-~]+'
                  minLength: 1
                  maxLength: 64
      summary: Amazon Managed Service for Prometheus Update Logging Configuration
  '/workspaces/{workspaceId}/rulegroupsnamespaces':
    post:
      operationId: CreateRuleGroupsNamespace
      description: Create a rule group namespace.
      responses:
        '202':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateRuleGroupsNamespaceResponse'
        '480':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '481':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '482':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
        '483':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '484':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '485':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '486':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
      parameters:
      - name: workspaceId
        in: path
        required: true
        description: The ID of the workspace in which to create the rule group namespace.
        schema:
          type: string
          pattern: '.*[0-9A-Za-z][-.0-9A-Z_a-z]*.*'
          description: A workspace ID.
          minLength: 1
          maxLength: 64
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - name
              - data
              properties:
                name:
                  description: The namespace name that the rule group belong to.
                  type: string
                  pattern: '.*[0-9A-Za-z][-.0-9A-Z_a-z]*.*'
                  minLength: 1
                  maxLength: 64
                data:
                  description: The rule groups namespace data.
                  type: string
                clientToken:
                  description: An identifier used to ensure the idempotency of a write request.
                  type: string
                  pattern: '[!-~]+'
                  minLength: 1
                  maxLength: 64
                tags:
                  description: The list of tags assigned to the resource.
                  type: object
                  minProperties: 0
                  maxProperties: 50
                  additionalProperties:
                    $ref: '#/components/schemas/TagValue'
      summary: Amazon Managed Service for Prometheus Create Rule Groups Namespace
    parameters:
    - $ref: '#/components/parameters/X-Amz-Content-Sha256'
    - $ref: '#/components/parameters/X-Amz-Date'
    - $ref: '#/components/parameters/X-Amz-Algorithm'
    - $ref: '#/components/parameters/X-Amz-Credential'
    - $ref: '#/components/parameters/X-Amz-Security-Token'
    - $ref: '#/components/parameters/X-Amz-Signature'
    - $ref: '#/components/parameters/X-Amz-SignedHeaders'
    get:
      operationId: ListRuleGroupsNamespaces
      description: Lists rule groups namespaces.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListRuleGroupsNamespacesResponse'
        '480':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '481':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
        '482':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '483':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '484':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
      parameters:
      - name: workspaceId
        in: path
        required: true
        description: The ID of the workspace.
        schema:
          type: string
          pattern: '.*[0-9A-Za-z][-.0-9A-Z_a-z]*.*'
          description: A workspace ID.
          minLength: 1
          maxLength: 64
      - name: name
        in: query
        required: false
        description: Optional filter for rule groups namespace name. Only the rule groups namespace that begin with this value will be returned.
        schema:
          type: string
          pattern: '.*[0-9A-Za-z][-.0-9A-Z_a-z]*.*'
          description: The namespace name that the rule group belong to.
          minLength: 1
          maxLength: 64
      - name: nextToken
        in: query
        required: false
        description: Pagination token to request the next page in a paginated list. This token is obtained from the output of the previous ListRuleGroupsNamespaces request.
        schema:
          type: string
          description: A token used to access the next page in a paginated result set.
      - name: maxResults
        in: query
        required: false
        description: 'Maximum results to return in response (default=100, maximum=1000).'
        schema:
          type: integer
          minimum: 1
          maximum: 1000
      summary: Amazon Managed Service for Prometheus List Rule Groups Namespaces
  /workspaces:
    post:
      operationId: CreateWorkspace
      description: Creates a new AMP workspace.
      responses:
        '202':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateWorkspaceResponse'
        '480':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '481':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '482':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
        '483':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '484':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '485':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                alias:
                  description: A user-assigned workspace alias.
                  type: string
                  minLength: 1
                  maxLength: 100
                clientToken:
                  description: An identifier used to ensure the idempotency of a write request.
                  type: string
                  pattern: '[!-~]+'
                  minLength: 1
                  maxLength: 64
                tags:
                  description: The list of tags assigned to the resource.
                  type: object
                  minProperties: 0
                  maxProperties: 50
                  additionalProperties:
                    $ref: '#/components/schemas/TagValue'
      summary: Amazon Managed Service for Prometheus Create Workspace
    parameters:
    - $ref: '#/components/parameters/X-Amz-Content-Sha256'
    - $ref: '#/components/parameters/X-Amz-Date'
    - $ref: '#/components/parameters/X-Amz-Algorithm'
    - $ref: '#/components/parameters/X-Amz-Credential'
    - $ref: '#/components/parameters/X-Amz-Security-Token'
    - $ref: '#/components/parameters/X-Amz-Signature'
    - $ref: '#/components/parameters/X-Amz-SignedHeaders'
    get:
      operationId: ListWorkspaces
      description: 'Lists all AMP workspaces, including workspaces being created or deleted.'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListWorkspacesResponse'
        '480':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '481':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
        '482':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '483':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
      parameters:
      - name: nextToken
        in: query
        required: false
        description: Pagination token to request the next page in a paginated list. This token is obtained from the output of the previous ListWorkspaces request.
        schema:
          type: string
          description: A token used to access the next page in a paginated result set.
      - name: alias
        in: query
        required: false
        description: Optional filter for workspace alias. Only the workspaces with aliases that begin with this value will be returned.
        schema:
          type: string
          description: A user-

# --- truncated at 32 KB (81 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/amazon-managed-prometheus/refs/heads/main/openapi/amazon-managed-prometheus-openapi-original.yaml