pub struct OriginRequestPolicyConfig {
pub comment: Option<String>,
pub cookies_config: OriginRequestPolicyCookiesConfig,
pub headers_config: OriginRequestPolicyHeadersConfig,
pub name: String,
pub query_strings_config: OriginRequestPolicyQueryStringsConfig,
}
Expand description
An origin request policy configuration.
This configuration determines the values that CloudFront includes in requests that it sends to the origin. Each request that CloudFront sends to the origin includes the following:
-
The request body and the URL path (without the domain name) from the viewer request.
-
The headers that CloudFront automatically includes in every origin request, including
Host
,User-Agent
, andX-Amz-Cf-Id
. -
All HTTP headers, cookies, and URL query strings that are specified in the cache policy or the origin request policy. These can include items from the viewer request and, in the case of headers, additional ones that are added by CloudFront.
CloudFront sends a request when it can’t find an object in its cache that matches the request. If you want to send values to the origin and also include them in the cache key, use CachePolicy
.
Fields
comment: Option<String>
A comment to describe the origin request policy. The comment cannot be longer than 128 characters.
The cookies from viewer requests to include in origin requests.
headers_config: OriginRequestPolicyHeadersConfig
The HTTP headers to include in origin requests. These can include headers from viewer requests and additional headers added by CloudFront.
name: String
A unique name to identify the origin request policy.
query_strings_config: OriginRequestPolicyQueryStringsConfig
The URL query strings from viewer requests to include in origin requests.
Trait Implementations
sourceimpl Clone for OriginRequestPolicyConfig
impl Clone for OriginRequestPolicyConfig
sourcefn clone(&self) -> OriginRequestPolicyConfig
fn clone(&self) -> OriginRequestPolicyConfig
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 OriginRequestPolicyConfig
impl Debug for OriginRequestPolicyConfig
sourceimpl Default for OriginRequestPolicyConfig
impl Default for OriginRequestPolicyConfig
sourcefn default() -> OriginRequestPolicyConfig
fn default() -> OriginRequestPolicyConfig
Returns the “default value” for a type. Read more
sourceimpl PartialEq<OriginRequestPolicyConfig> for OriginRequestPolicyConfig
impl PartialEq<OriginRequestPolicyConfig> for OriginRequestPolicyConfig
sourcefn eq(&self, other: &OriginRequestPolicyConfig) -> bool
fn eq(&self, other: &OriginRequestPolicyConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OriginRequestPolicyConfig) -> bool
fn ne(&self, other: &OriginRequestPolicyConfig) -> bool
This method tests for !=
.
impl StructuralPartialEq for OriginRequestPolicyConfig
Auto Trait Implementations
impl RefUnwindSafe for OriginRequestPolicyConfig
impl Send for OriginRequestPolicyConfig
impl Sync for OriginRequestPolicyConfig
impl Unpin for OriginRequestPolicyConfig
impl UnwindSafe for OriginRequestPolicyConfig
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