libZSservicesZSamazonka-lightsailZSamazonka-lightsail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Creating a Request

data UpdateDistributionBundle Source #

See: newUpdateDistributionBundle smart constructor.

Constructors

UpdateDistributionBundle' 

Fields

  • bundleId :: Maybe Text

    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.

  • distributionName :: Maybe Text

    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.

Instances

Instances details
Eq UpdateDistributionBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

Read UpdateDistributionBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

Show UpdateDistributionBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

Generic UpdateDistributionBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

Associated Types

type Rep UpdateDistributionBundle :: Type -> Type #

NFData UpdateDistributionBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

Hashable UpdateDistributionBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

ToJSON UpdateDistributionBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

AWSRequest UpdateDistributionBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

ToHeaders UpdateDistributionBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

ToPath UpdateDistributionBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

ToQuery UpdateDistributionBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

type Rep UpdateDistributionBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

type Rep UpdateDistributionBundle = D1 ('MetaData "UpdateDistributionBundle" "Amazonka.Lightsail.UpdateDistributionBundle" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "UpdateDistributionBundle'" 'PrefixI 'True) (S1 ('MetaSel ('Just "bundleId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "distributionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))
type AWSResponse UpdateDistributionBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

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

Instances details
Eq UpdateDistributionBundleResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

Read UpdateDistributionBundleResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

Show UpdateDistributionBundleResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

Generic UpdateDistributionBundleResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

Associated Types

type Rep UpdateDistributionBundleResponse :: Type -> Type #

NFData UpdateDistributionBundleResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

type Rep UpdateDistributionBundleResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

type Rep UpdateDistributionBundleResponse = D1 ('MetaData "UpdateDistributionBundleResponse" "Amazonka.Lightsail.UpdateDistributionBundle" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" '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 - Undocumented member.

$sel:httpStatus:UpdateDistributionBundleResponse', updateDistributionBundleResponse_httpStatus - The response's http status code.

Response Lenses