class InstanceAWSECSProvider extends InstanceAWSProvider {

    @Override
    String getInstanceId(AWSAttestationData info, Struct instanceDocument) {
        
        // we're going to look for container task id first
        // only if that's not present (as backup), we'll
        // return the instance document id
        
        String instanceId = info.getTaskid();
        if (instanceId == null || instanceId.isEmpty()) {
            instanceId = instanceDocument.getString(ATTR_INSTANCE_ID);
        }
        return instanceId;
    }

}