libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CloudFront.GetCachePolicy

Description

Gets a cache policy, including the following metadata:

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

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

Synopsis

Creating a Request

data GetCachePolicy Source #

See: newGetCachePolicy smart constructor.

Constructors

GetCachePolicy' 

Fields

  • id :: Text

    The unique identifier for the cache policy. If the cache policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using ListDistributions or GetDistribution. If the cache policy is not attached to a cache behavior, you can get the identifier using ListCachePolicies.

Instances

Instances details
Eq GetCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetCachePolicy

Read GetCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetCachePolicy

Show GetCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetCachePolicy

Generic GetCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetCachePolicy

Associated Types

type Rep GetCachePolicy :: Type -> Type #

NFData GetCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetCachePolicy

Methods

rnf :: GetCachePolicy -> () #

Hashable GetCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetCachePolicy

AWSRequest GetCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetCachePolicy

Associated Types

type AWSResponse GetCachePolicy #

ToHeaders GetCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetCachePolicy

ToPath GetCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetCachePolicy

ToQuery GetCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetCachePolicy

type Rep GetCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetCachePolicy

type Rep GetCachePolicy = D1 ('MetaData "GetCachePolicy" "Amazonka.CloudFront.GetCachePolicy" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "GetCachePolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetCachePolicy Source # 
Instance details

Defined in Amazonka.CloudFront.GetCachePolicy

newGetCachePolicy Source #

Create a value of GetCachePolicy 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:id:GetCachePolicy', getCachePolicy_id - The unique identifier for the cache policy. If the cache policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using ListDistributions or GetDistribution. If the cache policy is not attached to a cache behavior, you can get the identifier using ListCachePolicies.

Request Lenses

getCachePolicy_id :: Lens' GetCachePolicy Text Source #

The unique identifier for the cache policy. If the cache policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using ListDistributions or GetDistribution. If the cache policy is not attached to a cache behavior, you can get the identifier using ListCachePolicies.

Destructuring the Response

data GetCachePolicyResponse Source #

See: newGetCachePolicyResponse smart constructor.

Constructors

GetCachePolicyResponse' 

Fields

Instances

Instances details
Eq GetCachePolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetCachePolicy

Read GetCachePolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetCachePolicy

Show GetCachePolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetCachePolicy

Generic GetCachePolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetCachePolicy

Associated Types

type Rep GetCachePolicyResponse :: Type -> Type #

NFData GetCachePolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetCachePolicy

Methods

rnf :: GetCachePolicyResponse -> () #

type Rep GetCachePolicyResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetCachePolicy

type Rep GetCachePolicyResponse = D1 ('MetaData "GetCachePolicyResponse" "Amazonka.CloudFront.GetCachePolicy" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "GetCachePolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "cachePolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CachePolicy)) :*: (S1 ('MetaSel ('Just "eTag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetCachePolicyResponse Source #

Create a value of GetCachePolicyResponse 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:cachePolicy:GetCachePolicyResponse', getCachePolicyResponse_cachePolicy - The cache policy.

$sel:eTag:GetCachePolicyResponse', getCachePolicyResponse_eTag - The current version of the cache policy.

$sel:httpStatus:GetCachePolicyResponse', getCachePolicyResponse_httpStatus - The response's http status code.

Response Lenses

getCachePolicyResponse_eTag :: Lens' GetCachePolicyResponse (Maybe Text) Source #

The current version of the cache policy.