Amazon Macie Resource Profiles API

The Resource Profiles API from Amazon Macie — 2 operation(s) for resource profiles.

GitHub OpenAPI

Operations 5

GET /resource-profiles Get Resource Profile #
PATCH /resource-profiles Update Resource Profile #
GET /resource-profiles/artifacts List Resource Profile Artifacts #
GET /resource-profiles/detections List Resource Profile Detections #
PATCH /resource-profiles/detections Update Resource Profile Detections #

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-resource-profiles-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-resource-profiles-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Macie 2 Resource Profiles API
  version: '2020-01-01'
  description: Generated from AWS's published Smithy model for Amazon Macie 2. 5 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:
  /resource-profiles:
    get:
      operationId: GetResourceProfile
      summary: Get Resource Profile
      description: Retrieves (queries) sensitive data discovery statistics and the sensitivity score for an S3 bucket.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetResourceProfileResponse'
        '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'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: resourceArn
        in: query
        required: true
        schema:
          type: string
        description: The Amazon Resource Name (ARN) of the S3 bucket that the request applies to.
      tags:
      - Resource Profiles
    patch:
      operationId: UpdateResourceProfile
      summary: Update Resource Profile
      description: Updates the sensitivity score for an S3 bucket.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateResourceProfileResponse'
        '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'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: resourceArn
        in: query
        required: true
        schema:
          type: string
        description: The Amazon Resource Name (ARN) of the S3 bucket that the request applies to.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                sensitivityScoreOverride:
                  type: integer
                  description: 'The new sensitivity score for the bucket. Valid values are: 100, assign the maximum score
                    and apply the Sensitive label to the bucket; and, null (empty), assign a score that Amazon Macie calculates
                    automatically after you submit the request.'
      tags:
      - Resource Profiles
  /resource-profiles/artifacts:
    get:
      operationId: ListResourceProfileArtifacts
      summary: List Resource Profile Artifacts
      description: Retrieves information about objects that Amazon Macie selected from an S3 bucket for automated sensitive
        data discovery.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListResourceProfileArtifactsResponse'
        '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: nextToken
        in: query
        schema:
          type: string
        description: The nextToken string that specifies which page of results to return in a paginated response.
      - name: resourceArn
        in: query
        required: true
        schema:
          type: string
        description: The Amazon Resource Name (ARN) of the S3 bucket that the request applies to.
      tags:
      - Resource Profiles
  /resource-profiles/detections:
    get:
      operationId: ListResourceProfileDetections
      summary: List Resource Profile Detections
      description: Retrieves information about the types and amount of sensitive data that Amazon Macie found in an S3 bucket.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListResourceProfileDetectionsResponse'
        '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'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - 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.
      - name: resourceArn
        in: query
        required: true
        schema:
          type: string
        description: The Amazon Resource Name (ARN) of the S3 bucket that the request applies to.
      tags:
      - Resource Profiles
    patch:
      operationId: UpdateResourceProfileDetections
      summary: Update Resource Profile Detections
      description: Updates the sensitivity scoring settings for an S3 bucket.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateResourceProfileDetectionsResponse'
        '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'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
      parameters:
      - name: resourceArn
        in: query
        required: true
        schema:
          type: string
        description: The Amazon Resource Name (ARN) of the S3 bucket that the request applies to.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                suppressDataIdentifiers:
                  type: array
                  items:
                    $ref: '#/components/schemas/SuppressDataIdentifier'
                  description: An array of objects, one for each custom data identifier or managed data identifier that detected
                    a type of sensitive data to exclude from the bucket's score. To include all sensitive data types in the
                    score, don't specify any values for this array.
      tags:
      - Resource Profiles
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.
    Detection:
      type: object
      properties:
        arn:
          type: string
          description: If the sensitive data was detected by a custom data identifier, the Amazon Resource Name (ARN) of the
            custom data identifier that detected the data. Otherwise, this value is null.
        count:
          type: integer
          description: The total number of occurrences of the sensitive data.
        id:
          type: string
          description: The unique identifier for the custom data identifier or managed data identifier that detected the sensitive
            data. For additional details about a specified managed data identifier, see Using managed data identifiers in
            the Amazon Macie User Guide.
        name:
          type: string
          description: The name of the custom data identifier or managed data identifier that detected the sensitive data.
            For a managed data identifier, this value is the same as the unique identifier (id).
        suppressed:
          type: boolean
          description: Specifies whether occurrences of this type of sensitive data are excluded (true) or included (false)
            in the bucket's sensitivity score, if the score is calculated by Amazon Macie.
        type:
          type: string
          enum:
          - CUSTOM
          - MANAGED
          description: 'The type of data identifier that detected the sensitive data. Possible values are: CUSTOM, for a custom
            data identifier; and, MANAGED, for a managed data identifier.'
    GetResourceProfileResponse:
      type: object
      properties:
        profileUpdatedAt:
          type: string
          format: date-time
          description: The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently recalculated
            sensitive data discovery statistics and details for the bucket. If the bucket's sensitivity score is calculated
            automatically, this includes the score.
        sensitivityScore:
          type: integer
          description: The current sensitivity score for the bucket, ranging from -1 (classification error) to 100 (sensitive).
            By default, this score is calculated automatically based on the amount of data that Amazon Macie has analyzed
            in the bucket and the amount of sensitive data that Macie has found in the bucket.
        sensitivityScoreOverridden:
          type: boolean
          description: Specifies whether the bucket's current sensitivity score was set manually. If this value is true, the
            score was manually changed to 100. If this value is false, the score was calculated automatically by Amazon Macie.
        statistics:
          $ref: '#/components/schemas/ResourceStatistics'
    InternalServerException:
      type: object
      properties:
        message:
          type: string
          description: The explanation of the error that occurred.
    ListResourceProfileArtifactsResponse:
      type: object
      properties:
        artifacts:
          type: array
          items:
            $ref: '#/components/schemas/ResourceProfileArtifact'
          description: 'An array of objects, one for each of 1-100 S3 objects that Amazon Macie selected for analysis. If
            Macie has analyzed more than 100 objects in the bucket, Macie populates the array based on the value for the ResourceProfileArtifact.sensitive
            field for an object: true (sensitive), followed by false (not sensitive). Macie then populates any remaining items
            in the array with information about objects where the value for the ResourceProfileArtifact.classificationResultStatus
            field is SKIPPED.'
        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.
    ListResourceProfileDetectionsResponse:
      type: object
      properties:
        detections:
          type: array
          items:
            $ref: '#/components/schemas/Detection'
          description: An array of objects, one for each type of sensitive data that Amazon Macie found in the bucket. Each
            object reports the number of occurrences of the specified type and provides information about the custom data
            identifier or managed data identifier that detected the data.
        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.
    ResourceProfileArtifact:
      type: object
      properties:
        arn:
          type: string
          description: The Amazon Resource Name (ARN) of the object.
        classificationResultStatus:
          type: string
          description: 'The status of the analysis. Possible values are: COMPLETE - Amazon Macie successfully completed its
            analysis of the object. PARTIAL - Macie analyzed only a subset of data in the object. For example, the object
            is an archive file that contains files in an unsupported format. SKIPPED - Macie wasn''t able to analyze the object.
            For example, the object is a malformed file.'
        sensitive:
          type: boolean
          description: Specifies whether Amazon Macie found sensitive data in the object.
      required:
      - arn
      - classificationResultStatus
    ResourceStatistics:
      type: object
      properties:
        totalBytesClassified:
          type: integer
          description: The total amount of data, in bytes, that Amazon Macie has analyzed in the bucket.
        totalDetections:
          type: integer
          description: The total number of occurrences of sensitive data that Amazon Macie has found in the bucket's objects.
            This includes occurrences that are currently suppressed by the sensitivity scoring settings for the bucket (totalDetectionsSuppressed).
        totalDetectionsSuppressed:
          type: integer
          description: The total number of occurrences of sensitive data that are currently suppressed by the sensitivity
            scoring settings for the bucket. These represent occurrences of sensitive data that Amazon Macie found in the
            bucket's objects, but the occurrences were manually suppressed. By default, suppressed occurrences are excluded
            from the bucket's sensitivity score.
        totalItemsClassified:
          type: integer
          description: The total number of objects that Amazon Macie has analyzed in the bucket.
        totalItemsSensitive:
          type: integer
          description: The total number of the bucket's objects that Amazon Macie has found sensitive data in.
        totalItemsSkipped:
          type: integer
          description: The total number of objects that Amazon Macie wasn't able to analyze in the bucket due to an object-level
            issue or error. For example, an object is a malformed file. This value includes objects that Macie wasn't able
            to analyze for reasons reported by other statistics in the ResourceStatistics object.
        totalItemsSkippedInvalidEncryption:
          type: integer
          description: The total number of objects that Amazon Macie wasn't able to analyze in the bucket because the objects
            are encrypted with a key that Macie can't access. The objects use server-side encryption with customer-provided
            keys (SSE-C).
        totalItemsSkippedInvalidKms:
          type: integer
          description: The total number of objects that Amazon Macie wasn't able to analyze in the bucket because the objects
            are encrypted with KMS keys that were disabled, are scheduled for deletion, or were deleted.
        totalItemsSkippedPermissionDenied:
          type: integer
          description: The total number of objects that Amazon Macie wasn't able to analyze in the bucket due to the permissions
            settings for the objects or the permissions settings for the keys that were used to encrypt the objects.
    ServiceQuotaExceededException:
      type: object
      properties:
        message:
          type: string
          description: The explanation of the error that occurred.
    SuppressDataIdentifier:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier for the custom data identifier or managed data identifier that detected the type
            of sensitive data to exclude from the score.
        type:
          type: string
          enum:
          - CUSTOM
          - MANAGED
          description: 'The type of data identifier that detected the sensitive data. Possible values are: CUSTOM, for a custom
            data identifier; and, MANAGED, for a managed data identifier.'
    ThrottlingException:
      type: object
      properties:
        message:
          type: string
          description: The explanation of the error that occurred.
    UpdateResourceProfileDetectionsResponse:
      type: object
      properties: {}
    UpdateResourceProfileResponse:
      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)