Skip to content

EC2  >  Operations  >  get_instance_tpm_ek_pub

get_instance_tpm_ek_pub

Operation

get_instance_tpm_ek_pub async

get_instance_tpm_ek_pub(input: GetInstanceTpmEkPubInput, plugins: list[Plugin] | None = None) -> GetInstanceTpmEkPubOutput

Gets the public endorsement key associated with the Nitro Trusted Platform Module (NitroTPM) for the specified instance.

Parameters:

Name Type Description Default
input GetInstanceTpmEkPubInput

An instance of GetInstanceTpmEkPubInput.

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
GetInstanceTpmEkPubOutput

An instance of GetInstanceTpmEkPubOutput.

Input

GetInstanceTpmEkPubInput dataclass

Bases: _SerdeShape

Dataclass for GetInstanceTpmEkPubInput structure.

Attributes

dry_run class-attribute instance-attribute
dry_run: bool | 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 is UnauthorizedOperation.

instance_id class-attribute instance-attribute
instance_id: str | None = ...

The ID of the instance for which to get the public endorsement key.

key_format class-attribute instance-attribute
key_format: str | None = ...

The required public endorsement key format. Specify der for a DER-encoded public key that is compatible with OpenSSL. Specify tpmt for a TPM 2.0 format that is compatible with tpm2-tools. The returned key is base64 encoded.

key_type class-attribute instance-attribute
key_type: str | None = ...

The required public endorsement key type.

Output

GetInstanceTpmEkPubOutput dataclass

Bases: _SerdeShape

Dataclass for GetInstanceTpmEkPubOutput structure.

Attributes

instance_id class-attribute instance-attribute
instance_id: str | None = ...

The ID of the instance.

key_format class-attribute instance-attribute
key_format: str | None = ...

The public endorsement key format.

key_type class-attribute instance-attribute
key_type: str | None = ...

The public endorsement key type.

key_value class-attribute instance-attribute
key_value: str | None = ...

The public endorsement key material.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

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.