put_intelligence_configuration
async
¶
put_intelligence_configuration(
*,
config_overrides: Optional[AsyncCloudWatchOmniClientConfig] = 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.
>>> await 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/async_cloud_watch_omni.py
3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 | |