static boolean explicitlyEcsConfigured(AwsConfig awsConfig) {
        return !isNullOrEmptyAfterTrim(awsConfig.getCluster())
            || (!isNullOrEmptyAfterTrim(awsConfig.getHostHeader()) && awsConfig.getHostHeader().startsWith("ecs"));
    }
@Test
    public void explicitlyEcsConfigured() {
        assertTrue(AwsClientConfigurator.explicitlyEcsConfigured(AwsConfig.builder().setHostHeader("ecs").build()));
        assertTrue(AwsClientConfigurator.explicitlyEcsConfigured(
            AwsConfig.builder().setHostHeader("ecs.us-east-1.amazonaws.com").build()));
        assertTrue(AwsClientConfigurator.explicitlyEcsConfigured(AwsConfig.builder().setCluster("cluster").build()));
        assertFalse(AwsClientConfigurator.explicitlyEcsConfigured(AwsConfig.builder().build()));
    }