library/src/main/java/com/kdgregory/aws/utils/cloudwatch/CloudWatchLogsUtil.java
/**
     *  Retrieves all log groups that match a given prefix, handling pagination.
     *
     *  @param  client          The service client.
     *  @param  prefix          The group name prefix. Pass null or an empty string
     *                          to retrieve all groups.
     *
     *  @return A list of the groups matching that prefix.
     */
Retrieves all log groups that match a given prefix, handling pagination.
@param  client          The service client.
@param  prefix          The group name prefix. Pass null or an empty string
to retrieve all groups.

@return A list of the groups matching that prefix.
Retrieves all log groups that match a given prefix handling pagination . @param client The service client . @param prefix The group name prefix . Pass null or an empty string to retrieve all groups . @return A list of the groups matching that prefix .
public static List<LogGroup> describeLogGroups(AWSLogs client, String prefix)
    {
        List<LogGroup> result = new ArrayList<LogGroup>();
        for (LogGroup group : new DescribeLogGroupIterable(client, prefix))
        {
            result.add(group);
        }
        return result;
    }
public static List < LogGroup > describeLogGroups ( AWSLogs client , String prefix ) { List < LogGroup > result = new ArrayList < LogGroup > ( ) ; for ( LogGroup group : new DescribeLogGroupIterable ( client , prefix ) ) { result . add ( group ) ; } return result ; }
Retrieves all log groups that match a given prefix, handling pagination.
Retrieves all log groups that match a given prefix handling pagination .