amazonka-cloudfront-2.0: Amazon CloudFront SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudFront.GetResponseHeadersPolicy

Description

Gets a response headers policy, including metadata (the policy's identifier and the date and time when the policy was last modified).

To get a response headers policy, you must provide the policy's identifier. If the response headers policy is attached to a distribution's cache behavior, you can get the policy's identifier using ListDistributions or GetDistribution. If the response headers policy is not attached to a cache behavior, you can get the identifier using ListResponseHeadersPolicies.

Synopsis

Creating a Request

data GetResponseHeadersPolicy Source #

See: newGetResponseHeadersPolicy smart constructor.

Constructors

GetResponseHeadersPolicy' 

Fields

  • id :: Text

    The identifier for the response headers policy.

    If the response headers policy is attached to a distribution's cache behavior, you can get the policy's identifier using ListDistributions or GetDistribution. If the response headers policy is not attached to a cache behavior, you can get the identifier using ListResponseHeadersPolicies.

Instances

Instances details
ToHeaders GetResponseHeadersPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetResponseHeadersPolicy

ToPath GetResponseHeadersPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetResponseHeadersPolicy

ToQuery GetResponseHeadersPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetResponseHeadersPolicy

AWSRequest GetResponseHeadersPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetResponseHeadersPolicy

Generic GetResponseHeadersPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetResponseHeadersPolicy

Associated Types

type Rep GetResponseHeadersPolicy :: Type -> Type #

Read GetResponseHeadersPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetResponseHeadersPolicy

Show GetResponseHeadersPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetResponseHeadersPolicy

NFData GetResponseHeadersPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetResponseHeadersPolicy

Eq GetResponseHeadersPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetResponseHeadersPolicy

Hashable GetResponseHeadersPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetResponseHeadersPolicy

type AWSResponse GetResponseHeadersPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetResponseHeadersPolicy

type Rep GetResponseHeadersPolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetResponseHeadersPolicy

type Rep GetResponseHeadersPolicy = D1 ('MetaData "GetResponseHeadersPolicy" "Amazonka.CloudFront.GetResponseHeadersPolicy" "amazonka-cloudfront-2.0-8Jb7luniAuUfLdUxCxW4K" 'False) (C1 ('MetaCons "GetResponseHeadersPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetResponseHeadersPolicy Source #

Create a value of GetResponseHeadersPolicy with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

GetResponseHeadersPolicy, getResponseHeadersPolicy_id - The identifier for the response headers policy.

If the response headers policy is attached to a distribution's cache behavior, you can get the policy's identifier using ListDistributions or GetDistribution. If the response headers policy is not attached to a cache behavior, you can get the identifier using ListResponseHeadersPolicies.

Request Lenses

getResponseHeadersPolicy_id :: Lens' GetResponseHeadersPolicy Text Source #

The identifier for the response headers policy.

If the response headers policy is attached to a distribution's cache behavior, you can get the policy's identifier using ListDistributions or GetDistribution. If the response headers policy is not attached to a cache behavior, you can get the identifier using ListResponseHeadersPolicies.

Destructuring the Response

data GetResponseHeadersPolicyResponse Source #

See: newGetResponseHeadersPolicyResponse smart constructor.

Constructors

GetResponseHeadersPolicyResponse' 

Fields

Instances

Instances details
Generic GetResponseHeadersPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetResponseHeadersPolicy

Associated Types

type Rep GetResponseHeadersPolicyResponse :: Type -> Type #

Read GetResponseHeadersPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetResponseHeadersPolicy

Show GetResponseHeadersPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetResponseHeadersPolicy

NFData GetResponseHeadersPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetResponseHeadersPolicy

Eq GetResponseHeadersPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetResponseHeadersPolicy

type Rep GetResponseHeadersPolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetResponseHeadersPolicy

type Rep GetResponseHeadersPolicyResponse = D1 ('MetaData "GetResponseHeadersPolicyResponse" "Amazonka.CloudFront.GetResponseHeadersPolicy" "amazonka-cloudfront-2.0-8Jb7luniAuUfLdUxCxW4K" 'False) (C1 ('MetaCons "GetResponseHeadersPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "eTag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "responseHeadersPolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResponseHeadersPolicy)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetResponseHeadersPolicyResponse Source #

Create a value of GetResponseHeadersPolicyResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:eTag:GetResponseHeadersPolicyResponse', getResponseHeadersPolicyResponse_eTag - The version identifier for the current version of the response headers policy.

GetResponseHeadersPolicyResponse, getResponseHeadersPolicyResponse_responseHeadersPolicy - Contains a response headers policy.

$sel:httpStatus:GetResponseHeadersPolicyResponse', getResponseHeadersPolicyResponse_httpStatus - The response's http status code.

Response Lenses

getResponseHeadersPolicyResponse_eTag :: Lens' GetResponseHeadersPolicyResponse (Maybe Text) Source #

The version identifier for the current version of the response headers policy.