Copyright | (c) 2013-2017 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 |
Language | Haskell2010 |
Get the information about a distribution.
- getDistribution :: Text -> GetDistribution
- data GetDistribution
- gdId :: Lens' GetDistribution Text
- getDistributionResponse :: Int -> GetDistributionResponse
- data GetDistributionResponse
- gdrsETag :: Lens' GetDistributionResponse (Maybe Text)
- gdrsDistribution :: Lens' GetDistributionResponse (Maybe Distribution)
- gdrsResponseStatus :: Lens' GetDistributionResponse Int
Creating a Request
:: Text | |
-> GetDistribution |
Creates a value of GetDistribution
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gdId
- The distribution's ID.
data GetDistribution Source #
The request to get a distribution's information.
See: getDistribution
smart constructor.
Request Lenses
Destructuring the Response
getDistributionResponse Source #
Creates a value of GetDistributionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gdrsETag
- The current version of the distribution's information. For example:E2QWRUHAPOMQZL
.gdrsDistribution
- The distribution's information.gdrsResponseStatus
- -- | The response status code.
data GetDistributionResponse Source #
The returned result of the corresponding request.
See: getDistributionResponse
smart constructor.
Response Lenses
gdrsETag :: Lens' GetDistributionResponse (Maybe Text) Source #
The current version of the distribution's information. For example: E2QWRUHAPOMQZL
.
gdrsDistribution :: Lens' GetDistributionResponse (Maybe Distribution) Source #
The distribution's information.
gdrsResponseStatus :: Lens' GetDistributionResponse Int Source #
- - | The response status code.