Amazon Macie Classification Scopes API

The Classification Scopes API from Amazon Macie — 2 operation(s) for classification scopes.

GitHub OpenAPI

Operations 3

GET /classification-scopes/{id} Get Classification Scope #
PATCH /classification-scopes/{id} Update Classification Scope #
GET /classification-scopes List Classification Scopes #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-macie:amazon-macie-classification-scopes-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-macie-classification-scopes-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Macie 2 Classification Scopes API
  version: '2020-01-01'
  description: Generated from AWS's published Smithy model for Amazon Macie 2. 3 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://macie2.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /classification-scopes/{id}:
    get:
      operationId: GetClassificationScope
      summary: Get Classification Scope
      description: Retrieves the classification scope settings for an account.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetClassificationScopeResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier for the Amazon Macie resource that the request applies to.
      tags:
      - Classification Scopes
    patch:
      operationId: UpdateClassificationScope
      summary: Update Classification Scope
      description: Updates the classification scope settings for an account.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateClassificationScopeResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier for the Amazon Macie resource that the request applies to.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                s3:
                  $ref: '#/components/schemas/S3ClassificationScopeUpdate'
      tags:
      - Classification Scopes
  /classification-scopes:
    get:
      operationId: ListClassificationScopes
      summary: List Classification Scopes
      description: Retrieves a subset of information about the classification scope for an account.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListClassificationScopesResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: name
        in: query
        schema:
          type: string
        description: The name of the classification scope to retrieve the unique identifier for.
      - name: nextToken
        in: query
        schema:
          type: string
        description: The nextToken string that specifies which page of results to return in a paginated response.
      tags:
      - Classification Scopes
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: macie2
  schemas:
    AccessDeniedException:
      type: object
      properties:
        message:
          type: string
          description: The explanation of the error that occurred.
    ClassificationScopeSummary:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier for the classification scope.
        name:
          type: string
          description: 'The name of the classification scope: automated-sensitive-data-discovery.'
    GetClassificationScopeResponse:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier for the classification scope.
        name:
          type: string
          description: 'The name of the classification scope: automated-sensitive-data-discovery.'
        s3:
          $ref: '#/components/schemas/S3ClassificationScope'
    InternalServerException:
      type: object
      properties:
        message:
          type: string
          description: The explanation of the error that occurred.
    ListClassificationScopesResponse:
      type: object
      properties:
        classificationScopes:
          type: array
          items:
            $ref: '#/components/schemas/ClassificationScopeSummary'
          description: An array that specifies the unique identifier and name of the classification scope for the account.
        nextToken:
          type: string
          description: The string to use in a subsequent request to get the next page of results in a paginated response.
            This value is null if there are no additional pages.
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
          description: The explanation of the error that occurred.
    S3ClassificationScope:
      type: object
      properties:
        excludes:
          $ref: '#/components/schemas/S3ClassificationScopeExclusion'
      required:
      - excludes
    S3ClassificationScopeExclusion:
      type: object
      properties:
        bucketNames:
          type: array
          items:
            type: string
          description: An array of strings, one for each S3 bucket that is excluded. Each string is the full name of an excluded
            bucket.
      required:
      - bucketNames
    S3ClassificationScopeExclusionUpdate:
      type: object
      properties:
        bucketNames:
          type: array
          items:
            type: string
          description: 'Depending on the value specified for the update operation (ClassificationScopeUpdateOperation), an
            array of strings that: lists the names of buckets to add or remove from the list, or specifies a new set of bucket
            names that overwrites all existing names in the list. Each string must be the full name of an existing S3 bucket.
            Values are case sensitive.'
        operation:
          type: string
          enum:
          - ADD
          - REPLACE
          - REMOVE
          description: 'Specifies how to apply the changes to the exclusion list. Valid values are: ADD - Append the specified
            bucket names to the current list. REMOVE - Remove the specified bucket names from the current list. REPLACE -
            Overwrite the current list with the specified list of bucket names. If you specify this value, Amazon Macie removes
            all existing names from the list and adds all the specified names to the list.'
      required:
      - bucketNames
      - operation
    S3ClassificationScopeUpdate:
      type: object
      properties:
        excludes:
          $ref: '#/components/schemas/S3ClassificationScopeExclusionUpdate'
      required:
      - excludes
    ThrottlingException:
      type: object
      properties:
        message:
          type: string
          description: The explanation of the error that occurred.
    UpdateClassificationScopeResponse:
      type: object
      properties: {}
    ValidationException:
      type: object
      properties:
        message:
          type: string
          description: The explanation of the error that occurred.
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/macie2/service/2020-01-01/macie2-2020-01-01.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)