Skip to main content

dlp_settings

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

Overview

Namedlp_settings
TypeResource
Idaws.quicksight.dlp_settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
dlp_settingobjectThe full configuration of the requested DLP setting, returned as a DlpSettingDetails object.
request_idstringThe Amazon Web Services request ID for this operation.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_dlp_settingselectaws_account_id, dlp_setting_id, regionDescribes the full configuration of a DLP setting in an Amazon Web Services account.
list_dlp_settingsselectaws_account_id, regionnext-token, max-resultsLists all DLP settings in an Amazon Web Services account.
create_dlp_settinginsertaws_account_id, dlp_setting_id, region, ProviderType, ProviderConfig, ProviderOutageAction, EnabledCreates a data loss prevention (DLP) setting configuration for an Amazon Web Services account. A DLP setting defines the DLP provider, the enforcement behavior, and the Quick capabilities that the setting applies to.
update_dlp_settingupdateaws_account_id, dlp_setting_id, regionUpdates an existing DLP setting configuration in an Amazon Web Services account. Fields that are omitted from the request retain their current values.
delete_dlp_settingdeleteaws_account_id, dlp_setting_id, regionDeletes a DLP setting configuration from an Amazon Web Services 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
aws_account_idstringThe ID of the Amazon Web Services account that contains the DLP setting that you want to delete.
dlp_setting_idstringThe ID of the DLP setting that you want to delete.
regionstringAWS region (default: us-east-1)
max-resultsintegerThe maximum number of results to return per request.
next-tokenstringThe token for the next set of results, or null if there are no more results.

SELECT examples

Describes the full configuration of a DLP setting in an Amazon Web Services account.

SELECT
dlp_setting,
request_id
FROM aws.quicksight.dlp_settings
WHERE aws_account_id = '{{ aws_account_id }}' -- required
AND dlp_setting_id = '{{ dlp_setting_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a data loss prevention (DLP) setting configuration for an Amazon Web Services account. A DLP setting defines the DLP provider, the enforcement behavior, and the Quick capabilities that the setting applies to.

INSERT INTO aws.quicksight.dlp_settings (
Name,
ProviderType,
ProviderConfig,
ProviderOutageAction,
Enabled,
Tags,
aws_account_id,
dlp_setting_id,
region
)
SELECT
'{{ Name }}',
'{{ ProviderType }}' /* required */,
'{{ ProviderConfig }}' /* required */,
'{{ ProviderOutageAction }}' /* required */,
{{ Enabled }} /* required */,
'{{ Tags }}',
'{{ aws_account_id }}',
'{{ dlp_setting_id }}',
'{{ region }}'
RETURNING
arn,
dlp_setting_id,
request_id
;

UPDATE examples

Updates an existing DLP setting configuration in an Amazon Web Services account. Fields that are omitted from the request retain their current values.

UPDATE aws.quicksight.dlp_settings
SET
Name = '{{ Name }}',
ProviderType = '{{ ProviderType }}',
ProviderConfig = '{{ ProviderConfig }}',
ProviderOutageAction = '{{ ProviderOutageAction }}',
Enabled = {{ Enabled }}
WHERE
aws_account_id = '{{ aws_account_id }}' --required
AND dlp_setting_id = '{{ dlp_setting_id }}' --required
AND region = '{{ region }}' --required
RETURNING
arn,
dlp_setting_id,
request_id;

DELETE examples

Deletes a DLP setting configuration from an Amazon Web Services account.

DELETE FROM aws.quicksight.dlp_settings
WHERE aws_account_id = '{{ aws_account_id }}' --required
AND dlp_setting_id = '{{ dlp_setting_id }}' --required
AND region = '{{ region }}' --required
;