@Override
    public DissociatePackageResult dissociatePackage(DissociatePackageRequest request) {
        request = beforeClientExecution(request);
        return executeDissociatePackage(request);
    }
<p>
Removes a package from the specified Amazon OpenSearch Service domain. The package can't be in use with any
OpenSearch index for the dissociation to succeed. The package is still available in OpenSearch Service for
association later. For more information, see <a
href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/custom-packages.html">Custom packages
for Amazon OpenSearch Service</a>.
</p>

@param dissociatePackageRequest
       Container for the request parameters to the <code>DissociatePackage</code> operation.
@return Result of the DissociatePackage operation returned by the service.
@throws BaseException
        An error occurred while processing the request.
@throws InternalException
        Request processing failed because of an unknown error, exception, or internal failure.
@throws ResourceNotFoundException
        An exception for accessing or deleting a resource that doesn't exist.
@throws AccessDeniedException
        An error occurred because you don't have permissions to access the resource.
@throws ValidationException
        An exception for accessing or deleting a resource that doesn't exist.
@throws ConflictException
        An error occurred because the client attempts to remove a resource that is currently in use.
@sample AmazonOpenSearch.DissociatePackage
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/AmazonOpenSearchClient.java