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 |
Updates an existing Amazon Lightsail content delivery network (CDN) distribution.
Use this action to update the configuration of your existing distribution.
Synopsis
- data UpdateDistribution = UpdateDistribution' {}
- newUpdateDistribution :: Text -> UpdateDistribution
- updateDistribution_origin :: Lens' UpdateDistribution (Maybe InputOrigin)
- updateDistribution_cacheBehaviorSettings :: Lens' UpdateDistribution (Maybe CacheSettings)
- updateDistribution_isEnabled :: Lens' UpdateDistribution (Maybe Bool)
- updateDistribution_defaultCacheBehavior :: Lens' UpdateDistribution (Maybe CacheBehavior)
- updateDistribution_cacheBehaviors :: Lens' UpdateDistribution (Maybe [CacheBehaviorPerPath])
- updateDistribution_distributionName :: Lens' UpdateDistribution Text
- data UpdateDistributionResponse = UpdateDistributionResponse' {
- operation :: Maybe Operation
- httpStatus :: Int
- newUpdateDistributionResponse :: Int -> UpdateDistributionResponse
- updateDistributionResponse_operation :: Lens' UpdateDistributionResponse (Maybe Operation)
- updateDistributionResponse_httpStatus :: Lens' UpdateDistributionResponse Int
Creating a Request
data UpdateDistribution Source #
See: newUpdateDistribution
smart constructor.
UpdateDistribution' | |
|
Instances
newUpdateDistribution Source #
Create a value of UpdateDistribution
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:origin:UpdateDistribution'
, updateDistribution_origin
- An object that describes the origin resource for the distribution, such
as a Lightsail instance or load balancer.
The distribution pulls, caches, and serves content from the origin.
$sel:cacheBehaviorSettings:UpdateDistribution'
, updateDistribution_cacheBehaviorSettings
- An object that describes the cache behavior settings for the
distribution.
The cacheBehaviorSettings
specified in your
UpdateDistributionRequest
will replace your distribution's existing
settings.
$sel:isEnabled:UpdateDistribution'
, updateDistribution_isEnabled
- Indicates whether to enable the distribution.
$sel:defaultCacheBehavior:UpdateDistribution'
, updateDistribution_defaultCacheBehavior
- An object that describes the default cache behavior for the
distribution.
$sel:cacheBehaviors:UpdateDistribution'
, updateDistribution_cacheBehaviors
- An array of objects that describe the per-path cache behavior for the
distribution.
$sel:distributionName:UpdateDistribution'
, updateDistribution_distributionName
- The name of the distribution to update.
Use the GetDistributions
action to get a list of distribution names
that you can specify.
Request Lenses
updateDistribution_origin :: Lens' UpdateDistribution (Maybe InputOrigin) Source #
An object that describes the origin resource for the distribution, such as a Lightsail instance or load balancer.
The distribution pulls, caches, and serves content from the origin.
updateDistribution_cacheBehaviorSettings :: Lens' UpdateDistribution (Maybe CacheSettings) Source #
An object that describes the cache behavior settings for the distribution.
The cacheBehaviorSettings
specified in your
UpdateDistributionRequest
will replace your distribution's existing
settings.
updateDistribution_isEnabled :: Lens' UpdateDistribution (Maybe Bool) Source #
Indicates whether to enable the distribution.
updateDistribution_defaultCacheBehavior :: Lens' UpdateDistribution (Maybe CacheBehavior) Source #
An object that describes the default cache behavior for the distribution.
updateDistribution_cacheBehaviors :: Lens' UpdateDistribution (Maybe [CacheBehaviorPerPath]) Source #
An array of objects that describe the per-path cache behavior for the distribution.
updateDistribution_distributionName :: Lens' UpdateDistribution Text Source #
The name of the distribution to update.
Use the GetDistributions
action to get a list of distribution names
that you can specify.
Destructuring the Response
data UpdateDistributionResponse Source #
See: newUpdateDistributionResponse
smart constructor.
UpdateDistributionResponse' | |
|
Instances
newUpdateDistributionResponse Source #
Create a value of UpdateDistributionResponse
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:operation:UpdateDistributionResponse'
, updateDistributionResponse_operation
- An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:UpdateDistributionResponse'
, updateDistributionResponse_httpStatus
- The response's http status code.
Response Lenses
updateDistributionResponse_operation :: Lens' UpdateDistributionResponse (Maybe Operation) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
updateDistributionResponse_httpStatus :: Lens' UpdateDistributionResponse Int Source #
The response's http status code.