@SdkInternalApi
    final UpdatePodIdentityAssociationResult executeUpdatePodIdentityAssociation(UpdatePodIdentityAssociationRequest updatePodIdentityAssociationRequest) {

        ExecutionContext executionContext = createExecutionContext(updatePodIdentityAssociationRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<UpdatePodIdentityAssociationRequest> request = null;
        Response<UpdatePodIdentityAssociationResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new UpdatePodIdentityAssociationRequestProtocolMarshaller(protocolFactory).marshall(super
                        .beforeMarshalling(updatePodIdentityAssociationRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
                request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
                request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
                request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
                request.addHandlerContext(HandlerContextKey.SERVICE_ID, "EKS");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdatePodIdentityAssociation");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

            } finally {
                awsRequestMetrics.endEvent(Field.RequestMarshallTime);
            }

            HttpResponseHandler<AmazonWebServiceResponse<UpdatePodIdentityAssociationResult>> responseHandler = protocolFactory.createResponseHandler(
                    new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
                    new UpdatePodIdentityAssociationResultJsonUnmarshaller());
            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Updates a EKS Pod Identity association. Only the IAM role can be changed; an association can't be moved between
clusters, namespaces, or service accounts. If you need to edit the namespace or service account, you need to
delete the association and then create a new association with your desired settings.
</p>

@param updatePodIdentityAssociationRequest
@return Result of the UpdatePodIdentityAssociation operation returned by the service.
@throws ServerException
        These errors are usually caused by a server-side issue.
@throws ResourceNotFoundException
        The specified resource could not be found. You can view your available clusters with
        <code>ListClusters</code>. You can view your available managed node groups with
        <code>ListNodegroups</code>. Amazon EKS clusters and node groups are Amazon Web Services Region specific.
@throws InvalidRequestException
        The request is invalid given the state of the cluster. Check the state of the cluster and the associated
        operations.
@throws InvalidParameterException
        The specified parameter is invalid. Review the available parameters for the API request.
@sample AmazonEKS.UpdatePodIdentityAssociation
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/UpdatePodIdentityAssociation"
     target="_top">AWS API Documentation</a>
aws-java-sdk-eks/src/main/java/com/amazonaws/services/eks/AmazonEKSClient.java