pricing_plans
Creates, updates, deletes, gets or lists a pricing_plans resource.
Overview
| Name | pricing_plans |
| Type | Resource |
| Id | aws.iottwinmaker.pricing_plans |
Fields
The following fields are returned by SELECT queries:
- get_pricing_plan
| Name | Datatype | Description |
|---|---|---|
current_pricing_plan | object | The chosen pricing plan for the current billing cycle. |
pending_pricing_plan | object | The pending pricing plan. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_pricing_plan | select | region | Gets the pricing plan. | |
update_pricing_plan | update | region, pricingMode | Update the pricing plan. |
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_pricing_plan
Gets the pricing plan.
SELECT
current_pricing_plan,
pending_pricing_plan
FROM aws.iottwinmaker.pricing_plans
WHERE region = '{{ region }}' -- required
;
UPDATE examples
- update_pricing_plan
Update the pricing plan.
UPDATE aws.iottwinmaker.pricing_plans
SET
pricingMode = '{{ pricingMode }}',
bundleNames = '{{ bundleNames }}'
WHERE
region = '{{ region }}' --required
AND pricingMode = '{{ pricingMode }}' --required
RETURNING
current_pricing_plan,
pending_pricing_plan;