distribution_bundles
Creates, updates, deletes, gets or lists a distribution_bundles resource.
Overview
| Name | distribution_bundles |
| Type | Resource |
| Id | aws.lightsail.distribution_bundles |
Fields
The following fields are returned by SELECT queries:
- get_distribution_bundles
| Name | Datatype | Description |
|---|---|---|
bundles | array | An object that describes a distribution bundle. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_distribution_bundles | select | region | 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. | |
update_distribution_bundle | update | region | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_distribution_bundles
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
- update_distribution_bundle
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;