| 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 |
Amazonka.Lightsail.UpdateDistributionBundle
Description
Updates the bundle of your Amazon Lightsail content delivery network (CDN) distribution.
A distribution bundle specifies the monthly network transfer quota and monthly cost of your dsitribution.
Update your distribution's bundle if your distribution is going over its monthly network transfer quota and is incurring an overage fee.
You can update your distribution's bundle only one time within your
monthly AWS billing cycle. To determine if you can update your
distribution's bundle, use the GetDistributions action. The
ableToUpdateBundle parameter in the result will indicate whether you
can currently update your distribution's bundle.
Synopsis
- data UpdateDistributionBundle = UpdateDistributionBundle' {}
- newUpdateDistributionBundle :: UpdateDistributionBundle
- updateDistributionBundle_bundleId :: Lens' UpdateDistributionBundle (Maybe Text)
- updateDistributionBundle_distributionName :: Lens' UpdateDistributionBundle (Maybe Text)
- data UpdateDistributionBundleResponse = UpdateDistributionBundleResponse' {
- operation :: Maybe Operation
- httpStatus :: Int
- newUpdateDistributionBundleResponse :: Int -> UpdateDistributionBundleResponse
- updateDistributionBundleResponse_operation :: Lens' UpdateDistributionBundleResponse (Maybe Operation)
- updateDistributionBundleResponse_httpStatus :: Lens' UpdateDistributionBundleResponse Int
Creating a Request
data UpdateDistributionBundle Source #
See: newUpdateDistributionBundle smart constructor.
Constructors
| UpdateDistributionBundle' | |
Fields
| |
Instances
newUpdateDistributionBundle :: UpdateDistributionBundle Source #
Create a value of UpdateDistributionBundle 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:bundleId:UpdateDistributionBundle', updateDistributionBundle_bundleId - The bundle ID of the new bundle to apply to your distribution.
Use the GetDistributionBundles action to get a list of distribution
bundle IDs that you can specify.
$sel:distributionName:UpdateDistributionBundle', updateDistributionBundle_distributionName - The name of the distribution for which to update the bundle.
Use the GetDistributions action to get a list of distribution names
that you can specify.
Request Lenses
updateDistributionBundle_bundleId :: Lens' UpdateDistributionBundle (Maybe Text) Source #
The bundle ID of the new bundle to apply to your distribution.
Use the GetDistributionBundles action to get a list of distribution
bundle IDs that you can specify.
updateDistributionBundle_distributionName :: Lens' UpdateDistributionBundle (Maybe Text) Source #
The name of the distribution for which to update the bundle.
Use the GetDistributions action to get a list of distribution names
that you can specify.
Destructuring the Response
data UpdateDistributionBundleResponse Source #
See: newUpdateDistributionBundleResponse smart constructor.
Constructors
| UpdateDistributionBundleResponse' | |
Fields
| |
Instances
newUpdateDistributionBundleResponse Source #
Create a value of UpdateDistributionBundleResponse 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:UpdateDistributionBundleResponse', updateDistributionBundleResponse_operation - Undocumented member.
$sel:httpStatus:UpdateDistributionBundleResponse', updateDistributionBundleResponse_httpStatus - The response's http status code.
Response Lenses
updateDistributionBundleResponse_operation :: Lens' UpdateDistributionBundleResponse (Maybe Operation) Source #
Undocumented member.
updateDistributionBundleResponse_httpStatus :: Lens' UpdateDistributionBundleResponse Int Source #
The response's http status code.