#[non_exhaustive]pub struct CreateFieldLevelEncryptionProfileError {
pub kind: CreateFieldLevelEncryptionProfileErrorKind,
/* private fields */
}
Expand description
Error type for the CreateFieldLevelEncryptionProfile
operation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.kind: CreateFieldLevelEncryptionProfileErrorKind
Kind of error that occurred.
Implementations§
source§impl CreateFieldLevelEncryptionProfileError
impl CreateFieldLevelEncryptionProfileError
sourcepub fn new(kind: CreateFieldLevelEncryptionProfileErrorKind, meta: Error) -> Self
pub fn new(kind: CreateFieldLevelEncryptionProfileErrorKind, meta: Error) -> Self
Creates a new CreateFieldLevelEncryptionProfileError
.
sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the CreateFieldLevelEncryptionProfileError::Unhandled
variant from any error type.
sourcepub fn generic(err: Error) -> Self
pub fn generic(err: Error) -> Self
Creates the CreateFieldLevelEncryptionProfileError::Unhandled
variant from a aws_smithy_types::Error
.
sourcepub fn meta(&self) -> &Error
pub fn meta(&self) -> &Error
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn request_id(&self) -> Option<&str>
pub fn request_id(&self) -> Option<&str>
Returns the request ID if it’s available.
sourcepub fn is_field_level_encryption_profile_already_exists(&self) -> bool
pub fn is_field_level_encryption_profile_already_exists(&self) -> bool
Returns true
if the error kind is CreateFieldLevelEncryptionProfileErrorKind::FieldLevelEncryptionProfileAlreadyExists
.
sourcepub fn is_field_level_encryption_profile_size_exceeded(&self) -> bool
pub fn is_field_level_encryption_profile_size_exceeded(&self) -> bool
Returns true
if the error kind is CreateFieldLevelEncryptionProfileErrorKind::FieldLevelEncryptionProfileSizeExceeded
.
sourcepub fn is_inconsistent_quantities(&self) -> bool
pub fn is_inconsistent_quantities(&self) -> bool
Returns true
if the error kind is CreateFieldLevelEncryptionProfileErrorKind::InconsistentQuantities
.
sourcepub fn is_invalid_argument(&self) -> bool
pub fn is_invalid_argument(&self) -> bool
Returns true
if the error kind is CreateFieldLevelEncryptionProfileErrorKind::InvalidArgument
.
sourcepub fn is_no_such_public_key(&self) -> bool
pub fn is_no_such_public_key(&self) -> bool
Returns true
if the error kind is CreateFieldLevelEncryptionProfileErrorKind::NoSuchPublicKey
.
sourcepub fn is_too_many_field_level_encryption_encryption_entities(&self) -> bool
pub fn is_too_many_field_level_encryption_encryption_entities(&self) -> bool
Returns true
if the error kind is CreateFieldLevelEncryptionProfileErrorKind::TooManyFieldLevelEncryptionEncryptionEntities
.
sourcepub fn is_too_many_field_level_encryption_field_patterns(&self) -> bool
pub fn is_too_many_field_level_encryption_field_patterns(&self) -> bool
Returns true
if the error kind is CreateFieldLevelEncryptionProfileErrorKind::TooManyFieldLevelEncryptionFieldPatterns
.
sourcepub fn is_too_many_field_level_encryption_profiles(&self) -> bool
pub fn is_too_many_field_level_encryption_profiles(&self) -> bool
Returns true
if the error kind is CreateFieldLevelEncryptionProfileErrorKind::TooManyFieldLevelEncryptionProfiles
.