openapi: 3.0.0
info:
  version: '2011-12-05'
  x-release: v4
  title: Amazon DynamoDB
  description: '<p>Amazon DynamoDB is a fast, highly scalable, highly available, cost-effective non-relational database service.</p> <p>Amazon DynamoDB removes traditional scalability limitations on data storage while maintaining low latency and predictable performance.</p>'
  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: 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: dynamodb
  x-origin:
    - contentType: application/json
      url: 'https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/dynamodb-2011-12-05.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: false
externalDocs:
  description: Amazon Web Services documentation
  url: 'https://docs.aws.amazon.com/dynamodb/'
servers:
  - url: 'http://dynamodb.{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 DynamoDB multi-region endpoint
  - url: 'https://dynamodb.{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 DynamoDB multi-region endpoint
  - url: 'http://dynamodb.{region}.amazonaws.com.cn'
    variables:
      region:
        description: The AWS region
        enum:
          - cn-north-1
          - cn-northwest-1
        default: cn-north-1
    description: The DynamoDB endpoint for China (Beijing) and China (Ningxia)
  - url: 'https://dynamodb.{region}.amazonaws.com.cn'
    variables:
      region:
        description: The AWS region
        enum:
          - cn-north-1
          - cn-northwest-1
        default: cn-north-1
    description: The DynamoDB endpoint for China (Beijing) and China (Ningxia)
x-hasEquivalentPaths: true
paths:
  /#X-Amz-Target=DynamoDB_20111205.BatchGetItem:
    post:
      operationId: BatchGetItem
      description: '<p>Retrieves the attributes for multiple items from multiple tables using their primary keys.</p> <p>The maximum number of item attributes that can be retrieved for a single operation is 100. Also, the number of items retrieved is constrained by a 1 MB the size limit. If the response size limit is exceeded or a partial result is returned due to an internal processing failure, Amazon DynamoDB returns an <code>UnprocessedKeys</code> value so you can retry the operation starting with the next item to get.</p> <p>Amazon DynamoDB automatically adjusts the number of items returned per page to enforce this limit. For example, even if you ask to retrieve 100 items, but each individual item is 50k in size, the system returns 20 items and an appropriate <code>UnprocessedKeys</code> value so you can get the next page of results. If necessary, your application needs its own logic to assemble the pages of results into one set.</p>'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchGetItemOutput'
        '480':
          description: ProvisionedThroughputExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProvisionedThroughputExceededException'
        '481':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '482':
          description: RequestLimitExceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestLimitExceeded'
        '483':
          description: InternalServerError
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchGetItemInput'
      parameters:
        - name: RequestItems
          in: query
          schema:
            type: string
          description: Pagination token
          required: false
        - name: X-Amz-Target
          in: header
          required: true
          schema:
            type: string
            enum:
              - DynamoDB_20111205.BatchGetItem
    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'
  /#X-Amz-Target=DynamoDB_20111205.BatchWriteItem:
    post:
      operationId: BatchWriteItem
      description: <p>Allows to execute a batch of Put and/or Delete Requests for many tables in a single call. A total of 25 requests are allowed.</p> <p>There are no transaction guarantees provided by this API. It does not allow conditional puts nor does it support return values.</p>
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchWriteItemOutput'
        '480':
          description: ProvisionedThroughputExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProvisionedThroughputExceededException'
        '481':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '482':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '483':
          description: RequestLimitExceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestLimitExceeded'
        '484':
          description: InternalServerError
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchWriteItemInput'
      parameters:
        - name: X-Amz-Target
          in: header
          required: true
          schema:
            type: string
            enum:
              - DynamoDB_20111205.BatchWriteItem
    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'
  /#X-Amz-Target=DynamoDB_20111205.CreateTable:
    post:
      operationId: CreateTable
      description: '<p>Adds a new table to your account.</p> <p>The table name must be unique among those associated with the AWS Account issuing the request, and the AWS Region that receives the request (e.g. <code>us-east-1</code>).</p> <p>The <code>CreateTable</code> operation triggers an asynchronous workflow to begin creating the table. Amazon DynamoDB immediately returns the state of the table (<code>CREATING</code>) until the table is in the <code>ACTIVE</code> state. Once the table is in the <code>ACTIVE</code> state, you can perform data plane operations.</p>'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateTableOutput'
        '480':
          description: ResourceInUseException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceInUseException'
        '481':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '482':
          description: InternalServerError
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTableInput'
      parameters:
        - name: X-Amz-Target
          in: header
          required: true
          schema:
            type: string
            enum:
              - DynamoDB_20111205.CreateTable
    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'
  /#X-Amz-Target=DynamoDB_20111205.DeleteItem:
    post:
      operationId: DeleteItem
      description: '<p>Deletes a single item in a table by primary key.</p> <p>You can perform a conditional delete operation that deletes the item if it exists, or if it has an expected attribute value.</p>'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteItemOutput'
        '480':
          description: ConditionalCheckFailedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConditionalCheckFailedException'
        '481':
          description: ProvisionedThroughputExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProvisionedThroughputExceededException'
        '482':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '483':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '484':
          description: RequestLimitExceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestLimitExceeded'
        '485':
          description: InternalServerError
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteItemInput'
      parameters:
        - name: X-Amz-Target
          in: header
          required: true
          schema:
            type: string
            enum:
              - DynamoDB_20111205.DeleteItem
    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'
  /#X-Amz-Target=DynamoDB_20111205.DeleteTable:
    post:
      operationId: DeleteTable
      description: '<p>Deletes a table and all of its items.</p> <p>If the table is in the <code>ACTIVE</code> state, you can delete it. If a table is in <code>CREATING</code> or <code>UPDATING</code> states then Amazon DynamoDB returns a <code>ResourceInUseException</code>. If the specified table does not exist, Amazon DynamoDB returns a <code>ResourceNotFoundException</code>.</p>'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteTableOutput'
        '480':
          description: ResourceInUseException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceInUseException'
        '481':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '482':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '483':
          description: InternalServerError
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteTableInput'
      parameters:
        - name: X-Amz-Target
          in: header
          required: true
          schema:
            type: string
            enum:
              - DynamoDB_20111205.DeleteTable
    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'
  /#X-Amz-Target=DynamoDB_20111205.DescribeTable:
    post:
      operationId: DescribeTable
      description: '<p>Retrieves information about the table, including the current status of the table, the primary key schema and when the table was created.</p> <p>If the table does not exist, Amazon DynamoDB returns a <code>ResourceNotFoundException</code>.</p>'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DescribeTableOutput'
        '480':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '481':
          description: InternalServerError
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DescribeTableInput'
      parameters:
        - name: X-Amz-Target
          in: header
          required: true
          schema:
            type: string
            enum:
              - DynamoDB_20111205.DescribeTable
    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'
  /#X-Amz-Target=DynamoDB_20111205.GetItem:
    post:
      operationId: GetItem
      description: '<p>Retrieves a set of Attributes for an item that matches the primary key.</p> <p>The <code>GetItem</code> operation provides an eventually-consistent read by default. If eventually-consistent reads are not acceptable for your application, use <code>ConsistentRead</code>. Although this operation might take longer than a standard read, it always returns the last updated value.</p>'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetItemOutput'
        '480':
          description: ProvisionedThroughputExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProvisionedThroughputExceededException'
        '481':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '482':
          description: RequestLimitExceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestLimitExceeded'
        '483':
          description: InternalServerError
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetItemInput'
      parameters:
        - name: X-Amz-Target
          in: header
          required: true
          schema:
            type: string
            enum:
              - DynamoDB_20111205.GetItem
    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'
  /#X-Amz-Target=DynamoDB_20111205.ListTables:
    post:
      operationId: ListTables
      description: Retrieves a paginated list of table names created by the AWS Account of the caller in the AWS Region (e.g. <code>us-east-1</code>).
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListTablesOutput'
        '480':
          description: InternalServerError
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListTablesInput'
      parameters:
        - name: Limit
          in: query
          schema:
            type: string
          description: Pagination limit
          required: false
        - name: ExclusiveStartTableName
          in: query
          schema:
            type: string
          description: Pagination token
          required: false
        - name: X-Amz-Target
          in: header
          required: true
          schema:
            type: string
            enum:
              - DynamoDB_20111205.ListTables
    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'
  /#X-Amz-Target=DynamoDB_20111205.PutItem:
    post:
      operationId: PutItem
      description: '<p>Creates a new item, or replaces an old item with a new item (including all the attributes).</p> <p>If an item already exists in the specified table with the same primary key, the new item completely replaces the existing item. You can perform a conditional put (insert a new item if one with the specified primary key doesn''t exist), or replace an existing item if it has certain attribute values.</p>'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PutItemOutput'
        '480':
          description: ConditionalCheckFailedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConditionalCheckFailedException'
        '481':
          description: ProvisionedThroughputExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProvisionedThroughputExceededException'
        '482':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '483':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '484':
          description: RequestLimitExceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestLimitExceeded'
        '485':
          description: InternalServerError
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PutItemInput'
      parameters:
        - name: X-Amz-Target
          in: header
          required: true
          schema:
            type: string
            enum:
              - DynamoDB_20111205.PutItem
    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'
  /#X-Amz-Target=DynamoDB_20111205.Query:
    post:
      operationId: Query
      description: '<p>Gets the values of one or more items and its attributes by primary key (composite primary key, only).</p> <p>Narrow the scope of the query using comparison operators on the <code>RangeKeyValue</code> of the composite key. Use the <code>ScanIndexForward</code> parameter to get results in forward or reverse order by range key.</p>'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueryOutput'
        '480':
          description: ProvisionedThroughputExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProvisionedThroughputExceededException'
        '481':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '482':
          description: RequestLimitExceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestLimitExceeded'
        '483':
          description: InternalServerError
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QueryInput'
      parameters:
        - name: Limit
          in: query
          schema:
            type: string
          description: Pagination limit
          required: false
        - name: ExclusiveStartKey
          in: query
          schema:
            type: string
          description: Pagination token
          required: false
        - name: X-Amz-Target
          in: header
          required: true
          schema:
            type: string
            enum:
              - DynamoDB_20111205.Query
    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'
  /#X-Amz-Target=DynamoDB_20111205.Scan:
    post:
      operationId: Scan
      description: <p>Retrieves one or more items and its attributes by performing a full scan of a table.</p> <p>Provide a <code>ScanFilter</code> to get more specific results.</p>
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScanOutput'
        '480':
          description: ProvisionedThroughputExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProvisionedThroughputExceededException'
        '481':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '482':
          description: RequestLimitExceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestLimitExceeded'
        '483':
          description: InternalServerError
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScanInput'
      parameters:
        - name: Limit
          in: query
          schema:
            type: string
          description: Pagination limit
          required: false
        - name: ExclusiveStartKey
          in: query
          schema:
            type: string
          description: Pagination token
          required: false
        - name: X-Amz-Target
          in: header
          required: true
          schema:
            type: string
            enum:
              - DynamoDB_20111205.Scan
    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'
  /#X-Amz-Target=DynamoDB_20111205.UpdateItem:
    post:
      operationId: UpdateItem
      description: '<p>Edits an existing item''s attributes.</p> <p>You can perform a conditional update (insert a new attribute name-value pair if it doesn''t exist, or replace an existing name-value pair if it has certain expected attribute values).</p>'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateItemOutput'
        '480':
          description: ConditionalCheckFailedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConditionalCheckFailedException'
        '481':
          description: ProvisionedThroughputExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProvisionedThroughputExceededException'
        '482':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '483':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '484':
          description: RequestLimitExceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestLimitExceeded'
        '485':
          description: InternalServerError
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateItemInput'
      parameters:
        - name: X-Amz-Target
          in: header
          required: true
          schema:
            type: string
            enum:
              - DynamoDB_20111205.UpdateItem
    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'
  /#X-Amz-Target=DynamoDB_20111205.UpdateTable:
    post:
      operationId: UpdateTable
      description: <p>Updates the provisioned throughput for the given table.</p> <p>Setting the throughput for a table helps you manage performance and is part of the Provisioned Throughput feature of Amazon DynamoDB.</p>
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateTableOutput'
        '480':
          description: ResourceInUseException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceInUseException'
        '481':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '482':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '483':
          description: InternalServerError
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTableInput'
      parameters:
        - name: X-Amz-Target
          in: header
          required: true
          schema:
            type: string
            enum:
              - DynamoDB_20111205.UpdateTable
    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'
components:
  parameters:
    X-Amz-Content-Sha256:
      name: X-Amz-Content-Sha256
      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-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-Signature:
      name: X-Amz-Signature
      in: header
      schema:
        type: string
      required: false
    X-Amz-SignedHeaders:
      name: X-Amz-SignedHeaders
      in: header
      schema:
        type: string
      required: false
  securitySchemes:
    hmac:
      type: apiKey
      name: Authorization
      in: header
      description: Amazon Signature authorization v4
      x-amazon-apigateway-authtype: awsSigv4
  schemas:
    BatchGetItemOutput:
      type: object
      properties:
        Responses:
          $ref: '#/components/schemas/BatchGetResponseMap'
        UnprocessedKeys:
          allOf:
            - $ref: '#/components/schemas/BatchGetRequestMap'
            - description: 'Contains a map of tables and their respective keys that were not processed with the current response, possibly due to reaching a limit on the response size. The <code>UnprocessedKeys</code> value is in the same form as a <code>RequestItems</code> parameter (so the value can be provided directly to a subsequent <code>BatchGetItem</code> operation). For more information, see the above <code>RequestItems</code> parameter.'
    BatchGetItemInput:
      type: object
      required:
        - RequestItems
      title: BatchGetItemInput
      properties:
        RequestItems:
          $ref: '#/components/schemas/BatchGetRequestMap'
    ProvisionedThroughputExceededException: {}
    ResourceNotFoundException: {}
    RequestLimitExceeded: {}
    InternalServerError: {}
    BatchWriteItemOutput:
      type: object
      properties:
        Responses:
          allOf:
            - $ref: '#/components/schemas/BatchWriteResponseMap'
            - description: The response object as a result of <code>BatchWriteItem</code> call. This is essentially a map of table name to <code>ConsumedCapacityUnits</code>.
        UnprocessedItems:
          allOf:
            - $ref: '#/components/schemas/BatchWriteItemRequestMap'
            - description: The Items which we could not successfully process in a <code>BatchWriteItem</code> call is returned as <code>UnprocessedItems</code>
      description: A container for <code>BatchWriteItem</code> response
    BatchWriteItemInput:
      type: object
      required:
        - RequestItems
      title: BatchWriteItemInput
      properties:
        RequestItems:
          allOf:
            - $ref: '#/components/schemas/BatchWriteItemRequestMap'
            - description: A map of table name to list-of-write-requests. Used as input to the <code>BatchWriteItem</code> API call
    LimitExceededException: {}
    CreateTableOutput:
      type: object
      properties:
        TableDescription:
          $ref: '#/components/schemas/TableDescription'
    CreateTableInput:
      type: object
      required:
        - TableName
        - KeySchema
        - ProvisionedThroughput
      title: CreateTableInput
      properties:
        TableName:
          allOf:
            - $ref: '#/components/schemas/TableName'
            - description: 'The name of the table you want to create. Allowed characters are <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>, <code>_</code> (underscore), <code>-</code> (hyphen) and <code>.</code> (period).'
        KeySchema:
          $ref: '#/components/schemas/KeySchema'
        ProvisionedThroughput:
          $ref: '#/components/schemas/ProvisionedThroughput'
    ResourceInUseException: {}
    DeleteItemOutput:
      type: object
      properties:
        Attributes:
          allOf:
            - $ref: '#/components/schemas/AttributeMap'
            - description: 'If the <code>ReturnValues</code> parameter is provided as <code>ALL_OLD</code> in the request, Amazon DynamoDB returns an array of attribute name-value pairs (essentially, the deleted item). Otherwise, the response contains an empty set.'
        ConsumedCapacityUnits:
          $ref: '#/components/schemas/ConsumedCapacityUnits'
    DeleteItemInput:
      type: object
      required:
        - TableName
        - Key
      title: DeleteItemInput
      properties:
        TableName:
          allOf:
            - $ref: '#/components/schemas/TableName'
            - description: 'The name of the table in which you want to delete an item. Allowed characters are <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>, <code>_</code> (underscore), <code>-</code> (hyphen) and <code>.</code> (period).'
        Key:
          $ref: '#/components/schemas/Key'
        Expected:
          $ref: '#/components/schemas/ExpectedAttributeMap'
        ReturnValues:
          $ref: '#/components/schemas/ReturnValue'
    ConditionalCheckFailedException: {}
    DeleteTableOutput:
      type: object
      properties:
        TableDescription:
          $ref: '#/components/schemas/TableDescription'
    DeleteTableInput:
      type: object
      required:
        - TableName
      title: DeleteTableInput
      properties:
        TableName:
          allOf:
            - $ref: '#/components/schemas/TableName'
            - description: 'The name of the table you want to delete. Allowed characters are <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>, <code>_</code> (underscore), <code>-</code> (hyphen) and <code>.</code> (period).'
    DescribeTableOutput:
      type: object
      properties:
        Table:
          $ref: '#/components/schemas/TableDescription'
    DescribeTableInput:
      type: object
      required:
        - TableName
      title: DescribeTableInput
      properties:
        TableName:
          allOf:
            - $ref: '#/components/schemas/TableName'
            - description: 'The name of the table you want to describe. Allowed characters are <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>, <code>_</code> (underscore), <code>-</code> (hyphen) and <code>.</code> (period).'
    GetItemOutput:
      type: object
      properties:
        Item:
          allOf:
            - $ref: '#/components/schemas/AttributeMap'
            - description: Contains the requested attributes.
        ConsumedCapacityUnits:
          $ref: '#/components/schemas/ConsumedCapacityUnits'
    GetItemInput:
      type: object
      required:
        - TableName
        - Key
      title: GetItemInput
      properties:
        TableName:
          allOf:
            - $ref: '#/components/schemas/TableName'
            - description: 'The name of the table in which you want to get an item. Allowed characters are <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>, <code>_</code> (underscore), <code>-</code> (hyphen) and <code>.</code> (period).'
        Key:
          $ref: '#/components/schemas/Key'
        AttributesToGet:
          $ref: '#/components/schemas/AttributeNameList'
        ConsistentRead:
          $ref: '#/components/schemas/ConsistentRead'
    ListTablesOutput:
      type: object
      properties:
        TableNames:
          $ref: '#/components/schemas/TableNameList'
        LastEvaluatedTableName:
          allOf:
            - $ref: '#/components/schemas/TableName'
            - description: 'The name of the last table in the current list. Use this value as the <code>ExclusiveStartTableName</code> in a new request to continue the list until all the table names are returned. If this value is null, all table names have been returned.'
    ListTablesInput:
      type: object
      title: ListTablesInput
      properties:
        ExclusiveStartTableName:
          allOf:
            - $ref: '#/components/schemas/TableName'
            - description: 'The name of the table that starts the list. If you already ran a <code>ListTables</code> operation and received a <code>LastEvaluatedTableName</code> value in the response, use that value here to continue the list.'
        Limit:
          $ref: '#/components/schemas/ListTablesInputLimit'
    PutItemOutput:
      type: object
      properties:
        Attributes:
          allOf:
            - $ref: '#/components/schemas/AttributeMap'
            - description: 'Attribute values before the put operation, but only if the <code>ReturnValues</code> parameter is specified as <code>ALL_OLD</code> in the request.'
        ConsumedCapacityUnits:
          $ref: '#/components/schemas/ConsumedCapacityUnits'
    PutItemInput:
      type: object
      required:
        - TableName
        - Item
      title: PutItemInput
      properties:
        TableName:
          allOf:
            - $ref: '#/components/schemas/TableName'
            - description: 'The name of the table in which you want to put an item. Allowed characters are <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>, <code>_</code> (underscore), <code>-</code> (hyphen) and <code>.</code> (period).'
        Item:
          $ref: '#/components/schemas/PutItemInputAttributeMap'
        Expected:
          $ref: '#/components/schemas/ExpectedAttributeMap'
        ReturnValues:
          $ref: '#/components/schemas/ReturnValue'
    QueryOutput:
      type: object
      properties:
        Items:
          $ref: '#/components/schemas/ItemList'
        Count:
          allOf:
            - $ref: '#/components/schemas/Integer'
            - description: Number of items in the response.
        LastEvaluatedKey:
          allOf:
            - $ref: '#/components/schemas/Key'
            - description: 'Primary key of the item where the query operation stopped, inclusive of the previous result set. Use this value to start a new operation excluding this value in the new request. The <code>LastEvaluatedKey</code> is null when the entire query result set is complete (i.e. the operation processed the "last page").'
        ConsumedCapacityUnits:
          $ref: '#/components/schemas/ConsumedCapacityUnits'
    QueryInput:
      type: object
      required:
        - TableName
        - HashKeyValue
      title: QueryInput
      properties:
        TableName:
          allOf:
            - $ref: '#/components/schemas/TableName'
            - description: 'The name of the table in which you want to query. Allowed characters are <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>, <code>_</code> (underscore), <code>-</code> (hyphen) and <code>.</code> (period).'
        AttributesToGet:
          $ref: '#/components/schemas/AttributeNameList'
        Limit:
          allOf:
            - $ref: '#/components/schemas/PositiveIntegerObject'
            - description: 'The maximum number of items to return. If Amazon DynamoDB hits this limit while querying the table, it stops the query and returns the matching values up to the limit, and a <code>LastEvaluatedKey</code> to apply in a subsequent operation to continue the query. Also, if the result set size exceeds 1MB before Amazon DynamoDB hits this limit, it stops the query and returns the matching values, and a <code>LastEvaluatedKey</code> to apply in a subsequent operation to continue the query.'
        ConsistentRead:
          $ref: '#/components/schemas/ConsistentRead'
        Count:
          allOf:
            - $ref: '#/components/schemas/BooleanObject'
            - description: 'If set to <code>true</code>, Amazon DynamoDB returns a total number of items that match the query parameters, instead of a list of the matching items and their attributes. Do not set <code>Count</code> to <code>true</code> while providing a list of <code>AttributesToGet</code>, otherwise Amazon DynamoDB returns a validation error.'
        HashKeyValue:
          allOf:
            - $ref: '#/components/schemas/AttributeValue'
            - description: Attribute value of the hash component of the composite primary key.
        RangeKeyCondition:
          allOf:
            - $ref: '#/components/schemas/Condition'
            - description: A container for the attribute values and comparison operators to use for the query.
        ScanIndexForward:
          allOf:
            - $ref: '#/components/schemas/BooleanObject'
            - description: 'Specifies forward or backward traversal of the index. Amazon DynamoDB returns results reflecting the requested order, determined by the range key. The default value is <code>true</code> (forward).'
        ExclusiveStartKey:
          allOf:
            - $ref: '#/components/schemas/Key'
            - description: Primary key of the item from which to continue an earlier query. An earlier query might provide this value as the <code>LastEvaluatedKey</code> if that query operation was interrupted before completing the query; either because of the result set size or the <code>Limit</code> parameter. The <code>LastEvaluatedKey</code> can be passed back in a new query request to continue the operation from that point.
    ScanOutput:
      type: object
      properties:
        Items:
          $ref: '#/components/schemas/ItemList'
        Count:
          allOf:
            - $ref: '#/components/schemas/Integer'
            - description: Number of items in the response.
        ScannedCount:
          allOf:
            - $ref: '#/components/schemas/Integer'
            - description: 'Number of items in the complete scan before any filters are applied. A high <code>ScannedCount</code> value with few, or no, <code>Count</code> results indicates an inefficient <code>Scan</code> operation.'
        LastEvaluatedKey:
          allOf:
            - $ref: '#/components/schemas/Key'
            - description: Primary key of the item where the scan operation stopped. Provide this value in a subsequent scan operation to continue the operation from that point. The <code>LastEvaluatedKey</code> is null when the entire scan result set is complete (i.e. the operation processed the "last page").
        ConsumedCapacityUnits:
          $ref: '#/components/schemas/ConsumedCapacityUnits'
    ScanInput:
      type: object
      required:
        - TableName
      title: ScanInput
      properties:
        TableName:
          allOf:
            - $ref: '#/components/schemas/TableName'
            - description: 'The name of the table in which you want to scan. Allowed characters are <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>, <code>_</code> (underscore), <code>-</code> (hyphen) and <code>.</code> (period).'
        AttributesToGet:
          $ref: '#/components/schemas/AttributeNameList'
        Limit:
          allOf:
            - $ref: '#/components/schemas/PositiveIntegerObject'
            - description: 'The maximum number of items to return. If Amazon DynamoDB hits this limit while scanning the table, it stops the scan and returns the matching values up to the limit, and a <code>LastEvaluatedKey</code> to apply in a subsequent operation to continue the scan. Also, if the scanned data set size exceeds 1 MB before Amazon DynamoDB hits this limit, it stops the scan and returns the matching values up to the limit, and a <code>LastEvaluatedKey</code> to apply in a subsequent operation to continue the scan.'
        Count:
          allOf:
            - $ref: '#/components/schemas/BooleanObject'
            - description: 'If set to <code>true</code>, Amazon DynamoDB returns a total number of items for the <code>Scan</code> operation, even if the operation has no matching items for the assigned filter. Do not set <code>Count</code> to <code>true</code> while providing a list of <code>AttributesToGet</code>, otherwise Amazon DynamoDB returns a validation error.'
        ScanFilter:
          allOf:
            - $ref: '#/components/schemas/FilterConditionMap'
            - description: Evaluates the scan results and returns only the desired values.
        ExclusiveStartKey:
          allOf:
            - $ref: '#/components/schemas/Key'
            - description: Primary key of the item from which to continue an earlier scan. An earlier scan might provide this value if that scan operation was interrupted before scanning the entire table; either because of the result set size or the <code>Limit</code> parameter. The <code>LastEvaluatedKey</code> can be passed back in a new scan request to continue the operation from that point.
    UpdateItemOutput:
      type: object
      properties:
        Attributes:
          allOf:
            - $ref: '#/components/schemas/AttributeMap'
            - description: 'A map of attribute name-value pairs, but only if the <code>ReturnValues</code> parameter is specified as something other than <code>NONE</code> in the request.'
        ConsumedCapacityUnits:
          $ref: '#/components/schemas/ConsumedCapacityUnits'
    UpdateItemInput:
      type: object
      required:
        - TableName
        - Key
        - AttributeUpdates
      title: UpdateItemInput
      properties:
        TableName:
          allOf:
            - $ref: '#/components/schemas/TableName'
            - description: 'The name of the table in which you want to update an item. Allowed characters are <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>, <code>_</code> (underscore), <code>-</code> (hyphen) and <code>.</code> (period).'
        Key:
          $ref: '#/components/schemas/Key'
        AttributeUpdates:
          $ref: '#/components/schemas/AttributeUpdates'
        Expected:
          $ref: '#/components/schemas/ExpectedAttributeMap'
        ReturnValues:
          $ref: '#/components/schemas/ReturnValue'
    UpdateTableOutput:
      type: object
      properties:
        TableDescription:
          $ref: '#/components/schemas/TableDescription'
    UpdateTableInput:
      type: object
      required:
        - TableName
        - ProvisionedThroughput
      title: UpdateTableInput
      properties:
        TableName:
          allOf:
            - $ref: '#/components/schemas/TableName'
            - description: 'The name of the table you want to update. Allowed characters are <code>a-z</code>, <code>A-Z</code>, <code>0-9</code>, <code>_</code> (underscore), <code>-</code> (hyphen) and <code>.</code> (period).'
        ProvisionedThroughput:
          $ref: '#/components/schemas/ProvisionedThroughput'
    AttributeAction:
      type: string
      enum:
        - ADD
        - PUT
        - DELETE
      description: 'The type of action for an item update operation. Only use the add action for numbers or sets; the specified value is added to the existing value. If a set of values is specified, the values are added to the existing set. Adds the specified attribute. If the attribute exists, it is replaced by the new value. If no value is specified, this removes the attribute and its value. If a set of values is specified, then the values in the specified set are removed from the old set.'
    AttributeValue:
      type: object
      properties:
        S:
          allOf:
            - $ref: '#/components/schemas/StringAttributeValue'
            - description: Strings are Unicode with UTF-8 binary encoding. The maximum size is limited by the size of the primary key (1024 bytes as a range part of a key or 2048 bytes as a single part hash key) or the item size (64k).
        'N':
          allOf:
            - $ref: '#/components/schemas/NumberAttributeValue'
            - description: Numbers are positive or negative exact-value decimals and integers. A number can have up to 38 digits precision and can be between 10^-128 to 10^+126.
        B:
          allOf:
            - $ref: '#/components/schemas/BinaryAttributeValue'
            - description: Binary attributes are sequences of unsigned bytes.
        SS:
          allOf:
            - $ref: '#/components/schemas/StringSetAttributeValue'
            - description: A set of strings.
        NS:
          allOf:
            - $ref: '#/components/schemas/NumberSetAttributeValue'
            - description: A set of numbers.
        BS:
          allOf:
            - $ref: '#/components/schemas/BinarySetAttributeValue'
            - description: A set of binary attributes.
      description: 'AttributeValue can be <code>String</code>, <code>Number</code>, <code>Binary</code>, <code>StringSet</code>, <code>NumberSet</code>, <code>BinarySet</code>.'
    AttributeMap:
      type: object
      additionalProperties:
        $ref: '#/components/schemas/AttributeValue'
    AttributeName:
      type: string
      maxLength: 65535
    AttributeNameList:
      type: array
      description: 'List of <code>Attribute</code> names. If attribute names are not specified then all attributes will be returned. If some attributes are not found, they will not appear in the result.'
      items:
        $ref: '#/components/schemas/AttributeName'
      minItems: 1
    AttributeValueUpdate:
      type: object
      properties:
        Value:
          $ref: '#/components/schemas/AttributeValue'
        Action:
          $ref: '#/components/schemas/AttributeAction'
      description: 'Specifies the attribute to update and how to perform the update. Possible values: <code>PUT</code> (default), <code>ADD</code> or <code>DELETE</code>.'
    AttributeUpdates:
      type: object
      description: 'Map of attribute name to the new value and action for the update. The attribute names specify the attributes to modify, and cannot contain any primary key attributes.'
      additionalProperties:
        $ref: '#/components/schemas/AttributeValueUpdate'
    StringAttributeValue:
      type: string
    NumberAttributeValue:
      type: string
    BinaryAttributeValue:
      type: string
    StringSetAttributeValue:
      type: array
      items:
        $ref: '#/components/schemas/StringAttributeValue'
    NumberSetAttributeValue:
      type: array
      items:
        $ref: '#/components/schemas/NumberAttributeValue'
    BinarySetAttributeValue:
      type: array
      items:
        $ref: '#/components/schemas/BinaryAttributeValue'
    AttributeValueList:
      type: array
      description: 'A list of attribute values to be used with a comparison operator for a scan or query operation. For comparisons that require more than one value, such as a <code>BETWEEN</code> comparison, the AttributeValueList contains two attribute values and the comparison operator.'
      items:
        $ref: '#/components/schemas/AttributeValue'
    BatchGetRequestMap:
      type: object
      description: 'A map of the table name and corresponding items to get by primary key. While requesting items, each table name can be invoked only once per operation.'
      minProperties: 1
      maxProperties: 100
      additionalProperties:
        $ref: '#/components/schemas/KeysAndAttributes'
    BatchGetResponseMap:
      type: object
      description: Table names and the respective item attributes from the tables.
      additionalProperties:
        $ref: '#/components/schemas/BatchResponse'
    KeysAndAttributes:
      type: object
      required:
        - Keys
      properties:
        Keys:
          $ref: '#/components/schemas/KeyList'
        AttributesToGet:
          $ref: '#/components/schemas/AttributeNameList'
        ConsistentRead:
          $ref: '#/components/schemas/ConsistentRead'
    BatchResponse:
      type: object
      properties:
        Items:
          $ref: '#/components/schemas/ItemList'
        ConsumedCapacityUnits:
          $ref: '#/components/schemas/ConsumedCapacityUnits'
      description: 'The item attributes from a response in a specific table, along with the read resources consumed on the table during the request.'
    ItemList:
      type: array
      items:
        $ref: '#/components/schemas/AttributeMap'
    ConsumedCapacityUnits:
      type: number
      description: 'The number of Capacity Units of the provisioned throughput of the table consumed during the operation. <code>GetItem</code>, <code>BatchGetItem</code>, <code>BatchWriteItem</code>, <code>Query</code>, and <code>Scan</code> operations consume <code>ReadCapacityUnits</code>, while <code>PutItem</code>, <code>UpdateItem</code>, and <code>DeleteItem</code> operations consume <code>WriteCapacityUnits</code>.'
      format: double
    BatchWriteItemRequestMap:
      type: object
      description: '<p>A map of table name to list-of-write-requests.</p> <p>Key: The table name corresponding to the list of requests</p> <p>Value: Essentially a list of request items. Each request item could contain either a <code>PutRequest</code> or <code>DeleteRequest</code>. Never both.</p>'
      minProperties: 1
      maxProperties: 25
      additionalProperties:
        $ref: '#/components/schemas/WriteRequests'
    BatchWriteResponseMap:
      type: object
      additionalProperties:
        $ref: '#/components/schemas/BatchWriteResponse'
    WriteRequests:
      type: array
      items:
        $ref: '#/components/schemas/WriteRequest'
      minItems: 1
      maxItems: 25
    BatchWriteResponse:
      type: object
      properties:
        ConsumedCapacityUnits:
          $ref: '#/components/schemas/ConsumedCapacityUnits'
    BooleanObject:
      type: boolean
    ComparisonOperator:
      type: string
      enum:
        - EQ
        - NE
        - IN
        - LE
        - LT
        - GE
        - GT
        - BETWEEN
        - NOT_NULL
        - 'NULL'
        - CONTAINS
        - NOT_CONTAINS
        - BEGINS_WITH
      description: '<p>A comparison operator is an enumeration of several operations:</p> <ul> <li><code>EQ</code> for <em>equal</em>.</li> <li><code>NE</code> for <em>not equal</em>.</li> <li><code>IN</code> checks for exact matches.</li> <li><code>LE</code> for <em>less than or equal to</em>.</li> <li><code>LT</code> for <em>less than</em>.</li> <li><code>GE</code> for <em>greater than or equal to</em>.</li> <li><code>GT</code> for <em>greater than</em>.</li> <li><code>BETWEEN</code> for <em>between</em>.</li> <li><code>NOT_NULL</code> for <em>exists</em>.</li> <li><code>NULL</code> for <em>not exists</em>.</li> <li><code>CONTAINS</code> for substring or value in a set.</li> <li><code>NOT_CONTAINS</code> for absence of a substring or absence of a value in a set.</li> <li><code>BEGINS_WITH</code> for a substring prefix.</li> </ul> <p>Scan operations support all available comparison operators.</p> <p>Query operations support a subset of the available comparison operators: EQ, LE, LT, GE, GT, BETWEEN, and BEGINS_WITH.</p>'
    Condition:
      type: object
      required:
        - ComparisonOperator
      properties:
        AttributeValueList:
          $ref: '#/components/schemas/AttributeValueList'
        ComparisonOperator:
          $ref: '#/components/schemas/ComparisonOperator'
    ConsistentRead:
      type: boolean
      description: 'If set to <code>true</code>, then a consistent read is issued. Otherwise eventually-consistent is used.'
    TableName:
      type: string
      pattern: '[a-zA-Z0-9_.-]+'
      minLength: 3
      maxLength: 255
    KeySchema:
      type: object
      required:
        - HashKeyElement
      properties:
        HashKeyElement:
          allOf:
            - $ref: '#/components/schemas/KeySchemaElement'
            - description: 'A hash key element is treated as the primary key, and can be a string or a number. Single attribute primary keys have one index value. The value can be <code>String</code>, <code>Number</code>, <code>StringSet</code>, <code>NumberSet</code>.'
        RangeKeyElement:
          allOf:
            - $ref: '#/components/schemas/KeySchemaElement'
            - description: 'A range key element is treated as a secondary key (used in conjunction with the primary key), and can be a string or a number, and is only used for hash-and-range primary keys. The value can be <code>String</code>, <code>Number</code>, <code>StringSet</code>, <code>NumberSet</code>.'
      description: 'The KeySchema identifies the primary key as a one attribute primary key (hash) or a composite two attribute (hash-and-range) primary key. Single attribute primary keys have one index value: a <code>HashKeyElement</code>. A composite hash-and-range primary key contains two attribute values: a <code>HashKeyElement</code> and a <code>RangeKeyElement</code>.'
    ProvisionedThroughput:
      type: object
      required:
        - ReadCapacityUnits
        - WriteCapacityUnits
      properties:
        ReadCapacityUnits:
          allOf:
            - $ref: '#/components/schemas/PositiveLongObject'
            - description: '<code>ReadCapacityUnits</code> are in terms of strictly consistent reads, assuming items of 1k. 2k items require twice the <code>ReadCapacityUnits</code>. Eventually-consistent reads only require half the <code>ReadCapacityUnits</code> of stirctly consistent reads.'
        WriteCapacityUnits:
          allOf:
            - $ref: '#/components/schemas/PositiveLongObject'
            - description: '<code>WriteCapacityUnits</code> are in terms of strictly consistent reads, assuming items of 1k. 2k items require twice the <code>WriteCapacityUnits</code>.'
      description: 'Provisioned throughput reserves the required read and write resources for your table in terms of <code>ReadCapacityUnits</code> and <code>WriteCapacityUnits</code>. Values for provisioned throughput depend upon your expected read/write rates, item size, and consistency. Provide the expected number of read and write operations, assuming an item size of 1k and strictly consistent reads. For 2k item size, double the value. For 3k, triple the value, etc. Eventually-consistent reads consume half the resources of strictly consistent reads.'
    TableDescription:
      type: object
      properties:
        TableName:
          allOf:
            - $ref: '#/components/schemas/TableName'
            - description: The name of the table being described.
        KeySchema:
          $ref: '#/components/schemas/KeySchema'
        TableStatus:
          $ref: '#/components/schemas/TableStatus'
        CreationDateTime:
          $ref: '#/components/schemas/Date'
        ProvisionedThroughput:
          $ref: '#/components/schemas/ProvisionedThroughputDescription'
        TableSizeBytes:
          $ref: '#/components/schemas/Long'
        ItemCount:
          $ref: '#/components/schemas/Long'
    Date:
      type: string
      format: date-time
    Key:
      type: object
      required:
        - HashKeyElement
      properties:
        HashKeyElement:
          allOf:
            - $ref: '#/components/schemas/AttributeValue'
            - description: 'A hash key element is treated as the primary key, and can be a string or a number. Single attribute primary keys have one index value. The value can be <code>String</code>, <code>Number</code>, <code>StringSet</code>, <code>NumberSet</code>.'
        RangeKeyElement:
          allOf:
            - $ref: '#/components/schemas/AttributeValue'
            - description: 'A range key element is treated as a secondary key (used in conjunction with the primary key), and can be a string or a number, and is only used for hash-and-range primary keys. The value can be <code>String</code>, <code>Number</code>, <code>StringSet</code>, <code>NumberSet</code>.'
      description: The primary key that uniquely identifies each item in a table. A primary key can be a one attribute (hash) primary key or a two attribute (hash-and-range) primary key.
    ExpectedAttributeMap:
      type: object
      description: 'Designates an attribute for a conditional modification. The <code>Expected</code> parameter allows you to provide an attribute name, and whether or not Amazon DynamoDB should check to see if the attribute has a particular value before modifying it.'
      additionalProperties:
        $ref: '#/components/schemas/ExpectedAttributeValue'
    ReturnValue:
      type: string
      enum:
        - NONE
        - ALL_OLD
        - UPDATED_OLD
        - ALL_NEW
        - UPDATED_NEW
      description: '<p>Use this parameter if you want to get the attribute name-value pairs before or after they are modified. For <code>PUT</code> operations, the possible parameter values are <code>NONE</code> (default) or <code>ALL_OLD</code>. For update operations, the possible parameter values are <code>NONE</code> (default) or <code>ALL_OLD</code>, <code>UPDATED_OLD</code>, <code>ALL_NEW</code> or <code>UPDATED_NEW</code>.</p> <ul> <li><code>NONE</code>: Nothing is returned.</li> <li><code>ALL_OLD</code>: Returns the attributes of the item as they were before the operation.</li> <li><code>UPDATED_OLD</code>: Returns the values of the updated attributes, only, as they were before the operation.</li> <li><code>ALL_NEW</code>: Returns all the attributes and their new values after the operation.</li> <li><code>UPDATED_NEW</code>: Returns the values of the updated attributes, only, as they are after the operation.</li> </ul>'
    DeleteRequest:
      type: object
      required:
        - Key
      properties:
        Key:
          allOf:
            - $ref: '#/components/schemas/Key'
            - description: The item's key to be delete
      description: A container for a Delete BatchWrite request
    ExpectedAttributeValue:
      type: object
      properties:
        Value:
          allOf:
            - $ref: '#/components/schemas/AttributeValue'
            - description: Specify whether or not a value already exists and has a specific content for the attribute name-value pair.
        Exists:
          allOf:
            - $ref: '#/components/schemas/BooleanObject'
            - description: Specify whether or not a value already exists for the attribute name-value pair.
      description: 'Allows you to provide an attribute name, and whether or not Amazon DynamoDB should check to see if the attribute value already exists; or if the attribute value exists and has a particular value before changing it.'
    FilterConditionMap:
      type: object
      additionalProperties:
        $ref: '#/components/schemas/Condition'
    Integer:
      type: integer
    KeyList:
      type: array
      items:
        $ref: '#/components/schemas/Key'
      minItems: 1
      maxItems: 100
    KeySchemaElement:
      type: object
      required:
        - AttributeName
        - AttributeType
      properties:
        AttributeName:
          allOf:
            - $ref: '#/components/schemas/KeySchemaAttributeName'
            - description: The <code>AttributeName</code> of the <code>KeySchemaElement</code>.
        AttributeType:
          allOf:
            - $ref: '#/components/schemas/ScalarAttributeType'
            - description: The <code>AttributeType</code> of the <code>KeySchemaElement</code> which can be a <code>String</code> or a <code>Number</code>.
      description: <code>KeySchemaElement</code> is the primary key (hash or hash-and-range) structure for the table.
    KeySchemaAttributeName:
      type: string
      minLength: 1
      maxLength: 255
    ScalarAttributeType:
      type: string
      enum:
        - S
        - 'N'
        - B
    ListTablesInputLimit:
      type: integer
      description: A number of maximum table names to return.
      minimum: 1
      maximum: 100
    TableNameList:
      type: array
      items:
        $ref: '#/components/schemas/TableName'
    Long:
      type: integer
    PositiveIntegerObject:
      type: integer
      minimum: 1
    PositiveLongObject:
      type: integer
      minimum: 1
    ProvisionedThroughputDescription:
      type: object
      properties:
        LastIncreaseDateTime:
          $ref: '#/components/schemas/Date'
        LastDecreaseDateTime:
          $ref: '#/components/schemas/Date'
        NumberOfDecreasesToday:
          $ref: '#/components/schemas/PositiveLongObject'
        ReadCapacityUnits:
          $ref: '#/components/schemas/PositiveLongObject'
        WriteCapacityUnits:
          $ref: '#/components/schemas/PositiveLongObject'
    PutItemInputAttributeMap:
      type: object
      description: 'A map of the attributes for the item, and must include the primary key values that define the item. Other attribute name-value pairs can be provided for the item.'
      additionalProperties:
        $ref: '#/components/schemas/AttributeValue'
    PutRequest:
      type: object
      required:
        - Item
      properties:
        Item:
          allOf:
            - $ref: '#/components/schemas/PutItemInputAttributeMap'
            - description: The item to put
      description: A container for a Put BatchWrite request
    String:
      type: string
    TableStatus:
      type: string
      enum:
        - CREATING
        - UPDATING
        - DELETING
        - ACTIVE
    WriteRequest:
      type: object
      properties:
        PutRequest:
          $ref: '#/components/schemas/PutRequest'
        DeleteRequest:
          $ref: '#/components/schemas/DeleteRequest'
      description: This structure is a Union of PutRequest and DeleteRequest. It can contain exactly one of <code>PutRequest</code> or <code>DeleteRequest</code>. Never Both. This is enforced in the code.
security:
  - hmac: []
