Amazon CloudFront · Example Payload

Cloudfront Cache Behavior Example

CloudFrontCDNContent DeliveryEdge

Cloudfront Cache Behavior Example is an example object payload from Amazon CloudFront, with 9 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

PathPatternTargetOriginIdViewerProtocolPolicyAllowedMethodsCachePolicyIdOriginRequestPolicyIdCompressFunctionAssociationsLambdaFunctionAssociations

Example Payload

Raw ↑
{
  "PathPattern": "example-value",
  "TargetOriginId": "abc12345",
  "ViewerProtocolPolicy": "allow-all",
  "AllowedMethods": {
    "Quantity": 100,
    "Items": [
      "GET"
    ]
  },
  "CachePolicyId": "abc12345",
  "OriginRequestPolicyId": "abc12345",
  "Compress": true,
  "FunctionAssociations": {
    "Quantity": 100,
    "Items": [
      {
        "FunctionARN": "arn:aws:::example/abc12345",
        "EventType": "viewer-request"
      }
    ]
  },
  "LambdaFunctionAssociations": {
    "Quantity": 100,
    "Items": [
      {
        "LambdaFunctionARN": "arn:aws:::example/abc12345",
        "EventType": "viewer-request"
      }
    ]
  }
}