Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cloudfront_get_origin_request_policy

Gets an origin request policy, including the following metadata:


Description

Gets an origin request policy, including the following metadata:

  • The policy’s identifier.

  • The date and time when the policy was last modified.

To get an origin request policy, you must provide the policy’s identifier. If the origin request policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using list_distributions or get_distribution. If the origin request policy is not attached to a cache behavior, you can get the identifier using list_origin_request_policies.

Usage

cloudfront_get_origin_request_policy(Id)

Arguments

Id

[required] The unique identifier for the origin request policy. If the origin request policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using list_distributions or get_distribution. If the origin request policy is not attached to a cache behavior, you can get the identifier using list_origin_request_policies.

Value

A list with the following syntax:

list(
  OriginRequestPolicy = list(
    Id = "string",
    LastModifiedTime = as.POSIXct(
      "2015-01-01"
    ),
    OriginRequestPolicyConfig = list(
      Comment = "string",
      Name = "string",
      HeadersConfig = list(
        HeaderBehavior = "none"|"whitelist"|"allViewer"|"allViewerAndWhitelistCloudFront",
        Headers = list(
          Quantity = 123,
          Items = list(
            "string"
          )
        )
      ),
      CookiesConfig = list(
        CookieBehavior = "none"|"whitelist"|"all",
        Cookies = list(
          Quantity = 123,
          Items = list(
            "string"
          )
        )
      ),
      QueryStringsConfig = list(
        QueryStringBehavior = "none"|"whitelist"|"all",
        QueryStrings = list(
          Quantity = 123,
          Items = list(
            "string"
          )
        )
      )
    )
  ),
  ETag = "string"
)

Request syntax

svc$get_origin_request_policy(
  Id = "string"
)

paws.networking

Amazon Web Services Networking & Content Delivery Services

v0.1.11
Apache License (>= 2.0)
Authors
David Kretch [aut, cre], Adam Banker [aut], Amazon.com, Inc. [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.