update_key_group
(**kwargs)¶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:
GetKeyGroup
or GetKeyGroupConfig
.UpdateKeyGroup
with the entire key group object, including the fields that you modified and those that you didn't.See also: AWS API Documentation
Request Syntax
response = client.update_key_group(
KeyGroupConfig={
'Name': 'string',
'Items': [
'string',
],
'Comment': 'string'
},
Id='string',
IfMatch='string'
)
[REQUIRED]
The key group configuration.
A name to identify the key group.
A list of the identifiers of the public keys in the key group.
A comment to describe the key group. The comment cannot be longer than 128 characters.
[REQUIRED]
The identifier of the key group that you are updating.
ETag
value.dict
Response Syntax
{
'KeyGroup': {
'Id': 'string',
'LastModifiedTime': datetime(2015, 1, 1),
'KeyGroupConfig': {
'Name': 'string',
'Items': [
'string',
],
'Comment': 'string'
}
},
'ETag': 'string'
}
Response Structure
(dict) --
KeyGroup (dict) --
The key group that was just updated.
Id (string) --
The identifier for the key group.
LastModifiedTime (datetime) --
The date and time when the key group was last modified.
KeyGroupConfig (dict) --
The key group configuration.
Name (string) --
A name to identify the key group.
Items (list) --
A list of the identifiers of the public keys in the key group.
Comment (string) --
A comment to describe the key group. The comment cannot be longer than 128 characters.
ETag (string) --
The identifier for this version of the key group.
Exceptions
CloudFront.Client.exceptions.InvalidIfMatchVersion
CloudFront.Client.exceptions.NoSuchResource
CloudFront.Client.exceptions.PreconditionFailed
CloudFront.Client.exceptions.KeyGroupAlreadyExists
CloudFront.Client.exceptions.InvalidArgument
CloudFront.Client.exceptions.TooManyPublicKeysInKeyGroup