update_key_group¶
Operation¶
update_key_group
async
¶
update_key_group(input: UpdateKeyGroupInput, plugins: list[Plugin] | None = None) -> UpdateKeyGroupOutput
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
GetKeyGrouporGetKeyGroupConfig. -
Locally modify the fields in the key group that you want to update. For example, add or remove public key IDs.
-
Call
UpdateKeyGroupwith the entire key group object, including the fields that you modified and those that you didn't.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
UpdateKeyGroupInput
|
An instance of |
required |
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
UpdateKeyGroupOutput
|
An instance of |
Input¶
UpdateKeyGroupInput
dataclass
¶
Bases: _SerdeShape
Dataclass for UpdateKeyGroupInput structure.
Attributes¶
id
class-attribute
instance-attribute
¶
id: str | None = ...
The identifier of the key group that you are updating.
if_match
class-attribute
instance-attribute
¶
if_match: str | None = ...
The version of the key group that you are updating. The version is the
key group's ETag value.
key_group_config
class-attribute
instance-attribute
¶
key_group_config: KeyGroupConfig | None = ...
The key group configuration.
Output¶
UpdateKeyGroupOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for UpdateKeyGroupOutput structure.
Attributes¶
e_tag
class-attribute
instance-attribute
¶
e_tag: str | None = ...
The identifier for this version of the key group.
key_group
class-attribute
instance-attribute
¶
key_group: KeyGroup | None = ...
The key group that was just updated.
response_metadata
class-attribute
instance-attribute
¶
Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.