Update a key value store - Amazon CloudFront
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Update a key value store

When you update a key value store, you can change the key-value pairs, or change the association between the key value store and the function.

Console
To update a key value store
  1. Sign in to the Amazon Web Services Management Console and open the Functions page in the CloudFront console at https://console.amazonaws.cn/cloudfront/v4/home#/functions.

  2. Choose the KeyValueStores tab.

  3. Select the key value store that you want to update.

    • To update the key-value pairs, choose Edit in the Key value pairs section. You can add or delete any key-value pairs. You can also change the value for an existing key-value pair. When you're finished, choose Save changes.

    • To update the association for this key value store, choose Go to functions. For more information, see Associate a key value store with a function.

Programmatically

You can work with the key value stores in the following ways.

Change the key-value pairs

You can add more key-value pairs, you can delete one or more key-value pairs, and you can change the value of an existing key-value pair. For more information, see Work with key-value pairs programmatically.

Change the function association for the key value stores

To update with the association for the key value store, see Update functions. You will need the ARN of the key value store. For more information, see Get a reference to a key value store.