Skip to main content

distribution_bundles

Creates, updates, deletes, gets or lists a distribution_bundles resource.

Overview

Namedistribution_bundles
TypeResource
Idaws.lightsail.distribution_bundles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
bundlesarrayAn object that describes a distribution bundle.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_distribution_bundlesselectregionReturns the bundles that can be applied to your Amazon Lightsail content delivery network (CDN) distributions. A distribution bundle specifies the monthly network transfer quota and monthly cost of your distribution.
update_distribution_bundleupdateregionUpdates 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns the bundles that can be applied to your Amazon Lightsail content delivery network (CDN) distributions. A distribution bundle specifies the monthly network transfer quota and monthly cost of your distribution.

SELECT
bundles
FROM aws.lightsail.distribution_bundles
WHERE region = '{{ region }}' -- required
;

UPDATE examples

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.

UPDATE aws.lightsail.distribution_bundles
SET
distributionName = '{{ distributionName }}',
bundleId = '{{ bundleId }}'
WHERE
region = '{{ region }}' --required
RETURNING
operation;