create_dlp_setting
async
¶
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[AsyncQuickSightClientConfig] = 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/async_quick_sight.py
2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 | |