Module Smaws_Client_CloudTrail.UpdateTrail

Updates trail settings that control what events you are logging, and how to handle log files. Changes to a trail do not require stopping the CloudTrail service. Use this action to designate an existing bucket for log delivery. If the existing bucket has previously been a target for CloudTrail log files, an IAM policy exists for the bucket. UpdateTrail must be called from the Region in which the trail was created; otherwise, an InvalidHomeRegionException is thrown.

and Deserialization

val request : Smaws_Lib.Context.t -> Types.update_trail_request -> (Types.update_trail_response, [> Smaws_Lib.Protocols.AwsJson.error | `CloudTrailAccessNotEnabledException of Types.cloud_trail_access_not_enabled_exception | `CloudTrailARNInvalidException of Types.cloud_trail_arn_invalid_exception | `CloudTrailInvalidClientTokenIdException of Types.cloud_trail_invalid_client_token_id_exception | `CloudWatchLogsDeliveryUnavailableException of Types.cloud_watch_logs_delivery_unavailable_exception | `ConflictException of Types.conflict_exception | `InsufficientDependencyServiceAccessPermissionException of Types.insufficient_dependency_service_access_permission_exception | `InsufficientEncryptionPolicyException of Types.insufficient_encryption_policy_exception | `InsufficientS3BucketPolicyException of Types.insufficient_s3_bucket_policy_exception | `InsufficientSnsTopicPolicyException of Types.insufficient_sns_topic_policy_exception | `InvalidCloudWatchLogsLogGroupArnException of Types.invalid_cloud_watch_logs_log_group_arn_exception | `InvalidCloudWatchLogsRoleArnException of Types.invalid_cloud_watch_logs_role_arn_exception | `InvalidEventSelectorsException of Types.invalid_event_selectors_exception | `InvalidHomeRegionException of Types.invalid_home_region_exception | `InvalidKmsKeyIdException of Types.invalid_kms_key_id_exception | `InvalidParameterCombinationException of Types.invalid_parameter_combination_exception | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidS3BucketNameException of Types.invalid_s3_bucket_name_exception | `InvalidS3PrefixException of Types.invalid_s3_prefix_exception | `InvalidSnsTopicNameException of Types.invalid_sns_topic_name_exception | `InvalidTrailNameException of Types.invalid_trail_name_exception | `KmsException of Types.kms_exception | `KmsKeyDisabledException of Types.kms_key_disabled_exception | `KmsKeyNotFoundException of Types.kms_key_not_found_exception | `NoManagementAccountSLRExistsException of Types.no_management_account_slr_exists_exception | `NotOrganizationMasterAccountException of Types.not_organization_master_account_exception | `OperationNotPermittedException of Types.operation_not_permitted_exception | `OrganizationNotInAllFeaturesModeException of Types.organization_not_in_all_features_mode_exception | `OrganizationsNotInUseException of Types.organizations_not_in_use_exception | `S3BucketDoesNotExistException of Types.s3_bucket_does_not_exist_exception | `ThrottlingException of Types.throttling_exception | `TrailNotFoundException of Types.trail_not_found_exception | `TrailNotProvidedException of Types.trail_not_provided_exception | `UnsupportedOperationException of Types.unsupported_operation_exception ]) Stdlib.result