private boolean isStabilized()

in aws-route53recoverycontrol-routingcontrol/src/main/java/software/amazon/route53recoverycontrol/routingcontrol/UpdateHandler.java [95:120]


    private boolean isStabilized(
            UpdateRoutingControlResponse updateResponse,
            ProxyClient<Route53RecoveryControlConfigClient> proxyClient,
            ResourceModel model
    ) {

        DescribeRoutingControlResponse response;

        // want to bubble up exceptions
        response = getRoutingControl(DescribeRoutingControlRequest.builder()
                .routingControlArn(updateResponse.routingControl().routingControlArn()).build(),
                proxyClient);

        if (response.routingControl().statusAsString().equals("DEPLOYED")) {
            String name = response.routingControl().name();
            if (name.equals(model.getName())) {
                logger.log(String.format("%s has stabilized.", ResourceModel.TYPE_NAME));
                return true;
            }
        } else {
            logger.log(String.format("%s has not yet stabilized.", ResourceModel.TYPE_NAME));
            return false;
        }

        return false;
    }