update_public_key
¶
update_public_key(
public_key_config: PublicKeyConfig,
id: string,
*,
config_overrides: Optional[CloudFrontClientConfig] = 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/cloud_front.py
10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 | |