Skip to main content

long_term_pricings

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

Overview

Namelong_term_pricings
TypeResource
Idaws.snowball.long_term_pricings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
current_active_jobstringThe current active jobs on the device the long-term pricing type. (pattern: <code>(M|J)ID[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
is_long_term_pricing_auto_renewbooleanIf set to true, specifies that the current long-term pricing type for the device should be automatically renewed before the long-term pricing contract expires.
job_idsarrayThe IDs of the jobs that are associated with a long-term pricing type.
long_term_pricing_end_datestring (date-time)The end date the long-term pricing contract.
long_term_pricing_idstringThe ID of the long-term pricing type for the device. (pattern: <code>LTPID[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
long_term_pricing_start_datestring (date-time)The start date of the long-term pricing contract.
long_term_pricing_statusstringThe status of the long-term pricing type. (pattern: <code>.*</code>)
long_term_pricing_typestringThe type of long-term pricing that was selected for the device. (OneYear, ThreeYear, OneMonth)
replacement_jobstringA new device that replaces a device that is ordered with long-term pricing. (pattern: <code>(M|J)ID[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
snowball_typestringThe type of Snow Family devices associated with this long-term pricing job. (STANDARD, EDGE, EDGE_C, EDGE_CG, EDGE_S, SNC1_HDD, SNC1_SSD, V3_5C, V3_5S, RACK_5U_C)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_long_term_pricingselectregionLists all long-term pricing types.
create_long_term_pricinginsertregion, LongTermPricingType, SnowballTypeCreates a job with the long-term usage option for a device. The long-term usage is a 1-year or 3-year long-term pricing type for the device. You are billed upfront, and Amazon Web Services provides discounts for long-term pricing.
update_long_term_pricingupdateregion, LongTermPricingIdUpdates the long-term pricing type.

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

Lists all long-term pricing types.

SELECT
current_active_job,
is_long_term_pricing_auto_renew,
job_ids,
long_term_pricing_end_date,
long_term_pricing_id,
long_term_pricing_start_date,
long_term_pricing_status,
long_term_pricing_type,
replacement_job,
snowball_type
FROM aws.snowball.long_term_pricings
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a job with the long-term usage option for a device. The long-term usage is a 1-year or 3-year long-term pricing type for the device. You are billed upfront, and Amazon Web Services provides discounts for long-term pricing.

INSERT INTO aws.snowball.long_term_pricings (
LongTermPricingType,
IsLongTermPricingAutoRenew,
SnowballType,
region
)
SELECT
'{{ LongTermPricingType }}' /* required */,
{{ IsLongTermPricingAutoRenew }},
'{{ SnowballType }}' /* required */,
'{{ region }}'
RETURNING
long_term_pricing_id
;

UPDATE examples

Updates the long-term pricing type.

UPDATE aws.snowball.long_term_pricings
SET
LongTermPricingId = '{{ LongTermPricingId }}',
ReplacementJob = '{{ ReplacementJob }}',
IsLongTermPricingAutoRenew = {{ IsLongTermPricingAutoRenew }}
WHERE
region = '{{ region }}' --required
AND LongTermPricingId = '{{ LongTermPricingId }}' --required;