---
title: "GET /resource-profiles/detections#resourceArn"
method: GET
path: "/resource-profiles/detections#resourceArn"
---

# GET /resource-profiles/detections#resourceArn

`GET /resource-profiles/detections#resourceArn`

Retrieves information about the types and amount of sensitive data that Amazon Macie found in an S3 bucket.

## Query parameters

- `maxResults` integer
- `nextToken` string
- `resourceArn` string, required

## Response `200`

Success

- ListResourceProfileDetectionsResponse
  - `detections` Detection[] — 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.
    - `arn` string — 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` integer — The total number of occurrences of the sensitive data.
    - `id` string — 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 <a href="https://docs.aws.amazon.com/macie/latest/user/managed-data-identifiers.html">Using managed data identifiers</a> in the <i>Amazon Macie User Guide</i>.
    - `name` string — 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` boolean — Specifies whether occurrences of this type of sensitive data are excluded (true) or included (false) in the bucket's sensitivity score.
    - `type` 'CUSTOM' | 'MANAGED' — 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.
  - `nextToken` string — 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.

## Other responses

- `480` — ValidationException
- `481` — InternalServerException
- `482` — ServiceQuotaExceededException
- `483` — AccessDeniedException
- `484` — ResourceNotFoundException
- `485` — ThrottlingException

---

[API](https://skmtc.net/aws/apis/macie2.md) · [All operations](https://skmtc.net/aws/apis/macie2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/macie2/versions/6252cf55d8ef/schema)
