AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
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:
Get the current key group with GetKeyGroup
or GetKeyGroupConfig
.
Locally modify the fields in the key group that you want to update. For example, add or remove public key IDs.
Call UpdateKeyGroup
with the entire key group object, including the fields
that you modified and those that you didn't.
For .NET Core this operation is only available in asynchronous form. Please refer to UpdateKeyGroupAsync.
Namespace: Amazon.CloudFront
Assembly: AWSSDK.CloudFront.dll
Version: 3.x.y.z
public abstract UpdateKeyGroupResponse UpdateKeyGroup( UpdateKeyGroupRequest request )
Container for the necessary parameters to execute the UpdateKeyGroup service method.
Exception | Condition |
---|---|
InvalidArgumentException | An argument is invalid. |
InvalidIfMatchVersionException | The If-Match version is missing or not valid. |
KeyGroupAlreadyExistsException | A key group with this name already exists. You must provide a unique name. To modify an existing key group, use UpdateKeyGroup. |
NoSuchResourceException | A resource that was specified is not valid. |
PreconditionFailedException | The precondition in one or more of the request fields evaluated to false. |
TooManyPublicKeysInKeyGroupException | The number of public keys in this key group is more than the maximum allowed. For more information, see Quotas (formerly known as limits) in the Amazon CloudFront Developer Guide. |
.NET Framework:
Supported in: 4.5, 4.0, 3.5