Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Get the information about a distribution.
Synopsis
- data GetDistribution = GetDistribution' {}
- newGetDistribution :: Text -> GetDistribution
- getDistribution_id :: Lens' GetDistribution Text
- data GetDistributionResponse = GetDistributionResponse' {
- eTag :: Maybe Text
- distribution :: Maybe Distribution
- httpStatus :: Int
- newGetDistributionResponse :: Int -> GetDistributionResponse
- getDistributionResponse_eTag :: Lens' GetDistributionResponse (Maybe Text)
- getDistributionResponse_distribution :: Lens' GetDistributionResponse (Maybe Distribution)
- getDistributionResponse_httpStatus :: Lens' GetDistributionResponse Int
Creating a Request
data GetDistribution Source #
The request to get a distribution's information.
See: newGetDistribution
smart constructor.
Instances
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:
$sel:id: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.
GetDistributionResponse' | |
|
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:eTag:GetDistributionResponse'
, getDistributionResponse_eTag
- The current version of the distribution's information. For example:
E2QWRUHAPOMQZL
.
$sel:distribution:GetDistributionResponse'
, getDistributionResponse_distribution
- The distribution's information.
$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
.
getDistributionResponse_distribution :: Lens' GetDistributionResponse (Maybe Distribution) Source #
The distribution's information.
getDistributionResponse_httpStatus :: Lens' GetDistributionResponse Int Source #
The response's http status code.