#[non_exhaustive]pub struct AwsCloudFrontDistributionOriginItem { /* private fields */ }
Expand description
A complex type that describes the Amazon S3 bucket, HTTP server (for example, a web server), AWS Elemental MediaStore, or other server from which CloudFront gets your files.
Implementations§
source§impl AwsCloudFrontDistributionOriginItem
impl AwsCloudFrontDistributionOriginItem
sourcepub fn domain_name(&self) -> Option<&str>
pub fn domain_name(&self) -> Option<&str>
Amazon S3 origins: The DNS name of the S3 bucket from which you want CloudFront to get objects for this origin.
sourcepub fn origin_path(&self) -> Option<&str>
pub fn origin_path(&self) -> Option<&str>
An optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin.
sourcepub fn s3_origin_config(
&self
) -> Option<&AwsCloudFrontDistributionOriginS3OriginConfig>
pub fn s3_origin_config(
&self
) -> Option<&AwsCloudFrontDistributionOriginS3OriginConfig>
An origin that is an S3 bucket that is not configured with static website hosting.
sourcepub fn custom_origin_config(
&self
) -> Option<&AwsCloudFrontDistributionOriginCustomOriginConfig>
pub fn custom_origin_config(
&self
) -> Option<&AwsCloudFrontDistributionOriginCustomOriginConfig>
An origin that is not an Amazon S3 bucket, with one exception. If the Amazon S3 bucket is configured with static website hosting, use this attribute. If the Amazon S3 bucket is not configured with static website hosting, use the S3OriginConfig
type instead.
source§impl AwsCloudFrontDistributionOriginItem
impl AwsCloudFrontDistributionOriginItem
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AwsCloudFrontDistributionOriginItem
.
Trait Implementations§
source§impl Clone for AwsCloudFrontDistributionOriginItem
impl Clone for AwsCloudFrontDistributionOriginItem
source§fn clone(&self) -> AwsCloudFrontDistributionOriginItem
fn clone(&self) -> AwsCloudFrontDistributionOriginItem
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq<AwsCloudFrontDistributionOriginItem> for AwsCloudFrontDistributionOriginItem
impl PartialEq<AwsCloudFrontDistributionOriginItem> for AwsCloudFrontDistributionOriginItem
source§fn eq(&self, other: &AwsCloudFrontDistributionOriginItem) -> bool
fn eq(&self, other: &AwsCloudFrontDistributionOriginItem) -> bool
self
and other
values to be equal, and is used
by ==
.