| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CloudFront.GetDistribution
Description
Get the information about a distribution.
Synopsis
- data GetDistribution = GetDistribution' {}
- newGetDistribution :: Text -> GetDistribution
- getDistribution_id :: Lens' GetDistribution Text
- data GetDistributionResponse = GetDistributionResponse' {
- distribution :: Maybe Distribution
- eTag :: Maybe Text
- httpStatus :: Int
- newGetDistributionResponse :: Int -> GetDistributionResponse
- getDistributionResponse_distribution :: Lens' GetDistributionResponse (Maybe Distribution)
- getDistributionResponse_eTag :: Lens' GetDistributionResponse (Maybe Text)
- getDistributionResponse_httpStatus :: Lens' GetDistributionResponse Int
Creating a Request
data GetDistribution Source #
The request to get a distribution's information.
See: newGetDistribution smart constructor.
Constructors
| GetDistribution' | |
Instances
Arguments
| :: Text | |
| -> GetDistribution |
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
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_distribution :: Lens' GetDistributionResponse (Maybe Distribution) Source #
The distribution's information.
getDistributionResponse_eTag :: Lens' GetDistributionResponse (Maybe Text) Source #
The current version of the distribution's information. For example:
E2QWRUHAPOMQZL.
getDistributionResponse_httpStatus :: Lens' GetDistributionResponse Int Source #
The response's http status code.