class ChaosHostIdentityProvider extends PropertyDefinerBase {

    String getAwsIdentifier () {
        AwsMetadataUtil.AwsInstanceIdentity awsInstanceIdentity = getAwsInstanceIdentity();
        if (awsInstanceIdentity == null) return null;
        return Stream.of("aws", awsInstanceIdentity.getInstanceId(), awsInstanceIdentity.getAccountId(), awsInstanceIdentity
                .getRegion()).filter(Objects::nonNull).filter(not(String::isBlank)).collect(Collectors.joining(":"));
    }

}