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.GetDistribution

Description

Get the information about a distribution.

Synopsis

Creating a Request

data GetDistribution Source #

The request to get a distribution's information.

See: newGetDistribution smart constructor.

Constructors

GetDistribution' 

Fields

  • id :: Text

    The distribution's ID. If the ID is empty, an empty distribution configuration is returned.

Instances

Instances details
ToHeaders GetDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.GetDistribution

ToPath GetDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.GetDistribution

ToQuery GetDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.GetDistribution

AWSRequest GetDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.GetDistribution

Associated Types

type AWSResponse GetDistribution #

Generic GetDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.GetDistribution

Associated Types

type Rep GetDistribution :: Type -> Type #

Read GetDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.GetDistribution

Show GetDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.GetDistribution

NFData GetDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.GetDistribution

Methods

rnf :: GetDistribution -> () #

Eq GetDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.GetDistribution

Hashable GetDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.GetDistribution

type AWSResponse GetDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.GetDistribution

type Rep GetDistribution Source # 
Instance details

Defined in Amazonka.CloudFront.GetDistribution

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

newGetDistribution Source #

Create a value of GetDistribution 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:

GetDistribution, getDistribution_id - The distribution's ID. If the ID is empty, an empty distribution configuration is returned.

Request Lenses

getDistribution_id :: Lens' GetDistribution Text Source #

The distribution's ID. If the ID is empty, an empty distribution configuration is returned.

Destructuring the Response

data GetDistributionResponse Source #

The returned result of the corresponding request.

See: newGetDistributionResponse smart constructor.

Constructors

GetDistributionResponse' 

Fields

Instances

Instances details
Generic GetDistributionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetDistribution

Associated Types

type Rep GetDistributionResponse :: Type -> Type #

Show GetDistributionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetDistribution

NFData GetDistributionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetDistribution

Methods

rnf :: GetDistributionResponse -> () #

Eq GetDistributionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetDistribution

type Rep GetDistributionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.GetDistribution

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

newGetDistributionResponse Source #

Create a value of GetDistributionResponse 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:distribution:GetDistributionResponse', getDistributionResponse_distribution - The distribution's information.

$sel:eTag:GetDistributionResponse', getDistributionResponse_eTag - The current version of the distribution's information. For example: E2QWRUHAPOMQZL.

$sel:httpStatus:GetDistributionResponse', getDistributionResponse_httpStatus - The response's http status code.

Response Lenses

getDistributionResponse_eTag :: Lens' GetDistributionResponse (Maybe Text) Source #

The current version of the distribution's information. For example: E2QWRUHAPOMQZL.