Skip to content

CloudFront  >  Operations  >  get_public_key

get_public_key

Operation

get_public_key async

get_public_key(input: GetPublicKeyInput, plugins: list[Plugin] | None = None) -> GetPublicKeyOutput

Gets a public key.

Parameters:

Name Type Description Default
input GetPublicKeyInput

An instance of GetPublicKeyInput.

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
GetPublicKeyOutput

An instance of GetPublicKeyOutput.

Input

GetPublicKeyInput dataclass

Bases: _SerdeShape

Dataclass for GetPublicKeyInput structure.

Attributes

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

The identifier of the public key you are getting.

Output

GetPublicKeyOutput dataclass

Bases: _SerdeShape

Dataclass for GetPublicKeyOutput structure.

Attributes

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

The identifier for this version of the public key.

public_key class-attribute instance-attribute
public_key: PublicKey | None = ...

The public key.

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.