Struct aws_sdk_cloudfront::model::OriginRequestPolicy
source · [−]#[non_exhaustive]pub struct OriginRequestPolicy {
pub id: Option<String>,
pub last_modified_time: Option<DateTime>,
pub origin_request_policy_config: Option<OriginRequestPolicyConfig>,
}
Expand description
An origin request policy.
When it’s attached to a cache behavior, the origin request policy 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 (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.id: Option<String>
The unique identifier for the origin request policy.
last_modified_time: Option<DateTime>
The date and time when the origin request policy was last modified.
origin_request_policy_config: Option<OriginRequestPolicyConfig>
The origin request policy configuration.
Implementations
sourceimpl OriginRequestPolicy
impl OriginRequestPolicy
sourcepub fn last_modified_time(&self) -> Option<&DateTime>
pub fn last_modified_time(&self) -> Option<&DateTime>
The date and time when the origin request policy was last modified.
sourcepub fn origin_request_policy_config(&self) -> Option<&OriginRequestPolicyConfig>
pub fn origin_request_policy_config(&self) -> Option<&OriginRequestPolicyConfig>
The origin request policy configuration.
sourceimpl OriginRequestPolicy
impl OriginRequestPolicy
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture OriginRequestPolicy
Trait Implementations
sourceimpl Clone for OriginRequestPolicy
impl Clone for OriginRequestPolicy
sourcefn clone(&self) -> OriginRequestPolicy
fn clone(&self) -> OriginRequestPolicy
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 OriginRequestPolicy
impl Debug for OriginRequestPolicy
sourceimpl PartialEq<OriginRequestPolicy> for OriginRequestPolicy
impl PartialEq<OriginRequestPolicy> for OriginRequestPolicy
sourcefn eq(&self, other: &OriginRequestPolicy) -> bool
fn eq(&self, other: &OriginRequestPolicy) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OriginRequestPolicy) -> bool
fn ne(&self, other: &OriginRequestPolicy) -> bool
This method tests for !=
.
impl StructuralPartialEq for OriginRequestPolicy
Auto Trait Implementations
impl RefUnwindSafe for OriginRequestPolicy
impl Send for OriginRequestPolicy
impl Sync for OriginRequestPolicy
impl Unpin for OriginRequestPolicy
impl UnwindSafe for OriginRequestPolicy
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