#[non_exhaustive]
pub enum PutEventSelectorsErrorKind {
InsufficientDependencyServiceAccessPermissionException(InsufficientDependencyServiceAccessPermissionException),
InvalidEventSelectorsException(InvalidEventSelectorsException),
InvalidHomeRegionException(InvalidHomeRegionException),
InvalidTrailNameException(InvalidTrailNameException),
NotOrganizationMasterAccountException(NotOrganizationMasterAccountException),
OperationNotPermittedException(OperationNotPermittedException),
TrailNotFoundException(TrailNotFoundException),
UnsupportedOperationException(UnsupportedOperationException),
Unhandled(Box<dyn Error + Send + Sync + 'static>),
}
Expand description
Types of errors that can occur for the PutEventSelectors
operation.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
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.
InvalidEventSelectorsException(InvalidEventSelectorsException)
This exception is thrown when the PutEventSelectors
operation is called with a number of event selectors, advanced event selectors, or data resources that is not valid. The combination of event selectors or advanced event selectors and data resources is not valid. A trail can have up to 5 event selectors. If a trail uses advanced event selectors, a maximum of 500 total values for all conditions in all advanced event selectors is allowed. A trail is limited to 250 data resources. These data resources can be distributed across event selectors, but the overall total cannot exceed 250.
You can:
-
Specify a valid number of event selectors (1 to 5) for a trail.
-
Specify a valid number of data resources (1 to 250) for an event selector. The limit of number of resources on an individual event selector is configurable up to 250. However, this upper limit is allowed only if the total number of data resources does not exceed 250 across all event selectors for a trail.
-
Specify up to 500 values for all conditions in all advanced event selectors for a trail.
-
Specify a valid value for a parameter. For example, specifying the
ReadWriteType
parameter with a value ofread-only
is not valid.
InvalidHomeRegionException(InvalidHomeRegionException)
This exception is thrown when an operation is called on a trail from a region other than the region in which the trail was created.
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
andmy--namespace
are not valid. -
Not be in IP address format (for example, 192.168.5.4)
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.
TrailNotFoundException(TrailNotFoundException)
This exception is thrown when the trail with the given name is not found.
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
Auto Trait Implementations
impl !RefUnwindSafe for PutEventSelectorsErrorKind
impl Send for PutEventSelectorsErrorKind
impl Sync for PutEventSelectorsErrorKind
impl Unpin for PutEventSelectorsErrorKind
impl !UnwindSafe for PutEventSelectorsErrorKind
Blanket Implementations
Mutably borrows from an owned value. Read more
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