Amazon Macie
REST API Reference
Amazon Macie: REST API Reference
Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved.
Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon.
Table of Contents
Welcome ... 1
Finding regional endpoints ... 1
Managing multiple accounts ... 1
Signing requests ... 2
Logging API calls ... 2
Operations ... 3
Resources ... 7
Account Administration ... 8
URI ... 8
HTTP methods ... 8
Schemas ... 11
Properties ... 13
See also ... 16
Administrator ... 17
URI ... 18
HTTP methods ... 18
Schemas ... 18
Properties ... 20
See also ... 22
Administrator Disassociation ... 23
URI ... 23
HTTP methods ... 23
Schemas ... 24
Properties ... 25
See also ... 26
AWS Organizations - Macie Administrator ... 27
URI ... 27
HTTP methods ... 27
Schemas ... 30
Properties ... 31
See also ... 34
AWS Organizations - Macie Configuration ... 35
URI ... 35
HTTP methods ... 35
Schemas ... 37
Properties ... 38
See also ... 40
Classification Job Creation ... 41
URI ... 41
HTTP methods ... 41
Schemas ... 42
Properties ... 45
See also ... 58
Classification Job Description ... 58
URI ... 59
HTTP methods ... 59
Schemas ... 60
Properties ... 64
See also ... 80
Classification Job List ... 81
URI ... 81
HTTP methods ... 81
Schemas ... 82
Properties ... 84
See also ... 95
Custom Data Identifier ... 95
URI ... 95
HTTP methods ... 95
Schemas ... 97
Properties ... 99
See also ... 103
Custom Data Identifier Creation ... 103
URI ... 104
HTTP methods ... 104
Schemas ... 105
Properties ... 106
See also ... 110
Custom Data Identifier Descriptions ... 111
URI ... 111
HTTP methods ... 111
Schemas ... 112
Properties ... 113
See also ... 116
Custom Data Identifier List ... 116
URI ... 117
HTTP methods ... 117
Schemas ... 117
Properties ... 119
See also ... 122
Custom Data Identifier Testing ... 122
URI ... 122
HTTP methods ... 122
Schemas ... 123
Properties ... 125
See also ... 127
Data Sources - Amazon S3 ... 128
URI ... 128
HTTP methods ... 128
Schemas ... 129
Properties ... 132
See also ... 147
Data Sources - Amazon S3 Statistics ... 147
URI ... 148
HTTP methods ... 148
Schemas ... 148
Properties ... 150
See also ... 158
Data Sources - Search ... 158
URI ... 158
HTTP methods ... 159
Schemas ... 159
Properties ... 162
See also ... 173
Export Configuration ... 173
URI ... 174
HTTP methods ... 174
Schemas ... 175
Properties ... 177
See also ... 180
Findings ... 180
URI ... 181
HTTP methods ... 181
Schemas ... 181
Properties ... 188
See also ... 220
Findings Filter ... 221
URI ... 221
HTTP methods ... 221
Schemas ... 224
Properties ... 225
See also ... 232
Findings Filters ... 232
URI ... 233
HTTP methods ... 233
Schemas ... 234
Properties ... 236
See also ... 242
Findings List ... 243
URI ... 243
HTTP methods ... 243
Schemas ... 244
Properties ... 245
See also ... 250
Findings Publication Configuration ... 250
URI ... 251
HTTP methods ... 251
Schemas ... 252
Properties ... 254
See also ... 256
Findings Samples ... 257
URI ... 257
HTTP methods ... 257
Schemas ... 258
Properties ... 259
See also ... 261
Findings Statistics ... 262
URI ... 262
HTTP methods ... 262
Schemas ... 263
Properties ... 264
See also ... 269
Invitation Acceptance ... 270
URI ... 270
HTTP methods ... 270
Schemas ... 271
Properties ... 272
See also ... 274
Invitation Count ... 274
URI ... 275
HTTP methods ... 275
Schemas ... 275
Properties ... 276
See also ... 278
Invitation Decline ... 279
URI ... 279
HTTP methods ... 279
Schemas ... 280
Properties ... 281
See also ... 284
Invitation Deletion ... 284
URI ... 284
HTTP methods ... 284
Schemas ... 285
Properties ... 286
See also ... 289
Invitation List ... 289
URI ... 290
HTTP methods ... 290
Schemas ... 291
Properties ... 293
See also ... 297
Managed Data Identifiers ... 298
URI ... 298
HTTP methods ... 298
Schemas ... 299
Properties ... 299
See also ... 300
Master Account ... 301
URI ... 301
HTTP methods ... 301
Schemas ... 302
Properties ... 303
See also ... 306
Master Disassociation ... 306
URI ... 306
HTTP methods ... 306
Schemas ... 307
Properties ... 308
See also ... 310
Member ... 310
URI ... 310
HTTP methods ... 310
Schemas ... 312
Properties ... 313
See also ... 317
Member Disassociation ... 317
URI ... 318
HTTP methods ... 318
Schemas ... 319
Properties ... 320
See also ... 321
Member Status ... 321
URI ... 322
HTTP methods ... 322
Schemas ... 323
Properties ... 324
See also ... 326
Members ... 326
URI ... 326
HTTP methods ... 327
Schemas ... 328
Properties ... 330
See also ... 335
Tags ... 335
URI ... 336
HTTP methods ... 336
Schemas ... 338
Properties ... 338
See also ... 339
Usage Statistics ... 340
URI ... 340
HTTP methods ... 341
Schemas ... 341
Properties ... 343
See also ... 350
Usage Totals ... 350
URI ... 350
HTTP methods ... 350
Schemas ... 351
Properties ... 353
See also ... 355
AWS glossary ... 357
Document history ... 358
Finding regional endpoints
Welcome
Amazon Macie is a fully managed data security and data privacy service that uses machine learning and pattern matching to help you discover, monitor, and protect sensitive data in your AWS environment.
Macie automates the discovery of sensitive data, such as personally identifiable information (PII) and financial information, to provide you with a better understanding of the data that your organization stores in Amazon Simple Storage Service (Amazon S3). Macie also provides you with an inventory of your S3 buckets, and it automatically evaluates and monitors those buckets for security and access control.
If Macie detects sensitive data or potential issues with the security or privacy of your data, it creates detailed findings for you to review and remediate as necessary.
This guide, the Amazon Macie REST API Reference, provides information about the Amazon Macie API.
This includes supported resources, HTTP methods, parameters, and schemas. If you're new to Macie, you might find it helpful to also review the Amazon Macie User Guide. The Amazon Macie User Guide explains key concepts and provides procedures that demonstrate how to use Macie features. It also provides information about topics such as integrating Macie with other AWS services.
In addition to interacting with Macie by making RESTful calls to the Amazon Macie API, you can use a current version of an AWS command line tool or SDK. AWS provides tools and SDKs that consist of libraries and sample code for various languages and platforms, such as PowerShell, Java, Go, Python, C++, and .NET. These tools and SDKs provide convenient, programmatic access to Macie and other AWS services. They also handle tasks such as signing requests, managing errors, and retrying requests automatically. For information about installing and using the AWS tools and SDKs, see Tools to Build on AWS.
Finding regional endpoints
The Amazon Macie API is available in most AWS Regions and it provides an endpoint for each of these Regions. For a list of Regions and endpoints where the API is currently available, see Amazon Macie endpoints and quotas in the Amazon Web Services General Reference. To learn more about AWS Regions, see Managing AWS Regions in the Amazon Web Services General Reference.
When you send a request to the Amazon Macie API, the request applies only to the AWS Region that’s currently active for your AWS account or specified in the request. If your request submits changes to configuration or other settings for your account, the changes apply only to that Region. To make the same changes in other Regions, send the request to each additional Region that you want to apply the changes to.
Managing multiple accounts
You can centrally manage multiple Amazon Macie accounts. To do this, designate a single Macie account as the Macie administrator account and associate other Macie accounts with it as member accounts. You can do this in two ways, by using AWS Organizations or by sending membership invitations from Macie.
We recommend using AWS Organizations to manage multiple accounts.
If you're a user of a Macie administrator account, you can access certain Macie settings, data, and resources for member accounts. You can also run classification jobs to detect sensitive data in S3 buckets that member accounts own.
Signing requests
If you're a user of a member account, you can access Macie settings, data, and resources only for your own account. For this reason, you might not be able to use certain operations of the Amazon Macie API.
For detailed information about the primary tasks that administrator and member accounts can perform, see Managing multiple accounts in the Amazon Macie User Guide.
Signing requests
When you send an HTTPS request to the Amazon Macie API, you have to sign the request by using your AWS access key, which consists of an access key ID and a secret access key. For everyday work with Macie, we strongly recommend that you not use the access key ID and secret access key for your root AWS account. Instead, use the access key ID and secret access key for an AWS Identity and Access Management (IAM) user. You can also use the AWS Security Token Service to generate temporary security credentials that you can use to sign requests. All Amazon Macie operations require Signature Version 4.
For more information about using credentials and signing requests, see the following resources:
• AWS security credentials – This section of the Amazon Web Services General Reference provides information about the types of credentials that can be used to access AWS.
• Temporary security credentials in IAM – This section of the IAM User Guide describes how to create and use temporary security credentials.
• Signing AWS API requests – This section of the Amazon Web Services General Reference explains and guides you through the process of signing a request using an access key ID and secret access key.
Logging API calls
Amazon Macie integrates with AWS CloudTrail, which is a service that provides a record of actions that were taken in Macie by a user, a role, or another AWS service. This includes actions that were performed using the Amazon Macie console and programmatic calls to Amazon Macie operations.
By using the information collected by CloudTrail, you can determine which requests were successfully sent to Macie. For each request, you can identify when it was made, the IP address from which it was made, who made it, and additional details. To learn more about CloudTrail, see the AWS CloudTrail User Guide.
Operations
The Amazon Macie REST API includes the following operations.
• AcceptInvitation (p. 270)
Accepts an Amazon Macie membership invitation that was received from a specific account.
• BatchGetCustomDataIdentifiers (p. 111)
Retrieves information about one or more custom data identifiers.
• CreateClassificationJob (p. 41)
Creates and defines the settings for a classification job.
• CreateCustomDataIdentifier (p. 104)
Creates and defines the criteria and other settings for a custom data identifier.
• CreateFindingsFilter (p. 234)
Creates and defines the criteria and other settings for a findings filter.
• CreateInvitations (p. 291)
Sends an Amazon Macie membership invitation to one or more accounts.
• CreateMember (p. 328)
Associates an account with an Amazon Macie administrator account.
• CreateSampleFindings (p. 257) Creates sample findings.
• DeclineInvitations (p. 279)
Declines Amazon Macie membership invitations that were received from specific accounts.
• DeleteCustomDataIdentifier (p. 96) Soft deletes a custom data identifier.
• DeleteFindingsFilter (p. 222) Deletes a findings filter.
• DeleteInvitations (p. 284)
Deletes Amazon Macie membership invitations that were received from specific accounts.
• DeleteMember (p. 311)
Deletes the association between an Amazon Macie administrator account and an account.
• DescribeBuckets (p. 128)
Retrieves (queries) statistical data and other information about one or more S3 buckets that Amazon Macie monitors and analyzes.
• DescribeClassificationJob (p. 59)
Retrieves the status and settings for a classification job.
• DescribeOrganizationConfiguration (p. 35)
Retrieves the Amazon Macie configuration settings for an organization in AWS Organizations.
• DisableMacie (p. 10)
Disables Amazon Macie and deletes all settings and resources for a Macie account.
• DisableOrganizationAdminAccount (p. 29)
Disables an account as the delegated Amazon Macie administrator account for an organization in AWS Organizations.
• DisassociateFromAdministratorAccount (p. 23)
Disassociates a member account from its Amazon Macie administrator account.
• DisassociateFromMasterAccount (p. 306)
(Deprecated) Disassociates a member account from its Amazon Macie administrator account. This operation has been replaced by the DisassociateFromAdministratorAccount (p. 23) operation.
• DisassociateMember (p. 318)
Disassociates an Amazon Macie administrator account from a member account.
• EnableMacie (p. 9)
Enables Amazon Macie and specifies the configuration settings for a Macie account.
• EnableOrganizationAdminAccount (p. 28)
Designates an account as the delegated Amazon Macie administrator account for an organization in AWS Organizations.
• GetAdministratorAccount (p. 18)
Retrieves information about the Amazon Macie administrator account for an account.
• GetBucketStatistics (p. 148)
Retrieves (queries) aggregated statistical data about S3 buckets that Amazon Macie monitors and analyzes.
• GetClassificationExportConfiguration (p. 174)
Retrieves the configuration settings for storing data classification results.
• GetCustomDataIdentifier (p. 95)
Retrieves the criteria and other settings for a custom data identifier.
• GetFindings (p. 181)
Retrieves the details of one or more findings.
• GetFindingsFilter (p. 221)
Retrieves the criteria and other settings for a findings filter.
• GetFindingsPublicationConfiguration (p. 251)
Retrieves the configuration settings for publishing findings to AWS Security Hub.
• GetFindingStatistics (p. 262)
Retrieves (queries) aggregated statistical data about findings.
• GetInvitationsCount (p. 275)
Retrieves the count of Amazon Macie membership invitations that were received by an account.
• GetMacieSession (p. 8)
Retrieves the current status and configuration settings for an Amazon Macie account.
• GetMasterAccount (p. 301)
(Deprecated) Retrieves information about the Amazon Macie administrator account for an account.
This operation has been replaced by the GetAdministratorAccount (p. 18) operation.
• GetMember (p. 310)
Retrieves information about an account that's associated with an Amazon Macie administrator account.
• GetUsageStatistics (p. 341)
Retrieves (queries) quotas and aggregated usage data for one or more accounts.
• GetUsageTotals (p. 350)
Retrieves (queries) aggregated usage data for an account.
• ListClassificationJobs (p. 81)
Retrieves a subset of information about one or more classification jobs.
• ListCustomDataIdentifiers (p. 117)
Retrieves a subset of information about all the custom data identifiers for an account.
• ListFindings (p. 243)
Retrieves a subset of information about one or more findings.
• ListFindingsFilters (p. 233)
Retrieves a subset of information about all the findings filters for an account.
• ListInvitations (p. 290)
Retrieves information about the Amazon Macie membership invitations that were received by an account.
• ListManagedDataIdentifiers (p. 298)
Retrieves information about all the managed data identifiers that Amazon Macie currently provides.
• ListMembers (p. 327)
Retrieves information about the accounts that are associated with an Amazon Macie administrator account.
• ListOrganizationAdminAccounts (p. 27)
Retrieves information about the delegated Amazon Macie administrator account for an organization in AWS Organizations.
• ListTagsForResource (p. 336)
Retrieves the tags (keys and values) that are associated with a classification job, custom data identifier, findings filter, or member account.
• PutClassificationExportConfiguration (p. 175)
Creates or updates the configuration settings for storing data classification results.
• PutFindingsPublicationConfiguration (p. 252)
Updates the configuration settings for publishing findings to AWS Security Hub.
• SearchResources (p. 159)
Retrieves (queries) statistical data and other information about AWS resources that Amazon Macie monitors and analyzes.
• TagResource (p. 336)
Adds or updates one or more tags (keys and values) that are associated with a classification job, custom data identifier, findings filter, or member account.
• TestCustomDataIdentifier (p. 122) Tests a custom data identifier.
• UntagResource (p. 337)
Removes one or more tags (keys and values) from a classification job, custom data identifier, findings filter, or member account.
• UpdateClassificationJob (p. 59)
Changes the status of a classification job.
• UpdateFindingsFilter (p. 223)
Updates the criteria and other settings for a findings filter.
• UpdateMacieSession (p. 10)
Suspends or re-enables Amazon Macie, or updates the configuration settings for a Macie account.
• UpdateMemberSession (p. 322)
Enables an Amazon Macie administrator to suspend or re-enable Macie for a member account.
• UpdateOrganizationConfiguration (p. 36)
Updates the Amazon Macie configuration settings for an organization in AWS Organizations.
Resources
The Amazon Macie REST API includes the following resources.
Topics
• Account Administration (p. 8)
• Administrator (p. 17)
• Administrator Disassociation (p. 23)
• AWS Organizations - Macie Administrator (p. 27)
• AWS Organizations - Macie Configuration (p. 35)
• Classification Job Creation (p. 41)
• Classification Job Description (p. 58)
• Classification Job List (p. 81)
• Custom Data Identifier (p. 95)
• Custom Data Identifier Creation (p. 103)
• Custom Data Identifier Descriptions (p. 111)
• Custom Data Identifier List (p. 116)
• Custom Data Identifier Testing (p. 122)
• Data Sources - Amazon S3 (p. 128)
• Data Sources - Amazon S3 Statistics (p. 147)
• Data Sources - Search (p. 158)
• Export Configuration (p. 173)
• Findings (p. 180)
• Findings Filter (p. 221)
• Findings Filters (p. 232)
• Findings List (p. 243)
• Findings Publication Configuration (p. 250)
• Findings Samples (p. 257)
• Findings Statistics (p. 262)
• Invitation Acceptance (p. 270)
• Invitation Count (p. 274)
• Invitation Decline (p. 279)
• Invitation Deletion (p. 284)
• Invitation List (p. 289)
• Managed Data Identifiers (p. 298)
• Master Account (p. 301)
• Master Disassociation (p. 306)
• Member (p. 310)
• Member Disassociation (p. 317)
• Member Status (p. 321)
• Members (p. 326)
• Tags (p. 335)
• Usage Statistics (p. 340)
• Usage Totals (p. 350)
Account Administration
Account Administration
The Account Administration resource provides access to the status and configuration settings for your Amazon Macie account.
You can use this resource to enable Macie and specify settings for your Macie account. When you enable Macie, the service generates a session for your AWS account in the current AWS Region, and it assigns a unique identifier to that session. A session is a resource that represents the Macie service for a specific AWS account in a specific Region. It enables Macie to become operational. An account can have only one session in each Region.
After you enable Macie, you can use this resource to review and update the status and configuration settings for your Macie account. This includes suspending (pausing) Macie and subsequently re-enabling Macie. If you suspend Macie, the service stops performing all activities for your account and it cancels all of your classification jobs. However, the service retains the session identifier, settings, and resources for your account. If your account is the Macie administrator account for an organization, you must remove all member accounts that are associated with your account before you suspend Macie.
If you want to disable Macie completely, you can use this resource to do so. If you disable Macie, the service stops performing all activities for your account. In addition, Macie permanently deletes all resources that it stores or maintains for you. This includes classification jobs, custom data identifiers, findings, and the session resource (and identifier) for your account. This doesn't include resources that Macie created and stored in other AWS services for you, such as data classification results in Amazon Simple Storage Service (Amazon S3) and findings in AWS Security Hub. If your account is the Macie administrator account for an organization and you want to disable Macie, you must first remove all member accounts that are associated with your account and delete the associations between your account and those accounts. If your account is a Macie member account in an organization and you want to disable Macie, you must first disassociate your account from its Macie administrator account.
URI
/macie
HTTP methods
GET
Operation ID: GetMacieSession
Retrieves the current status and configuration settings for an Amazon Macie account.
Responses
Status code Response model Description
200 GetMacieSessionResponse (p. 11)The request succeeded.
400 ValidationException (p. 12)The request failed because it contains a syntax error.
402 ServiceQuotaExceededException (p. 12)The request failed because fulfilling the request would exceed one or more service quotas for your account.
403 AccessDeniedException (p. 12)The request was denied because you don't have sufficient access to the specified resource.
HTTP methods
Status code Response model Description
404 ResourceNotFoundException (p. 12)The request failed because the specified resource wasn't found.
409 ConflictException (p. 12) The request failed because it conflicts with the current state of the specified resource.
429 ThrottlingException (p. 12)The request failed because you sent too many requests during a certain amount of time.
500 InternalServerException (p. 12)The request failed due to an unknown internal server error, exception, or failure.
POST
Operation ID: EnableMacie
Enables Amazon Macie and specifies the configuration settings for a Macie account.
Responses
Status code Response model Description
200 Empty Schema (p. 12) The request succeeded and there
isn't any content to include in the body of the response (No Content).
400 ValidationException (p. 12)The request failed because it contains a syntax error.
402 ServiceQuotaExceededException (p. 12)The request failed because fulfilling the request would exceed one or more service quotas for your account.
403 AccessDeniedException (p. 12)The request was denied because you don't have sufficient access to the specified resource.
404 ResourceNotFoundException (p. 12)The request failed because the specified resource wasn't found.
409 ConflictException (p. 12) The request failed because it conflicts with the current state of the specified resource.
429 ThrottlingException (p. 12)The request failed because you sent too many requests during a certain amount of time.
500 InternalServerException (p. 12)The request failed due to an unknown internal server error, exception, or failure.
HTTP methods
DELETE
Operation ID: DisableMacie
Disables Amazon Macie and deletes all settings and resources for a Macie account.
Responses
Status code Response model Description
200 Empty Schema (p. 12) The request succeeded and there
isn't any content to include in the body of the response (No Content).
400 ValidationException (p. 12)The request failed because it contains a syntax error.
402 ServiceQuotaExceededException (p. 12)The request failed because fulfilling the request would exceed one or more service quotas for your account.
403 AccessDeniedException (p. 12)The request was denied because you don't have sufficient access to the specified resource.
404 ResourceNotFoundException (p. 12)The request failed because the specified resource wasn't found.
409 ConflictException (p. 12) The request failed because it conflicts with the current state of the specified resource.
429 ThrottlingException (p. 12)The request failed because you sent too many requests during a certain amount of time.
500 InternalServerException (p. 12)The request failed due to an unknown internal server error, exception, or failure.
PATCH
Operation ID: UpdateMacieSession
Suspends or re-enables Amazon Macie, or updates the configuration settings for a Macie account.
Responses
Status code Response model Description
200 Empty Schema (p. 12) The request succeeded and there
isn't any content to include in the body of the response (No Content).
400 ValidationException (p. 12)The request failed because it contains a syntax error.
Schemas
Status code Response model Description
402 ServiceQuotaExceededException (p. 12)The request failed because fulfilling the request would exceed one or more service quotas for your account.
403 AccessDeniedException (p. 12)The request was denied because you don't have sufficient access to the specified resource.
404 ResourceNotFoundException (p. 12)The request failed because the specified resource wasn't found.
409 ConflictException (p. 12) The request failed because it conflicts with the current state of the specified resource.
429 ThrottlingException (p. 12)The request failed because you sent too many requests during a certain amount of time.
500 InternalServerException (p. 12)The request failed due to an unknown internal server error, exception, or failure.
Schemas
Request bodies
POST schema
{
"clientToken": "string",
"findingPublishingFrequency": enum, "status": enum
}
PATCH schema
{ "findingPublishingFrequency": enum, "status": enum
}
Response bodies
GetMacieSessionResponse schema
{
"createdAt": "string", "serviceRole": "string",
"findingPublishingFrequency": enum, "status": enum,
"updatedAt": "string"
Schemas
}
Empty Schema schema
{}
ValidationException schema
{
"message": "string"
}
ServiceQuotaExceededException schema
{ "message": "string"
}
AccessDeniedException schema
{
"message": "string"
}
ResourceNotFoundException schema
{ "message": "string"
}
ConflictException schema
{
"message": "string"
}
ThrottlingException schema
{ "message": "string"
}
InternalServerException schema
{ "message": "string"
}
Properties
Properties
AccessDeniedException
Provides information about an error that occurred due to insufficient access to a specified resource.
message
The explanation of the error that occurred.
Type: string Required: False
ConflictException
Provides information about an error that occurred due to a versioning conflict for a specified resource.
message
The explanation of the error that occurred.
Type: string Required: False
Empty
The request succeeded and there isn't any content to include in the body of the response (No Content).
EnableMacieRequest
Enables Amazon Macie and specifies the configuration settings for a Macie account.
clientToken
A unique, case-sensitive token that you provide to ensure the idempotency of the request.
Type: string Required: False
findingPublishingFrequency
Specifies how often to publish updates to policy findings for the account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events).
Type: FindingPublishingFrequency (p. 14) Required: False
status
Specifies the new status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED.
Type: MacieStatus (p. 15) Required: False
Properties
FindingPublishingFrequency
The frequency with which Amazon Macie publishes updates to policy findings for an account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events). For more information, see Monitoring and processing findings in the Amazon Macie User Guide. Valid values are:
FIFTEEN_MINUTES ONE_HOUR
SIX_HOURS
GetMacieSessionResponse
Provides information about the current status and configuration settings for an Amazon Macie account.
createdAt
The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie account was created.
Type: string Required: False Format: date-time
serviceRole
The Amazon Resource Name (ARN) of the service-linked role that allows Amazon Macie to monitor and analyze data in AWS resources for the account.
Type: string Required: False
findingPublishingFrequency
The frequency with which Amazon Macie publishes updates to policy findings for the account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events).
Type: FindingPublishingFrequency (p. 14) Required: False
status
The current status of the Amazon Macie account. Possible values are: PAUSED, the account is enabled but all Macie activities are suspended (paused) for the account; and, ENABLED, the account is enabled and all Macie activities are enabled for the account.
Type: MacieStatus (p. 15) Required: False
updatedAt
The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status of the Amazon Macie account.
Type: string
Properties
Required: False Format: date-time
InternalServerException
Provides information about an error that occurred due to an unknown internal server error, exception, or failure.
message
The explanation of the error that occurred.
Type: string Required: False
MacieStatus
The status of an Amazon Macie account. Valid values are:
PAUSED ENABLED
ResourceNotFoundException
Provides information about an error that occurred because a specified resource wasn't found.
message
The explanation of the error that occurred.
Type: string Required: False
ServiceQuotaExceededException
Provides information about an error that occurred due to one or more service quotas for an account.
message
The explanation of the error that occurred.
Type: string Required: False
ThrottlingException
Provides information about an error that occurred because too many requests were sent during a certain amount of time.
message
The explanation of the error that occurred.
See also
Type: string Required: False
UpdateMacieSessionRequest
Changes the status or configuration settings for an Amazon Macie account.
findingPublishingFrequency
Specifies how often to publish updates to policy findings for the account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events).
Type: FindingPublishingFrequency (p. 14) Required: False
status
Specifies a new status for the account. Valid values are: ENABLED, resume all Amazon Macie activities for the account; and, PAUSED, suspend all Macie activities for the account.
Type: MacieStatus (p. 15) Required: False
ValidationException
Provides information about an error that occurred due to a syntax error in a request.
message
The explanation of the error that occurred.
Type: string Required: False
See also
For more information about using this API in one of the language-specific AWS SDKs and references, see the following:
GetMacieSession
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
Administrator
• AWS SDK for Ruby V3
EnableMacie
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
DisableMacie
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
UpdateMacieSession
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
Administrator
The Administrator resource provides information about the Amazon Macie administrator account for your account. If you joined an organization by accepting a Macie membership invitation, this resource also provides information about that invitation.
URI
You can use the Administrator resource to retrieve information about the Macie administrator account for your account.
URI
/administrator
HTTP methods
GET
Operation ID: GetAdministratorAccount
Retrieves information about the Amazon Macie administrator account for an account.
Responses
Status code Response model Description
200 GetAdministratorAccountResponse (p. 18)The request succeeded.
400 ValidationException (p. 19)The request failed because it contains a syntax error.
402 ServiceQuotaExceededException (p. 19)The request failed because fulfilling the request would exceed one or more service quotas for your account.
403 AccessDeniedException (p. 19)The request was denied because you don't have sufficient access to the specified resource.
404 ResourceNotFoundException (p. 19)The request failed because the specified resource wasn't found.
409 ConflictException (p. 19) The request failed because it conflicts with the current state of the specified resource.
429 ThrottlingException (p. 19)The request failed because you sent too many requests during a certain amount of time.
500 InternalServerException (p. 19)The request failed due to an unknown internal server error, exception, or failure.
Schemas
Response bodies
GetAdministratorAccountResponse schema
{
Schemas
"administrator": { "accountId": "string", "relationshipStatus": enum, "invitationId": "string", "invitedAt": "string"
} }
ValidationException schema
{ "message": "string"
}
ServiceQuotaExceededException schema
{ "message": "string"
}
AccessDeniedException schema
{ "message": "string"
}
ResourceNotFoundException schema
{ "message": "string"
}
ConflictException schema
{ "message": "string"
}
ThrottlingException schema
{ "message": "string"
}
InternalServerException schema
{ "message": "string"
}
Properties
Properties
AccessDeniedException
Provides information about an error that occurred due to insufficient access to a specified resource.
message
The explanation of the error that occurred.
Type: string Required: False
ConflictException
Provides information about an error that occurred due to a versioning conflict for a specified resource.
message
The explanation of the error that occurred.
Type: string Required: False
GetAdministratorAccountResponse
Provides information about the Amazon Macie administrator account for an account. If the accounts are associated by a Macie membership invitation, the response also provides information about that invitation.
administrator
The AWS account ID for the administrator account. If the accounts are associated by an Amazon Macie membership invitation, this object also provides details about the invitation that was sent to establish the relationship between the accounts.
Type: Invitation (p. 20) Required: False
InternalServerException
Provides information about an error that occurred due to an unknown internal server error, exception, or failure.
message
The explanation of the error that occurred.
Type: string Required: False
Invitation
Provides information about an Amazon Macie membership invitation.
Properties
accountId
The AWS account ID for the account that sent the invitation.
Type: string Required: False
relationshipStatus
The status of the relationship between the account that sent the invitation and the account that received the invitation.
Type: RelationshipStatus (p. 21) Required: False
invitationId
The unique identifier for the invitation.
Type: string Required: False
invitedAt
The date and time, in UTC and extended ISO 8601 format, when the invitation was sent.
Type: string Required: False Format: date-time
RelationshipStatus
The current status of the relationship between an account and an associated Amazon Macie administrator account. Possible values are:
Enabled Paused Invited Created Removed Resigned
EmailVerificationInProgress EmailVerificationFailed RegionDisabled
AccountSuspended
ResourceNotFoundException
Provides information about an error that occurred because a specified resource wasn't found.
message
The explanation of the error that occurred.
Type: string
See also
Required: False
ServiceQuotaExceededException
Provides information about an error that occurred due to one or more service quotas for an account.
message
The explanation of the error that occurred.
Type: string Required: False
ThrottlingException
Provides information about an error that occurred because too many requests were sent during a certain amount of time.
message
The explanation of the error that occurred.
Type: string Required: False
ValidationException
Provides information about an error that occurred due to a syntax error in a request.
message
The explanation of the error that occurred.
Type: string Required: False
See also
For more information about using this API in one of the language-specific AWS SDKs and references, see the following:
GetAdministratorAccount
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
Administrator Disassociation
• AWS SDK for Ruby V3
Administrator Disassociation
The Administrator Disassociation resource provides access to the association between your Amazon Macie account and its Macie administrator account. If you joined an organization by accepting a Macie membership invitation, you can use this resource to disassociate your Macie account from its current Macie administrator account.
If you're the Macie administrator for an organization and you want to disassociate (remove) a member account from the organization, use the Member Disassociation (p. 317) resource instead of this resource.
URI
/administrator/disassociate
HTTP methods
POST
Operation ID: DisassociateFromAdministratorAccount
Disassociates a member account from its Amazon Macie administrator account.
Responses
Status code Response model Description
200 Empty Schema (p. 24) The request succeeded and there
isn't any content to include in the body of the response (No Content).
400 ValidationException (p. 24)The request failed because it contains a syntax error.
402 ServiceQuotaExceededException (p. 24)The request failed because fulfilling the request would exceed one or more service quotas for your account.
403 AccessDeniedException (p. 24)The request was denied because you don't have sufficient access to the specified resource.
404 ResourceNotFoundException (p. 24)The request failed because the specified resource wasn't found.
409 ConflictException (p. 24) The request failed because it conflicts with the current state of the specified resource.
429 ThrottlingException (p. 24)The request failed because you sent too many requests during a certain amount of time.
Schemas
Status code Response model Description
500 InternalServerException (p. 25)The request failed due to an unknown internal server error, exception, or failure.
Schemas
Response bodies
Empty Schema schema
{}
ValidationException schema
{ "message": "string"
}
ServiceQuotaExceededException schema
{ "message": "string"
}
AccessDeniedException schema
{
"message": "string"
}
ResourceNotFoundException schema
{ "message": "string"
}
ConflictException schema
{ "message": "string"
}
ThrottlingException schema
{
Properties
"message": "string"
}
InternalServerException schema
{ "message": "string"
}
Properties
AccessDeniedException
Provides information about an error that occurred due to insufficient access to a specified resource.
message
The explanation of the error that occurred.
Type: string Required: False
ConflictException
Provides information about an error that occurred due to a versioning conflict for a specified resource.
message
The explanation of the error that occurred.
Type: string Required: False
Empty
The request succeeded and there isn't any content to include in the body of the response (No Content).
InternalServerException
Provides information about an error that occurred due to an unknown internal server error, exception, or failure.
message
The explanation of the error that occurred.
Type: string Required: False
ResourceNotFoundException
Provides information about an error that occurred because a specified resource wasn't found.
See also
message
The explanation of the error that occurred.
Type: string Required: False
ServiceQuotaExceededException
Provides information about an error that occurred due to one or more service quotas for an account.
message
The explanation of the error that occurred.
Type: string Required: False
ThrottlingException
Provides information about an error that occurred because too many requests were sent during a certain amount of time.
message
The explanation of the error that occurred.
Type: string Required: False
ValidationException
Provides information about an error that occurred due to a syntax error in a request.
message
The explanation of the error that occurred.
Type: string Required: False
See also
For more information about using this API in one of the language-specific AWS SDKs and references, see the following:
DisassociateFromAdministratorAccount
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
AWS Organizations - Macie Administrator
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
AWS Organizations - Macie Administrator
The Macie Administrator resource for AWS Organizations provides settings for designating the delegated Amazon Macie administrator account for an organization in AWS Organizations. AWS Organizations is a global account management service that enables AWS administrators to consolidate and centrally manage multiple AWS accounts. For more information about this service, see the AWS Organizations User Guide. For information about integrating Macie with AWS Organizations, see Managing Amazon Macie accounts with AWS Organizations in the Amazon Macie User Guide.
If you're a user of the AWS Organizations management account for an organization, you can use this resource to designate the delegated Macie administrator account for your organization. You can also use this resource to retrieve information about and change that designation. Note that an organization can have only one delegated Macie administrator account at a time. To use this resource, you must be a user of the AWS Organizations management account for your organization.
URI
/admin
HTTP methods
GET
Operation ID: ListOrganizationAdminAccounts
Retrieves information about the delegated Amazon Macie administrator account for an organization in AWS Organizations.
Query parameters
Name Type Required Description
nextToken String False The nextToken string
that specifies which page of results to return in a paginated response.
maxResults String False The maximum number
of items to include in each page of a paginated response.
Responses
Status code Response model Description
200 ListOrganizationAdminAccountsResponse (p. 30)The request succeeded.
HTTP methods
Status code Response model Description
400 ValidationException (p. 30)The request failed because it contains a syntax error.
402 ServiceQuotaExceededException (p. 30)The request failed because fulfilling the request would exceed one or more service quotas for your account.
403 AccessDeniedException (p. 31)The request was denied because you don't have sufficient access to the specified resource.
404 ResourceNotFoundException (p. 31)The request failed because the specified resource wasn't found.
409 ConflictException (p. 31) The request failed because it conflicts with the current state of the specified resource.
429 ThrottlingException (p. 31)The request failed because you sent too many requests during a certain amount of time.
500 InternalServerException (p. 31)The request failed due to an unknown internal server error, exception, or failure.
POST
Operation ID: EnableOrganizationAdminAccount
Designates an account as the delegated Amazon Macie administrator account for an organization in AWS Organizations.
Responses
Status code Response model Description
200 Empty Schema (p. 30) The request succeeded and there
isn't any content to include in the body of the response (No Content).
400 ValidationException (p. 30)The request failed because it contains a syntax error.
402 ServiceQuotaExceededException (p. 30)The request failed because fulfilling the request would exceed one or more service quotas for your account.
403 AccessDeniedException (p. 31)The request was denied because you don't have sufficient access to the specified resource.
404 ResourceNotFoundException (p. 31)The request failed because the specified resource wasn't found.
HTTP methods
Status code Response model Description
409 ConflictException (p. 31) The request failed because it conflicts with the current state of the specified resource.
429 ThrottlingException (p. 31)The request failed because you sent too many requests during a certain amount of time.
500 InternalServerException (p. 31)The request failed due to an unknown internal server error, exception, or failure.
DELETE
Operation ID: DisableOrganizationAdminAccount
Disables an account as the delegated Amazon Macie administrator account for an organization in AWS Organizations.
Query parameters
Name Type Required Description
adminAccountId String True The AWS account ID of
the delegated Amazon Macie administrator account.
Responses
Status code Response model Description
200 Empty Schema (p. 30) The request succeeded and there
isn't any content to include in the body of the response (No Content).
400 ValidationException (p. 30)The request failed because it contains a syntax error.
402 ServiceQuotaExceededException (p. 30)The request failed because fulfilling the request would exceed one or more service quotas for your account.
403 AccessDeniedException (p. 31)The request was denied because you don't have sufficient access to the specified resource.
404 ResourceNotFoundException (p. 31)The request failed because the specified resource wasn't found.
409 ConflictException (p. 31) The request failed because it conflicts with the current state of the specified resource.
Schemas
Status code Response model Description
429 ThrottlingException (p. 31)The request failed because you sent too many requests during a certain amount of time.
500 InternalServerException (p. 31)The request failed due to an unknown internal server error, exception, or failure.
Schemas
Request bodies
POST schema
{
"clientToken": "string", "adminAccountId": "string"
}
Response bodies
ListOrganizationAdminAccountsResponse schema
{ "nextToken": "string", "adminAccounts": [ {
"accountId": "string", "status": enum
} ]}
Empty Schema schema
{}
ValidationException schema
{ "message": "string"
}
ServiceQuotaExceededException schema
{
"message": "string"
}
Properties
AccessDeniedException schema
{ "message": "string"
}
ResourceNotFoundException schema
{ "message": "string"
}
ConflictException schema
{
"message": "string"
}
ThrottlingException schema
{
"message": "string"
}
InternalServerException schema
{ "message": "string"
}
Properties
AccessDeniedException
Provides information about an error that occurred due to insufficient access to a specified resource.
message
The explanation of the error that occurred.
Type: string Required: False
AdminAccount
Provides information about the delegated Amazon Macie administrator account for an organization in AWS Organizations.
accountId
The AWS account ID for the account.
Properties
Type: string Required: False
status
The current status of the account as the delegated Amazon Macie administrator account for the organization.
Type: AdminStatus (p. 32) Required: False
AdminStatus
The current status of an account as the delegated Amazon Macie administrator account for an organization in AWS Organizations. Possible values are:
ENABLED
DISABLING_IN_PROGRESS
ConflictException
Provides information about an error that occurred due to a versioning conflict for a specified resource.
message
The explanation of the error that occurred.
Type: string Required: False
Empty
The request succeeded and there isn't any content to include in the body of the response (No Content).
EnableOrganizationAdminAccountRequest
Specifies an account to designate as the delegated Amazon Macie administrator account for an
organization in AWS Organizations. To submit this request, you must be a user of the AWS Organizations management account.
clientToken
A unique, case-sensitive token that you provide to ensure the idempotency of the request.
Type: string Required: False
adminAccountId
The AWS account ID for the account to designate as the delegated Amazon Macie administrator account for the organization.
Type: string Required: True
Properties
InternalServerException
Provides information about an error that occurred due to an unknown internal server error, exception, or failure.
message
The explanation of the error that occurred.
Type: string Required: False
ListOrganizationAdminAccountsResponse
Provides information about the delegated Amazon Macie administrator accounts for an organization in AWS Organizations.
nextToken
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.
Type: string Required: False
adminAccounts
An array of objects, one for each delegated Amazon Macie administrator account for the organization.
Only one of these accounts can have a status of ENABLED.
Type: Array of type AdminAccount (p. 31) Required: False
ResourceNotFoundException
Provides information about an error that occurred because a specified resource wasn't found.
message
The explanation of the error that occurred.
Type: string Required: False
ServiceQuotaExceededException
Provides information about an error that occurred due to one or more service quotas for an account.
message
The explanation of the error that occurred.
Type: string Required: False
See also
ThrottlingException
Provides information about an error that occurred because too many requests were sent during a certain amount of time.
message
The explanation of the error that occurred.
Type: string Required: False
ValidationException
Provides information about an error that occurred due to a syntax error in a request.
message
The explanation of the error that occurred.
Type: string Required: False
See also
For more information about using this API in one of the language-specific AWS SDKs and references, see the following:
ListOrganizationAdminAccounts
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
EnableOrganizationAdminAccount
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
AWS Organizations - Macie Configuration
• AWS SDK for Python
• AWS SDK for Ruby V3
DisableOrganizationAdminAccount
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
AWS Organizations - Macie Configuration
The Macie Configuration resource for AWS Organizations provides access to the Amazon Macie
configuration settings for an organization in AWS Organizations. AWS Organizations is a global account management service that enables AWS administrators to consolidate and centrally manage multiple AWS accounts. For more information about this service, see the AWS Organizations User Guide. For information about integrating Macie with AWS Organizations, see Managing Amazon Macie accounts with AWS Organizations in the Amazon Macie User Guide.
If you're the delegated Macie administrator for an organization in AWS Organizations, you can use this resource to retrieve information about and update the Macie configuration settings for your organization. This includes the setting that determines whether Macie is enabled automatically for new accounts when the accounts are added to your organization in AWS Organizations. To use this resource, you must be the delegated Macie administrator for an organization in AWS Organizations.
URI
/admin/configuration
HTTP methods
GET
Operation ID: DescribeOrganizationConfiguration
Retrieves the Amazon Macie configuration settings for an organization in AWS Organizations.
Responses
Status code Response model Description
200 DescribeOrganizationConfigurationResponse (p. 37)The request succeeded.
400 ValidationException (p. 37)The request failed because it contains a syntax error.
HTTP methods
Status code Response model Description
402 ServiceQuotaExceededException (p. 37)The request failed because fulfilling the request would exceed one or more service quotas for your account.
403 AccessDeniedException (p. 37)The request was denied because you don't have sufficient access to the specified resource.
404 ResourceNotFoundException (p. 38)The request failed because the specified resource wasn't found.
409 ConflictException (p. 38) The request failed because it conflicts with the current state of the specified resource.
429 ThrottlingException (p. 38)The request failed because you sent too many requests during a certain amount of time.
500 InternalServerException (p. 38)The request failed due to an unknown internal server error, exception, or failure.
PATCH
Operation ID: UpdateOrganizationConfiguration
Updates the Amazon Macie configuration settings for an organization in AWS Organizations.
Responses
Status code Response model Description
200 Empty Schema (p. 37) The request succeeded and there
isn't any content to include in the body of the response (No Content).
400 ValidationException (p. 37)The request failed because it contains a syntax error.
402 ServiceQuotaExceededException (p. 37)The request failed because fulfilling the request would exceed one or more service quotas for your account.
403 AccessDeniedException (p. 37)The request was denied because you don't have sufficient access to the specified resource.
404 ResourceNotFoundException (p. 38)The request failed because the specified resource wasn't found.
409 ConflictException (p. 38) The request failed because it conflicts with the current state of the specified resource.
Schemas
Status code Response model Description
429 ThrottlingException (p. 38)The request failed because you sent too many requests during a certain amount of time.
500 InternalServerException (p. 38)The request failed due to an unknown internal server error, exception, or failure.
Schemas
Request bodies
PATCH schema
{ "autoEnable": boolean }
Response bodies
DescribeOrganizationConfigurationResponse schema
{ "autoEnable": boolean,
"maxAccountLimitReached": boolean }
Empty Schema schema
{}
ValidationException schema
{ "message": "string"
}
ServiceQuotaExceededException schema
{
"message": "string"
}
AccessDeniedException schema
{ "message": "string"
}
Properties
ResourceNotFoundException schema
{
"message": "string"
}
ConflictException schema
{ "message": "string"
}
ThrottlingException schema
{ "message": "string"
}
InternalServerException schema
{
"message": "string"
}
Properties
AccessDeniedException
Provides information about an error that occurred due to insufficient access to a specified resource.
message
The explanation of the error that occurred.
Type: string Required: False
ConflictException
Provides information about an error that occurred due to a versioning conflict for a specified resource.
message
The explanation of the error that occurred.
Type: string Required: False
DescribeOrganizationConfigurationResponse
Provides information about the Amazon Macie configuration settings for an organization in AWS Organizations.
Properties
autoEnable
Specifies whether Amazon Macie is enabled automatically for accounts that are added to the organization.
Type: boolean Required: False
maxAccountLimitReached
Specifies whether the maximum number of Amazon Macie member accounts are part of the organization.
Type: boolean Required: False
Empty
The request succeeded and there isn't any content to include in the body of the response (No Content).
InternalServerException
Provides information about an error that occurred due to an unknown internal server error, exception, or failure.
message
The explanation of the error that occurred.
Type: string Required: False
ResourceNotFoundException
Provides information about an error that occurred because a specified resource wasn't found.
message
The explanation of the error that occurred.
Type: string Required: False
ServiceQuotaExceededException
Provides information about an error that occurred due to one or more service quotas for an account.
message
The explanation of the error that occurred.
Type: string Required: False
See also
ThrottlingException
Provides information about an error that occurred because too many requests were sent during a certain amount of time.
message
The explanation of the error that occurred.
Type: string Required: False
UpdateOrganizationConfigurationRequest
Specifies whether to enable Amazon Macie automatically for accounts that are added to an organization in AWS Organizations.
autoEnable
Specifies whether to enable Amazon Macie automatically for an account when the account is added to the organization in AWS Organizations.
Type: boolean Required: True
ValidationException
Provides information about an error that occurred due to a syntax error in a request.
message
The explanation of the error that occurred.
Type: string Required: False
See also
For more information about using this API in one of the language-specific AWS SDKs and references, see the following:
DescribeOrganizationConfiguration
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3