Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Update a distribution.
See: AWS API Reference for UpdateDistribution.
- updateDistribution :: DistributionConfig -> Text -> UpdateDistribution
- data UpdateDistribution
- udIfMatch :: Lens' UpdateDistribution (Maybe Text)
- udDistributionConfig :: Lens' UpdateDistribution DistributionConfig
- udId :: Lens' UpdateDistribution Text
- updateDistributionResponse :: Int -> UpdateDistributionResponse
- data UpdateDistributionResponse
- udrsETag :: Lens' UpdateDistributionResponse (Maybe Text)
- udrsDistribution :: Lens' UpdateDistributionResponse (Maybe Distribution)
- udrsStatus :: Lens' UpdateDistributionResponse Int
Creating a Request
Creates a value of UpdateDistribution
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UpdateDistribution Source
The request to update a distribution.
See: updateDistribution
smart constructor.
Request Lenses
udIfMatch :: Lens' UpdateDistribution (Maybe Text) Source
The value of the ETag header you received when retrieving the distribution's configuration. For example: E2QWRUHAPOMQZL.
udDistributionConfig :: Lens' UpdateDistribution DistributionConfig Source
The distribution's configuration information.
udId :: Lens' UpdateDistribution Text Source
The distribution's id.
Destructuring the Response
updateDistributionResponse Source
Creates a value of UpdateDistributionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UpdateDistributionResponse Source
The returned result of the corresponding request.
See: updateDistributionResponse
smart constructor.
Response Lenses
udrsETag :: Lens' UpdateDistributionResponse (Maybe Text) Source
The current version of the configuration. For example: E2QWRUHAPOMQZL.
udrsDistribution :: Lens' UpdateDistributionResponse (Maybe Distribution) Source
The distribution's information.
udrsStatus :: Lens' UpdateDistributionResponse Int Source
The response status code.