#[non_exhaustive]pub struct AwsCloudFrontDistributionOriginItem {
pub domain_name: Option<String>,
pub id: Option<String>,
pub origin_path: Option<String>,
pub s3_origin_config: Option<AwsCloudFrontDistributionOriginS3OriginConfig>,
pub custom_origin_config: Option<AwsCloudFrontDistributionOriginCustomOriginConfig>,
}
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.
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.domain_name: Option<String>
Amazon S3 origins: The DNS name of the S3 bucket from which you want CloudFront to get objects for this origin.
id: Option<String>
A unique identifier for the origin or origin group.
origin_path: Option<String>
An optional element that causes CloudFront to request your content from a directory in your Amazon S3 bucket or your custom origin.
s3_origin_config: Option<AwsCloudFrontDistributionOriginS3OriginConfig>
An origin that is an S3 bucket that is not configured with static website hosting.
custom_origin_config: 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.
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() -> AwsCloudFrontDistributionOriginItemBuilder
pub fn builder() -> AwsCloudFrontDistributionOriginItemBuilder
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 for AwsCloudFrontDistributionOriginItem
impl PartialEq 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 ==
.