update_public_key
async
¶
update_public_key(
public_key_config: PublicKeyConfig,
id: string,
*,
config_overrides: Optional[AsyncCloudFrontClientConfig] = None,
if_match: Optional[string] = None,
) -> UpdatePublicKeyResult
Update public key information. Note that the only value you can change is the comment.
Parameters:
-
public_key_config(PublicKeyConfig) –A public key configuration.
-
id(string) –The identifier of the public key that you are updating.
-
if_match(Optional[string], default:None) –The value of the
ETagheader that you received when retrieving the public key to update. For example:E2QWRUHAPOMQZL.
Raises:
-
AccessDenied–Access denied.
-
CannotChangeImmutablePublicKeyFields–You can't change the value of a public key.
-
IllegalUpdate–The update contains modifications that are not allowed.
-
InvalidArgument–An argument is invalid.
-
InvalidIfMatchVersion–The
If-Matchversion is missing or not valid. -
NoSuchPublicKey–The specified public key doesn't exist.
-
PreconditionFailed–The precondition in one or more of the request fields evaluated to
false. -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudfront/_services/async_cloud_front.py
10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 | |