opensearch/setupCWSubscriptionFilter.py [29:39]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        cw_logs_client = boto3.client('logs', region_name=region)
        response = cw_logs_client.describe_log_groups(
            logGroupNamePrefix=cwLogGroupPrefix
        )
        # Read response which is dict, and change that to json with quotes "
        json_response = json.dumps(response)

        # Parse JSON data to extract logGroups
        log_groups = json.loads(json_response)["logGroups"]
        for log_group in log_groups:
            print("Processing logGroups:", log_group["arn"])
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



opensearch/setupCWSubscriptionFilter.py [53:64]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        cw_logs_client = boto3.client('logs', region_name=region)
        response = cw_logs_client.describe_log_groups(
            logGroupNamePrefix=cwLogGroupPrefix
        )
        # Read response which is dict, and change that to json with "
        json_response = json.dumps(response)

        # Parse JSON data to extract logGroups
        log_groups = json.loads(json_response)["logGroups"]
        # Traverse each log group to list cw logs filter and delete the one starting with 'subscriptionFilterNamePrefix'
        for log_group in log_groups:
            print("Processing logGroups:", log_group["arn"])
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



