amazonka-lightsail-2.0: Amazon Lightsail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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 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

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
ToJSON 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

AWSRequest 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 #

Read UpdateDistributionBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

Show UpdateDistributionBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

NFData UpdateDistributionBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

Eq UpdateDistributionBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

Hashable UpdateDistributionBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

type AWSResponse 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" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" '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))))

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.

Constructors

UpdateDistributionBundleResponse' 

Fields

  • operation :: Maybe 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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic UpdateDistributionBundleResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

Associated Types

type Rep UpdateDistributionBundleResponse :: Type -> Type #

Read UpdateDistributionBundleResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

Show UpdateDistributionBundleResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

NFData UpdateDistributionBundleResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateDistributionBundle

Eq 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" "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.