Struct aws_sdk_lightsail::types::InputOrigin
source · #[non_exhaustive]pub struct InputOrigin {
pub name: Option<String>,
pub region_name: Option<RegionName>,
pub protocol_policy: Option<OriginProtocolPolicyEnum>,
pub response_timeout: Option<i32>,
}
Expand description
Describes the origin resource of an Amazon Lightsail content delivery network (CDN) distribution.
An origin can be a Lightsail instance, bucket, container service, or load balancer. A distribution pulls content from an origin, caches it, and serves it to viewers via a worldwide network of edge servers.
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.name: Option<String>
The name of the origin resource.
region_name: Option<RegionName>
The AWS Region name of the origin resource.
protocol_policy: Option<OriginProtocolPolicyEnum>
The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.
response_timeout: Option<i32>
The amount of time, in seconds, that the distribution waits for a response after forwarding a request to the origin. The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 30 seconds.
Implementations§
source§impl InputOrigin
impl InputOrigin
sourcepub fn region_name(&self) -> Option<&RegionName>
pub fn region_name(&self) -> Option<&RegionName>
The AWS Region name of the origin resource.
sourcepub fn protocol_policy(&self) -> Option<&OriginProtocolPolicyEnum>
pub fn protocol_policy(&self) -> Option<&OriginProtocolPolicyEnum>
The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.
sourcepub fn response_timeout(&self) -> Option<i32>
pub fn response_timeout(&self) -> Option<i32>
The amount of time, in seconds, that the distribution waits for a response after forwarding a request to the origin. The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 30 seconds.
source§impl InputOrigin
impl InputOrigin
sourcepub fn builder() -> InputOriginBuilder
pub fn builder() -> InputOriginBuilder
Creates a new builder-style object to manufacture InputOrigin
.
Trait Implementations§
source§impl Clone for InputOrigin
impl Clone for InputOrigin
source§fn clone(&self) -> InputOrigin
fn clone(&self) -> InputOrigin
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InputOrigin
impl Debug for InputOrigin
source§impl PartialEq for InputOrigin
impl PartialEq for InputOrigin
source§fn eq(&self, other: &InputOrigin) -> bool
fn eq(&self, other: &InputOrigin) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InputOrigin
Auto Trait Implementations§
impl Freeze for InputOrigin
impl RefUnwindSafe for InputOrigin
impl Send for InputOrigin
impl Sync for InputOrigin
impl Unpin for InputOrigin
impl UnwindSafe for InputOrigin
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more