| Copyright | (c) 2013-2016 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 |
Network.AWS.CloudFront.UpdateDistribution
Description
Update a distribution.
- 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)
- udrsResponseStatus :: Lens' UpdateDistributionResponse Int
Creating a Request
Arguments
| :: DistributionConfig | |
| -> Text | |
| -> UpdateDistribution |
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.
Instances
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.
Destructuring the Response
updateDistributionResponse Source #
Arguments
| :: Int | |
| -> UpdateDistributionResponse |
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.
Instances
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.
udrsResponseStatus :: Lens' UpdateDistributionResponse Int Source #
The response status code.