create_dlp_setting
¶
create_dlp_setting(
aws_account_id: AwsAccountId,
dlp_setting_id: DlpSettingId,
name: DlpSettingName,
provider_type: DlpProviderType,
provider_config: ProviderConfig,
provider_outage_action: DlpAction,
enabled: Boolean,
*,
config_overrides: Optional[QuickSightClientConfig] = None,
tags: Optional[TagList] = None,
) -> CreateDlpSettingResponse
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.
Parameters:
-
aws_account_id(AwsAccountId) –The ID of the Amazon Web Services account in which to create the DLP setting.
-
dlp_setting_id(DlpSettingId) –A unique identifier for the DLP setting.
-
name(DlpSettingName) –A human-readable display name for the DLP setting.
-
provider_type(DlpProviderType) –The type of external DLP provider to use for sensitivity label classification. Currently, the only supported value is
MICROSOFT_PURVIEW. -
provider_config(ProviderConfig) –The provider-specific configuration for the DLP integration. This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
-
provider_outage_action(DlpAction) –The behavior to apply when the DLP provider is unreachable. Valid values are
ALLOW,WARN, andBLOCK. -
enabled(Boolean) –Specifies whether DLP enforcement is active for this setting. Set to
trueto enable enforcement, orfalseto disable it at time of setting creation. -
tags(Optional[TagList], default:None) –A list of resource tags to apply to the DLP setting. You can use tags to manage access to your Amazon Web Services resources.
Raises:
-
AccessDeniedException–You don't have access to this item. The provided credentials couldn't be validated. You might not be authorized to carry out the request. Make sure that your account is authorized to use the Amazon Quick Sight service, that your policies have the correct permissions, and that you are using the correct credentials.
-
ConflictException–Updating or deleting a resource can cause an inconsistent state.
-
InternalFailureException–An internal failure occurred.
-
InvalidRequestException–You don't have this feature activated for your account. To fix this issue, contact Amazon Web Services support.
-
LimitExceededException–A limit is exceeded.
-
ResourceExistsException–The resource specified already exists.
-
ThrottlingException–Access is throttled.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_quicksight/_services/quick_sight.py
2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 | |