Skip to main content

classification_scopes

Creates, updates, deletes, gets or lists a classification_scopes resource.

Overview

Nameclassification_scopes
TypeResource
Idaws.macie2.classification_scopes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier for the classification scope. (pattern: <code>^[0-9a-z]*$</code>)
namestringThe name of the classification scope: automated-sensitive-data-discovery. (pattern: <code>^[0-9a-zA-Z_\-]*$</code>)
s_3objectThe S3 buckets that are excluded from automated sensitive data discovery.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_classification_scopeselectid, regionRetrieves the classification scope settings for an account.
list_classification_scopesselectregionname, nextTokenRetrieves a subset of information about the classification scope for an account.
update_classification_scopeupdateid, regionUpdates the classification scope settings for an account.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe unique identifier for the Amazon Macie resource that the request applies to.
regionstringAWS region (default: us-east-1)
namestringThe name of the classification scope to retrieve the unique identifier for.
nextTokenstringThe nextToken string that specifies which page of results to return in a paginated response.

SELECT examples

Retrieves the classification scope settings for an account.

SELECT
id,
name,
s_3
FROM aws.macie2.classification_scopes
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates the classification scope settings for an account.

UPDATE aws.macie2.classification_scopes
SET
s3 = '{{ s3 }}'
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required;