Struct aws_sdk_cloudfront::model::AliasIcpRecordal
source · [−]#[non_exhaustive]pub struct AliasIcpRecordal {
pub cname: Option<String>,
pub icp_recordal_status: Option<IcpRecordalStatus>,
}
Expand description
Amazon Web Services services in China customers must file for an Internet Content Provider (ICP) recordal if they want to serve content publicly on an alternate domain name, also known as a CNAME, that they've added to CloudFront. AliasICPRecordal provides the ICP recordal status for CNAMEs associated with distributions. The status is returned in the CloudFront response; you can't configure it yourself.
For more information about ICP recordals, see Signup, Accounts, and Credentials in Getting Started with Amazon Web Services services in China.
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.cname: Option<String>
A domain name associated with a distribution.
icp_recordal_status: Option<IcpRecordalStatus>
The Internet Content Provider (ICP) recordal status for a CNAME. The ICPRecordalStatus is set to APPROVED for all CNAMEs (aliases) in regions outside of China.
The status values returned are the following:
-
APPROVED indicates that the associated CNAME has a valid ICP recordal number. Multiple CNAMEs can be associated with a distribution, and CNAMEs can correspond to different ICP recordals. To be marked as APPROVED, that is, valid to use with China region, a CNAME must have one ICP recordal number associated with it.
-
SUSPENDED indicates that the associated CNAME does not have a valid ICP recordal number.
-
PENDING indicates that CloudFront can't determine the ICP recordal status of the CNAME associated with the distribution because there was an error in trying to determine the status. You can try again to see if the error is resolved in which case CloudFront returns an APPROVED or SUSPENDED status.
Implementations
sourceimpl AliasIcpRecordal
impl AliasIcpRecordal
sourcepub fn icp_recordal_status(&self) -> Option<&IcpRecordalStatus>
pub fn icp_recordal_status(&self) -> Option<&IcpRecordalStatus>
The Internet Content Provider (ICP) recordal status for a CNAME. The ICPRecordalStatus is set to APPROVED for all CNAMEs (aliases) in regions outside of China.
The status values returned are the following:
-
APPROVED indicates that the associated CNAME has a valid ICP recordal number. Multiple CNAMEs can be associated with a distribution, and CNAMEs can correspond to different ICP recordals. To be marked as APPROVED, that is, valid to use with China region, a CNAME must have one ICP recordal number associated with it.
-
SUSPENDED indicates that the associated CNAME does not have a valid ICP recordal number.
-
PENDING indicates that CloudFront can't determine the ICP recordal status of the CNAME associated with the distribution because there was an error in trying to determine the status. You can try again to see if the error is resolved in which case CloudFront returns an APPROVED or SUSPENDED status.
sourceimpl AliasIcpRecordal
impl AliasIcpRecordal
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AliasIcpRecordal
Trait Implementations
sourceimpl Clone for AliasIcpRecordal
impl Clone for AliasIcpRecordal
sourcefn clone(&self) -> AliasIcpRecordal
fn clone(&self) -> AliasIcpRecordal
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AliasIcpRecordal
impl Debug for AliasIcpRecordal
sourceimpl PartialEq<AliasIcpRecordal> for AliasIcpRecordal
impl PartialEq<AliasIcpRecordal> for AliasIcpRecordal
sourcefn eq(&self, other: &AliasIcpRecordal) -> bool
fn eq(&self, other: &AliasIcpRecordal) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AliasIcpRecordal) -> bool
fn ne(&self, other: &AliasIcpRecordal) -> bool
This method tests for !=
.
impl StructuralPartialEq for AliasIcpRecordal
Auto Trait Implementations
impl RefUnwindSafe for AliasIcpRecordal
impl Send for AliasIcpRecordal
impl Sync for AliasIcpRecordal
impl Unpin for AliasIcpRecordal
impl UnwindSafe for AliasIcpRecordal
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more