@Override
    public UpdateSecurityPolicyResult updateSecurityPolicy(UpdateSecurityPolicyRequest request) {
        request = beforeClientExecution(request);
        return executeUpdateSecurityPolicy(request);
    }
<p>
Updates an OpenSearch Serverless security policy. For more information, see <a
href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-network.html">Network
access for Amazon OpenSearch Serverless</a> and <a
href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-encryption.html">Encryption
at rest for Amazon OpenSearch Serverless</a>.
</p>

@param updateSecurityPolicyRequest
@return Result of the UpdateSecurityPolicy operation returned by the service.
@throws InternalServerException
        Thrown when an error internal to the service occurs while processing a request.
@throws ResourceNotFoundException
        Thrown when accessing or deleting a resource that does not exist.
@throws ConflictException
        When creating a resource, thrown when a resource with the same name already exists or is being created.
        When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
@throws ValidationException
        Thrown when the HTTP request contains invalid input or is missing required input.
@throws ServiceQuotaExceededException
        Thrown when you attempt to create more resources than the service allows based on service quotas.
@sample AWSOpenSearchServerless.UpdateSecurityPolicy
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/UpdateSecurityPolicy"
     target="_top">AWS API Documentation</a>
aws-java-sdk-opensearchserverless/src/main/java/com/amazonaws/services/opensearchserverless/AWSOpenSearchServerlessClient.java