@Override
    public GetPublicKeyResult getPublicKey(GetPublicKeyRequest request) {
        request = beforeClientExecution(request);
        return executeGetPublicKey(request);
    }
<p>
Gets a public key.
</p>

@param getPublicKeyRequest
@return Result of the GetPublicKey operation returned by the service.
@throws AccessDeniedException
        Access denied.
@throws NoSuchPublicKeyException
        The specified public key doesn't exist.
@sample AmazonCloudFront.GetPublicKey
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetPublicKey" target="_top">AWS API
     Documentation</a>
aws-java-sdk-cloudfront/src/main/java/com/amazonaws/services/cloudfront/AmazonCloudFrontClient.java