Macie2 / Client / create_sample_findings

create_sample_findings#

Macie2.Client.create_sample_findings(**kwargs)#

Creates sample findings.

See also: AWS API Documentation

Request Syntax

response = client.create_sample_findings(
    findingTypes=[
        'SensitiveData:S3Object/Multiple'|'SensitiveData:S3Object/Financial'|'SensitiveData:S3Object/Personal'|'SensitiveData:S3Object/Credentials'|'SensitiveData:S3Object/CustomIdentifier'|'Policy:IAMUser/S3BucketPublic'|'Policy:IAMUser/S3BucketSharedExternally'|'Policy:IAMUser/S3BucketReplicatedExternally'|'Policy:IAMUser/S3BucketEncryptionDisabled'|'Policy:IAMUser/S3BlockPublicAccessDisabled'|'Policy:IAMUser/S3BucketSharedWithCloudFront',
    ]
)
Parameters:

findingTypes (list) –

An array of finding types, one for each type of sample finding to create. To create a sample of every type of finding that Amazon Macie supports, don’t include this array in your request.

  • (string) –

    The type of finding. For details about each type, see Types of findings in the Amazon Macie User Guide. Possible values are:

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

    The request succeeded 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

  • Macie2.Client.exceptions.ConflictException