openapi: 3.0.0
info:
version: '2017-12-19'
x-release: v4
title: Amazon Macie
description: '
Amazon Macie is a security service that uses machine learning to automatically discover, classify, and protect sensitive data in AWS. Macie recognizes sensitive data such as personally identifiable information (PII) or intellectual property, and provides you with dashboards and alerts that give visibility into how this data is being accessed or moved. For more information, see the Macie User Guide.
' x-logo: url: 'https://twitter.com/awscloud/profile_image?size=original' 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: macie x-origin: - contentType: application/json url: 'https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/macie-2017-12-19.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 externalDocs: description: Amazon Web Services documentation url: 'https://docs.aws.amazon.com/macie/' servers: - url: 'http://macie.{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 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-south-1 - sa-east-1 default: us-east-1 description: The Amazon Macie multi-region endpoint - url: 'https://macie.{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 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-south-1 - sa-east-1 default: us-east-1 description: The Amazon Macie multi-region endpoint - url: 'http://macie.{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 endpoint for China (Beijing) and China (Ningxia) - url: 'https://macie.{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 endpoint for China (Beijing) and China (Ningxia) x-hasEquivalentPaths: true paths: '/#X-Amz-Target=MacieService.AssociateMemberAccount': post: operationId: AssociateMemberAccount description: Associates a specified AWS account with Amazon Macie as a member account. responses: '200': description: Success '480': description: InvalidInputException content: application/json: schema: $ref: '#/components/schemas/InvalidInputException' '481': description: LimitExceededException content: application/json: schema: $ref: '#/components/schemas/LimitExceededException' '482': description: InternalException content: application/json: schema: $ref: '#/components/schemas/InternalException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AssociateMemberAccountRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - MacieService.AssociateMemberAccount 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' '/#X-Amz-Target=MacieService.AssociateS3Resources': post: operationId: AssociateS3Resources description: 'Associates specified S3 resources with Amazon Macie for monitoring and data classification. If memberAccountId isn''t specified, the action associates specified S3 resources with Macie for the current master account. If memberAccountId is specified, the action associates specified S3 resources with Macie for the specified member account. ' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/AssociateS3ResourcesResult' '480': description: InvalidInputException content: application/json: schema: $ref: '#/components/schemas/InvalidInputException' '481': description: AccessDeniedException content: application/json: schema: $ref: '#/components/schemas/AccessDeniedException' '482': description: LimitExceededException content: application/json: schema: $ref: '#/components/schemas/LimitExceededException' '483': description: InternalException content: application/json: schema: $ref: '#/components/schemas/InternalException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AssociateS3ResourcesRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - MacieService.AssociateS3Resources 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' '/#X-Amz-Target=MacieService.DisassociateMemberAccount': post: operationId: DisassociateMemberAccount description: Removes the specified member account from Amazon Macie. responses: '200': description: Success '480': description: InvalidInputException content: application/json: schema: $ref: '#/components/schemas/InvalidInputException' '481': description: InternalException content: application/json: schema: $ref: '#/components/schemas/InternalException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DisassociateMemberAccountRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - MacieService.DisassociateMemberAccount 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' '/#X-Amz-Target=MacieService.DisassociateS3Resources': post: operationId: DisassociateS3Resources description: 'Removes specified S3 resources from being monitored by Amazon Macie. If memberAccountId isn''t specified, the action removes specified S3 resources from Macie for the current master account. If memberAccountId is specified, the action removes specified S3 resources from Macie for the specified member account.' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/DisassociateS3ResourcesResult' '480': description: InvalidInputException content: application/json: schema: $ref: '#/components/schemas/InvalidInputException' '481': description: AccessDeniedException content: application/json: schema: $ref: '#/components/schemas/AccessDeniedException' '482': description: InternalException content: application/json: schema: $ref: '#/components/schemas/InternalException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DisassociateS3ResourcesRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - MacieService.DisassociateS3Resources 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' '/#X-Amz-Target=MacieService.ListMemberAccounts': post: operationId: ListMemberAccounts description: Lists all Amazon Macie member accounts for the current Amazon Macie master account. responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/ListMemberAccountsResult' '480': description: InternalException content: application/json: schema: $ref: '#/components/schemas/InternalException' '481': description: InvalidInputException content: application/json: schema: $ref: '#/components/schemas/InvalidInputException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ListMemberAccountsRequest' 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 - name: X-Amz-Target in: header required: true schema: type: string enum: - MacieService.ListMemberAccounts 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' '/#X-Amz-Target=MacieService.ListS3Resources': post: operationId: ListS3Resources description: 'Lists all the S3 resources associated with Amazon Macie. If memberAccountId isn''t specified, the action lists the S3 resources associated with Amazon Macie for the current master account. If memberAccountId is specified, the action lists the S3 resources associated with Amazon Macie for the specified member account. ' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/ListS3ResourcesResult' '480': description: InvalidInputException content: application/json: schema: $ref: '#/components/schemas/InvalidInputException' '481': description: AccessDeniedException content: application/json: schema: $ref: '#/components/schemas/AccessDeniedException' '482': description: InternalException content: application/json: schema: $ref: '#/components/schemas/InternalException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ListS3ResourcesRequest' 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 - name: X-Amz-Target in: header required: true schema: type: string enum: - MacieService.ListS3Resources 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' '/#X-Amz-Target=MacieService.UpdateS3Resources': post: operationId: UpdateS3Resources description: 'Updates the classification types for the specified S3 resources. If memberAccountId isn''t specified, the action updates the classification types of the S3 resources associated with Amazon Macie for the current master account. If memberAccountId is specified, the action updates the classification types of the S3 resources associated with Amazon Macie for the specified member account. ' responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/UpdateS3ResourcesResult' '480': description: InvalidInputException content: application/json: schema: $ref: '#/components/schemas/InvalidInputException' '481': description: AccessDeniedException content: application/json: schema: $ref: '#/components/schemas/AccessDeniedException' '482': description: InternalException content: application/json: schema: $ref: '#/components/schemas/InternalException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateS3ResourcesRequest' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - MacieService.UpdateS3Resources 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' components: parameters: X-Amz-Content-Sha256: name: X-Amz-Content-Sha256 in: header schema: type: string required: false X-Amz-Date: name: X-Amz-Date in: header schema: type: string required: false X-Amz-Algorithm: name: X-Amz-Algorithm in: header schema: type: string required: false X-Amz-Credential: name: X-Amz-Credential in: header schema: type: string required: false X-Amz-Security-Token: name: X-Amz-Security-Token in: header schema: type: string required: false X-Amz-Signature: name: X-Amz-Signature in: header schema: type: string required: false X-Amz-SignedHeaders: name: X-Amz-SignedHeaders in: header schema: type: string required: false securitySchemes: hmac: type: apiKey name: Authorization in: header description: Amazon Signature authorization v4 x-amazon-apigateway-authtype: awsSigv4 schemas: AssociateMemberAccountRequest: type: object required: - memberAccountId title: AssociateMemberAccountRequest properties: memberAccountId: $ref: '#/components/schemas/AWSAccountId' description: The ID of the AWS account that you want to associate with Amazon Macie as a member account. InvalidInputException: type: object properties: errorCode: $ref: '#/components/schemas/ErrorCode' message: $ref: '#/components/schemas/ExceptionMessage' fieldName: $ref: '#/components/schemas/FieldName' description: 'The request was rejected because an invalid or out-of-range value was supplied for an input parameter. ' LimitExceededException: type: object properties: errorCode: $ref: '#/components/schemas/ErrorCode' message: $ref: '#/components/schemas/ExceptionMessage' resourceType: $ref: '#/components/schemas/ResourceType' description: 'The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded. ' InternalException: type: object properties: errorCode: $ref: '#/components/schemas/ErrorCode' message: $ref: '#/components/schemas/ExceptionMessage' description: Internal server error. AssociateS3ResourcesResult: type: object properties: failedS3Resources: $ref: '#/components/schemas/FailedS3Resources' description: 'S3 resources that couldn''t be associated with Amazon Macie. An error code and an error message are provided for each failed item. ' AssociateS3ResourcesRequest: type: object required: - s3Resources title: AssociateS3ResourcesRequest properties: memberAccountId: $ref: '#/components/schemas/AWSAccountId' description: 'The ID of the Amazon Macie member account whose resources you want to associate with Macie. ' s3Resources: $ref: '#/components/schemas/S3ResourcesClassification' description: 'The S3 resources that you want to associate with Amazon Macie for monitoring and data classification. ' AccessDeniedException: type: object properties: message: $ref: '#/components/schemas/ExceptionMessage' resourceType: $ref: '#/components/schemas/ResourceType' description: You do not have required permissions to access the requested resource. DisassociateMemberAccountRequest: type: object required: - memberAccountId title: DisassociateMemberAccountRequest properties: memberAccountId: $ref: '#/components/schemas/AWSAccountId' description: The ID of the member account that you want to remove from Amazon Macie. DisassociateS3ResourcesResult: type: object properties: failedS3Resources: $ref: '#/components/schemas/FailedS3Resources' description: 'S3 resources that couldn''t be removed from being monitored and classified by Amazon Macie. An error code and an error message are provided for each failed item. ' DisassociateS3ResourcesRequest: type: object required: - associatedS3Resources title: DisassociateS3ResourcesRequest properties: memberAccountId: $ref: '#/components/schemas/AWSAccountId' description: 'The ID of the Amazon Macie member account whose resources you want to remove from being monitored by Amazon Macie. ' associatedS3Resources: $ref: '#/components/schemas/S3Resources' description: 'The S3 resources (buckets or prefixes) that you want to remove from being monitored and classified by Amazon Macie. ' ListMemberAccountsResult: type: object properties: memberAccounts: $ref: '#/components/schemas/MemberAccounts' description: 'A list of the Amazon Macie member accounts returned by the action. The current master account is also included in this list. ' nextToken: $ref: '#/components/schemas/NextToken' description: 'When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null. ' ListMemberAccountsRequest: type: object title: ListMemberAccountsRequest properties: nextToken: $ref: '#/components/schemas/NextToken' description: 'Use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListMemberAccounts action. Subsequent calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data. ' maxResults: $ref: '#/components/schemas/MaxResults' description: 'Use this parameter to indicate the maximum number of items that you want in the response. The default value is 250. ' ListS3ResourcesResult: type: object properties: s3Resources: $ref: '#/components/schemas/S3ResourcesClassification' description: A list of the associated S3 resources returned by the action. nextToken: $ref: '#/components/schemas/NextToken' description: 'When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null. ' ListS3ResourcesRequest: type: object title: ListS3ResourcesRequest properties: memberAccountId: $ref: '#/components/schemas/AWSAccountId' description: 'The Amazon Macie member account ID whose associated S3 resources you want to list. ' nextToken: $ref: '#/components/schemas/NextToken' description: 'Use this parameter when paginating results. Set its value to null on your first call to the ListS3Resources action. Subsequent calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data. ' maxResults: $ref: '#/components/schemas/MaxResults' description: 'Use this parameter to indicate the maximum number of items that you want in the response. The default value is 250. ' UpdateS3ResourcesResult: type: object properties: failedS3Resources: $ref: '#/components/schemas/FailedS3Resources' description: 'The S3 resources whose classification types can''t be updated. An error code and an error message are provided for each failed item. ' UpdateS3ResourcesRequest: type: object required: - s3ResourcesUpdate title: UpdateS3ResourcesRequest properties: memberAccountId: $ref: '#/components/schemas/AWSAccountId' description: 'The AWS ID of the Amazon Macie member account whose S3 resources'' classification types you want to update. ' s3ResourcesUpdate: $ref: '#/components/schemas/S3ResourcesClassificationUpdate' description: The S3 resources whose classification types you want to update. AWSAccountId: type: string pattern: '[0-9]{12}' ExceptionMessage: type: string maxLength: 10000 ResourceType: type: string description: Resource type that caused the exception maxLength: 1000 S3ResourcesClassification: type: array items: $ref: '#/components/schemas/S3ResourceClassification' FailedS3Resources: type: array items: $ref: '#/components/schemas/FailedS3Resource' BucketName: type: string maxLength: 500 S3OneTimeClassificationType: type: string enum: - FULL - NONE S3ContinuousClassificationType: type: string enum: - FULL ClassificationType: type: object required: - oneTime - continuous properties: oneTime: $ref: '#/components/schemas/S3OneTimeClassificationType' description: 'A one-time classification of all of the existing objects in a specified S3 bucket. ' continuous: $ref: '#/components/schemas/S3ContinuousClassificationType' description: 'A continuous classification of the objects that are added to a specified S3 bucket. Amazon Macie begins performing continuous classification after a bucket is successfully associated with Amazon Macie. ' description: 'The classification type that Amazon Macie applies to the associated S3 resources. ' ClassificationTypeUpdate: type: object properties: oneTime: $ref: '#/components/schemas/S3OneTimeClassificationType' description: 'A one-time classification of all of the existing objects in a specified S3 bucket. ' continuous: $ref: '#/components/schemas/S3ContinuousClassificationType' description: 'A continuous classification of the objects that are added to a specified S3 bucket. Amazon Macie begins performing continuous classification after a bucket is successfully associated with Amazon Macie. ' description: 'The classification type that Amazon Macie applies to the associated S3 resources. At least one of the classification types (oneTime or continuous) must be specified. ' S3Resources: type: array items: $ref: '#/components/schemas/S3Resource' ErrorCode: type: string description: Error code for the exception maxLength: 10 S3Resource: type: object required: - bucketName properties: bucketName: $ref: '#/components/schemas/BucketName' description: The name of the S3 bucket. prefix: $ref: '#/components/schemas/Prefix' description: 'The prefix of the S3 bucket. ' description: 'Contains information about the S3 resource. This data type is used as a request parameter in the DisassociateS3Resources action and can be used as a response parameter in the AssociateS3Resources and UpdateS3Resources actions. ' FailedS3Resource: type: object properties: failedItem: $ref: '#/components/schemas/S3Resource' description: The failed S3 resources. errorCode: $ref: '#/components/schemas/ErrorCode' description: The status code of a failed item. errorMessage: $ref: '#/components/schemas/ExceptionMessage' description: The error message of a failed item. description: Includes details about the failed S3 resources. FieldName: type: string description: Field that has invalid input maxLength: 1000 NextToken: type: string maxLength: 500 MaxResults: type: integer maximum: 250 MemberAccounts: type: array items: $ref: '#/components/schemas/MemberAccount' MemberAccount: type: object properties: accountId: $ref: '#/components/schemas/AWSAccountId' description: The AWS account ID of the Amazon Macie member account. description: Contains information about the Amazon Macie member account. Prefix: type: string maxLength: 10000 S3ResourceClassification: type: object required: - bucketName - classificationType properties: bucketName: $ref: '#/components/schemas/BucketName' description: The name of the S3 bucket that you want to associate with Amazon Macie. prefix: $ref: '#/components/schemas/Prefix' description: The prefix of the S3 bucket that you want to associate with Amazon Macie. classificationType: $ref: '#/components/schemas/ClassificationType' description: 'The classification type that you want to specify for the resource associated with Amazon Macie. ' description: 'The S3 resources that you want to associate with Amazon Macie for monitoring and data classification. This data type is used as a request parameter in the AssociateS3Resources action and a response parameter in the ListS3Resources action. ' S3ResourceClassificationUpdate: type: object required: - bucketName - classificationTypeUpdate properties: bucketName: $ref: '#/components/schemas/BucketName' description: The name of the S3 bucket whose classification types you want to update. prefix: $ref: '#/components/schemas/Prefix' description: The prefix of the S3 bucket whose classification types you want to update. classificationTypeUpdate: $ref: '#/components/schemas/ClassificationTypeUpdate' description: 'The classification type that you want to update for the resource associated with Amazon Macie. ' description: 'The S3 resources whose classification types you want to update. This data type is used as a request parameter in the UpdateS3Resources action. ' S3ResourcesClassificationUpdate: type: array items: $ref: '#/components/schemas/S3ResourceClassificationUpdate' security: - hmac: []