@Override
    public CreateHapgResult createHapg(CreateHapgRequest request) {
        request = beforeClientExecution(request);
        return executeCreateHapg(request);
    }
@ Override public CreateHapgResult createHapg ( CreateHapgRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateHapg ( request ) ; }
<p>
This is documentation for <b>AWS CloudHSM Classic</b>. For more information, see <a
href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM Classic FAQs</a>, the <a
href="http://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS CloudHSM Classic User Guide</a>, and the <a
href="http://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS CloudHSM Classic API Reference</a>.
</p>
<p>
<b>For information about the current version of AWS CloudHSM</b>, see <a
href="http://aws.amazon.com/cloudhsm/">AWS CloudHSM</a>, the <a
href="http://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS CloudHSM User Guide</a>, and the <a
href="http://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS CloudHSM API Reference</a>.
</p>
<p>
Creates a high-availability partition group. A high-availability partition group is a group of partitions that
spans multiple physical HSMs.
</p>

@param createHapgRequest
Contains the inputs for the <a>CreateHapgRequest</a> action.
@return Result of the CreateHapg operation returned by the service.
@throws CloudHsmServiceException
Indicates that an exception occurred in the AWS CloudHSM service.
@throws CloudHsmInternalException
Indicates that an internal error occurred.
@throws InvalidRequestException
Indicates that one or more of the request parameters are not valid.
@sample AWSCloudHSM.CreateHapg
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg" target="_top">AWS API
Documentation</a>