@Override
    public CreateKeyResult createKey(CreateKeyRequest request) {
        request = beforeClientExecution(request);
        return executeCreateKey(request);
    }
<p>
Creates an API key resource in your Amazon Web Services account, which lets you grant actions for Amazon Location
resources to the API key bearer.
</p>
<note>
<p>
For more information, see <a
href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">Using API keys</a>.
</p>
</note>

@param createKeyRequest
@return Result of the CreateKey operation returned by the service.
@throws InternalServerException
        The request has failed to process because of an unknown server error, exception, or failure.
@throws ConflictException
        The request was unsuccessful because of a conflict.
@throws AccessDeniedException
        The request was denied because of insufficient access or permissions. Check with an administrator to
        verify your permissions.
@throws ValidationException
        The input failed to meet the constraints specified by the AWS service.
@throws ServiceQuotaExceededException
        The operation was denied because the request would exceed the maximum <a
        href="https://docs.aws.amazon.com/location/latest/developerguide/location-quotas.html">quota</a> set for
        Amazon Location Service.
@throws ThrottlingException
        The request was denied because of request throttling.
@sample AmazonLocation.CreateKey
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/CreateKey" target="_top">AWS API
     Documentation</a>
aws-java-sdk-location/src/main/java/com/amazonaws/services/location/AmazonLocationClient.java