Amazon Macie Datasources API

The Datasources API from Amazon Macie — 3 operation(s) for datasources.

Operations 3

POST /datasources/s3 Amazon Macie Describe Buckets #
POST /datasources/s3/statistics Amazon Macie Get Bucket Statistics #
POST /datasources/search-resources Amazon Macie Search 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-datasources-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

amazon-macie-datasources-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2020-01-01
  x-release: v4
  title: Amazon Macie 2 Datasources API
  description: Amazon Macie
  x-logo:
    url: https://api.apis.guru/v2/cache/logo/https_twitter.com_awscloud_profile_image.png
    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: macie2
  x-aws-signingName: macie2
  x-origin:
  - contentType: application/json
    url: https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/macie2-2020-01-01.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: true
servers:
- url: http://macie2.{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 Amazon Macie 2 multi-region endpoint
- url: https://macie2.{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 Amazon Macie 2 multi-region endpoint
- url: http://macie2.{region}.amazonaws.com.cn
  variables:
    region:
      description: The AWS region
      enum:
      - cn-north-1
      - cn-northwest-1
      default: cn-north-1
  description: The Amazon Macie 2 endpoint for China (Beijing) and China (Ningxia)
- url: https://macie2.{region}.amazonaws.com.cn
  variables:
    region:
      description: The AWS region
      enum:
      - cn-north-1
      - cn-northwest-1
      default: cn-north-1
  description: The Amazon Macie 2 endpoint for China (Beijing) and China (Ningxia)
security:
- hmac: []
tags:
- name: Datasources
paths:
  /datasources/s3:
    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'
    post:
      operationId: DescribeBuckets
      description: Retrieves (queries) statistical data and other information about one or more S3 buckets that Amazon Macie monitors and analyzes for an account.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DescribeBucketsResponse'
        '480':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
        '481':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '482':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '483':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '484':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '485':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '486':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
      parameters:
      - name: maxResults
        in: query
        schema:
          type: string
        description: Pagination limit
        required: false
      - name: nextToken
        in: query
        schema:
          type: string
        description: Pagination token
        required: false
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                criteria:
                  description: Specifies, as a map, one or more property-based conditions that filter the results of a query for information about S3 buckets.
                  type: object
                  additionalProperties:
                    $ref: '#/components/schemas/BucketCriteriaAdditionalProperties'
                maxResults:
                  description: The maximum number of items to include in each page of the response. The default value is 50.
                  type: integer
                nextToken:
                  description: The nextToken string that specifies which page of results to return in a paginated response.
                  type: string
                sortCriteria:
                  description: Specifies criteria for sorting the results of a query for information about S3 buckets.
                  type: object
                  properties:
                    attributeName:
                      allOf:
                      - $ref: '#/components/schemas/__string'
                      - description: 'The name of the bucket property to sort the results by. This value can be one of the following properties that Amazon Macie defines as bucket metadata: accountId, bucketName, classifiableObjectCount, classifiableSizeInBytes, objectCount, sensitivityScore, or sizeInBytes.'
                    orderBy:
                      allOf:
                      - $ref: '#/components/schemas/OrderBy'
                      - description: 'The sort order to apply to the results, based on the value specified by the attributeName property. Valid values are: ASC, sort the results in ascending order; and, DESC, sort the results in descending order.'
      summary: Amazon Macie Describe Buckets
      tags:
      - Datasources
  /datasources/s3/statistics:
    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'
    post:
      operationId: GetBucketStatistics
      description: Retrieves (queries) aggregated statistical data about all the S3 buckets that Amazon Macie monitors and analyzes for an account.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetBucketStatisticsResponse'
        '480':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
        '481':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '482':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '483':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '484':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '485':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '486':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                accountId:
                  description: The unique identifier for the Amazon Web Services account.
                  type: string
      summary: Amazon Macie Get Bucket Statistics
      tags:
      - Datasources
  /datasources/search-resources:
    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'
    post:
      operationId: SearchResources
      description: Retrieves (queries) statistical data and other information about Amazon Web Services resources that Amazon Macie monitors and analyzes.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResourcesResponse'
        '480':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationException'
        '481':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '482':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '483':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '484':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '485':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '486':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
      parameters:
      - name: maxResults
        in: query
        schema:
          type: string
        description: Pagination limit
        required: false
      - name: nextToken
        in: query
        schema:
          type: string
        description: Pagination token
        required: false
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                bucketCriteria:
                  description: Specifies property- and tag-based conditions that define filter criteria for including or excluding S3 buckets from the query results. Exclude conditions take precedence over include conditions.
                  type: object
                  properties:
                    excludes:
                      allOf:
                      - $ref: '#/components/schemas/SearchResourcesCriteriaBlock'
                      - description: The property- and tag-based conditions that determine which buckets to exclude from the results.
                    includes:
                      allOf:
                      - $ref: '#/components/schemas/SearchResourcesCriteriaBlock'
                      - description: The property- and tag-based conditions that determine which buckets to include in the results.
                maxResults:
                  description: The maximum number of items to include in each page of the response. The default value is 50.
                  type: integer
                nextToken:
                  description: The nextToken string that specifies which page of results to return in a paginated response.
                  type: string
                sortCriteria:
                  description: Specifies criteria for sorting the results of a query for information about Amazon Web Services resources that Amazon Macie monitors and analyzes.
                  type: object
                  properties:
                    attributeName:
                      allOf:
                      - $ref: '#/components/schemas/SearchResourcesSortAttributeName'
                      - description: The property to sort the results by.
                    orderBy:
                      allOf:
                      - $ref: '#/components/schemas/OrderBy'
                      - description: 'The sort order to apply to the results, based on the value for the property specified by the attributeName property. Valid values are: ASC, sort the results in ascending order; and, DESC, sort the results in descending order.'
      summary: Amazon Macie Search Resources
      tags:
      - Datasources
components:
  schemas:
    SearchResourcesTagCriterionPair:
      type: object
      properties:
        key:
          allOf:
          - $ref: '#/components/schemas/__string'
          - description: The value for the tag key to use in the condition.
        value:
          allOf:
          - $ref: '#/components/schemas/__string'
          - description: The tag value to use in the condition.
      description: Specifies a tag key, a tag value, or a tag key and value (as a pair) to use in a tag-based filter condition for a query. Tag keys and values are case sensitive. Also, Amazon Macie doesn't support use of partial values or wildcard characters in tag-based filter conditions.
    ConflictException: {}
    AccountLevelPermissions:
      type: object
      properties:
        blockPublicAccess:
          allOf:
          - $ref: '#/components/schemas/BlockPublicAccess'
          - description: The block public access settings for the Amazon Web Services account that owns the bucket.
      description: Provides information about the account-level permissions settings that apply to an S3 bucket.
    ResourceNotFoundException: {}
    MatchingBucket:
      type: object
      properties:
        accountId:
          allOf:
          - $ref: '#/components/schemas/__string'
          - description: The unique identifier for the Amazon Web Services account that owns the bucket.
        bucketName:
          allOf:
          - $ref: '#/components/schemas/__string'
          - description: The name of the bucket.
        classifiableObjectCount:
          allOf:
          - $ref: '#/components/schemas/__long'
          - description: The total number of objects that Amazon Macie can analyze in the bucket. These objects use a supported storage class and have a file name extension for a supported file or storage format.
        classifiableSizeInBytes:
          allOf:
          - $ref: '#/components/schemas/__long'
          - description: <p>The total storage size, in bytes, of the objects that Amazon Macie can analyze in the bucket. These objects use a supported storage class and have a file name extension for a supported file or storage format.</p> <p>If versioning is enabled for the bucket, Macie calculates this value based on the size of the latest version of each applicable object in the bucket. This value doesn't reflect the storage size of all versions of each applicable object in the bucket.</p>
        errorCode:
          allOf:
          - $ref: '#/components/schemas/BucketMetadataErrorCode'
          - description: The error code for an error that prevented Amazon Macie from retrieving and processing information about the bucket and the bucket's objects. If this value is ACCESS_DENIED, Macie doesn't have permission to retrieve the information. For example, the bucket has a restrictive bucket policy and Amazon S3 denied the request. If this value is null, Macie was able to retrieve and process the information.
        errorMessage:
          allOf:
          - $ref: '#/components/schemas/__string'
          - description: A brief description of the error (errorCode) that prevented Amazon Macie from retrieving and processing information about the bucket and the bucket's objects. This value is null if Macie was able to retrieve and process the information.
        jobDetails:
          allOf:
          - $ref: '#/components/schemas/JobDetails'
          - description: Specifies whether any one-time or recurring classification jobs are configured to analyze objects in the bucket, and, if so, the details of the job that ran most recently.
        lastAutomatedDiscoveryTime:
          allOf:
          - $ref: '#/components/schemas/__timestampIso8601'
          - description: The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently analyzed data in the bucket while performing automated sensitive data discovery for your account. This value is null if automated sensitive data discovery is currently disabled for your account.
        objectCount:
          allOf:
          - $ref: '#/components/schemas/__long'
          - description: The total number of objects in the bucket.
        objectCountByEncryptionType:
          allOf:
          - $ref: '#/components/schemas/ObjectCountByEncryptionType'
          - description: The total number of objects in the bucket, grouped by server-side encryption type. This includes a grouping that reports the total number of objects that aren't encrypted or use client-side encryption.
        sensitivityScore:
          allOf:
          - $ref: '#/components/schemas/__integer'
          - description: The current sensitivity score for the bucket, ranging from -1 (classification error) to 100 (sensitive). This value is null if automated sensitive data discovery is currently disabled for your account.
        sizeInBytes:
          allOf:
          - $ref: '#/components/schemas/__long'
          - description: <p>The total storage size, in bytes, of the bucket.</p> <p>If versioning is enabled for the bucket, Amazon Macie calculates this value based on the size of the latest version of each object in the bucket. This value doesn't reflect the storage size of all versions of each object in the bucket.</p>
        sizeInBytesCompressed:
          allOf:
          - $ref: '#/components/schemas/__long'
          - description: <p>The total storage size, in bytes, of the objects that are compressed (.gz, .gzip, .zip) files in the bucket.</p> <p>If versioning is enabled for the bucket, Amazon Macie calculates this value based on the size of the latest version of each applicable object in the bucket. This value doesn't reflect the storage size of all versions of each applicable object in the bucket.</p>
        unclassifiableObjectCount:
          allOf:
          - $ref: '#/components/schemas/ObjectLevelStatistics'
          - description: The total number of objects that Amazon Macie can't analyze in the bucket. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.
        unclassifiableObjectSizeInBytes:
          allOf:
          - $ref: '#/components/schemas/ObjectLevelStatistics'
          - description: The total storage size, in bytes, of the objects that Amazon Macie can't analyze in the bucket. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.
      description: <p>Provides statistical data and other information about an S3 bucket that Amazon Macie monitors and analyzes for your account. By default, object count and storage size values include data for object parts that are the result of incomplete multipart uploads. For more information, see <a href="https://docs.aws.amazon.com/macie/latest/user/monitoring-s3-how-it-works.html">How Macie monitors Amazon S3 data security</a> in the <i>Amazon Macie User Guide</i>.</p> <p>If an error occurs when Macie attempts to retrieve and process information about the bucket or the bucket's objects, the value for most of these properties is null. Key exceptions are accountId and bucketName. To identify the cause of the error, refer to the errorCode and errorMessage values.</p>
    __integer:
      type: integer
    __listOfBucketMetadata:
      type: array
      items:
        $ref: '#/components/schemas/BucketMetadata'
    ValidationException: {}
    SearchResourcesSortAttributeName:
      type: string
      enum:
      - ACCOUNT_ID
      - RESOURCE_NAME
      - S3_CLASSIFIABLE_OBJECT_COUNT
      - S3_CLASSIFIABLE_SIZE_IN_BYTES
      description: 'The property to sort the query results by. Valid values are:'
    SearchResourcesCriteriaBlock:
      type: object
      properties:
        and:
          allOf:
          - $ref: '#/components/schemas/__listOfSearchResourcesCriteria'
          - description: An array of objects, one for each property- or tag-based condition that includes or excludes resources from the query results. If you specify more than one condition, Amazon Macie uses AND logic to join the conditions.
      description: Specifies property- and tag-based conditions that define filter criteria for including or excluding Amazon Web Services resources from the query results.
    BucketPublicAccess:
      type: object
      properties:
        effectivePermission:
          allOf:
          - $ref: '#/components/schemas/EffectivePermission'
          - description: ' <p>Specifies whether the bucket is publicly accessible due to the combination of permissions settings that apply to the bucket. Possible values are:</p> <ul><li><p>NOT_PUBLIC - The bucket isn''t publicly accessible.</p></li> <li><p>PUBLIC - The bucket is publicly accessible.</p></li> <li><p>UNKNOWN - Amazon Macie can''t determine whether the bucket is publicly accessible.</p></li></ul>'
        permissionConfiguration:
          allOf:
          - $ref: '#/components/schemas/BucketPermissionConfiguration'
          - description: The account-level and bucket-level permissions settings for the bucket.
      description: Provides information about the permissions settings that determine whether an S3 bucket is publicly accessible.
    BucketCountPolicyAllowsUnencryptedObjectUploads:
      type: object
      properties:
        allowsUnencryptedObjectUploads:
          allOf:
          - $ref: '#/components/schemas/__long'
          - description: 'The total number of buckets that don''t have a bucket policy or have a bucket policy that doesn''t require server-side encryption of new objects. If a bucket policy exists, the policy doesn''t require PutObject requests to include a valid server-side encryption header: the x-amz-server-side-encryption header with a value of AES256 or aws:kms, or the x-amz-server-side-encryption-customer-algorithm header with a value of AES256.'
        deniesUnencryptedObjectUploads:
          allOf:
          - $ref: '#/components/schemas/__long'
          - description: 'The total number of buckets whose bucket policies require server-side encryption of new objects. PutObject requests for these buckets must include a valid server-side encryption header: the x-amz-server-side-encryption header with a value of AES256 or aws:kms, or the x-amz-server-side-encryption-customer-algorithm header with a value of AES256.'
        unknown:
          allOf:
          - $ref: '#/components/schemas/__long'
          - description: The total number of buckets that Amazon Macie wasn't able to evaluate server-side encryption requirements for. Macie can't determine whether the bucket policies for these buckets require server-side encryption of new objects.
      description: Provides information about the number of S3 buckets whose bucket policies do or don't require server-side encryption of objects when objects are added to the buckets.
    SearchResourcesSimpleCriterionKey:
      type: string
      enum:
      - ACCOUNT_ID
      - S3_BUCKET_NAME
      - S3_BUCKET_EFFECTIVE_PERMISSION
      - S3_BUCKET_SHARED_ACCESS
      description: 'The property to use in a condition that filters the query results. Valid values are:'
    __timestampIso8601:
      type: string
      format: date-time
    ThrottlingException: {}
    __boolean:
      type: boolean
    GetBucketStatisticsResponse:
      type: object
      properties:
        bucketCount:
          allOf:
          - $ref: '#/components/schemas/__long'
          - description: The total number of buckets.
        bucketCountByEffectivePermission:
          allOf:
          - $ref: '#/components/schemas/BucketCountByEffectivePermission'
          - description: The total number of buckets that are publicly accessible due to a combination of permissions settings for each bucket.
        bucketCountByEncryptionType:
          allOf:
          - $ref: '#/components/schemas/BucketCountByEncryptionType'
          - description: The total number of buckets whose settings do or don't specify default server-side encryption behavior for objects that are added to the buckets.
        bucketCountByObjectEncryptionRequirement:
          allOf:
          - $ref: '#/components/schemas/BucketCountPolicyAllowsUnencryptedObjectUploads'
          - description: The total number of buckets whose bucket policies do or don't require server-side encryption of objects when objects are added to the buckets.
        bucketCountBySharedAccessType:
          allOf:
          - $ref: '#/components/schemas/BucketCountBySharedAccessType'
          - description: The total number of buckets that are or aren't shared with other Amazon Web Services accounts, Amazon CloudFront origin access identities (OAIs), or CloudFront origin access controls (OACs).
        bucketStatisticsBySensitivity:
          allOf:
          - $ref: '#/components/schemas/BucketStatisticsBySensitivity'
          - description: The aggregated sensitive data discovery statistics for the buckets. If automated sensitive data discovery is currently disabled for your account, the value for each statistic is 0.
        classifiableObjectCount:
          allOf:
          - $ref: '#/components/schemas/__long'
          - description: The total number of objects that Amazon Macie can analyze in the buckets. These objects use a supported storage class and have a file name extension for a supported file or storage format.
        classifiableSizeInBytes:
          allOf:
          - $ref: '#/components/schemas/__long'
          - description: <p>The total storage size, in bytes, of all the objects that Amazon Macie can analyze in the buckets. These objects use a supported storage class and have a file name extension for a supported file or storage format.</p> <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each applicable object in the buckets. This value doesn't reflect the storage size of all versions of all applicable objects in the buckets.</p>
        lastUpdated:
          allOf:
          - $ref: '#/components/schemas/__timestampIso8601'
          - description: The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently retrieved bucket or object metadata from Amazon S3 for the buckets.
        objectCount:
          allOf:
          - $ref: '#/components/schemas/__long'
          - description: The total number of objects in the buckets.
        sizeInBytes:
          allOf:
          - $ref: '#/components/schemas/__long'
          - description: <p>The total storage size, in bytes, of the buckets.</p> <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each object in the buckets. This value doesn't reflect the storage size of all versions of the objects in the buckets.</p>
        sizeInBytesCompressed:
          allOf:
          - $ref: '#/components/schemas/__long'
          - description: <p>The total storage size, in bytes, of the objects that are compressed (.gz, .gzip, .zip) files in the buckets.</p> <p>If versioning is enabled for any of the buckets, this value is based on the size of the latest version of each applicable object in the buckets. This value doesn't reflect the storage size of all versions of the applicable objects in the buckets.</p>
        unclassifiableObjectCount:
          allOf:
          - $ref: '#/components/schemas/ObjectLevelStatistics'
          - description: The total number of objects that Amazon Macie can't analyze in the buckets. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.
        unclassifiableObjectSizeInBytes:
          allOf:
          - $ref: '#/components/schemas/ObjectLevelStatistics'
          - description: The total storage size, in bytes, of the objects that Amazon Macie can't analyze in the buckets. These objects don't use a supported storage class or don't have a file name extension for a supported file or storage format.
    __listOfKeyValuePair:
      type: array
      items:
        $ref: '#/components/schemas/KeyValuePair'
    BucketMetadataErrorCode:
      type: string
      enum:
      - ACCESS_DENIED
      description: The error code for an error that prevented Amazon Macie from retrieving and processing metadata from Amazon S3 for an S3 bucket and the bucket's objects.
    AccessDeniedException: {}
    BucketLevelPermissions:
      type: object
      properties:
        accessControlList:
          allOf:
          - $ref: '#/components/schemas/AccessControlList'
          - description: The permissions settings of the access control list (ACL) for the bucket. This value is null if an ACL hasn't been defined for the bucket.
        blockPublicAccess:
          allOf:
          - $ref: '#/components/schemas/BlockPublicAccess'
          - description: The block public access settings for the bucket.
        bucketPolicy:
          allOf:
          - $ref: '#/components/schemas/BucketPolicy'
          - description: The permissions settings of the bucket policy for the bucket. This value is null if a bucket policy hasn't been defined for the bucket.
      description: Provides information about the bucket-level permissions settings for an S3 bucket.
    MatchingResource:
      type: object
      properties:
        matchingBucket:
          allOf:
          - $ref: '#/components/schemas/MatchingBucket'
          - description: The details of an S3 bucket that Amazon Macie monitors and analyzes.
      description: Provides statistical data and other information about an Amazon Web Services resource that Amazon Macie monitors and analyzes for your account.
    BlockPublicAccess:
      type: object
      properties:
        block

# --- truncated at 32 KB (70 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/amazon-macie/refs/heads/main/openapi/amazon-macie-datasources-api-openapi.yml