#[non_exhaustive]pub struct CreateStreamingDistributionError {
pub kind: CreateStreamingDistributionErrorKind,
/* private fields */
}
Expand description
Error type for the CreateStreamingDistribution
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: CreateStreamingDistributionErrorKind
Kind of error that occurred.
Implementations§
source§impl CreateStreamingDistributionError
impl CreateStreamingDistributionError
sourcepub fn new(kind: CreateStreamingDistributionErrorKind, meta: Error) -> Self
pub fn new(kind: CreateStreamingDistributionErrorKind, meta: Error) -> Self
Creates a new CreateStreamingDistributionError
.
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 CreateStreamingDistributionError::Unhandled
variant from any error type.
sourcepub fn generic(err: Error) -> Self
pub fn generic(err: Error) -> Self
Creates the CreateStreamingDistributionError::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_access_denied(&self) -> bool
pub fn is_access_denied(&self) -> bool
Returns true
if the error kind is CreateStreamingDistributionErrorKind::AccessDenied
.
sourcepub fn is_cname_already_exists(&self) -> bool
pub fn is_cname_already_exists(&self) -> bool
Returns true
if the error kind is CreateStreamingDistributionErrorKind::CnameAlreadyExists
.
sourcepub fn is_inconsistent_quantities(&self) -> bool
pub fn is_inconsistent_quantities(&self) -> bool
Returns true
if the error kind is CreateStreamingDistributionErrorKind::InconsistentQuantities
.
sourcepub fn is_invalid_argument(&self) -> bool
pub fn is_invalid_argument(&self) -> bool
Returns true
if the error kind is CreateStreamingDistributionErrorKind::InvalidArgument
.
sourcepub fn is_invalid_origin(&self) -> bool
pub fn is_invalid_origin(&self) -> bool
Returns true
if the error kind is CreateStreamingDistributionErrorKind::InvalidOrigin
.
sourcepub fn is_invalid_origin_access_control(&self) -> bool
pub fn is_invalid_origin_access_control(&self) -> bool
Returns true
if the error kind is CreateStreamingDistributionErrorKind::InvalidOriginAccessControl
.
sourcepub fn is_invalid_origin_access_identity(&self) -> bool
pub fn is_invalid_origin_access_identity(&self) -> bool
Returns true
if the error kind is CreateStreamingDistributionErrorKind::InvalidOriginAccessIdentity
.
sourcepub fn is_missing_body(&self) -> bool
pub fn is_missing_body(&self) -> bool
Returns true
if the error kind is CreateStreamingDistributionErrorKind::MissingBody
.
sourcepub fn is_streaming_distribution_already_exists(&self) -> bool
pub fn is_streaming_distribution_already_exists(&self) -> bool
Returns true
if the error kind is CreateStreamingDistributionErrorKind::StreamingDistributionAlreadyExists
.
sourcepub fn is_too_many_streaming_distribution_cnam_es(&self) -> bool
pub fn is_too_many_streaming_distribution_cnam_es(&self) -> bool
Returns true
if the error kind is CreateStreamingDistributionErrorKind::TooManyStreamingDistributionCnamEs
.
sourcepub fn is_too_many_streaming_distributions(&self) -> bool
pub fn is_too_many_streaming_distributions(&self) -> bool
Returns true
if the error kind is CreateStreamingDistributionErrorKind::TooManyStreamingDistributions
.
sourcepub fn is_too_many_trusted_signers(&self) -> bool
pub fn is_too_many_trusted_signers(&self) -> bool
Returns true
if the error kind is CreateStreamingDistributionErrorKind::TooManyTrustedSigners
.
sourcepub fn is_trusted_signer_does_not_exist(&self) -> bool
pub fn is_trusted_signer_does_not_exist(&self) -> bool
Returns true
if the error kind is CreateStreamingDistributionErrorKind::TrustedSignerDoesNotExist
.