#[non_exhaustive]
pub enum CreateTrailErrorKind {
Show 30 variants CloudTrailAccessNotEnabledException(CloudTrailAccessNotEnabledException), CloudTrailInvalidClientTokenIdException(CloudTrailInvalidClientTokenIdException), CloudWatchLogsDeliveryUnavailableException(CloudWatchLogsDeliveryUnavailableException), ConflictException(ConflictException), InsufficientDependencyServiceAccessPermissionException(InsufficientDependencyServiceAccessPermissionException), InsufficientEncryptionPolicyException(InsufficientEncryptionPolicyException), InsufficientS3BucketPolicyException(InsufficientS3BucketPolicyException), InsufficientSnsTopicPolicyException(InsufficientSnsTopicPolicyException), InvalidCloudWatchLogsLogGroupArnException(InvalidCloudWatchLogsLogGroupArnException), InvalidCloudWatchLogsRoleArnException(InvalidCloudWatchLogsRoleArnException), InvalidKmsKeyIdException(InvalidKmsKeyIdException), InvalidParameterCombinationException(InvalidParameterCombinationException), InvalidS3BucketNameException(InvalidS3BucketNameException), InvalidS3PrefixException(InvalidS3PrefixException), InvalidSnsTopicNameException(InvalidSnsTopicNameException), InvalidTagParameterException(InvalidTagParameterException), InvalidTrailNameException(InvalidTrailNameException), KmsException(KmsException), KmsKeyDisabledException(KmsKeyDisabledException), KmsKeyNotFoundException(KmsKeyNotFoundException), MaximumNumberOfTrailsExceededException(MaximumNumberOfTrailsExceededException), NotOrganizationMasterAccountException(NotOrganizationMasterAccountException), OperationNotPermittedException(OperationNotPermittedException), OrganizationNotInAllFeaturesModeException(OrganizationNotInAllFeaturesModeException), OrganizationsNotInUseException(OrganizationsNotInUseException), S3BucketDoesNotExistException(S3BucketDoesNotExistException), TrailAlreadyExistsException(TrailAlreadyExistsException), TrailNotProvidedException(TrailNotProvidedException), UnsupportedOperationException(UnsupportedOperationException), Unhandled(Box<dyn Error + Send + Sync + 'static>),
}
Expand description

Types of errors that can occur for the CreateTrail operation.

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

CloudTrailAccessNotEnabledException(CloudTrailAccessNotEnabledException)

This exception is thrown when trusted access has not been enabled between CloudTrail and Organizations. For more information, see Enabling Trusted Access with Other Amazon Web Services Services and Prepare For Creating a Trail For Your Organization.

CloudTrailInvalidClientTokenIdException(CloudTrailInvalidClientTokenIdException)

This exception is thrown when a call results in the InvalidClientTokenId error code. This can occur when you are creating or updating a trail to send notifications to an Amazon SNS topic that is in a suspended Amazon Web Services account.

CloudWatchLogsDeliveryUnavailableException(CloudWatchLogsDeliveryUnavailableException)

Cannot set a CloudWatch Logs delivery for this region.

ConflictException(ConflictException)

This exception is thrown when the specified resource is not ready for an operation. This can occur when you try to run an operation on a trail before CloudTrail has time to fully load the trail. If this exception occurs, wait a few minutes, and then try the operation again.

InsufficientDependencyServiceAccessPermissionException(InsufficientDependencyServiceAccessPermissionException)

This exception is thrown when the IAM user or role that is used to create the organization trail is lacking one or more required permissions for creating an organization trail in a required service. For more information, see Prepare For Creating a Trail For Your Organization.

InsufficientEncryptionPolicyException(InsufficientEncryptionPolicyException)

This exception is thrown when the policy on the S3 bucket or KMS key is not sufficient.

InsufficientS3BucketPolicyException(InsufficientS3BucketPolicyException)

This exception is thrown when the policy on the S3 bucket is not sufficient.

InsufficientSnsTopicPolicyException(InsufficientSnsTopicPolicyException)

This exception is thrown when the policy on the Amazon SNS topic is not sufficient.

InvalidCloudWatchLogsLogGroupArnException(InvalidCloudWatchLogsLogGroupArnException)

This exception is thrown when the provided CloudWatch Logs log group is not valid.

InvalidCloudWatchLogsRoleArnException(InvalidCloudWatchLogsRoleArnException)

This exception is thrown when the provided role is not valid.

InvalidKmsKeyIdException(InvalidKmsKeyIdException)

This exception is thrown when the KMS key ARN is not valid.

InvalidParameterCombinationException(InvalidParameterCombinationException)

This exception is thrown when the combination of parameters provided is not valid.

InvalidS3BucketNameException(InvalidS3BucketNameException)

This exception is thrown when the provided S3 bucket name is not valid.

InvalidS3PrefixException(InvalidS3PrefixException)

This exception is thrown when the provided S3 prefix is not valid.

InvalidSnsTopicNameException(InvalidSnsTopicNameException)

This exception is thrown when the provided SNS topic name is not valid.

InvalidTagParameterException(InvalidTagParameterException)

This exception is thrown when the specified tag key or values are not valid. It can also occur if there are duplicate tags or too many tags on the resource.

InvalidTrailNameException(InvalidTrailNameException)

This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements:

  • Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)

  • Start with a letter or number, and end with a letter or number

  • Be between 3 and 128 characters

  • Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are not valid.

  • Not be in IP address format (for example, 192.168.5.4)

KmsException(KmsException)

This exception is thrown when there is an issue with the specified KMS key and the trail can’t be updated.

KmsKeyDisabledException(KmsKeyDisabledException)

This exception is no longer in use.

KmsKeyNotFoundException(KmsKeyNotFoundException)

This exception is thrown when the KMS key does not exist, when the S3 bucket and the KMS key are not in the same region, or when the KMS key associated with the Amazon SNS topic either does not exist or is not in the same region.

MaximumNumberOfTrailsExceededException(MaximumNumberOfTrailsExceededException)

This exception is thrown when the maximum number of trails is reached.

NotOrganizationMasterAccountException(NotOrganizationMasterAccountException)

This exception is thrown when the Amazon Web Services account making the request to create or update an organization trail is not the management account for an organization in Organizations. For more information, see Prepare For Creating a Trail For Your Organization.

OperationNotPermittedException(OperationNotPermittedException)

This exception is thrown when the requested operation is not permitted.

OrganizationNotInAllFeaturesModeException(OrganizationNotInAllFeaturesModeException)

This exception is thrown when Organizations is not configured to support all features. All features must be enabled in Organizations to support creating an organization trail. For more information, see Prepare For Creating a Trail For Your Organization.

OrganizationsNotInUseException(OrganizationsNotInUseException)

This exception is thrown when the request is made from an Amazon Web Services account that is not a member of an organization. To make this request, sign in using the credentials of an account that belongs to an organization.

S3BucketDoesNotExistException(S3BucketDoesNotExistException)

This exception is thrown when the specified S3 bucket does not exist.

TrailAlreadyExistsException(TrailAlreadyExistsException)

This exception is thrown when the specified trail already exists.

TrailNotProvidedException(TrailNotProvidedException)

This exception is no longer in use.

UnsupportedOperationException(UnsupportedOperationException)

This exception is thrown when the requested operation is not supported.

Unhandled(Box<dyn Error + Send + Sync + 'static>)

An unexpected error, e.g. invalid JSON returned by the service or an unknown error code

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more