Amazon Macie Automated Discovery API

The Automated Discovery API from Amazon Macie — 1 operation(s) for automated discovery.

GitHub OpenAPI

Operations 4

PATCH /automated-discovery/accounts Batch Update Automated Discovery Accounts #
GET /automated-discovery/accounts List Automated Discovery Accounts #
GET /automated-discovery/configuration Get Automated Discovery Configuration #
PUT /automated-discovery/configuration Update Automated Discovery Configuration #

Documentation

Specifications

Schemas & Data

Other Resources

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-automated-discovery-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-automated-discovery-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Macie 2 Automated Discovery API
  version: '2020-01-01'
  description: Generated from AWS's published Smithy model for Amazon Macie 2. 4 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:
  /automated-discovery/accounts:
    patch:
      operationId: BatchUpdateAutomatedDiscoveryAccounts
      summary: Batch Update Automated Discovery Accounts
      description: Changes the status of automated sensitive data discovery for one or more accounts.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchUpdateAutomatedDiscoveryAccountsResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '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'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                accounts:
                  type: array
                  items:
                    $ref: '#/components/schemas/AutomatedDiscoveryAccountUpdate'
                  description: An array of objects, one for each account to change the status of automated sensitive data
                    discovery for. Each object specifies the Amazon Web Services account ID for an account and a new status
                    for that account.
      tags:
      - Automated Discovery
    get:
      operationId: ListAutomatedDiscoveryAccounts
      summary: List Automated Discovery Accounts
      description: Retrieves the status of automated sensitive data discovery for one or more accounts.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAutomatedDiscoveryAccountsResponse'
        '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: accountIds
        in: query
        schema:
          type: array
          items:
            type: string
        description: The Amazon Web Services account ID for each account, for as many as 50 accounts. To retrieve the status
          for multiple accounts, append the accountIds parameter and argument for each account, separated by an ampersand
          (&). To retrieve the status for all the accounts in an organization, omit this parameter.
      - name: maxResults
        in: query
        schema:
          type: integer
        description: The maximum number of items to include in each page of a paginated response.
      - name: nextToken
        in: query
        schema:
          type: string
        description: The nextToken string that specifies which page of results to return in a paginated response.
      tags:
      - Automated Discovery
  /automated-discovery/configuration:
    get:
      operationId: GetAutomatedDiscoveryConfiguration
      summary: Get Automated Discovery Configuration
      description: Retrieves the configuration settings and status of automated sensitive data discovery for an organization
        or standalone account.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAutomatedDiscoveryConfigurationResponse'
        '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'
      tags:
      - Automated Discovery
    put:
      operationId: UpdateAutomatedDiscoveryConfiguration
      summary: Update Automated Discovery Configuration
      description: Changes the configuration settings and status of automated sensitive data discovery for an organization
        or standalone account.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateAutomatedDiscoveryConfigurationResponse'
        '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'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                autoEnableOrganizationMembers:
                  type: string
                  enum:
                  - ALL
                  - NEW
                  - NONE
                  description: 'Specifies whether to automatically enable automated sensitive data discovery for accounts
                    in the organization. Valid values are: ALL (default), enable it for all existing accounts and new member
                    accounts; NEW, enable it only for new member accounts; and, NONE, don''t enable it for any accounts. If
                    you specify NEW or NONE, automated sensitive data discovery continues to be enabled for any existing accounts
                    that it''s currently enabled for. To enable or disable it for individual member accounts, specify NEW
                    or NONE, and then enable or disable it for each account by using the BatchUpdateAutomatedDi'
                status:
                  type: string
                  enum:
                  - ENABLED
                  - DISABLED
                  description: 'The new status of automated sensitive data discovery for the organization or account. Valid
                    values are: ENABLED, start or resume all automated sensitive data discovery activities; and, DISABLED,
                    stop performing all automated sensitive data discovery activities. If you specify DISABLED for an administrator
                    account, you also disable automated sensitive data discovery for all member accounts in the organization.'
              required:
              - status
      tags:
      - Automated Discovery
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.
    AutomatedDiscoveryAccount:
      type: object
      properties:
        accountId:
          type: string
          description: The Amazon Web Services account ID for the account.
        status:
          type: string
          enum:
          - ENABLED
          - DISABLED
          description: 'The current status of automated sensitive data discovery for the account. Possible values are: ENABLED,
            perform automated sensitive data discovery activities for the account; and, DISABLED, don''t perform automated
            sensitive data discovery activities for the account.'
    AutomatedDiscoveryAccountUpdate:
      type: object
      properties:
        accountId:
          type: string
          description: The Amazon Web Services account ID for the account.
        status:
          type: string
          enum:
          - ENABLED
          - DISABLED
          description: 'The new status of automated sensitive data discovery for the account. Valid values are: ENABLED, perform
            automated sensitive data discovery activities for the account; and, DISABLED, don''t perform automated sensitive
            data discovery activities for the account.'
    AutomatedDiscoveryAccountUpdateError:
      type: object
      properties:
        accountId:
          type: string
          description: The Amazon Web Services account ID for the account that the request applied to.
        errorCode:
          type: string
          enum:
          - ACCOUNT_PAUSED
          - ACCOUNT_NOT_FOUND
          description: 'The error code for the error that caused the request to fail for the account (accountId). Possible
            values are: ACCOUNT_NOT_FOUND, the account doesn''t exist or you''re not the Amazon Macie administrator for the
            account; and, ACCOUNT_PAUSED, Macie isn''t enabled for the account in the current Amazon Web Services Region.'
    BatchUpdateAutomatedDiscoveryAccountsResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/AutomatedDiscoveryAccountUpdateError'
          description: An array of objects, one for each account whose status wasn't changed. Each object identifies the account
            and explains why the status of automated sensitive data discovery wasn't changed for the account. This value is
            null if the request succeeded for all specified accounts.
    ConflictException:
      type: object
      properties:
        message:
          type: string
          description: The explanation of the error that occurred.
    GetAutomatedDiscoveryConfigurationResponse:
      type: object
      properties:
        autoEnableOrganizationMembers:
          type: string
          enum:
          - ALL
          - NEW
          - NONE
          description: 'Specifies whether automated sensitive data discovery is enabled automatically for accounts in the
            organization. Possible values are: ALL, enable it for all existing accounts and new member accounts; NEW, enable
            it only for new member accounts; and, NONE, don''t enable it for any accounts.'
        classificationScopeId:
          type: string
          description: The unique identifier for the classification scope that's used when performing automated sensitive
            data discovery. The classification scope specifies S3 buckets to exclude from analyses.
        disabledAt:
          type: string
          format: date-time
          description: The date and time, in UTC and extended ISO 8601 format, when automated sensitive data discovery was
            most recently disabled. This value is null if automated sensitive data discovery is currently enabled.
        firstEnabledAt:
          type: string
          format: date-time
          description: The date and time, in UTC and extended ISO 8601 format, when automated sensitive data discovery was
            initially enabled. This value is null if automated sensitive data discovery has never been enabled.
        lastUpdatedAt:
          type: string
          format: date-time
          description: The date and time, in UTC and extended ISO 8601 format, when the configuration settings or status of
            automated sensitive data discovery was most recently changed.
        sensitivityInspectionTemplateId:
          type: string
          description: The unique identifier for the sensitivity inspection template that's used when performing automated
            sensitive data discovery. The template specifies which allow lists, custom data identifiers, and managed data
            identifiers to use when analyzing data.
        status:
          type: string
          enum:
          - ENABLED
          - DISABLED
          description: 'The current status of automated sensitive data discovery for the organization or account. Possible
            values are: ENABLED, use the specified settings to perform automated sensitive data discovery activities; and,
            DISABLED, don''t perform automated sensitive data discovery activities.'
    InternalServerException:
      type: object
      properties:
        message:
          type: string
          description: The explanation of the error that occurred.
    ListAutomatedDiscoveryAccountsResponse:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/AutomatedDiscoveryAccount'
          description: An array of objects, one for each account specified in the request. Each object specifies the Amazon
            Web Services account ID for an account and the current status of automated sensitive data discovery for that 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.
    ThrottlingException:
      type: object
      properties:
        message:
          type: string
          description: The explanation of the error that occurred.
    UpdateAutomatedDiscoveryConfigurationResponse:
      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)