Struct aws_sdk_cloudfront::model::OriginRequestPolicy [−][src]
#[non_exhaustive]pub struct OriginRequestPolicy {
pub id: Option<String>,
pub last_modified_time: Option<Instant>,
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<Instant>
The date and time when the origin request policy was last modified.
origin_request_policy_config: Option<OriginRequestPolicyConfig>
The origin request policy configuration.
Implementations
Creates a new builder-style object to manufacture OriginRequestPolicy
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more