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

Description

Updates the bundle, or storage plan, of an existing Amazon Lightsail bucket.

A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket. You can update a bucket's bundle only one time within a monthly AWS billing cycle. To determine if you can update a bucket's bundle, use the GetBuckets action. The ableToUpdateBundle parameter in the response will indicate whether you can currently update a bucket's bundle.

Update a bucket's bundle if it's consistently going over its storage space or data transfer quota, or if a bucket's usage is consistently in the lower range of its storage space or data transfer quota. Due to the unpredictable usage fluctuations that a bucket might experience, we strongly recommend that you update a bucket's bundle only as a long-term strategy, instead of as a short-term, monthly cost-cutting measure. Choose a bucket bundle that will provide the bucket with ample storage space and data transfer for a long time to come.

Synopsis

Creating a Request

data UpdateBucketBundle Source #

See: newUpdateBucketBundle smart constructor.

Constructors

UpdateBucketBundle' 

Fields

  • bucketName :: Text

    The name of the bucket for which to update the bundle.

  • bundleId :: Text

    The ID of the new bundle to apply to the bucket.

    Use the GetBucketBundles action to get a list of bundle IDs that you can specify.

Instances

Instances details
Eq UpdateBucketBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateBucketBundle

Read UpdateBucketBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateBucketBundle

Show UpdateBucketBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateBucketBundle

Generic UpdateBucketBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateBucketBundle

Associated Types

type Rep UpdateBucketBundle :: Type -> Type #

NFData UpdateBucketBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateBucketBundle

Methods

rnf :: UpdateBucketBundle -> () #

Hashable UpdateBucketBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateBucketBundle

ToJSON UpdateBucketBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateBucketBundle

AWSRequest UpdateBucketBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateBucketBundle

Associated Types

type AWSResponse UpdateBucketBundle #

ToHeaders UpdateBucketBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateBucketBundle

ToPath UpdateBucketBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateBucketBundle

ToQuery UpdateBucketBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateBucketBundle

type Rep UpdateBucketBundle Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateBucketBundle

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

Defined in Amazonka.Lightsail.UpdateBucketBundle

newUpdateBucketBundle Source #

Create a value of UpdateBucketBundle 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:bucketName:UpdateBucketBundle', updateBucketBundle_bucketName - The name of the bucket for which to update the bundle.

$sel:bundleId:UpdateBucketBundle', updateBucketBundle_bundleId - The ID of the new bundle to apply to the bucket.

Use the GetBucketBundles action to get a list of bundle IDs that you can specify.

Request Lenses

updateBucketBundle_bucketName :: Lens' UpdateBucketBundle Text Source #

The name of the bucket for which to update the bundle.

updateBucketBundle_bundleId :: Lens' UpdateBucketBundle Text Source #

The ID of the new bundle to apply to the bucket.

Use the GetBucketBundles action to get a list of bundle IDs that you can specify.

Destructuring the Response

data UpdateBucketBundleResponse Source #

See: newUpdateBucketBundleResponse smart constructor.

Constructors

UpdateBucketBundleResponse' 

Fields

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq UpdateBucketBundleResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateBucketBundle

Read UpdateBucketBundleResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateBucketBundle

Show UpdateBucketBundleResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateBucketBundle

Generic UpdateBucketBundleResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateBucketBundle

Associated Types

type Rep UpdateBucketBundleResponse :: Type -> Type #

NFData UpdateBucketBundleResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateBucketBundle

type Rep UpdateBucketBundleResponse Source # 
Instance details

Defined in Amazonka.Lightsail.UpdateBucketBundle

type Rep UpdateBucketBundleResponse = D1 ('MetaData "UpdateBucketBundleResponse" "Amazonka.Lightsail.UpdateBucketBundle" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "UpdateBucketBundleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Operation])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateBucketBundleResponse Source #

Create a value of UpdateBucketBundleResponse 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:operations:UpdateBucketBundleResponse', updateBucketBundleResponse_operations - 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:UpdateBucketBundleResponse', updateBucketBundleResponse_httpStatus - The response's http status code.

Response Lenses

updateBucketBundleResponse_operations :: Lens' UpdateBucketBundleResponse (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.