get_instance_tpm_ek_pub
¶
get_instance_tpm_ek_pub(
*,
config_overrides: Optional[EC2ClientConfig] = None,
instance_id: Optional[InstanceId] = None,
key_type: Optional[EkPubKeyType] = None,
key_format: Optional[EkPubKeyFormat] = None,
dry_run: Optional[Boolean] = None,
) -> GetInstanceTpmEkPubResult
Gets the public endorsement key associated with the Nitro Trusted Platform Module (NitroTPM) for the specified instance.
Parameters:
-
instance_id(Optional[InstanceId], default:None) –The ID of the instance for which to get the public endorsement key.
-
key_type(Optional[EkPubKeyType], default:None) –The required public endorsement key type.
-
key_format(Optional[EkPubKeyFormat], default:None) –The required public endorsement key format. Specify
derfor a DER-encoded public key that is compatible with OpenSSL. Specifytpmtfor a TPM 2.0 format that is compatible with tpm2-tools. The returned key is base64 encoded. -
dry_run(Optional[Boolean], default:None) –Specify this parameter to verify whether the request will succeed, without actually making the request. If the request will succeed, the response is
DryRunOperation. Otherwise, the response isUnauthorizedOperation.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
43957 43958 43959 43960 43961 43962 43963 43964 43965 43966 43967 43968 43969 43970 43971 43972 43973 43974 43975 43976 43977 43978 43979 43980 43981 43982 43983 43984 43985 43986 43987 43988 43989 43990 43991 43992 43993 43994 43995 43996 43997 43998 43999 44000 44001 44002 44003 44004 44005 44006 44007 44008 44009 44010 44011 44012 44013 44014 44015 44016 44017 44018 44019 44020 44021 | |