Smaws_Client_CloudTrail.CreateTrail
val request :
Smaws_Lib.Context.t ->
create_trail_request ->
(create_trail_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `CloudTrailAccessNotEnabledException of
cloud_trail_access_not_enabled_exception
| `CloudTrailInvalidClientTokenIdException of
cloud_trail_invalid_client_token_id_exception
| `CloudWatchLogsDeliveryUnavailableException of
cloud_watch_logs_delivery_unavailable_exception
| `ConflictException of conflict_exception
| `InsufficientDependencyServiceAccessPermissionException of
insufficient_dependency_service_access_permission_exception
| `InsufficientEncryptionPolicyException of
insufficient_encryption_policy_exception
| `InsufficientS3BucketPolicyException of
insufficient_s3_bucket_policy_exception
| `InsufficientSnsTopicPolicyException of
insufficient_sns_topic_policy_exception
| `InvalidCloudWatchLogsLogGroupArnException of
invalid_cloud_watch_logs_log_group_arn_exception
| `InvalidCloudWatchLogsRoleArnException of
invalid_cloud_watch_logs_role_arn_exception
| `InvalidKmsKeyIdException of invalid_kms_key_id_exception
| `InvalidParameterCombinationException of
invalid_parameter_combination_exception
| `InvalidParameterException of invalid_parameter_exception
| `InvalidS3BucketNameException of invalid_s3_bucket_name_exception
| `InvalidS3PrefixException of invalid_s3_prefix_exception
| `InvalidSnsTopicNameException of invalid_sns_topic_name_exception
| `InvalidTagParameterException of invalid_tag_parameter_exception
| `InvalidTrailNameException of invalid_trail_name_exception
| `KmsException of kms_exception
| `KmsKeyDisabledException of kms_key_disabled_exception
| `KmsKeyNotFoundException of kms_key_not_found_exception
| `MaximumNumberOfTrailsExceededException of
maximum_number_of_trails_exceeded_exception
| `NoManagementAccountSLRExistsException of
no_management_account_slr_exists_exception
| `NotOrganizationMasterAccountException of
not_organization_master_account_exception
| `OperationNotPermittedException of operation_not_permitted_exception
| `OrganizationNotInAllFeaturesModeException of
organization_not_in_all_features_mode_exception
| `OrganizationsNotInUseException of organizations_not_in_use_exception
| `S3BucketDoesNotExistException of s3_bucket_does_not_exist_exception
| `TagsLimitExceededException of tags_limit_exceeded_exception
| `ThrottlingException of throttling_exception
| `TrailAlreadyExistsException of trail_already_exists_exception
| `TrailNotProvidedException of trail_not_provided_exception
| `UnsupportedOperationException of unsupported_operation_exception ])
Stdlib.result
Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket.