get_instance_tpm_ek_pub
async
¶
get_instance_tpm_ek_pub(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
44567 44568 44569 44570 44571 44572 44573 44574 44575 44576 44577 44578 44579 44580 44581 44582 44583 44584 44585 44586 44587 44588 44589 44590 44591 44592 44593 44594 44595 44596 44597 44598 44599 44600 44601 44602 44603 44604 44605 44606 44607 44608 44609 44610 44611 44612 44613 44614 44615 44616 44617 44618 44619 44620 44621 44622 44623 44624 44625 44626 44627 44628 44629 44630 44631 44632 | |