pub struct CreateDistributionRequest {
pub bundle_id: String,
pub cache_behavior_settings: Option<CacheSettings>,
pub cache_behaviors: Option<Vec<CacheBehaviorPerPath>>,
pub default_cache_behavior: CacheBehavior,
pub distribution_name: String,
pub ip_address_type: Option<String>,
pub origin: InputOrigin,
pub tags: Option<Vec<Tag>>,
}
Fields
bundle_id: String
The bundle ID to use for the distribution.
A distribution bundle describes the specifications of your distribution, such as the monthly cost and monthly network transfer quota.
Use the GetDistributionBundles
action to get a list of distribution bundle IDs that you can specify.
cache_behavior_settings: Option<CacheSettings>
An object that describes the cache behavior settings for the distribution.
cache_behaviors: Option<Vec<CacheBehaviorPerPath>>
An array of objects that describe the per-path cache behavior for the distribution.
default_cache_behavior: CacheBehavior
An object that describes the default cache behavior for the distribution.
distribution_name: String
The name for the distribution.
ip_address_type: Option<String>
The IP address type for the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
The default value is dualstack
.
origin: InputOrigin
An object that describes the origin resource for the distribution, such as a Lightsail instance or load balancer.
The distribution pulls, caches, and serves content from the origin.
The tag keys and optional values to add to the distribution during create.
Use the TagResource
action to tag a resource after it's created.
Trait Implementations
sourceimpl Clone for CreateDistributionRequest
impl Clone for CreateDistributionRequest
sourcefn clone(&self) -> CreateDistributionRequest
fn clone(&self) -> CreateDistributionRequest
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 CreateDistributionRequest
impl Debug for CreateDistributionRequest
sourceimpl Default for CreateDistributionRequest
impl Default for CreateDistributionRequest
sourcefn default() -> CreateDistributionRequest
fn default() -> CreateDistributionRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<CreateDistributionRequest> for CreateDistributionRequest
impl PartialEq<CreateDistributionRequest> for CreateDistributionRequest
sourcefn eq(&self, other: &CreateDistributionRequest) -> bool
fn eq(&self, other: &CreateDistributionRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreateDistributionRequest) -> bool
fn ne(&self, other: &CreateDistributionRequest) -> bool
This method tests for !=
.
sourceimpl Serialize for CreateDistributionRequest
impl Serialize for CreateDistributionRequest
impl StructuralPartialEq for CreateDistributionRequest
Auto Trait Implementations
impl RefUnwindSafe for CreateDistributionRequest
impl Send for CreateDistributionRequest
impl Sync for CreateDistributionRequest
impl Unpin for CreateDistributionRequest
impl UnwindSafe for CreateDistributionRequest
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