#[non_exhaustive]
pub enum CreateDistributionWithTagsError {
Show 67 variants AccessDenied(AccessDenied), CnameAlreadyExists(CnameAlreadyExists), ContinuousDeploymentPolicyInUse(ContinuousDeploymentPolicyInUse), DistributionAlreadyExists(DistributionAlreadyExists), IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior), IllegalOriginAccessConfiguration(IllegalOriginAccessConfiguration), InconsistentQuantities(InconsistentQuantities), InvalidArgument(InvalidArgument), InvalidDefaultRootObject(InvalidDefaultRootObject), InvalidDomainNameForOriginAccessControl(InvalidDomainNameForOriginAccessControl), InvalidErrorCode(InvalidErrorCode), InvalidForwardCookies(InvalidForwardCookies), InvalidFunctionAssociation(InvalidFunctionAssociation), InvalidGeoRestrictionParameter(InvalidGeoRestrictionParameter), InvalidHeadersForS3Origin(InvalidHeadersForS3Origin), InvalidLambdaFunctionAssociation(InvalidLambdaFunctionAssociation), InvalidLocationCode(InvalidLocationCode), InvalidMinimumProtocolVersion(InvalidMinimumProtocolVersion), InvalidOrigin(InvalidOrigin), InvalidOriginAccessControl(InvalidOriginAccessControl), InvalidOriginAccessIdentity(InvalidOriginAccessIdentity), InvalidOriginKeepaliveTimeout(InvalidOriginKeepaliveTimeout), InvalidOriginReadTimeout(InvalidOriginReadTimeout), InvalidProtocolSettings(InvalidProtocolSettings), InvalidQueryStringParameters(InvalidQueryStringParameters), InvalidRelativePath(InvalidRelativePath), InvalidRequiredProtocol(InvalidRequiredProtocol), InvalidResponseCode(InvalidResponseCode), InvalidTagging(InvalidTagging), InvalidTtlOrder(InvalidTtlOrder), InvalidViewerCertificate(InvalidViewerCertificate), InvalidWebAclId(InvalidWebAclId), MissingBody(MissingBody), NoSuchCachePolicy(NoSuchCachePolicy), NoSuchContinuousDeploymentPolicy(NoSuchContinuousDeploymentPolicy), NoSuchFieldLevelEncryptionConfig(NoSuchFieldLevelEncryptionConfig), NoSuchOrigin(NoSuchOrigin), NoSuchOriginRequestPolicy(NoSuchOriginRequestPolicy), NoSuchRealtimeLogConfig(NoSuchRealtimeLogConfig), NoSuchResponseHeadersPolicy(NoSuchResponseHeadersPolicy), RealtimeLogConfigOwnerMismatch(RealtimeLogConfigOwnerMismatch), TooManyCacheBehaviors(TooManyCacheBehaviors), TooManyCertificates(TooManyCertificates), TooManyCookieNamesInWhiteList(TooManyCookieNamesInWhiteList), TooManyDistributionCnamEs(TooManyDistributionCnamEs), TooManyDistributions(TooManyDistributions), TooManyDistributionsAssociatedToCachePolicy(TooManyDistributionsAssociatedToCachePolicy), TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(TooManyDistributionsAssociatedToFieldLevelEncryptionConfig), TooManyDistributionsAssociatedToKeyGroup(TooManyDistributionsAssociatedToKeyGroup), TooManyDistributionsAssociatedToOriginAccessControl(TooManyDistributionsAssociatedToOriginAccessControl), TooManyDistributionsAssociatedToOriginRequestPolicy(TooManyDistributionsAssociatedToOriginRequestPolicy), TooManyDistributionsAssociatedToResponseHeadersPolicy(TooManyDistributionsAssociatedToResponseHeadersPolicy), TooManyDistributionsWithFunctionAssociations(TooManyDistributionsWithFunctionAssociations), TooManyDistributionsWithLambdaAssociations(TooManyDistributionsWithLambdaAssociations), TooManyDistributionsWithSingleFunctionArn(TooManyDistributionsWithSingleFunctionArn), TooManyFunctionAssociations(TooManyFunctionAssociations), TooManyHeadersInForwardedValues(TooManyHeadersInForwardedValues), TooManyKeyGroupsAssociatedToDistribution(TooManyKeyGroupsAssociatedToDistribution), TooManyLambdaFunctionAssociations(TooManyLambdaFunctionAssociations), TooManyOriginCustomHeaders(TooManyOriginCustomHeaders), TooManyOriginGroupsPerDistribution(TooManyOriginGroupsPerDistribution), TooManyOrigins(TooManyOrigins), TooManyQueryStringParameters(TooManyQueryStringParameters), TooManyTrustedSigners(TooManyTrustedSigners), TrustedKeyGroupDoesNotExist(TrustedKeyGroupDoesNotExist), TrustedSignerDoesNotExist(TrustedSignerDoesNotExist), Unhandled(Unhandled),
}
Expand description

Error type for the CreateDistributionWithTagsError 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.
§

AccessDenied(AccessDenied)

Access denied.

§

CnameAlreadyExists(CnameAlreadyExists)

The CNAME specified is already defined for CloudFront.

§

ContinuousDeploymentPolicyInUse(ContinuousDeploymentPolicyInUse)

You cannot delete a continuous deployment policy that is associated with a primary distribution.

§

DistributionAlreadyExists(DistributionAlreadyExists)

The caller reference you attempted to create the distribution with is associated with another distribution.

§

IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior)

The specified configuration for field-level encryption can't be associated with the specified cache behavior.

§

IllegalOriginAccessConfiguration(IllegalOriginAccessConfiguration)

An origin cannot contain both an origin access control (OAC) and an origin access identity (OAI).

§

InconsistentQuantities(InconsistentQuantities)

The value of Quantity and the size of Items don't match.

§

InvalidArgument(InvalidArgument)

An argument is invalid.

§

InvalidDefaultRootObject(InvalidDefaultRootObject)

The default root object file name is too big or contains an invalid character.

§

InvalidDomainNameForOriginAccessControl(InvalidDomainNameForOriginAccessControl)

An origin access control is associated with an origin whose domain name is not supported.

§

InvalidErrorCode(InvalidErrorCode)

An invalid error code was specified.

§

InvalidForwardCookies(InvalidForwardCookies)

Your request contains forward cookies option which doesn't match with the expectation for the whitelisted list of cookie names. Either list of cookie names has been specified when not allowed or list of cookie names is missing when expected.

§

InvalidFunctionAssociation(InvalidFunctionAssociation)

A CloudFront function association is invalid.

§

InvalidGeoRestrictionParameter(InvalidGeoRestrictionParameter)

The specified geo restriction parameter is not valid.

§

InvalidHeadersForS3Origin(InvalidHeadersForS3Origin)

The headers specified are not valid for an Amazon S3 origin.

§

InvalidLambdaFunctionAssociation(InvalidLambdaFunctionAssociation)

The specified Lambda@Edge function association is invalid.

§

InvalidLocationCode(InvalidLocationCode)

The location code specified is not valid.

§

InvalidMinimumProtocolVersion(InvalidMinimumProtocolVersion)

The minimum protocol version specified is not valid.

§

InvalidOrigin(InvalidOrigin)

The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.

§

InvalidOriginAccessControl(InvalidOriginAccessControl)

The origin access control is not valid.

§

InvalidOriginAccessIdentity(InvalidOriginAccessIdentity)

The origin access identity is not valid or doesn't exist.

§

InvalidOriginKeepaliveTimeout(InvalidOriginKeepaliveTimeout)

The keep alive timeout specified for the origin is not valid.

§

InvalidOriginReadTimeout(InvalidOriginReadTimeout)

The read timeout specified for the origin is not valid.

§

InvalidProtocolSettings(InvalidProtocolSettings)

You cannot specify SSLv3 as the minimum protocol version if you only want to support only clients that support Server Name Indication (SNI).

§

InvalidQueryStringParameters(InvalidQueryStringParameters)

The query string parameters specified are not valid.

§

InvalidRelativePath(InvalidRelativePath)

The relative path is too big, is not URL-encoded, or does not begin with a slash (/).

§

InvalidRequiredProtocol(InvalidRequiredProtocol)

This operation requires the HTTPS protocol. Ensure that you specify the HTTPS protocol in your request, or omit the RequiredProtocols element from your distribution configuration.

§

InvalidResponseCode(InvalidResponseCode)

A response code is not valid.

§

InvalidTagging(InvalidTagging)

The tagging specified is not valid.

§

InvalidTtlOrder(InvalidTtlOrder)

The TTL order specified is not valid.

§

InvalidViewerCertificate(InvalidViewerCertificate)

A viewer certificate specified is not valid.

§

InvalidWebAclId(InvalidWebAclId)

A web ACL ID specified is not valid. To specify a web ACL created using the latest version of WAF, use the ACL ARN, for example arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a. To specify a web ACL created using WAF Classic, use the ACL ID, for example 473e64fd-f30b-4765-81a0-62ad96dd167a.

§

MissingBody(MissingBody)

This operation requires a body. Ensure that the body is present and the Content-Type header is set.

§

NoSuchCachePolicy(NoSuchCachePolicy)

The cache policy does not exist.

§

NoSuchContinuousDeploymentPolicy(NoSuchContinuousDeploymentPolicy)

The continuous deployment policy doesn't exist.

§

NoSuchFieldLevelEncryptionConfig(NoSuchFieldLevelEncryptionConfig)

The specified configuration for field-level encryption doesn't exist.

§

NoSuchOrigin(NoSuchOrigin)

No origin exists with the specified Origin Id.

§

NoSuchOriginRequestPolicy(NoSuchOriginRequestPolicy)

The origin request policy does not exist.

§

NoSuchRealtimeLogConfig(NoSuchRealtimeLogConfig)

The real-time log configuration does not exist.

§

NoSuchResponseHeadersPolicy(NoSuchResponseHeadersPolicy)

The response headers policy does not exist.

§

RealtimeLogConfigOwnerMismatch(RealtimeLogConfigOwnerMismatch)

The specified real-time log configuration belongs to a different Amazon Web Services account.

§

TooManyCacheBehaviors(TooManyCacheBehaviors)

You cannot create more cache behaviors for the distribution.

§

TooManyCertificates(TooManyCertificates)

You cannot create anymore custom SSL/TLS certificates.

§

TooManyCookieNamesInWhiteList(TooManyCookieNamesInWhiteList)

Your request contains more cookie names in the whitelist than are allowed per cache behavior.

§

TooManyDistributionCnamEs(TooManyDistributionCnamEs)

Your request contains more CNAMEs than are allowed per distribution.

§

TooManyDistributions(TooManyDistributions)

Processing your request would cause you to exceed the maximum number of distributions allowed.

§

TooManyDistributionsAssociatedToCachePolicy(TooManyDistributionsAssociatedToCachePolicy)

The maximum number of distributions have been associated with the specified cache policy. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

§

TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(TooManyDistributionsAssociatedToFieldLevelEncryptionConfig)

The maximum number of distributions have been associated with the specified configuration for field-level encryption.

§

TooManyDistributionsAssociatedToKeyGroup(TooManyDistributionsAssociatedToKeyGroup)

The number of distributions that reference this key group is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

§

TooManyDistributionsAssociatedToOriginAccessControl(TooManyDistributionsAssociatedToOriginAccessControl)

The maximum number of distributions have been associated with the specified origin access control.

For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

§

TooManyDistributionsAssociatedToOriginRequestPolicy(TooManyDistributionsAssociatedToOriginRequestPolicy)

The maximum number of distributions have been associated with the specified origin request policy. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

§

TooManyDistributionsAssociatedToResponseHeadersPolicy(TooManyDistributionsAssociatedToResponseHeadersPolicy)

The maximum number of distributions have been associated with the specified response headers policy.

For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

§

TooManyDistributionsWithFunctionAssociations(TooManyDistributionsWithFunctionAssociations)

You have reached the maximum number of distributions that are associated with a CloudFront function. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

§

TooManyDistributionsWithLambdaAssociations(TooManyDistributionsWithLambdaAssociations)

Processing your request would cause the maximum number of distributions with Lambda@Edge function associations per owner to be exceeded.

§

TooManyDistributionsWithSingleFunctionArn(TooManyDistributionsWithSingleFunctionArn)

The maximum number of distributions have been associated with the specified Lambda@Edge function.

§

TooManyFunctionAssociations(TooManyFunctionAssociations)

You have reached the maximum number of CloudFront function associations for this distribution. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

§

TooManyHeadersInForwardedValues(TooManyHeadersInForwardedValues)

Your request contains too many headers in forwarded values.

§

TooManyKeyGroupsAssociatedToDistribution(TooManyKeyGroupsAssociatedToDistribution)

The number of key groups referenced by this distribution is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide.

§

TooManyLambdaFunctionAssociations(TooManyLambdaFunctionAssociations)

Your request contains more Lambda@Edge function associations than are allowed per distribution.

§

TooManyOriginCustomHeaders(TooManyOriginCustomHeaders)

Your request contains too many origin custom headers.

§

TooManyOriginGroupsPerDistribution(TooManyOriginGroupsPerDistribution)

Processing your request would cause you to exceed the maximum number of origin groups allowed.

§

TooManyOrigins(TooManyOrigins)

You cannot create more origins for the distribution.

§

TooManyQueryStringParameters(TooManyQueryStringParameters)

Your request contains too many query string parameters.

§

TooManyTrustedSigners(TooManyTrustedSigners)

Your request contains more trusted signers than are allowed per distribution.

§

TrustedKeyGroupDoesNotExist(TrustedKeyGroupDoesNotExist)

The specified key group does not exist.

§

TrustedSignerDoesNotExist(TrustedSignerDoesNotExist)

One or more of your trusted signers don't exist.

§

Unhandled(Unhandled)

👎Deprecated: Matching Unhandled directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code():    err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ } See ProvideErrorMetadata for what information is available for the error.

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

Implementations§

source§

impl CreateDistributionWithTagsError

source

pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self

Creates the CreateDistributionWithTagsError::Unhandled variant from any error type.

source

pub fn generic(err: ErrorMetadata) -> Self

Creates the CreateDistributionWithTagsError::Unhandled variant from an ErrorMetadata.

source

pub fn meta(&self) -> &ErrorMetadata

Returns error metadata, which includes the error code, message, request ID, and potentially additional information.

source

pub fn is_access_denied(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::AccessDenied.

source

pub fn is_cname_already_exists(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::CnameAlreadyExists.

source

pub fn is_continuous_deployment_policy_in_use(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::ContinuousDeploymentPolicyInUse.

source

pub fn is_distribution_already_exists(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::DistributionAlreadyExists.

source

pub fn is_illegal_field_level_encryption_config_association_with_cache_behavior( &self ) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior.

source

pub fn is_illegal_origin_access_configuration(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::IllegalOriginAccessConfiguration.

source

pub fn is_inconsistent_quantities(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InconsistentQuantities.

source

pub fn is_invalid_argument(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidArgument.

source

pub fn is_invalid_default_root_object(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidDefaultRootObject.

source

pub fn is_invalid_domain_name_for_origin_access_control(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidDomainNameForOriginAccessControl.

source

pub fn is_invalid_error_code(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidErrorCode.

source

pub fn is_invalid_forward_cookies(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidForwardCookies.

source

pub fn is_invalid_function_association(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidFunctionAssociation.

source

pub fn is_invalid_geo_restriction_parameter(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidGeoRestrictionParameter.

source

pub fn is_invalid_headers_for_s3_origin(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidHeadersForS3Origin.

source

pub fn is_invalid_lambda_function_association(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidLambdaFunctionAssociation.

source

pub fn is_invalid_location_code(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidLocationCode.

source

pub fn is_invalid_minimum_protocol_version(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidMinimumProtocolVersion.

source

pub fn is_invalid_origin(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidOrigin.

source

pub fn is_invalid_origin_access_control(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidOriginAccessControl.

source

pub fn is_invalid_origin_access_identity(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidOriginAccessIdentity.

source

pub fn is_invalid_origin_keepalive_timeout(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidOriginKeepaliveTimeout.

source

pub fn is_invalid_origin_read_timeout(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidOriginReadTimeout.

source

pub fn is_invalid_protocol_settings(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidProtocolSettings.

source

pub fn is_invalid_query_string_parameters(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidQueryStringParameters.

source

pub fn is_invalid_relative_path(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidRelativePath.

source

pub fn is_invalid_required_protocol(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidRequiredProtocol.

source

pub fn is_invalid_response_code(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidResponseCode.

source

pub fn is_invalid_tagging(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidTagging.

source

pub fn is_invalid_ttl_order(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidTtlOrder.

source

pub fn is_invalid_viewer_certificate(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidViewerCertificate.

source

pub fn is_invalid_web_acl_id(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::InvalidWebAclId.

source

pub fn is_missing_body(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::MissingBody.

source

pub fn is_no_such_cache_policy(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::NoSuchCachePolicy.

source

pub fn is_no_such_continuous_deployment_policy(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::NoSuchContinuousDeploymentPolicy.

source

pub fn is_no_such_field_level_encryption_config(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::NoSuchFieldLevelEncryptionConfig.

source

pub fn is_no_such_origin(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::NoSuchOrigin.

source

pub fn is_no_such_origin_request_policy(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::NoSuchOriginRequestPolicy.

source

pub fn is_no_such_realtime_log_config(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::NoSuchRealtimeLogConfig.

source

pub fn is_no_such_response_headers_policy(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::NoSuchResponseHeadersPolicy.

source

pub fn is_realtime_log_config_owner_mismatch(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::RealtimeLogConfigOwnerMismatch.

source

pub fn is_too_many_cache_behaviors(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TooManyCacheBehaviors.

source

pub fn is_too_many_certificates(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TooManyCertificates.

Returns true if the error kind is CreateDistributionWithTagsError::TooManyCookieNamesInWhiteList.

source

pub fn is_too_many_distribution_cnam_es(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TooManyDistributionCnamEs.

source

pub fn is_too_many_distributions(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TooManyDistributions.

source

pub fn is_too_many_distributions_associated_to_cache_policy(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TooManyDistributionsAssociatedToCachePolicy.

source

pub fn is_too_many_distributions_associated_to_field_level_encryption_config( &self ) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TooManyDistributionsAssociatedToFieldLevelEncryptionConfig.

source

pub fn is_too_many_distributions_associated_to_key_group(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TooManyDistributionsAssociatedToKeyGroup.

source

pub fn is_too_many_distributions_associated_to_origin_access_control( &self ) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TooManyDistributionsAssociatedToOriginAccessControl.

source

pub fn is_too_many_distributions_associated_to_origin_request_policy( &self ) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TooManyDistributionsAssociatedToOriginRequestPolicy.

source

pub fn is_too_many_distributions_associated_to_response_headers_policy( &self ) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TooManyDistributionsAssociatedToResponseHeadersPolicy.

source

pub fn is_too_many_distributions_with_function_associations(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TooManyDistributionsWithFunctionAssociations.

source

pub fn is_too_many_distributions_with_lambda_associations(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TooManyDistributionsWithLambdaAssociations.

source

pub fn is_too_many_distributions_with_single_function_arn(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TooManyDistributionsWithSingleFunctionArn.

source

pub fn is_too_many_function_associations(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TooManyFunctionAssociations.

source

pub fn is_too_many_headers_in_forwarded_values(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TooManyHeadersInForwardedValues.

source

pub fn is_too_many_key_groups_associated_to_distribution(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TooManyKeyGroupsAssociatedToDistribution.

source

pub fn is_too_many_lambda_function_associations(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TooManyLambdaFunctionAssociations.

source

pub fn is_too_many_origin_custom_headers(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TooManyOriginCustomHeaders.

source

pub fn is_too_many_origin_groups_per_distribution(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TooManyOriginGroupsPerDistribution.

source

pub fn is_too_many_origins(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TooManyOrigins.

source

pub fn is_too_many_query_string_parameters(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TooManyQueryStringParameters.

source

pub fn is_too_many_trusted_signers(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TooManyTrustedSigners.

source

pub fn is_trusted_key_group_does_not_exist(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TrustedKeyGroupDoesNotExist.

source

pub fn is_trusted_signer_does_not_exist(&self) -> bool

Returns true if the error kind is CreateDistributionWithTagsError::TrustedSignerDoesNotExist.

Trait Implementations§

source§

impl CreateUnhandledError for CreateDistributionWithTagsError

source§

fn create_unhandled_error( source: Box<dyn Error + Send + Sync + 'static>, meta: Option<ErrorMetadata> ) -> Self

Creates an unhandled error variant with the given source and error metadata.
source§

impl Debug for CreateDistributionWithTagsError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for CreateDistributionWithTagsError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for CreateDistributionWithTagsError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<CreateDistributionWithTagsError> for Error

source§

fn from(err: CreateDistributionWithTagsError) -> Self

Converts to this type from the input type.
source§

impl ProvideErrorKind for CreateDistributionWithTagsError

source§

fn code(&self) -> Option<&str>

Returns the code for this error if one exists
source§

fn retryable_error_kind(&self) -> Option<ErrorKind>

Returns the ErrorKind when the error is modeled as retryable Read more
source§

impl ProvideErrorMetadata for CreateDistributionWithTagsError

source§

fn meta(&self) -> &ErrorMetadata

Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
source§

fn code(&self) -> Option<&str>

Returns the error code if it’s available.
source§

fn message(&self) -> Option<&str>

Returns the error message, if there is one.
source§

impl RequestId for CreateDistributionWithTagsError

source§

fn request_id(&self) -> Option<&str>

Returns the request ID, or None if the service could not be reached.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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