#[non_exhaustive]
pub enum UpdateKeyGroupErrorKind {
InvalidArgument(InvalidArgument),
InvalidIfMatchVersion(InvalidIfMatchVersion),
KeyGroupAlreadyExists(KeyGroupAlreadyExists),
NoSuchResource(NoSuchResource),
PreconditionFailed(PreconditionFailed),
TooManyPublicKeysInKeyGroup(TooManyPublicKeysInKeyGroup),
Unhandled(Unhandled),
}
Expand description
Types of errors that can occur for the UpdateKeyGroup
operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidArgument(InvalidArgument)
An argument is invalid.
InvalidIfMatchVersion(InvalidIfMatchVersion)
The If-Match
version is missing or not valid.
KeyGroupAlreadyExists(KeyGroupAlreadyExists)
A key group with this name already exists. You must provide a unique name. To modify an existing key group, use UpdateKeyGroup
.
NoSuchResource(NoSuchResource)
A resource that was specified is not valid.
PreconditionFailed(PreconditionFailed)
The precondition in one or more of the request fields evaluated to false
.
TooManyPublicKeysInKeyGroup(TooManyPublicKeysInKeyGroup)
The number of public keys in this key group is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.
Unhandled(Unhandled)
An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
When logging an error from the SDK, it is recommended that you either wrap the error in
DisplayErrorContext
, use another
error reporter library that visits the error’s cause/source chain, or call
Error::source
for more details about the underlying cause.