Skip to main content

sensitivity_inspection_templates

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

Overview

Namesensitivity_inspection_templates
TypeResource
Idaws.macie2.sensitivity_inspection_templates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the template: automated-sensitive-data-discovery.
descriptionstringThe custom description of the template.
excludesobjectThe managed data identifiers that are explicitly excluded (not used) when performing automated sensitive data discovery.
includesobjectThe allow lists, custom data identifiers, and managed data identifiers that are explicitly included (used) when performing automated sensitive data discovery.
sensitivity_inspection_template_idstringThe unique identifier for the template.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_sensitivity_inspection_templateselectid, regionRetrieves the settings for the sensitivity inspection template for an account.
list_sensitivity_inspection_templatesselectregionmaxResults, nextTokenRetrieves a subset of information about the sensitivity inspection template for an account.
update_sensitivity_inspection_templateupdateid, regionUpdates the settings for the sensitivity inspection template 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)
maxResultsintegerThe maximum number of items to include in each page of a paginated response.
nextTokenstringThe nextToken string that specifies which page of results to return in a paginated response.

SELECT examples

Retrieves the settings for the sensitivity inspection template for an account.

SELECT
name,
description,
excludes,
includes,
sensitivity_inspection_template_id
FROM aws.macie2.sensitivity_inspection_templates
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates the settings for the sensitivity inspection template for an account.

UPDATE aws.macie2.sensitivity_inspection_templates
SET
description = '{{ description }}',
excludes = '{{ excludes }}',
includes = '{{ includes }}'
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required;