Amazon MediaConnect Reservations API

The Reservations API from Amazon MediaConnect — 2 operation(s) for reservations.

OpenAPI Specification

amazon-mediaconnect-reservations-api-openapi.yml Raw ↑
openapi: 3.0.0
info:
  version: 2018-11-14
  x-release: v4
  title: AWS MediaConnect Bridges Reservations API
  description: API for AWS Elemental MediaConnect
  x-logo:
    url: https://api.apis.guru/v2/cache/logo/https_twitter.com_awscloud_profile_image.png
    backgroundColor: '#FFFFFF'
  termsOfService: https://aws.amazon.com/service-terms/
  contact:
    name: Mike Ralphson
    email: mike.ralphson@gmail.com
    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: mediaconnect
  x-aws-signingName: mediaconnect
  x-origin:
  - contentType: application/json
    url: https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/mediaconnect-2018-11-14.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
servers:
- url: http://mediaconnect.{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 AWS MediaConnect multi-region endpoint
- url: https://mediaconnect.{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 AWS MediaConnect multi-region endpoint
- url: http://mediaconnect.{region}.amazonaws.com.cn
  variables:
    region:
      description: The AWS region
      enum:
      - cn-north-1
      - cn-northwest-1
      default: cn-north-1
  description: The AWS MediaConnect endpoint for China (Beijing) and China (Ningxia)
- url: https://mediaconnect.{region}.amazonaws.com.cn
  variables:
    region:
      description: The AWS region
      enum:
      - cn-north-1
      - cn-northwest-1
      default: cn-north-1
  description: The AWS MediaConnect endpoint for China (Beijing) and China (Ningxia)
security:
- hmac: []
tags:
- name: Reservations
paths:
  /v1/reservations/{reservationArn}:
    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: DescribeReservation
      description: Displays the details of a reservation. The response includes the reservation name, state, start date and time, and the details of the offering that make up the rest of the reservation (such as price, duration, and outbound bandwidth).
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DescribeReservationResponse'
              examples:
                DescribeReservation200Example:
                  summary: Default DescribeReservation 200 response
                  x-microcks-default: true
                  value:
                    Reservation: example-value
        '480':
          description: NotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundException'
              examples:
                DescribeReservation480Example:
                  summary: Default DescribeReservation 480 response
                  x-microcks-default: true
                  value:
                    result: success
        '481':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
              examples:
                DescribeReservation481Example:
                  summary: Default DescribeReservation 481 response
                  x-microcks-default: true
                  value:
                    result: success
        '482':
          description: TooManyRequestsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsException'
              examples:
                DescribeReservation482Example:
                  summary: Default DescribeReservation 482 response
                  x-microcks-default: true
                  value:
                    result: success
        '483':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
              examples:
                DescribeReservation483Example:
                  summary: Default DescribeReservation 483 response
                  x-microcks-default: true
                  value:
                    result: success
        '484':
          description: InternalServerErrorException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorException'
              examples:
                DescribeReservation484Example:
                  summary: Default DescribeReservation 484 response
                  x-microcks-default: true
                  value:
                    result: success
      parameters:
      - name: reservationArn
        in: path
        required: true
        description: The Amazon Resource Name (ARN) of the reservation.
        schema:
          type: string
        example: arn:aws:mediaconnect:us-east-1:123456789012:flow:example-flow
      summary: Amazon MediaConnect Describe Reservation
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      tags:
      - Reservations
  /v1/reservations:
    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: ListReservations
      description: Displays a list of all reservations that have been purchased by this account in the current AWS Region. This list includes all reservations in all states (such as active and expired).
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListReservationsResponse'
              examples:
                ListReservations200Example:
                  summary: Default ListReservations 200 response
                  x-microcks-default: true
                  value:
                    NextToken: example-value
                    Reservations: example-value
        '480':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
              examples:
                ListReservations480Example:
                  summary: Default ListReservations 480 response
                  x-microcks-default: true
                  value:
                    result: success
        '481':
          description: TooManyRequestsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsException'
              examples:
                ListReservations481Example:
                  summary: Default ListReservations 481 response
                  x-microcks-default: true
                  value:
                    result: success
        '482':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
              examples:
                ListReservations482Example:
                  summary: Default ListReservations 482 response
                  x-microcks-default: true
                  value:
                    result: success
        '483':
          description: InternalServerErrorException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorException'
              examples:
                ListReservations483Example:
                  summary: Default ListReservations 483 response
                  x-microcks-default: true
                  value:
                    result: success
      parameters:
      - name: maxResults
        in: query
        required: false
        description: The maximum number of results to return per API request. For example, you submit a ListReservations request with MaxResults set at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.) The service might return fewer results than the MaxResults value. If MaxResults is not included in the request, the service defaults to pagination with a maximum of 10 results per page.
        schema:
          type: integer
          minimum: 1
          maximum: 1000
        example: 1
      - name: nextToken
        in: query
        required: false
        description: The token that identifies which batch of results that you want to see. For example, you submit a ListReservations request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListOfferings request a second time and specify the NextToken value.
        schema:
          type: string
        example: example-value
      - name: MaxResults
        in: query
        schema:
          type: string
        description: Pagination limit
        required: false
        example: example-value
      - name: NextToken
        in: query
        schema:
          type: string
        description: Pagination token
        required: false
        example: example-value
      summary: Amazon MediaConnect List Reservations
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
      tags:
      - Reservations
components:
  parameters:
    X-Amz-Credential:
      name: X-Amz-Credential
      in: header
      schema:
        type: string
      required: false
    X-Amz-Security-Token:
      name: X-Amz-Security-Token
      in: header
      schema:
        type: string
      required: false
    X-Amz-Date:
      name: X-Amz-Date
      in: header
      schema:
        type: string
      required: false
    X-Amz-Algorithm:
      name: X-Amz-Algorithm
      in: header
      schema:
        type: string
      required: false
    X-Amz-SignedHeaders:
      name: X-Amz-SignedHeaders
      in: header
      schema:
        type: string
      required: false
    X-Amz-Content-Sha256:
      name: X-Amz-Content-Sha256
      in: header
      schema:
        type: string
      required: false
    X-Amz-Signature:
      name: X-Amz-Signature
      in: header
      schema:
        type: string
      required: false
  schemas:
    DescribeReservationResponse:
      type: object
      properties:
        Reservation:
          allOf:
          - $ref: '#/components/schemas/Reservation'
          - xml:
              name: reservation
    ResourceSpecification:
      type: object
      required:
      - ResourceType
      properties:
        ReservedBitrate:
          allOf:
          - $ref: '#/components/schemas/__integer'
          - xml:
              name: reservedBitrate
            description: The amount of outbound bandwidth that is discounted in the offering.
        ResourceType:
          allOf:
          - $ref: '#/components/schemas/ResourceType'
          - xml:
              name: resourceType
            description: The type of resource and the unit that is being billed for.
      description: A definition of what is being billed for, including the type and amount.
    Reservation:
      type: object
      required:
      - CurrencyCode
      - ReservationState
      - OfferingArn
      - ReservationArn
      - Start
      - OfferingDescription
      - ReservationName
      - End
      - Duration
      - DurationUnits
      - PricePerUnit
      - ResourceSpecification
      - PriceUnits
      properties:
        CurrencyCode:
          allOf:
          - $ref: '#/components/schemas/__string'
          - xml:
              name: currencyCode
            description: The type of currency that is used for billing. The currencyCode used for your reservation is US dollars.
        Duration:
          allOf:
          - $ref: '#/components/schemas/__integer'
          - xml:
              name: duration
            description: The length of time that this reservation is active. MediaConnect defines this value in the offering.
        DurationUnits:
          allOf:
          - $ref: '#/components/schemas/DurationUnits'
          - xml:
              name: durationUnits
            description: The unit of measurement for the duration of the reservation. MediaConnect defines this value in the offering.
        End:
          allOf:
          - $ref: '#/components/schemas/__string'
          - xml:
              name: end
            description: The day and time that this reservation expires. This value is calculated based on the start date and time that you set and the offering's duration.
        OfferingArn:
          allOf:
          - $ref: '#/components/schemas/__string'
          - xml:
              name: offeringArn
            description: The Amazon Resource Name (ARN) that MediaConnect assigns to the offering.
        OfferingDescription:
          allOf:
          - $ref: '#/components/schemas/__string'
          - xml:
              name: offeringDescription
            description: A description of the offering. MediaConnect defines this value in the offering.
        PricePerUnit:
          allOf:
          - $ref: '#/components/schemas/__string'
          - xml:
              name: pricePerUnit
            description: The cost of a single unit. This value, in combination with priceUnits, makes up the rate. MediaConnect defines this value in the offering.
        PriceUnits:
          allOf:
          - $ref: '#/components/schemas/PriceUnits'
          - xml:
              name: priceUnits
            description: The unit of measurement that is used for billing. This value, in combination with pricePerUnit, makes up the rate. MediaConnect defines this value in the offering.
        ReservationArn:
          allOf:
          - $ref: '#/components/schemas/__string'
          - xml:
              name: reservationArn
            description: The Amazon Resource Name (ARN) that MediaConnect assigns to the reservation when you purchase an offering.
        ReservationName:
          allOf:
          - $ref: '#/components/schemas/__string'
          - xml:
              name: reservationName
            description: The name that you assigned to the reservation when you purchased the offering.
        ReservationState:
          allOf:
          - $ref: '#/components/schemas/ReservationState'
          - xml:
              name: reservationState
            description: The status of your reservation.
        ResourceSpecification:
          allOf:
          - $ref: '#/components/schemas/ResourceSpecification'
          - xml:
              name: resourceSpecification
            description: A definition of the amount of outbound bandwidth that you would be reserving if you purchase the offering. MediaConnect defines the values that make up the resourceSpecification in the offering.
        Start:
          allOf:
          - $ref: '#/components/schemas/__string'
          - xml:
              name: start
            description: The day and time that the reservation becomes active. You set this value when you purchase the offering.
      description: A pricing agreement for a discounted rate for a specific outbound bandwidth that your MediaConnect account will use each month over a specific time period. The discounted rate in the reservation applies to outbound bandwidth for all flows from your account until your account reaches the amount of bandwidth in your reservation. If you use more outbound bandwidth than the agreed upon amount in a single month, the overage is charged at the on-demand rate.
    __integer:
      type: integer
    ListReservationsResponse:
      type: object
      properties:
        NextToken:
          allOf:
          - $ref: '#/components/schemas/__string'
          - xml:
              name: nextToken
            description: The token that identifies which batch of results that you want to see. For example, you submit a ListReservations request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListReservations request a second time and specify the NextToken value.
        Reservations:
          allOf:
          - $ref: '#/components/schemas/__listOfReservation'
          - xml:
              name: reservations
            description: A list of all reservations that have been purchased by this account in the current AWS Region.
    ReservationState:
      type: string
      enum:
      - ACTIVE
      - EXPIRED
      - PROCESSING
      - CANCELED
    InternalServerErrorException: {}
    ResourceType:
      type: string
      enum:
      - Mbps_Outbound_Bandwidth
    PriceUnits:
      type: string
      enum:
      - HOURLY
    BadRequestException: {}
    NotFoundException: {}
    ServiceUnavailableException: {}
    TooManyRequestsException: {}
    __listOfReservation:
      type: array
      items:
        $ref: '#/components/schemas/Reservation'
    __string:
      type: string
    DurationUnits:
      type: string
      enum:
      - MONTHS
  securitySchemes:
    hmac:
      type: apiKey
      name: Authorization
      in: header
      description: Amazon Signature authorization v4
      x-amazon-apigateway-authtype: awsSigv4
externalDocs:
  description: Amazon Web Services documentation
  url: https://docs.aws.amazon.com/mediaconnect/
x-hasEquivalentPaths: true