Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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 distribution.
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 Amazon Web Services 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.
UpdateDistributionBundle' | |
|
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:
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.
UpdateDistributionBundleResponse' | |
|
Instances
Generic UpdateDistributionBundleResponse Source # | |
Read UpdateDistributionBundleResponse Source # | |
Show UpdateDistributionBundleResponse Source # | |
NFData UpdateDistributionBundleResponse Source # | |
Defined in Amazonka.Lightsail.UpdateDistributionBundle rnf :: UpdateDistributionBundleResponse -> () # | |
Eq UpdateDistributionBundleResponse Source # | |
type Rep UpdateDistributionBundleResponse Source # | |
Defined in Amazonka.Lightsail.UpdateDistributionBundle type Rep UpdateDistributionBundleResponse = D1 ('MetaData "UpdateDistributionBundleResponse" "Amazonka.Lightsail.UpdateDistributionBundle" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "UpdateDistributionBundleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Operation)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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
- An object that describes 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:UpdateDistributionBundleResponse'
, updateDistributionBundleResponse_httpStatus
- The response's http status code.
Response Lenses
updateDistributionBundleResponse_operation :: Lens' UpdateDistributionBundleResponse (Maybe Operation) Source #
An object that describes the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
updateDistributionBundleResponse_httpStatus :: Lens' UpdateDistributionBundleResponse Int Source #
The response's http status code.