cloudfront_update_key_group: Updates a key group

Description Usage Arguments Value Request syntax

View source: R/cloudfront_operations.R

Description

Updates a key group.

When you update a key group, all the fields are updated with the values provided in the request. You cannot update some fields independent of others. To update a key group:

  1. Get the current key group with get_key_group or get_key_group_config.

  2. Locally modify the fields in the key group that you want to update. For example, add or remove public key IDs.

  3. Call update_key_group with the entire key group object, including the fields that you modified and those that you didn’t.

Usage

1
cloudfront_update_key_group(KeyGroupConfig, Id, IfMatch)

Arguments

KeyGroupConfig

[required] The key group configuration.

Id

[required] The identifier of the key group that you are updating.

IfMatch

The version of the key group that you are updating. The version is the key group’s ETag value.

Value

A list with the following syntax:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
list(
  KeyGroup = list(
    Id = "string",
    LastModifiedTime = as.POSIXct(
      "2015-01-01"
    ),
    KeyGroupConfig = list(
      Name = "string",
      Items = list(
        "string"
      ),
      Comment = "string"
    )
  ),
  ETag = "string"
)

Request syntax

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
svc$update_key_group(
  KeyGroupConfig = list(
    Name = "string",
    Items = list(
      "string"
    ),
    Comment = "string"
  ),
  Id = "string",
  IfMatch = "string"
)

paws.networking documentation built on March 7, 2021, 5:08 p.m.