Skip to main content

key_value_stores

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

Overview

Namekey_value_stores
TypeResource
Idaws.cloudfront.key_value_stores

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the key value store.
commentstringA comment for the key value store.
idstringThe unique Id for the key value store.
last_modified_timestringThe last-modified time of the key value store.
namestringThe name of the key value store.
statusstringThe status of the key value store.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_key_value_storeselectname, regionSpecifies the key value store and its configuration.
list_key_value_storesselectregionMarker, MaxItems, StatusSpecifies the key value stores to list.
create_key_value_storeinsertregionSpecifies the key value store resource to add to your account. In your account, the key value store names must be unique. You can also import key value store data in JSON format from an S3 bucket by providing a valid ImportSource that you own.
update_key_value_storeupdatename, If-Match, regionSpecifies the key value store to update.
delete_key_value_storedeletename, If-Match, regionSpecifies the key value store to delete.

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
If-MatchstringThe key value store to delete, if a match occurs.
namestringThe name of the key value store.
regionstringAWS region (default: us-east-1)
MarkerstringThe marker associated with the key value stores list.
MaxItemsstringThe maximum number of items in the key value stores list.
StatusstringThe status of the request for the key value stores list.

SELECT examples

Specifies the key value store and its configuration.

SELECT
arn,
comment,
id,
last_modified_time,
name,
status
FROM aws.cloudfront.key_value_stores
WHERE name = '{{ name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Specifies the key value store resource to add to your account. In your account, the key value store names must be unique. You can also import key value store data in JSON format from an S3 bucket by providing a valid ImportSource that you own.

INSERT INTO aws.cloudfront.key_value_stores (
Name,
Comment,
ImportSource,
Tags,
region
)
SELECT
'{{ Name }}',
'{{ Comment }}',
'{{ ImportSource }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
arn,
comment,
id,
last_modified_time,
name,
status
;

UPDATE examples

Specifies the key value store to update.

UPDATE aws.cloudfront.key_value_stores
SET
Comment = '{{ Comment }}'
WHERE
name = '{{ name }}' --required
AND `If-Match` = '{{ If-Match }}' --required
AND region = '{{ region }}' --required
RETURNING
arn,
comment,
id,
last_modified_time,
name,
status;

DELETE examples

Specifies the key value store to delete.

DELETE FROM aws.cloudfront.key_value_stores
WHERE name = '{{ name }}' --required
AND `If-Match` = '{{ If-Match }}' --required
AND region = '{{ region }}' --required
;