Enum CreateDistributionError

Source
pub enum CreateDistributionError {
Show 44 variants AccessDenied(String), CNAMEAlreadyExists(String), DistributionAlreadyExists(String), IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(String), InconsistentQuantities(String), InvalidArgument(String), InvalidDefaultRootObject(String), InvalidErrorCode(String), InvalidForwardCookies(String), InvalidGeoRestrictionParameter(String), InvalidHeadersForS3Origin(String), InvalidLambdaFunctionAssociation(String), InvalidLocationCode(String), InvalidMinimumProtocolVersion(String), InvalidOrigin(String), InvalidOriginAccessIdentity(String), InvalidOriginKeepaliveTimeout(String), InvalidOriginReadTimeout(String), InvalidProtocolSettings(String), InvalidQueryStringParameters(String), InvalidRelativePath(String), InvalidRequiredProtocol(String), InvalidResponseCode(String), InvalidTTLOrder(String), InvalidViewerCertificate(String), InvalidWebACLId(String), MissingBody(String), NoSuchFieldLevelEncryptionConfig(String), NoSuchOrigin(String), TooManyCacheBehaviors(String), TooManyCertificates(String), TooManyCookieNamesInWhiteList(String), TooManyDistributionCNAMEs(String), TooManyDistributions(String), TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(String), TooManyDistributionsWithLambdaAssociations(String), TooManyHeadersInForwardedValues(String), TooManyLambdaFunctionAssociations(String), TooManyOriginCustomHeaders(String), TooManyOriginGroupsPerDistribution(String), TooManyOrigins(String), TooManyQueryStringParameters(String), TooManyTrustedSigners(String), TrustedSignerDoesNotExist(String),
}
Expand description

Errors returned by CreateDistribution

Variants§

§

AccessDenied(String)

Access denied.

§

CNAMEAlreadyExists(String)

The CNAME specified is already defined for CloudFront.

§

DistributionAlreadyExists(String)

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

§

IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior(String)

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

§

InconsistentQuantities(String)

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

§

InvalidArgument(String)

An argument is invalid.

§

InvalidDefaultRootObject(String)

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

§

InvalidErrorCode(String)

An invalid error code was specified.

§

InvalidForwardCookies(String)

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.

§

InvalidGeoRestrictionParameter(String)

The specified geo restriction parameter is not valid.

§

InvalidHeadersForS3Origin(String)

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

§

InvalidLambdaFunctionAssociation(String)

The specified Lambda function association is invalid.

§

InvalidLocationCode(String)

The location code specified is not valid.

§

InvalidMinimumProtocolVersion(String)

The minimum protocol version specified is not valid.

§

InvalidOrigin(String)

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

§

InvalidOriginAccessIdentity(String)

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

§

InvalidOriginKeepaliveTimeout(String)

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

§

InvalidOriginReadTimeout(String)

The read timeout specified for the origin is not valid.

§

InvalidProtocolSettings(String)

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

§

InvalidQueryStringParameters(String)

The query string parameters specified are not valid.

§

InvalidRelativePath(String)

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

§

InvalidRequiredProtocol(String)

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(String)

A response code is not valid.

§

InvalidTTLOrder(String)

The TTL order specified is not valid.

§

InvalidViewerCertificate(String)

A viewer certificate specified is not valid.

§

InvalidWebACLId(String)

A web ACL ID specified is not valid. To specify a web ACL created using the latest version of AWS 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 AWS WAF Classic, use the ACL ID, for example 473e64fd-f30b-4765-81a0-62ad96dd167a.

§

MissingBody(String)

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

§

NoSuchFieldLevelEncryptionConfig(String)

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

§

NoSuchOrigin(String)

No origin exists with the specified Origin Id.

§

TooManyCacheBehaviors(String)

You cannot create more cache behaviors for the distribution.

§

TooManyCertificates(String)

You cannot create anymore custom SSL/TLS certificates.

§

TooManyCookieNamesInWhiteList(String)

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

§

TooManyDistributionCNAMEs(String)

Your request contains more CNAMEs than are allowed per distribution.

§

TooManyDistributions(String)

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

§

TooManyDistributionsAssociatedToFieldLevelEncryptionConfig(String)

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

§

TooManyDistributionsWithLambdaAssociations(String)

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

§

TooManyHeadersInForwardedValues(String)

Your request contains too many headers in forwarded values.

§

TooManyLambdaFunctionAssociations(String)

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

§

TooManyOriginCustomHeaders(String)

Your request contains too many origin custom headers.

§

TooManyOriginGroupsPerDistribution(String)

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

§

TooManyOrigins(String)

You cannot create more origins for the distribution.

§

TooManyQueryStringParameters(String)

Your request contains too many query string parameters.

§

TooManyTrustedSigners(String)

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

§

TrustedSignerDoesNotExist(String)

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

Implementations§

Trait Implementations§

Source§

impl Debug for CreateDistributionError

Source§

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

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

impl Display for CreateDistributionError

Source§

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

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

impl Error for CreateDistributionError

1.30.0 · Source§

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

Returns 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 PartialEq for CreateDistributionError

Source§

fn eq(&self, other: &CreateDistributionError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for CreateDistributionError

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> 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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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>,

Source§

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>,

Source§

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