OriginRequestPolicy class
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.
CachePolicy
.
Constructors
- OriginRequestPolicy({required String id, required DateTime lastModifiedTime, required OriginRequestPolicyConfig originRequestPolicyConfig})
- OriginRequestPolicy.fromXml(XmlElement elem)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The unique identifier for the origin request policy.
final
- lastModifiedTime → DateTime
-
The date and time when the origin request policy was last modified.
final
- originRequestPolicyConfig → OriginRequestPolicyConfig
-
The origin request policy configuration.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited