put_intelligence_configuration
¶
put_intelligence_configuration(
*,
config_overrides: Optional[CloudWatchOmniClientConfig] = None,
kms_key_arn: Optional[IntelligenceKmsKeyArn] = None,
remove_kms_key: Optional[bool] = None,
client_token: Optional[ClientToken] = None,
) -> PutIntelligenceConfigurationOutput
Creates or updates the intelligence configuration for the calling account. Account is identified via FAS (caller identity).
Parameters:
-
kms_key_arn(Optional[IntelligenceKmsKeyArn], default:None) –Optional KMS key ARN to configure customer-managed encryption for anomaly data.
-
remove_kms_key(Optional[bool], default:None) –Set to true to disassociate the configured KMS key. Mutually exclusive with kmsKeyArn; the service returns ValidationException if both are provided.
-
client_token(Optional[ClientToken], default:None) –Idempotency token for safe retries. Repeating a request with the same token applies the update at most once instead of reprocessing it.
Raises:
-
AccessDeniedException–The caller is not authorized to perform this action.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ThrottlingException–The request was throttled due to exceeding the allowed request rate.
-
ValidationException–A parameter is specified incorrectly.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Configure a customer-managed KMS key The following example sets the customer-managed KMS key used to encrypt the account's intelligence data. Payloads are shown as JSON; on the wire they are CBOR-encoded.
>>> client.put_intelligence_configuration(kms_key_arn='arn:aws:kms:us-east-1:123456789012:key/1a2b3c4d-5e6f-4a3b-8c9d-0e1f2a3b4c5d', client_token='b3f8c7d6-5b4a-4c3d-9e2f-1a0b2c3d4e5f')
Source code in docs_src/capo_cloudwatchomni/_services/cloud_watch_omni.py
3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 | |