update_resource_profile

Macie2.Client.update_resource_profile(**kwargs)

Updates the sensitivity score for an S3 bucket.

See also: AWS API Documentation

Request Syntax

response = client.update_resource_profile(
    resourceArn='string',
    sensitivityScoreOverride=123
)
Parameters
  • resourceArn (string) --

    [REQUIRED]

    The Amazon Resource Name (ARN) of the S3 bucket that the request applies to.

  • sensitivityScoreOverride (integer) -- The new sensitivity score for the bucket. Valid values are: 100, assign the maximum score and apply the Sensitive label to the bucket; and, null (empty), assign a score that Amazon Macie calculates automatically after you submit the request.
Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

    The request succeeded. The S3 bucket's sensitivity score was updated and there isn't any content to include in the body of the response (No Content).

Exceptions

  • Macie2.Client.exceptions.ValidationException
  • Macie2.Client.exceptions.InternalServerException
  • Macie2.Client.exceptions.ServiceQuotaExceededException
  • Macie2.Client.exceptions.AccessDeniedException
  • Macie2.Client.exceptions.ResourceNotFoundException
  • Macie2.Client.exceptions.ThrottlingException